• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Docker - Connection refused

magges

New Pleskian
Hello,

I just updated to Plesk Onyx and installed docker.

When trying to click on the "Docker" button on the panel I get the following error:

Fehler: Der Docker Dienst ist nicht verfügbar: Connection refused

roughly translated:

Error: The Docker service is not available: Connection refused
.

Following informations about my system:

$ plesk version

Product version: Plesk Onyx 17.0.17
Build date: 2016/11/17 16:00
OS version: Ubuntu 14.04
Revision: ab6766191d3ba26e7b21255ab007fc7fc56d84c6
Architecture: 64-bit
Wrapper version: 1.2

$ sudo service docker status

docker start/running, process 25081

docker.log:
time="2016-11-25T12:52:06.595267526+01:00" level=error msg="'overlay' not found as a supported filesystem on this host. Please ensure kernel is new enough and has overlay support loaded."
time="2016-11-25T12:52:06.597075143+01:00" level=info msg="Graph migration to content-addressability took 0.00 seconds"
time="2016-11-25T12:52:06.597573142+01:00" level=warning msg="Your kernel does not support oom control."
time="2016-11-25T12:52:06.597593438+01:00" level=warning msg="Your kernel does not support memory swappiness."
time="2016-11-25T12:52:06.597608185+01:00" level=warning msg="Your kernel does not support kernel memory limit."
time="2016-11-25T12:52:06.597620543+01:00" level=warning msg="Unable to find cpu cgroup in mounts"
time="2016-11-25T12:52:06.597660688+01:00" level=warning msg="Unable to find cpuset cgroup in mounts"
time="2016-11-25T12:52:06.597697857+01:00" level=warning msg="mountpoint for pids not found"
time="2016-11-25T12:52:06.597794226+01:00" level=fatal msg="Error starting daemon: Devices cgroup isn't mounted"
mount: wrong fs type, bad option, bad superblock on cgroup,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)
In some cases useful info is found in syslog - try
dmesg | tail or so

/var/run/docker.sock is up
time="2016-11-25T12:52:06.649401287+01:00" level=info msg="libcontainerd: new containerd process, pid: 29372"

So I guess we have a problem with the filesystem here?

$ mount

/dev/vzfs on / type vzfs (rw,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
none on /dev type devtmpfs (rw,nosuid,noexec,relatime,mode=755)
none on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
none on /sys/fs/cgroup type tmpfs (rw,relatime,size=4k,mode=755)
none on /run type tmpfs (rw,nosuid,noexec,relatime,size=419432k,mode=755)
none on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
none on /run/shm type tmpfs (rw,relatime)
none on /run/user type tmpfs (rw,nosuid,nodev,noexec,relatime,size=102400k,mode=755)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,relatime,blkio,name=beancounter)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,relatime,memory)

$ lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty

$ uname -r

3.13.0-042stab113.21


What other steps could I do? Plesk doesn't say that there are any updates I have to do and I had no error while installing Docker.

Thanks in advance!
 
Hi magges,

pls. note the following:
time="2016-11-25T12:52:06.595267526+01:00" level=error msg="'overlay' not found as a supported filesystem on this host. Please ensure kernel is new enough and has overlay support loaded."
time="2016-11-25T12:52:06.597075143+01:00" level=info msg="Graph migration to content-addressability took 0.00 seconds"
time="2016-11-25T12:52:06.597573142+01:00" level=warning msg="Your kernel does not support oom control."
time="2016-11-25T12:52:06.597593438+01:00" level=warning msg="Your kernel does not support memory swappiness."
time="2016-11-25T12:52:06.597608185+01:00" level=warning msg="Your kernel does not support kernel memory limit."

To test, if your server meets the standard docker requirements, you are able to use for example:

 
I got the following output:

$ bash check-config.sh /boot/config-3.13.0-41-generic
info: reading kernel config from /boot/config-3.13.0-41-generic ...

Generally Necessary:
- cgroup hierarchy: properly mounted [/sys/fs/cgroup]
- CONFIG_NAMESPACES: enabled
- CONFIG_NET_NS: enabled
- CONFIG_PID_NS: enabled
- CONFIG_IPC_NS: enabled
- CONFIG_UTS_NS: enabled
- CONFIG_CGROUPS: enabled
- CONFIG_CGROUP_CPUACCT: enabled
- CONFIG_CGROUP_DEVICE: enabled
- CONFIG_CGROUP_FREEZER: enabled
- CONFIG_CGROUP_SCHED: enabled
- CONFIG_CPUSETS: enabled
- CONFIG_MEMCG: enabled
- CONFIG_KEYS: enabled
- CONFIG_VETH: enabled (as module)
- CONFIG_BRIDGE: enabled (as module)
- CONFIG_BRIDGE_NETFILTER: enabled
- CONFIG_NF_NAT_IPV4: enabled (as module)
- CONFIG_IP_NF_FILTER: enabled (as module)
- CONFIG_IP_NF_TARGET_MASQUERADE: enabled (as module)
- CONFIG_NETFILTER_XT_MATCH_ADDRTYPE: enabled (as module)
- CONFIG_NETFILTER_XT_MATCH_CONNTRACK: enabled (as module)
- CONFIG_NETFILTER_XT_MATCH_IPVS: enabled (as module)
- CONFIG_IP_NF_NAT: missing
- CONFIG_NF_NAT: enabled (as module)
- CONFIG_NF_NAT_NEEDED: enabled
- CONFIG_POSIX_MQUEUE: enabled
- CONFIG_DEVPTS_MULTIPLE_INSTANCES: enabled

