Possible bug with s6 on armv7
I have a docker image that uses the s6
package to run multiple services to run a macOS timemachine (https://github.com/mbentley/docker-timemachine). I have images built for amd64
and armv7
and it was pointed out to me that the image for armv7
fails to run properly after the release of Alpine Linux 3.13 as I have been building the image from the alpine:latest
tag but the failures only occur on armv7
- amd64
is fine. Rolling back to 3.12 and the problems go away.
Here is the Dockerfile
Docker image: docker.io/mbentley/timemachine:smb-armv7l-alpine-3.13
You can run the image with docker run -it --rm docker.io/mbentley/timemachine:smb-armv7l-alpine-3.1
to see the issue where it just spams nonstop after startup:
$ docker run -it --rm docker.io/mbentley/timemachine:smb-armv7l-alpine-3.13
WARNING: The requested image's platform (linux/arm/v7) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
INFO: CUSTOM_SMB_CONF=false; generating [global] section of /etc/samba/smb.conf...
INFO: Creating /var/log/samba/cores
INFO: Avahi - generating base configuration in /etc/avahi/services/smbd.service...
INFO: Avahi - adding the 'dk0', 'TimeMachine' share txt-record to /etc/avahi/services/smbd.service...
INFO: Group timemachine doesn't exist; creating...
INFO: User timemachine doesn't exist; creating...
INFO: Using default password: timemachine
INFO: chpasswd: password for 'timemachine' changed
INFO: CUSTOM_SMB_CONF=false; generating [TimeMachine] section of /etc/samba/smb.conf...
INFO: Samba - Created Added user timemachine.
INFO: Samba - Enabled user timemachine.
INFO: Samba - setting password
INFO: SET_PERMISSIONS=false; not setting ownership and permissions for /opt/timemachine
INFO: Avahi - completing the configuration in /etc/avahi/services/smbd.service...
INFO: entrypoint complete; executing 's6-svscan /etc/s6'
dbus socket not yet available; sleeping...
nmbd version 4.13.3 started.
Copyright Andrew Tridgell and the Samba Team 1992-2020
daemon_ready: daemon 'nmbd' finished starting up and ready to serve connections
smbd version 4.13.3 started.
Copyright Andrew Tridgell and the Samba Team 1992-2020
INFO: Profiling support unavailable in this build.
s6-supervise dbus: warning: can't happen: timeout while the service is up!
s6-supervise smbd: warning: can't happen: timeout while the service is up!
s6-supervise nmbd: warning: can't happen: timeout while the service is up!
s6-supervise avahi: warning: can't happen: timeout while the service is up!
s6-supervise dbus: warning: can't happen: timeout while the service is up!
s6-supervise smbd: warning: can't happen: timeout while the service is up!
s6-supervise nmbd: warning: can't happen: timeout while the service is up!
s6-supervise avahi: warning: can't happen: timeout while the service is up!
Found user 'avahi' (UID 86) and group 'avahi' (GID 86).
Successfully dropped root privileges.
avahi-daemon 0.8 starting up.
WARNING: No NSS support for mDNS detected, consider installing nss-mdns!
Loading service file /etc/avahi/services/smbd.service.
No sender credentials received, ignoring data.
Server startup complete. Host name is 80da289475fc.local. Local service cookie is 193986564.
Service "80da289475fc" (/etc/avahi/services/smbd.service) successfully established.
No sender credentials received, ignoring data.
No sender credentials received, ignoring data.
daemon_ready: daemon 'smbd' finished starting up and ready to serve connections
Failed to fetch record!
s6-supervise smbd: warning: can't happen: timeout while the service is up!
s6-supervise nmbd: warning: can't happen: timeout while the service is up!
s6-supervise dbus: warning: can't happen: timeout while the service is up!
s6-supervise avahi: warning: can't happen: timeout while the service is up!
s6-supervise nmbd: warning: can't happen: timeout while the service is up!
s6-supervise smbd: warning: can't happen: timeout while the service is up!
s6-supervise dbus: warning: can't happen: timeout while the service is up!
s6-supervise avahi: warning: can't happen: timeout while the service is up!
s6-supervise smbd: warning: can't happen: timeout while the service is up!
s6-supervise dbus: warning: can't happen: timeout while the service is up!
s6-supervise nmbd: warning: can't happen: timeout while the service is up!
s6-supervise avahi: warning: can't happen: timeout while the service is up!
s6-supervise smbd: warning: can't happen: timeout while the service is up!
s6-supervise dbus: warning: can't happen: timeout while the service is up!
s6-supervise avahi: warning: can't happen: timeout while the service is up!
s6-supervise nmbd: warning: can't happen: timeout while the service is up!
s6-supervise smbd: warning: can't happen: timeout while the service is up!
s6-supervise dbus: warning: can't happen: timeout while the service is up!
s6-supervise nmbd: warning: can't happen: timeout while the service is up!
s6-supervise avahi: warning: can't happen: timeout while the service is up!
s6-supervise dbus: warning: can't happen: timeout while the service is up!
s6-supervise avahi: warning: can't happen: timeout while the service is up!
s6-supervise smbd: warning: can't happen: timeout while the service is up!
s6-supervise nmbd: warning: can't happen: timeout while the service is up!
I also found similar behavior in another project when searching around for the error message: https://github.com/HenryQW/Awesome-TTRSS/issues/240