Docker plugin - After the last update it does not start
-
- OMV 4.x
- gelöst
- aguti76
-
-
Seeing this too
Code
Alles anzeigenNov 08 08:52:43 omv4 systemd[1]: Starting Docker Application Container Engine... -- Subject: Unit docker.service has begun start-up -- Defined-By: systemd -- Support: https://www.debian.org/support -- -- Unit docker.service has begun starting up. Nov 08 08:52:43 omv4 dockerd[11288]: Failed to load listeners: no sockets found via socket activation: make sure the service was started by systemd Nov 08 08:52:43 omv4 systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE Nov 08 08:52:43 omv4 systemd[1]: Failed to start Docker Application Container Engine. -- Subject: Unit docker.service has failed -- Defined-By: systemd -- Support: https://www.debian.org/support -- -- Unit docker.service has failed. -- -- The result is failed. Nov 08 08:52:43 omv4 systemd[1]: docker.service: Unit entered failed state. Nov 08 08:52:43 omv4 systemd[1]: docker.service: Failed with result 'exit-code'.
-
Managed to fix it by replacing "-H fd://" with "-H unix://" in /etc/systemd/system/docker.service.d/openmediavault.conf
-
Managed to fix it by replacing "-H fd://" with "-H unix://" in /etc/systemd/system/docker.service.d/openmediavault.conf
It works for me too. Thank you very much
-
Managed to fix it by replacing "-H fd://" with "-H unix://" in /etc/systemd/system/docker.service.d/openmediavault.conf
#metoo
thanks for the tip. Could docker to run again
-
still error Failed to stop docker.socket: Unit docker.socket not loaded.
-
still error Failed to stop docker.socket: Unit docker.socket not loaded.
DId the change but still getting the error:
Can you please explain the whole steps like disable plugin, modify the line, enable plugin?Still getting:
Source Code
Edit Source Code- Error #0:
- OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; systemctl stop 'docker.socket' 2>&1' with exit code '5': Failed to stop docker.socket: Unit docker.socket not loaded. in /usr/share/php/openmediavault/system/process.inc:182
- Stack trace:
- #0 /usr/share/php/openmediavault/system/systemctl.inc(86): OMV\System\Process->execute(Array, 5)
- #1 /usr/share/php/openmediavault/system/systemctl.inc(153): OMV\System\SystemCtl->exec('stop', NULL, false)
- #2 /usr/share/omvdocker/Utils.php(92): OMV\System\SystemCtl->stop()
- #3 /usr/share/omvdocker/Utils.php(531): OMVModuleDockerUtil::stopDockerService()
- #4 /usr/share/openmediavault/engined/rpc/docker.inc(1205): OMVModuleDockerUtil::changeDockerSettings(Array, 42005, '/srv/dev-disk-b...')
- #5 [internal function]: OMVRpcServiceDocker->setSettings(Array, Array)
- #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
- #7 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('setSettings', Array, Array)
- #8 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Docker', 'setSettings', Array, Array, 1)
- #9 {main}
openmediavaulkt.conf looks like:
Source Code
Edit Source Code- [Service]
- EnvironmentFile=-/etc/default/docker
- ExecStart=
- ExecStart=/usr/bin/dockerd -H unix:// $DOCKER_OPTS \
- $OMVDOCKER_API \
- $OMVDOCKER_IMAGE_PATH
Thanks for your help!
-
works for me... (after reboot)
-
For me the problem the mentioned change fixed the issue that the service did not start.
So now the docker service is OK again.
The openmediavaut-docker-gui is still having problems but all my containers are running again.
Maybe you have the same problem?For me after changing the conf-file I had to run:
service stop docker
systemctl daemon-reload
service start dockerAnd to check if that helped
docker container ls -
For me the problem the mentioned change fixed the issue that the service did not start.
So now the docker service is OK again.
The openmediavaut-docker-gui is still having problems but all my containers are running again.
Maybe you have the same problem?For me after changing the conf-file I had to run:
service stop docker
systemctl daemon-reload
service start dockerAnd to check if that helped
docker container lsThanks for your help but it's still not working:
container ls:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESWhen enabling plugin i get:
CodeFailed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; systemctl stop 'docker.socket' 2>&1' with exit code '5': Failed to stop docker.socket: Unit docker.socket not loaded.
Is there a way to completly and clenly uninstall docker?
-
I did an uninstall and reinstall for the openmediavault-docker-gui via the "Erweiterungen" page in the omv-gui. Should be "Add-Ons" or similar.
But that threw some errors for the openmediavault-docker-gui ("Bad Gateway").Maybe you could try it as well.
Uninstall
Reinstall
"service docker stop"
make the change to the conf-file
"systemctl daemon-reload"
"service docker start"
"docker container ls" (after giving some time to start the containers and if no errors accured)At least this is what I did after getting the same errors as you before.
But I am not sure what exactly helped here. -
Getting this when reinstalling plugin:
Code
Alles anzeigenReading package lists... Building dependency tree... Reading state information... The following additional packages will be installed: docker-ce imagemagick-6-common libcurl3 libfftw3-double3 liblcms2-2 liblqr-1-0 libmagickcore-6.q16-3 libmagickwand-6.q16-3 libopenjp2-7 omvextras-common php-curl php-imagick php-symfony-class-loader php-symfony-polyfill-apcu php7.0-curl Suggested packages: libfftw3-bin libfftw3-dev liblcms2-utils libmagickcore-6.q16-3-extra Recommended packages: aufs-tools cgroupfs-mount | cgroup-lite git pigz ghostscript gsfonts ttf-dejavu-core The following NEW packages will be installed: docker-ce imagemagick-6-common libcurl3 libfftw3-double3 liblcms2-2 liblqr-1-0 libmagickcore-6.q16-3 libmagickwand-6.q16-3 libopenjp2-7 omvextras-common openmediavault-docker-gui php-curl php-imagick php-symfony-class-loader php-symfony-polyfill-apcu php7.0-curl 0 upgraded, 16 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/21.3 MB of archives. After this operation, 99.0 MB of additional disk space will be used. Selecting previously unselected package liblqr-1-0:amd64. (Reading database ... (Reading database ... 5%(Reading database ... 10%(Reading database ... 15%(Reading database ... 20%(Reading database ... 25%(Reading database ... 30%(Reading database ... 35%(Reading database ... 40%(Reading database ... 45%(Reading database ... 50%(Reading database ... 55%(Reading database ... 60%(Reading database ... 65%(Reading database ... 70%(Reading database ... 75%(Reading database ... 80%(Reading database ... 85%(Reading database ... 90%(Reading database ... 95%(Reading database ... 100%(Reading database ... 83159 files and directories currently installed.) Preparing to unpack .../00-liblqr-1-0_0.4.2-2+b2_amd64.deb ... Unpacking liblqr-1-0:amd64 (0.4.2-2+b2) ... Selecting previously unselected package libfftw3-double3:amd64. Preparing to unpack .../01-libfftw3-double3_3.3.5-3_amd64.deb ... Unpacking libfftw3-double3:amd64 (3.3.5-3) ... Selecting previously unselected package liblcms2-2:amd64. Preparing to unpack .../02-liblcms2-2_2.8-4+deb9u1_amd64.deb ... Unpacking liblcms2-2:amd64 (2.8-4+deb9u1) ... Selecting previously unselected package libopenjp2-7:amd64. Preparing to unpack .../03-libopenjp2-7_2.1.2-1.1+deb9u2_amd64.deb ... Unpacking libopenjp2-7:amd64 (2.1.2-1.1+deb9u2) ... Selecting previously unselected package imagemagick-6-common. Preparing to unpack .../04-imagemagick-6-common_8%3a6.9.7.4+dfsg-11+deb9u6_all.deb ... Unpacking imagemagick-6-common (8:6.9.7.4+dfsg-11+deb9u6) ... Selecting previously unselected package libmagickcore-6.q16-3:amd64. Preparing to unpack .../05-libmagickcore-6.q16-3_8%3a6.9.7.4+dfsg-11+deb9u6_amd64.deb ... Unpacking libmagickcore-6.q16-3:amd64 (8:6.9.7.4+dfsg-11+deb9u6) ... Selecting previously unselected package libmagickwand-6.q16-3:amd64. Preparing to unpack .../06-libmagickwand-6.q16-3_8%3a6.9.7.4+dfsg-11+deb9u6_amd64.deb ... Unpacking libmagickwand-6.q16-3:amd64 (8:6.9.7.4+dfsg-11+deb9u6) ... Selecting previously unselected package docker-ce. Preparing to unpack .../07-docker-ce_5%3a18.09.0~3-0~debian-stretch_amd64.deb ... Unpacking docker-ce (5:18.09.0~3-0~debian-stretch) ... Selecting previously unselected package libcurl3:amd64. Preparing to unpack .../08-libcurl3_7.52.1-5+deb9u8_amd64.deb ... Unpacking libcurl3:amd64 (7.52.1-5+deb9u8) ... Selecting previously unselected package php-symfony-polyfill-apcu. Preparing to unpack .../09-php-symfony-polyfill-apcu_1.2.0-1_all.deb ... Unpacking php-symfony-polyfill-apcu (1.2.0-1) ... Selecting previously unselected package php-symfony-class-loader. Preparing to unpack .../10-php-symfony-class-loader_2.8.7+dfsg-1.3+deb9u1_all.deb ... Unpacking php-symfony-class-loader (2.8.7+dfsg-1.3+deb9u1) ... Selecting previously unselected package omvextras-common. Preparing to unpack .../11-omvextras-common_4.0.1_all.deb ... Unpacking omvextras-common (4.0.1) ... Selecting previously unselected package php7.0-curl. Preparing to unpack .../12-php7.0-curl_7.0.30-0+deb9u1_amd64.deb ... Unpacking php7.0-curl (7.0.30-0+deb9u1) ... Selecting previously unselected package php-curl. Preparing to unpack .../13-php-curl_1%3a7.0+49_all.deb ... Unpacking php-curl (1:7.0+49) ... Selecting previously unselected package php-imagick. Preparing to unpack .../14-php-imagick_3.4.3~rc2-2_amd64.deb ... Unpacking php-imagick (3.4.3~rc2-2) ... Preparing to unpack .../15-openmediavault-docker-gui_4.0.1_all.deb ... Unpacking openmediavault-docker-gui (4.0.1) ... Setting up imagemagick-6-common (8:6.9.7.4+dfsg-11+deb9u6) ... Setting up docker-ce (5:18.09.0~3-0~debian-stretch) ... update-alternatives: using /usr/bin/dockerd-ce to provide /usr/bin/dockerd (dockerd) in auto mode Created symlink /etc/systemd/system/multi-user.target.wants/docker.service -> /lib/systemd/system/docker.service. Setting up libopenjp2-7:amd64 (2.1.2-1.1+deb9u2) ... Setting up liblcms2-2:amd64 (2.8-4+deb9u1) ... Setting up libcurl3:amd64 (7.52.1-5+deb9u8) ... Setting up php7.0-curl (7.0.30-0+deb9u1) ... Creating config file /etc/php/7.0/mods-available/curl.ini with new version Setting up libfftw3-double3:amd64 (3.3.5-3) ... Processing triggers for php7.0-fpm (7.0.30-0+deb9u1) ... Setting up liblqr-1-0:amd64 (0.4.2-2+b2) ... Processing triggers for libc-bin (2.24-11+deb9u3) ... Setting up php-symfony-polyfill-apcu (1.2.0-1) ... Processing triggers for openmediavault (4.1.13-1) ... Restarting engine daemon ... Cannot create socket to [localhost]:2812 -- Connection refused Setting up libmagickcore-6.q16-3:amd64 (8:6.9.7.4+dfsg-11+deb9u6) ... Setting up php-curl (1:7.0+49) ... Setting up php-symfony-class-loader (2.8.7+dfsg-1.3+deb9u1) ... Setting up libmagickwand-6.q16-3:amd64 (8:6.9.7.4+dfsg-11+deb9u6) ... Setting up omvextras-common (4.0.1) ... Setting up php-imagick (3.4.3~rc2-2) ... Processing triggers for openmediavault (4.1.13-1) ... Updating file permissions ... Purging internal cache ... Restarting engine daemon ... Cannot create socket to [localhost]:2812 -- Connection refused Setting up openmediavault-docker-gui (4.0.1) ... sed: can't read /etc/default/docker: No such file or directory dpkg: error processing package openmediavault-docker-gui (--configure): subprocess installed post-installation script returned error exit status 2 Processing triggers for libc-bin (2.24-11+deb9u3) ... Processing triggers for openmediavault (4.1.13-1) ... Restarting engine daemon ... Cannot create socket to [localhost]:2812 -- Connection refused Errors were encountered while processing: openmediavault-docker-gui
No luck with your steps
Thanks for your hint
-
I even cannot remove openmediavault-docker-gui
with the same issue
Failed to stop docker.socket: Unit docker.socket not loaded.
and
Cannot create socket to [localhost]:2812 -- Connection refused -
I even cannot remove openmediavault-docker-gui
with the same issue
Failed to stop docker.socket: Unit docker.socket not loaded.
and
Cannot create socket to [localhost]:2812 -- Connection refusedHaving the same error aswell
-
Having the same error aswell
Containers are running, but can't enable docker-plugin in OMV.
-
I even cannot remove openmediavault-docker-gui
with the same issue
Failed to stop docker.socket: Unit docker.socket not loaded.
and
Cannot create socket to [localhost]:2812 -- Connection refusedSame issue here. Even from a clean install.
-
Hi,
I have the same problem.
Docker is started, all containers are up and running. Docker can not be activated in the GUI.
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; systemctl stop 'docker.socket' 2>&1' with exit code '5': Failed to stop docker.socket: Unit docker.socket not loaded.
-
Hi,
I have the same problem.
Docker is started, all containers are up and running. Docker can not be activated in the GUI.
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; systemctl stop 'docker.socket' 2>&1' with exit code '5': Failed to stop docker.socket: Unit docker.socket not loaded.
Actually none of my dockers are running.
-
Hi,
I have the same problem.
Docker is started, all containers are up and running. Docker can not be activated in the GUI.
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; systemctl stop 'docker.socket' 2>&1' with exit code '5': Failed to stop docker.socket: Unit docker.socket not loaded.
The same here, docker is up and running with all the containers but I cannot manage it with the GUI due to that error.It seems that omv cannot execute: systemctl stop 'docker.socket' but is ok if you try with systemctl stop 'docker' from cli
-
My test machine is still working. I will need to try to replicate this. No need to update that people's systems aren't working until I look into this more. No idea what update did this but it isn't the plugin.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!