Optional Features:
- CONFIG_USER_NS: enabled
- CONFIG_SECCOMP: enabled
- CONFIG_CGROUP_PIDS: missing
- CONFIG_MEMCG_SWAP: enabled
- CONFIG_MEMCG_SWAP_ENABLED: missing
(note that cgroup swap accounting is not enabled in your kernel config, you can enable it by setting boot option "swapaccount=1")
- CONFIG_MEMCG_KMEM: enabled
- CONFIG_RESOURCE_COUNTERS: enabled
- CONFIG_BLK_CGROUP: enabled
- CONFIG_BLK_DEV_THROTTLING: enabled
- CONFIG_IOSCHED_CFQ: enabled
- CONFIG_CFQ_GROUP_IOSCHED: enabled
- CONFIG_CGROUP_PERF: enabled
- CONFIG_CGROUP_HUGETLB: enabled
- CONFIG_NET_CLS_CGROUP: enabled (as module)
- CONFIG_NETPRIO_CGROUP: enabled (as module)
- CONFIG_CFS_BANDWIDTH: enabled
- CONFIG_FAIR_GROUP_SCHED: enabled
- CONFIG_RT_GROUP_SCHED: missing
- CONFIG_IP_VS: enabled (as module)
- CONFIG_IP_VS_NFCT: enabled
- CONFIG_IP_VS_RR: enabled (as module)
- CONFIG_EXT3_FS: missing
- CONFIG_EXT3_FS_XATTR: missing
- CONFIG_EXT3_FS_POSIX_ACL: missing
- CONFIG_EXT3_FS_SECURITY: missing
(enable these ext3 configs if you are using ext3 as backing filesystem)
- CONFIG_EXT4_FS: enabled
- CONFIG_EXT4_FS_POSIX_ACL: enabled
- CONFIG_EXT4_FS_SECURITY: enabled
- Network Drivers:
- "overlay":
- CONFIG_VXLAN: enabled (as module)
Optional (for encrypted networks):
- CONFIG_CRYPTO: enabled
- CONFIG_CRYPTO_AEAD: enabled (as module)
- CONFIG_CRYPTO_GCM: enabled (as module)
- CONFIG_CRYPTO_SEQIV: enabled (as module)
- CONFIG_CRYPTO_GHASH: enabled (as module)
- CONFIG_XFRM: enabled
- CONFIG_XFRM_USER: enabled (as module)
- CONFIG_XFRM_ALGO: enabled (as module)
- CONFIG_INET_ESP: enabled (as module)
- CONFIG_INET_XFRM_MODE_TRANSPORT: enabled (as module)
- "ipvlan":
- CONFIG_IPVLAN: missing
- "macvlan":
- CONFIG_MACVLAN: enabled (as module)
- CONFIG_DUMMY: enabled (as module)
- Storage Drivers:
- "aufs":
- CONFIG_AUFS_FS: enabled (as module)
- "btrfs":
- CONFIG_BTRFS_FS: enabled (as module)
- CONFIG_BTRFS_FS_POSIX_ACL: enabled
- "devicemapper":
- CONFIG_BLK_DEV_DM: enabled
- CONFIG_DM_THIN_PROVISIONING: enabled (as module)
- "overlay":
- CONFIG_OVERLAY_FS: missing
- "zfs":
- /dev/zfs: missing
- zfs command: missing
- zpool command: missing

Limits:
- /proc/sys/kernel/keys/root_maxkeys: 1000000


So I think the first thing to try would be upgrading the Kernel.

apt has Linux 4.2 available, is it safe to upgrade or might Plesk not work afterwards?
 
Thank you for your help UFHH01, I really appreciate it!

is `apt dist-upgrade` the correct way?

It wants to do the following:

The following packages were automatically installed and are no longer required:
linux-image-3.13.0-100-generic linux-image-3.13.0-96-generic
linux-image-3.13.0-98-generic linux-image-extra-3.13.0-100-generic
linux-image-extra-3.13.0-96-generic linux-image-extra-3.13.0-98-generic
python-chardet python-chardet-whl python-colorama python-colorama-whl
python-distlib python-distlib-whl python-html5lib python-html5lib-whl
python-pip python-pip-whl python-pkg-resources python-requests
python-requests-whl python-setuptools python-setuptools-whl python-six
python-six-whl python-urllib3 python-urllib3-whl python-virtualenv
Use 'apt-get autoremove' to remove them.
The following packages will be upgraded:
libwbclient0 log4cpp-plesk php5-ioncube-loader psa-logrotate
psa-mod-fcgid-configurator psa-spf2 psa-vps-optimized python-samba samba
samba-common samba-common-bin samba-dsdb-modules samba-libs sw-libmilter
sw-mariadb-client sw-tar
16 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 
Last edited:
Hi magges,

as stated from your informations at your command line, you should consider to use the following commands:

Code:
apt-get clean && apt-get update
apt-get autoremove
apt-get dist-upgrade


( I always recommend to use "aptitude", because it often helps to choose a possible, alternative option, in case of dependencies issues! ):
Code:
apt-get clean && apt-get update
apt-get autoremove
aptitude upgrade
 
Last edited by a moderator:
Back
Top