Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dietpi-Software | Docker fails on ARMv6 (RPi) #3128

Closed
Sp0rTB4cK opened this issue Sep 28, 2019 · 9 comments
Closed

Dietpi-Software | Docker fails on ARMv6 (RPi) #3128

Sp0rTB4cK opened this issue Sep 28, 2019 · 9 comments
Labels
ARMv6 External bug 🐞 For bugs which are not caused by DietPi. Raspberry Pi Solution available 🥂 Definite solution has been done
Milestone

Comments

@Sp0rTB4cK
Copy link

Sp0rTB4cK commented Sep 28, 2019

Creating a bug report/issue

Required Information

  • DietPi version |

G_DIETPI_VERSION_CORE=6
G_DIETPI_VERSION_SUB=25
G_DIETPI_VERSION_RC=3
G_GITBRANCH='master'
G_GITOWNER='MichaIng'

  • Distro version |

buster

  • Kernel version |

Linux DietPi 4.19.66+ #1253 Thu Aug 15 11:37:30 BST 2019 armv6l GNU/Linux

  • SBC device |

RPi B (armv6l)

  • Power supply used |

5V 2.1A

  • SDcard used |

SanDisk ultra 32GB

Additional Information (if applicable)

  • Software title |

Docker

  • Was the software title installed freshly or updated/migrated?

freshly installed on a fresh DietPi installation

  • Can this issue be replicated on a fresh installation of DietPi?
  • Bug report ID |

8a7efc40-41d3-4e40-b8e6-f8fb2c26a33b

Steps to reproduce

  1. Install (162) Docker using dietpi-software
  2. execute "docker version" or an other docker command

Expected behaviour

  • docker command runs correctly

Actual behaviour

-with root: "docker version" shows some information AND that the docker daemon is not running.
-with dietpi: "docker version" shows some information AND

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.40/version: dial unix /var/run/docker.sock: connect: permission denied

Extra details

  • systemctl shows containerd.service as failed.
  • docker service status:

docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; disabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/docker.service.d
└─dietpi-simple.conf
Active: inactive (dead) since Sat 2019-09-28 13:37:58 BST; 27s ago
Docs: https://docs.docker.com
Process: 1051 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=killed, signal=TERM)
Main PID: 1051 (code=killed, signal=TERM)
Sep 28 13:37:57 DietPi systemd[1]: Started Docker Application Container Engine.
Sep 28 13:37:58 DietPi systemd[1]: Stopping Docker Application Container Engine...
Sep 28 13:37:58 DietPi systemd[1]: docker.service: Main process exited, code=killed, status=15/TERM
Sep 28 13:37:58 DietPi systemd[1]: docker.service: Succeeded.
Sep 28 13:37:58 DietPi systemd[1]: Stopped Docker Application Container Engine.

  • containerd service status:

containerd.service - containerd container runtime
Loaded: loaded (/lib/systemd/system/containerd.service; enabled; vendor preset: enabled)
Active: failed (Result: core-dump) since Sat 2019-09-28 13:38:17 BST; 56s ago
Docs: https://containerd.io
Process: 1074 ExecStartPre=/sbin/modprobe overlay (code=exited, status=0/SUCCESS)
Process: 1075 ExecStart=/usr/bin/containerd (code=dumped, signal=SEGV)
Main PID: 1075 (code=dumped, signal=SEGV)
Sep 28 13:38:17 DietPi systemd[1]: Starting containerd container runtime...
Sep 28 13:38:17 DietPi systemd[1]: Started containerd container runtime.
Sep 28 13:38:17 DietPi systemd[1]: containerd.service: Main process exited, code=dumped, status=11/SEGV
Sep 28 13:38:17 DietPi systemd[1]: containerd.service: Failed with result 'core-dump'.

@MichaIng
Copy link
Owner

MichaIng commented Sep 28, 2019

@Sp0rTB4cK
Many thanks for your report.

Please see the following issue with solution, at least my guess that it is the same: #3126

@Sp0rTB4cK
Copy link
Author

Thank you for your reply.

In issue #3126 , a restart fixed the problem. Unfortunately a restart does not bring any success for me. The problem persists.

For me it looks as if less docker is the problem but containerd.

@MichaIng
Copy link
Owner

Hmm, there was an issue that the Docker repo did not support ARMv6 in between (indeed making containerd fail), but AFAIK this was solved before the version for Raspbian Buster became stable.
Here is the thread around the Raspbian Buster build: docker/for-linux#709

Did you install Docker directly on first boot or separately after first run setup and one reboot was finished? In first case I am not sure first why the install even succeeded or if it actually failed and if it succeeded, which kernel version/modules it was built against.

What is at least worth to try is to uninstall and reinstall it again one time to assure it is build against the currently loaded kernel version.

With v6.26 we changed it a way that the install is skipped if loaded and installed kernel do not match, which should work around the issue.

@Sp0rTB4cK
Copy link
Author

I tried both ways. Both the first boot variant and the subsequent installation have the same result.

I uninstalled Docker again using dietpi software and reinstalled it. I rebooted between each step. Unfortunately I could not achieve any improvement.

I read the comments in the issue you linked and found a working solution:
docker/for-linux#709 (comment)

@MichaIng
Copy link
Owner

@Sp0rTB4cK
Indeed it seems that it is not yet solved for ARMv6. See here the workaround with a 3rd-party containerd.io package: docker/for-linux#709 (comment)

Hmm, if this is not solved until v6.26 release, I will add this workaround to DietPi-Software as well, but lets hope for the best...

@MichaIng MichaIng added this to the v6.26 milestone Sep 29, 2019
@MichaIng MichaIng added Workaround available 🆗 Workaround is available/has been implemented, but a definite solution should be found when possible. External bug 🐞 For bugs which are not caused by DietPi. labels Sep 29, 2019
@MichaIng MichaIng changed the title Dietpi-Software | Docker does not start after install Dietpi-Software | Docker fails on ARMv6 (RPi) Sep 29, 2019
@MichaIng
Copy link
Owner

@Sp0rTB4cK
Now the issue seems to have been fixed: docker/for-linux#709 (comment)

@MichaIng MichaIng added Solution available 🥂 Definite solution has been done and removed Workaround available 🆗 Workaround is available/has been implemented, but a definite solution should be found when possible. labels Oct 10, 2019
@Sp0rTB4cK
Copy link
Author

I'll verify that in the next days.

@Sp0rTB4cK
Copy link
Author

I know, its late, but I've found the time to test it again. Docker works perfectly now.

@MichaIng
Copy link
Owner

@Sp0rTB4cK
Many thanks for verifying!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ARMv6 External bug 🐞 For bugs which are not caused by DietPi. Raspberry Pi Solution available 🥂 Definite solution has been done
Projects
None yet
Development

No branches or pull requests

2 participants