Docker - Openhab

  • Hi,
    I set up an OMV on a Debian 11 installation, not from the ISO because I wanted a soft raid for the system disks.
    Now I have made sure to set up dogger in order to then move an OpenHAB from the Raspberry to the OMV server.

    I get the following error message:

    Code
    dpkg: error processing package linux-image-amd64 (--configure):
     dependency problems - leaving unconfigured
    Errors were encountered while processing:
     linux-image-6.1.0-0.deb11.11-amd64
     linux-image-amd64

    Now I have the following solution

    and

    Here is an excerpt from the LOG

    I have no idea what I can do now?!


    Thanks to everyone who reads this and tries to help.

  • Yustbeyourself

    Changed the title of the thread from “Dogger - Openhab” to “Docker - Openhab”.
  • Hello, I have now found a problem why Docker cannot be installed:

    Code
    update-initramfs: Generating /boot/initrd.img-6.1.0-0.deb11.11-amd64
    gzip: stdout: No space left on device


    The partition is full!



    Now the question is how can I adjust the partitions without deleting the data on them. md0p1 should be reduced in size and md0p3 should be increased to about 1GB.

    Now I'm looking for a program with which I can do this. As far as I know, Gparted cannot customize raids.

    But that's secondary. First, you need a backup to be able to restore the whole thing. You may have to solve the raid, change the partitions and then reassemble them.

    Does anyone here have any ideas for me?


    But first make a BACKUP!

    Definitely from the system partition. There is nothing in the remaining partitions yet.

    If I add up the usage of the entire system, a USB stick is currently enough if the empty partition areas are reduced. e.g. with PiShrink. Alternatively, a 2TB passport is also available. However, I have:

    New User Guide — openmediavault 5.x.y documentation

    I have read that a system backup is definitely useful, but not how exactly it is created. I think it can be done with dd because the partition table is also included. I'm not sure yet whether I'm creating dd from sdg, sdh or md0.

    I also think the system backup is best if I do it without the system running, for example via a live stick like Clonezilla.

    Which way would you suggest me for the system backup?

    • Official Post

    parted can resize partitions if you unmount the filesystem on them.


    Not sure why you created a separate boot partition. If you insist on creating one, it should be 1GB or larger.

    omv 7.7.3-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.4.4 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Hi ryecoaaron,


    i set up a boot partition because it has not worked on a other way to boot.


    Now i made a backup with dd of die both disks, then i start with a linux mint live stick

    After manual install the mdadm in the runing live system i an activate the raid and change the partition size

    Software-RAID › Wiki › ubuntuusers.de

    Resized by gparted


    After reboot i can install docker without errors (i hope so)


    Now i tried to install the openhab

    services > compose > dockerfiles

    Docker
    a vendor and technology agnostic open source automation software for your home
    www.openhab.org

    Docker



    Name: OpenHab_Prod

    Description:OpenHab Aktivsysten for Daily use


    Dockerfile:

    version: '2.2'


    services:

    openhab:

    image: "openhab/openhab:4.0.4"

    restart: always

    network_mode: host

    volumes:

    - "/etc/localtime:/etc/localtime:ro"

    - "/etc/timezone:/etc/timezone:ro"

    - "./openhab_addons:/openhab/addons"

    - "./openhab_conf:/openhab/conf"

    - "./openhab_userdata:/openhab/userdata"

    environment:

    CRYPTO_POLICY: "unlimited"

    EXTRA_JAVA_OPTS: "-Duser.timezone=Europe/Berlin"

    OPENHAB_HTTP_PORT: "8080"

    OPENHAB_HTTPS_PORT: "8443"


    Script Filename: [empty]

    Script: [empty]

    Conf Filename: [empty]

    Conf File: [empty]


    Now i saved this and when i try to "Pull and Build"

    The BoxTerminal show me:

    #0 building with "default" instance using docker driver

    #1 [internal] load build definition from Dockerfile
    #1 transferring dockerfile: 30B 0.1s
    #1 transferring dockerfile: 746B 0.1s done
    #1 DONE 1.3s

    #2 [internal] load .dockerignore
    #2 transferring context: 2B done
    #2 DONE 1.6s

    ** CONNECTION LOST **

    The red Box:

    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; docker build --pull --progress plain --tag 'openhab_prod' '/srv/dev-disk-by-uuid-ffe7557f-f3bc-41be-b8ab-c5b71838e53d/Docker/openhab_prod/' 2>&1': #0 building with "default" instance using docker driver

    #1 [internal] load .dockerignore
    #1 transferring context: 2B done
    #1 DONE 0.3s

    #2 [internal] load build definition from Dockerfile
    #2 transferring dockerfile: 746B done
    #2 DONE 0.4s
    Dockerfile:7
    -------------------- 5 | # OpenHab Aktivsysten for Daily use 6 | 7 | >>> version: '2.2' 8 | 9 | services:
    --------------------
    ERROR: failed to solve: dockerfile parse error on line 7: unknown instruction: version:


    I have no idea what i doing wrong please help

    • Official Post

    I have no idea what i doing wrong please help

    First, read the docs

    omv6:docker_in_omv [omv-extras.org]

    omv6:omv6_plugins:docker_compose [omv-extras.org]


    Second, there is a reason it is called the compose plugin. You are trying to put a compose file in a dockerfile. Most users will never need to use the Dockerfile tab.

    omv 7.7.3-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.4.4 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Have you verified ports 8080 and 8443 don't conflict with other services currently in use?


    You can quickly check with:

    ss -tunlp | grep 8080

    ss -tunlp | grep 8443


    That "connection lost" at the end of compose is probably where the issue is occurring.

  • Thank you for your help.


    Openhab is now running!!!


    I tried to install 2 other containers from exampels but i have to understand how i must declare the volumes and where i have to create it in the host file system.


    You help me, thank you

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!