Page 1 of 1

docker hangs on eve-ng pro

Posted: Thu Jun 07, 2018 7:34 pm
by cdukes
I can't even type

Code: Select all

docker ps
or

Code: Select all

docker -h
I also see this in dmesg:

Code: Select all

[Thu Jun  7 15:19:01 2018] systemd[1]: [/etc/systemd/system/cpulimit.service:7] Executable path is not absolute, ignoring: (/usr/bin/killall -9 cpulimit-daemon.php & /usr/bin/killall -TERM cpulimit )
[Thu Jun  7 15:19:01 2018] systemd[1]: [/etc/systemd/system/capdog.service:7] Executable path is not absolute, ignoring: (/usr/bin/killall -9 capdog.sh )

Re: docker hangs on eve-ng pro

Posted: Thu Jun 07, 2018 7:39 pm
by cdukes
Here's the fix for the capdog problem in dmesg - but this still hasn't fixed the docker problem. So probably unrelated.

Replace

Code: Select all

/etc/systemd/system/capdog.service
with:

Code: Select all

[Unit]
Description=capture docker cleaner

[Service]
Type=simple
ExecStart=/opt/unetlab/scripts/capdog.sh &
ExecStop=/usr/bin/killall -9 /opt/unetlab/scripts/capdog.sh
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

Code: Select all

systemctl daemon-reload
systemctl restart capdog

Re: docker hangs on eve-ng pro

Posted: Thu Jun 07, 2018 7:46 pm
by cdukes
This may be the problem...yes?

Code: Select all

root@eve-ng [~]: # bash -x /opt/unetlab/scripts/capdog.sh
+ alias 'dc=docker -H 127.0.0.1:4243'
+ true
++ dc ps
/opt/unetlab/scripts/capdog.sh: line 4: dc: command not found
++ grep Capture-
++ sed -e 's/.* //'
+ sleep 30

Re: docker hangs on eve-ng pro

Posted: Thu Jun 07, 2018 7:50 pm
by cdukes
And...to fix that script, do this:

Code: Select all

vi /opt/unetlab/scripts/capdog.sh
Replace the first line:

Code: Select all

alias dc="docker -H 127.0.0.1:4243"
With:

Code: Select all

dc () {
    docker -H 127.0.0.1:4243 $@
}

Re: docker hangs on eve-ng pro

Posted: Thu Jun 07, 2018 8:04 pm
by cdukes
FWIW, this is also borked:

Code: Select all

[Thu Jun  7 15:53:49 2018] systemd[1]: [/etc/systemd/system/cpulimit.service:7] Executable path is not absolute, ignoring: (/usr/bin/killall -9 cpulimit-daemon.php & /usr/bin/killall -TERM cpulimit )
Fix it by removing the outer parens in

Code: Select all

/etc/systemd/system/cpulimit.service
e.g.:

Code: Select all

ExecStop=/usr/bin/killall -9 cpulimit-daemon.php & /usr/bin/killall -TERM cpulimit
After I rebooted, all dmesg errors from the two systemd files are gone now.

Re: docker hangs on eve-ng pro

Posted: Thu Jun 07, 2018 8:53 pm
by cdukes
I've tried a myriad of things at this point but can't get docker to work. Every command just hangs.

I can't upgrade to the latest docker version because eve-ng includes some custom one :(

Any ideas would be great. Thanks!