Re: [gentoo-user] Error while starting Docker daemon
On Sunday, 8 October 2017 20:07:09 BST Neil Bothwick wrote: > On Sun, 08 Oct 2017 19:10:48 +0100, Mick wrote: > > From what I see above you are running btrfs. It may be worth compiling > > in your kernel this module you have left out, because I've read > > somewhere it prevents fs corruption (Rich seems to know a lot about > > BTRFS, so I leave it to him to confirm its usefulness): > > > > # CONFIG_BTRFS_FS_CHECK_INTEGRITY is not set > > That module is not intended for normal use, and is marked as DANGEROUS. > At best it will slow your system dramatically... Thanks guys, and my apologies to the OP for the bum steer! :-) -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Error while starting Docker daemon
On Sun, 08 Oct 2017 19:10:48 +0100, Mick wrote: > From what I see above you are running btrfs. It may be worth compiling > in your kernel this module you have left out, because I've read > somewhere it prevents fs corruption (Rich seems to know a lot about > BTRFS, so I leave it to him to confirm its usefulness): > > # CONFIG_BTRFS_FS_CHECK_INTEGRITY is not set That module is not intended for normal use, and is marked as DANGEROUS. At best it will slow your system dramatically... -- Neil Bothwick I used to live in the real world, but I got evicted. pgphmejjoa5NI.pgp Description: OpenPGP digital signature
Re: [gentoo-user] Error while starting Docker daemon
On Sun, Oct 8, 2017 at 11:10 AM, Mickwrote: > > From what I see above you are running btrfs. It may be worth compiling in > your kernel this module you have left out, because I've read somewhere it > prevents fs corruption (Rich seems to know a lot about BTRFS, so I leave it to > him to confirm its usefulness): > > # CONFIG_BTRFS_FS_CHECK_INTEGRITY is not set > I wouldn't look much further than the config docs on this one: Btrfs with integrity check tool compiled in (DANGEROUS) ...Enabling this functionality is not intended for normal use. In most cases, unless you are a btrfs developer who needs to verify the integrity of (super)-block write requests during the run of a regression test, say N. It looks like it is intended only for regression testing. I didn't dig too deep into the docs, but it probably turns on some assertions and probably doesn't have much in the way of recovery if they are triggered. Granted, if they trigger you probably have issues anyway, but they might not be as severe as whatever happens when this is turned on. Of course, in theory it shouldn't do anything other than waste RAM/CPU, since assertions aren't supposed to be triggered. So, no, you don't want this on a real system. -- Rich
Re: [gentoo-user] Error while starting Docker daemon
On Sunday, 8 October 2017 12:20:00 BST Hubert Hauser wrote: > On 07/10/17 18:50, Mick wrote: > > On Saturday, 7 October 2017 17:23:33 BST Hubert Hauser wrote: > >> I am using Gentoo as Host OS for Docker containers. > >> I have compiled > >> kernel using instructions on page > >> https://wiki.gentoo.org/wiki/Docker#Kernel and I have installed Docker > >> from Gentoo repository. > >> > >> Host system informations: > >> pecan@tux ~ $ uname -a > >> Linux tux 4.12.12-gentoo #8 SMP Sat Oct 7 13:58:47 CEST 2017 x86_64 > >> > >> Intel(R) Core(TM) i5-6300HQ CPU @ 2.30GHz GenuineIntel GNU/Linux > >> > >> Docker version: > >> pecan@tux ~ $ docker version > >> > >> Client: > >> Version: 17.03.2-ce > >> API version: 1.27 > >> Go version: go1.9.1 > >> Git commit: f5ec1e2 > >> Built:Sat Oct 7 14:50:59 2017 > >> OS/Arch: linux/amd64 > >> > >> Cannot connect to the Docker daemon at unix:///var/run/docker.sock. > >> > >> Is the docker daemon running? > >> > >> Look at "Cannot connect to the Docker daemon at > >> unix:///var/run/docker.sock. Is the docker daemon running?". The same > >> > >> message appears if I try get docker system-wide informations: > >> pecan@tux ~ $ docker info > >> Cannot connect to the Docker daemon at unix:///var/run/docker.sock. > >> > >> Is the docker daemon running? > > > > It seems you have not yet started docker. > > I can't start it because failure occurs when starting Docker daemon. > > On 07/10/17 18:50, Mick wrote: > >> The same error appears if I try run the same command as sudo, so this > >> error applies to daemon. I tried to check if there a mistake in Docker > >> daemon privileges. > >> > >> pecan@tux ~ $ sudo docker info > >> Cannot connect to the Docker daemon at unix:///var/run/docker.sock. > >> > >> Is the docker daemon running? > >> > >> Based on the message I am able to say that maybe Docker daemon not > >> > >> running. I checked daemon status to make sure: > >> pecan@tux ~ $ sudo service docker status > >> > >> * status: crashed > > > > Did you try starting it from the CLI? Any useful messages there? > > Yes. > > The result of command sudo dockerd: > https://paste.pound-python.org/show/AyjLQEBGABpjo57E9WMa/ > and of sudo dockerd -s overlay2: > https://paste.pound-python.org/show/ulyqb7D363I51JqkvrEk/. > > You can also look at attachments dockerd.txt (sudo dockerd) and > dockerd-overlay2.txt (sudo dockerd -s overlay2). > > I must run dockerd without connecting into VPN. > > I've reset iptables and ip6tables rules to defaults: > > pecan@tux ~ $ sudo iptables -L > Chain INPUT (policy ACCEPT) > target prot opt source destination > > Chain FORWARD (policy ACCEPT) > target prot opt source destination > DOCKER-ISOLATION all -- anywhere anywhere > DOCKER all -- anywhere anywhere > ACCEPT all -- anywhere anywhere ctstate > RELATED,ESTABLISHED > ACCEPT all -- anywhere anywhere > ACCEPT all -- anywhere anywhere > > Chain OUTPUT (policy ACCEPT) > target prot opt source destination > > Chain DOCKER (1 references) > target prot opt source destination > > Chain DOCKER-ISOLATION (1 references) > target prot opt source destination > RETURN all -- anywhere anywhere > > (tensorflow) pecan@tux ~ $ sudo ip6tables -L > Chain INPUT (policy ACCEPT) > target prot opt source destination > > Chain FORWARD (policy ACCEPT) > target prot opt source destination > > Chain OUTPUT (policy ACCEPT) > target prot opt source destination > > Here's my Docker logs: > > (tensorflow) pecan@tux ~ $ sudo cat /var/log/docker-err.log > time="2017-10-07T14:54:24.561887891+02:00" level=info > msg="libcontainerd: new containerd process, pid: 994" > Error starting daemon: error initializing graphdriver: prerequisites for > driver not satisfied (wrong filesystem?) > time="2017-10-07T14:56:44.682987498+02:00" level=info > msg="libcontainerd: new containerd process, pid: 4983" > Error starting daemon: error initializing graphdriver: prerequisites for > driver not satisfied (wrong filesystem?) > time="2017-10-07T17:00:16.938724808+02:00" level=info > msg="libcontainerd: new containerd process, pid: 7254" > Error starting daemon: error initializing graphdriver: prerequisites for > driver not satisfied (wrong filesystem?) > time="2017-10-07T17:03:58.151814419+02:00" level=info > msg="libcontainerd: new containerd process, pid: 7857" > Error starting daemon: error initializing graphdriver: prerequisites for > driver not satisfied (wrong filesystem?) > time="2017-10-07T17:05:09.492506131+02:00" level=info > msg="libcontainerd: new
Re: [gentoo-user] Error while starting Docker daemon
On Saturday, 7 October 2017 17:23:33 BST Hubert Hauser wrote: > I am using Gentoo as Host OS for Docker containers. > I have compiled > kernel using instructions on page > https://wiki.gentoo.org/wiki/Docker#Kernel and I have installed Docker > from Gentoo repository. > > Host system informations: > > pecan@tux ~ $ uname -a > Linux tux 4.12.12-gentoo #8 SMP Sat Oct 7 13:58:47 CEST 2017 x86_64 > Intel(R) Core(TM) i5-6300HQ CPU @ 2.30GHz GenuineIntel GNU/Linux > > Docker version: > > pecan@tux ~ $ docker version > Client: > Version: 17.03.2-ce > API version: 1.27 > Go version: go1.9.1 > Git commit: f5ec1e2 > Built:Sat Oct 7 14:50:59 2017 > OS/Arch: linux/amd64 > Cannot connect to the Docker daemon at unix:///var/run/docker.sock. > Is the docker daemon running? > > Look at "Cannot connect to the Docker daemon at > unix:///var/run/docker.sock. Is the docker daemon running?". The same > message appears if I try get docker system-wide informations: > > pecan@tux ~ $ docker info > Cannot connect to the Docker daemon at unix:///var/run/docker.sock. > Is the docker daemon running? It seems you have not yet started docker. > The same error appears if I try run the same command as sudo, so this > error applies to daemon. I tried to check if there a mistake in Docker > daemon privileges. > > pecan@tux ~ $ sudo docker info > Cannot connect to the Docker daemon at unix:///var/run/docker.sock. > Is the docker daemon running? > > Based on the message I am able to say that maybe Docker daemon not > running. I checked daemon status to make sure: > > pecan@tux ~ $ sudo service docker status > * status: crashed Did you try starting it from the CLI? Any useful messages there? > Docker daemon is crashed. To see the reason, I looked at the logs: > > pecan@tux ~ $ cat /var/log/docker.log > time="2017-10-07T14:52:13.178261811+02:00" level=info > msg="libcontainerd: new containerd process, pid: 32311" > time="2017-10-07T14:52:14.434232306+02:00" level=info msg="Graph > migration to content-addressability took 0.00 seconds" > time="2017-10-07T14:52:14.434413425+02:00" level=warning msg="Your > kernel does not support cgroup blkio weight" OK, start from checking your kernel has all the necessary modules compiled in, rebuild it and reboot. > time="2017-10-07T14:52:14.434423960+02:00" level=warning msg="Your > kernel does not support cgroup blkio weight_device" > time="2017-10-07T14:52:14.434759986+02:00" level=info msg="Loading > containers: start." > time="2017-10-07T14:52:14.437180876+02:00" level=info msg="Firewalld > running: false" > Error starting daemon: Error initializing network controller: list > bridge addresses failed: no available network > > Currently, that is a point in that I do not know what should I do to be > able run Docker daemon. > > Useful informations: > > - I am connected to OpenVPN through UDP. > - I have disabled iptables and ip6tables. > - I have set 8.8.8.8 and 8.8.4.4 DNS providers. > - I have running privoxy and tor daemons. > - I use OpenRC init system. > > Can you help me? I don't use docker to know any operational peculiarities of it, but others with more experience will hopefully chip in. From what I see above you need to rebuild your kernel with the necessary modules, reboot and then try starting docker if it hasn't started on its own. HTH. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
[gentoo-user] Error while starting Docker daemon
I am using Gentoo as Host OS for Docker containers. I have compiled kernel using instructions on page https://wiki.gentoo.org/wiki/Docker#Kernel and I have installed Docker from Gentoo repository. Host system informations: pecan@tux ~ $ uname -a Linux tux 4.12.12-gentoo #8 SMP Sat Oct 7 13:58:47 CEST 2017 x86_64 Intel(R) Core(TM) i5-6300HQ CPU @ 2.30GHz GenuineIntel GNU/Linux Docker version: pecan@tux ~ $ docker version Client: Version: 17.03.2-ce API version: 1.27 Go version: go1.9.1 Git commit: f5ec1e2 Built: Sat Oct 7 14:50:59 2017 OS/Arch: linux/amd64 Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? Look at "Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?". The same message appears if I try get docker system-wide informations: pecan@tux ~ $ docker info Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? The same error appears if I try run the same command as sudo, so this error applies to daemon. I tried to check if there a mistake in Docker daemon privileges. pecan@tux ~ $ sudo docker info Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? Based on the message I am able to say that maybe Docker daemon not running. I checked daemon status to make sure: pecan@tux ~ $ sudo service docker status * status: crashed Docker daemon is crashed. To see the reason, I looked at the logs: pecan@tux ~ $ cat /var/log/docker.log time="2017-10-07T14:52:13.178261811+02:00" level=info msg="libcontainerd: new containerd process, pid: 32311" time="2017-10-07T14:52:14.434232306+02:00" level=info msg="Graph migration to content-addressability took 0.00 seconds" time="2017-10-07T14:52:14.434413425+02:00" level=warning msg="Your kernel does not support cgroup blkio weight" time="2017-10-07T14:52:14.434423960+02:00" level=warning msg="Your kernel does not support cgroup blkio weight_device" time="2017-10-07T14:52:14.434759986+02:00" level=info msg="Loading containers: start." time="2017-10-07T14:52:14.437180876+02:00" level=info msg="Firewalld running: false" Error starting daemon: Error initializing network controller: list bridge addresses failed: no available network Currently, that is a point in that I do not know what should I do to be able run Docker daemon. Useful informations: - I am connected to OpenVPN through UDP. - I have disabled iptables and ip6tables. - I have set 8.8.8.8 and 8.8.4.4 DNS providers. - I have running privoxy and tor daemons. - I use OpenRC init system. Can you help me?