You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the work putting this together. I'm giving it a shot and failing to start, running on arm64:
I'm using this simple config to troubleshoot, here's my compose:
samba:
# build: .
image: ghcr.io/servercontainers/samba:smbd-wsdd2-latest
restart: always
# note that this network_mode makes it super easy (especially for zeroconf) but is not as safe as exposing ports directly
# more about that here: https://book.hacktricks.wiki/en/linux-hardening/privilege-escalation/docker-security/docker-breakout-privilege-escalation/index.html#hostnetwork
network_mode: host
# uncomment to solve bug: https://github.com/ServerContainers/samba/issues/50 - wsdd2 only - not needed for samba
#cap_add:
# - CAP_NET_ADMIN
environment:
# uncomment to enable fail fast (currently only fails fast if there are conflicts/errors during user/group creation)
#FAIL_FAST: 1
MODEL: 'TimeCapsule'
AVAHI_NAME: StorageServer
SAMBA_CONF_LOG_LEVEL: 3
# uncomment to disable optional services
#WSDD2_DISABLE: 1
AVAHI_DISABLE: 1
#NETBIOS_DISABLE: 1
Logs:
Failed to fetch domain sid for WORKGROUP
[2025/01/28 23:18:55.773933, 0] ../../lib/util/util.c:221(directory_create_or_exist)
directory_create_or_exist: mkdir failed on directory /var/run/samba/ncalrpc: No such file or directory
[2025/01/28 23:18:55.773984, 0] ../../source3/smbd/server.c:2044(main)
Failed to create pipe directory /var/run/samba/ncalrpc - No such file or directory
�
2
+ exec smbd --foreground
[2025/01/28 23:18:57.893321, 0] ../../source3/smbd/server.c:1746(main)
smbd version 4.20.6 started.
Copyright Andrew Tridgell and the Samba Team 1992-2024
[2025/01/28 23:18:57.893390, 2] ../../source3/smbd/server.c:1750(main)
uid=0 gid=0 euid=0 egid=0
[2025/01/28 23:18:57.894163, 2] ../../source3/lib/dmallocmsg.c:78(register_dmalloc_msgs)
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[2025/01/28 23:18:57.894255, 3] ../../source3/param/loadparm.c:3982(lp_load_ex)
lp_load_ex: refreshing parameters
[2025/01/28 23:18:57.894348, 3] ../../source3/param/loadparm.c:560(loadparm_s3_init_globals)
Initialising global parameters
[2025/01/28 23:18:57.894486, 3] ../../source3/param/loadparm.c:2884(lp_do_section)
Processing section "[global]"
[2025/01/28 23:18:57.894631, 3] ../../source3/param/loadparm.c:1686(lp_add_ipc)
adding IPC service
added interface eth0 ip=fd68:43b8:a896:acab:1e42:1f7a:84a0:834f bcast= netmask=ffff:ffff:ffff:ffff::
added interface docker0 ip=172.17.0.1 bcast=172.17.255.255 netmask=255.255.0.0
added interface br-a6c2b64a5683 ip=172.18.0.1 bcast=172.18.255.255 netmask=255.255.0.0
added interface eth0 ip=192.168.86.8 bcast=192.168.86.255 netmask=255.255.255.0
added interface ztppivf2ec ip=192.168.192.8 bcast=192.168.192.255 netmask=255.255.255.0
[2025/01/28 23:18:57.895334, 3] ../../source3/smbd/server.c:1814(main)
loaded services
[2025/01/28 23:18:57.895428, 3] ../../source3/profile/profile_dummy.c:30(set_profile_level)
set_profile_level: INFO: Profiling support unavailable in this build.
[2025/01/28 23:18:57.895442, 3] ../../source3/smbd/server.c:1833(main)
Standard input is not a socket, assuming -D option
[2025/01/28 23:18:57.895447, 3] ../../source3/smbd/server.c:1846(main)
Becoming a daemon.
[2025/01/28 23:18:57.896402, 2] ../../source3/passdb/pdb_interface.c:163(make_pdb_method_name)
No builtin backend found, trying to load plugin
[2025/01/28 23:18:57.896677, 3] ../../lib/util/modules.c:167(load_module_absolute_path)
load_module_absolute_path: Module '/usr/lib/samba/pdb/smbpasswd.so' loaded
[2025/01/28 23:18:57.904377, 3] ../../source3/lib/util_procid.c:53(pid_to_procid)
pid_to_procid: messaging_dgm_get_unique failed: No such file or directory
[2025/01/28 23:18:57.907962, 3] ../../source3/auth/token_util.c:707(finalize_local_nt_token)
Failed to fetch domain sid for WORKGROUP
[2025/01/28 23:18:57.909836, 0] ../../lib/util/util.c:221(directory_create_or_exist)
directory_create_or_exist: mkdir failed on directory /var/run/samba/ncalrpc: No such file or directory
[2025/01/28 23:18:57.909891, 0] ../../source3/smbd/server.c:2044(main)
Failed to create pipe directory /var/run/samba/ncalrpc - No such file or directory
�
2
+ exec smbd --foreground
[2025/01/28 23:18:59.994098, 0] ../../source3/smbd/server.c:1746(main)
smbd version 4.20.6 started.
Copyright Andrew Tridgell and the Samba Team 1992-2024
[2025/01/28 23:18:59.994168, 2] ../../source3/smbd/server.c:1750(main)
uid=0 gid=0 euid=0 egid=0
[2025/01/28 23:18:59.994952, 2] ../../source3/lib/dmallocmsg.c:78(register_dmalloc_msgs)
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[2025/01/28 23:18:59.995053, 3] ../../source3/param/loadparm.c:3982(lp_load_ex)
lp_load_ex: refreshing parameters
[2025/01/28 23:18:59.995143, 3] ../../source3/param/loadparm.c:560(loadparm_s3_init_globals)
Initialising global parameters
[2025/01/28 23:18:59.995281, 3] ../../source3/param/loadparm.c:2884(lp_do_section)
Processing section "[global]"
[2025/01/28 23:18:59.995428, 3] ../../source3/param/loadparm.c:1686(lp_add_ipc)
adding IPC service
added interface eth0 ip=fd68:43b8:a896:acab:1e42:1f7a:84a0:834f bcast= netmask=ffff:ffff:ffff:ffff::
added interface docker0 ip=172.17.0.1 bcast=172.17.255.255 netmask=255.255.0.0
added interface br-a6c2b64a5683 ip=172.18.0.1 bcast=172.18.255.255 netmask=255.255.0.0
added interface eth0 ip=192.168.86.8 bcast=192.168.86.255 netmask=255.255.255.0
added interface ztppivf2ec ip=192.168.192.8 bcast=192.168.192.255 netmask=255.255.255.0
[2025/01/28 23:18:59.996128, 3] ../../source3/smbd/server.c:1814(main)
loaded services
[2025/01/28 23:18:59.996226, 3] ../../source3/profile/profile_dummy.c:30(set_profile_level)
set_profile_level: INFO: Profiling support unavailable in this build.
[2025/01/28 23:18:59.996240, 3] ../../source3/smbd/server.c:1833(main)
Standard input is not a socket, assuming -D option
[2025/01/28 23:18:59.996245, 3] ../../source3/smbd/server.c:1846(main)
Becoming a daemon.
[2025/01/28 23:18:59.997277, 2] ../../source3/passdb/pdb_interface.c:163(make_pdb_method_name)
No builtin backend found, trying to load plugin
[2025/01/28 23:18:59.997559, 3] ../../lib/util/modules.c:167(load_module_absolute_path)
load_module_absolute_path: Module '/usr/lib/samba/pdb/smbpasswd.so' loaded
[2025/01/28 23:19:00.007335, 3] ../../source3/lib/util_procid.c:53(pid_to_procid)
pid_to_procid: messaging_dgm_get_unique failed: No such file or directory
[2025/01/28 23:19:00.011457, 3] ../../source3/auth/token_util.c:707(finalize_local_nt_token)
Failed to fetch domain sid for WORKGROUP
[2025/01/28 23:19:00.013241, 0] ../../lib/util/util.c:221(directory_create_or_exist)
directory_create_or_exist: mkdir failed on directory /var/run/samba/ncalrpc: No such file or directory
[2025/01/28 23:19:00.013297, 0] ../../source3/smbd/server.c:2044(main)
Failed to create pipe directory /var/run/samba/ncalrpc - No such file or directory
�
2
+ exec nmbd --foreground
[2025/01/28 23:19:01.015527, 3] ../../source3/nmbd/nmbd.c:942(main)
main: standard input is not a socket, assuming -D option
[2025/01/28 23:19:01.015547, 3] ../../source3/nmbd/nmbd.c:947(main)
main: Becoming a daemon.
[2025/01/28 23:19:01.015859, 0] ../../lib/util/util.c:221(directory_create_or_exist)
directory_create_or_exist: mkdir failed on directory /run/samba: Invalid argument
[2025/01/28 23:19:01.015886, 0] ../../lib/util/become_daemon.c:119(exit_daemon)
exit_daemon: daemon failed to start: Failed to create directory for pid files, check 'pid directory', error code 22
�
6
The text was updated successfully, but these errors were encountered:
Hi there,
Thanks for the work putting this together. I'm giving it a shot and failing to start, running on arm64:
I'm using this simple config to troubleshoot, here's my compose:
Logs:
The text was updated successfully, but these errors were encountered: