mbentley / docker-timemachine

Docker image to run Samba (compatible Time Machine for macOS)
Apache License 2.0
527 stars 65 forks source link

[Bug]: Recent builds spam output with dbus errors #130

Closed boarder2 closed 1 year ago

boarder2 commented 1 year ago

Describe the Bug

Since smb-20230509, when the container starts it floods the docker output with the following

dbus-daemon[125]: Failed to start message bus: Failed to bind socket "/var/run/dbus/system_bus_socket": No such file or directory
dbus socket not yet available; sleeping...
dbus socket not yet available; sleeping...
dbus-daemon[123]: Failed to start message bus: Failed to bind socket "/var/run/dbus/system_bus_socket": No such file or directory 

Rolling back to the smb-20230508 image, it behaves as expected.

Expected Behavior

No errors

Steps to Reproduce

Run with latest image

How You're Launching the Container

version: "3.7"
services:
  timemachine:
    network_mode: "host"
    environment:
      - CUSTOM_SMB_CONF=false
      - CUSTOM_USER=false
      - DEBUG_LEVEL=1
      - EXTERNAL_CONF=
      - HIDE_SHARES=no
      - MIMIC_MODEL=TimeCapsule8,119
      - TM_USERNAME=timemachine
      - TM_GROUPNAME=timemachine
      - TM_UID=1000
      - TM_GID=1000
      - PASSWORD=REDACTED
      - SET_PERMISSIONS=false
      - SHARE_NAME=TimeMachine
      - SMB_INHERIT_PERMISSIONS=no
      - SMB_NFS_ACES=yes
      - SMB_METADATA=stream
      - SMB_PORT=445
      - SMB_VFS_OBJECTS=acl_xattr fruit streams_xattr
      - VOLUME_SIZE_LIMIT=750G
      - WORKGROUP=WORKGROUP
    restart: unless-stopped
    ports:
      - "137:137/udp"
      - "138:138/udp"
      - "139:139"
    volumes:
      - /timemachine:/opt/timemachine
      - timemachine-var-lib-samba:/var/lib/samba
      - timemachine-var-cache-samba:/var/cache/samba
      - timemachine-run-samba:/run/samba
    ulimits:
      nofile:
        soft: 65536
        hard: 65536
    container_name: timemachine
    image: mbentley/timemachine:smb
    deploy:
      resources:
        limits:
          memory: 300M

volumes:
  timemachine-var-lib-samba:
  timemachine-var-cache-samba:
  timemachine-run-samba:

Container Logs

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: Setting password from environment variable
chpasswd: password for 'timemachine' changed
INFO: INFO: CUSTOM_SMB_CONF=false; generating [TimeMachine] section of /etc/samba/smb.conf...
INFO: Samba - Created User timemachine password set to none.
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: running test for xattr support on your time machine persistent storage location...
INFO: xattr test successful - your persistent data store supports xattrs
INFO: entrypoint complete; executing 's6-svscan /etc/s6'
dbus socket not yet available; sleeping...
nmbd version 4.18.2 started.
Copyright Andrew Tridgell and the Samba Team 1992-2023
smbd version 4.18.2 started.
Copyright Andrew Tridgell and the Samba Team 1992-2023
INFO: Profiling support unavailable in this build.
dbus-daemon[39]: Failed to start message bus: Failed to bind socket "/var/run/dbus/system_bus_socket": No such file or directory
dbus socket not yet available; sleeping...
dbus socket not yet available; sleeping...
dbus-daemon[47]: Failed to start message bus: Failed to bind socket "/var/run/dbus/system_bus_socket": No such file or directory
dbus socket not yet available; sleeping...
dbus socket not yet available; sleeping...
dbus-daemon[49]: Failed to start message bus: Failed to bind socket "/var/run/dbus/system_bus_socket": No such file or directory
dbus socket not yet available; sleeping...
dbus socket not yet available; sleeping...
dbus-daemon[51]: Failed to start message bus: Failed to bind socket "/var/run/dbus/system_bus_socket": No such file or directory
dbus socket not yet available; sleeping...
dbus socket not yet available; sleeping...
dbus-daemon[53]: Failed to start message bus: Failed to bind socket "/var/run/dbus/system_bus_socket": No such file or directory
dbus socket not yet available; sleeping...
dbus socket not yet available; sleeping...
dbus-daemon[55]: Failed to start message bus: Failed to bind socket "/var/run/dbus/system_bus_socket": No such file or directory
dbus socket not yet available; sleeping...
dbus socket not yet available; sleeping...
dbus-daemon[57]: Failed to start message bus: Failed to bind socket "/var/run/dbus/system_bus_socket": No such file or directory
dbus socket not yet available; sleeping...
dbus socket not yet available; sleeping...
dbus socket not yet available; sleeping...
dbus-daemon[59]: Failed to start message bus: Failed to bind socket "/var/run/dbus/system_bus_socket": No such file or directory
dbus socket not yet available; sleeping...
dbus socket not yet available; sleeping...
dbus-daemon[61]: Failed to start message bus: Failed to bind socket "/var/run/dbus/system_bus_socket": No such file or directory
dbus socket not yet available; sleeping...

Additional Context

No response

mbentley commented 1 year ago

Thanks for the report! This should now be fixed; looks like something changed in Alpine 3.18 so it wasn't creating a parent directory it was expecting to be there.

boarder2 commented 1 year ago

Thanks for the report! This should now be fixed; looks like something changed in Alpine 3.18 so it wasn't creating a parent directory it was expecting to be there.

Looks good now! Thanks for the quick turn around!