You are not logged in.
Hi,
suddenly my samba won't start anymore.
systemctl status smbd.service delivers:
● smbd.service - Samba SMB/CIFS server
Loaded: loaded (/usr/lib/systemd/system/smbd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fr 2015-09-11 09:23:12 CEST; 9s ago
Process: 3763 ExecStart=/usr/bin/smbd -D (code=exited, status=1/FAILURE)
Sep 11 09:23:12 poseidon systemd[1]: Starting Samba SMB/CIFS server...
Sep 11 09:23:12 poseidon systemd[1]: smbd.service: Control process exited, code=exited status=1
Sep 11 09:23:12 poseidon systemd[1]: Failed to start Samba SMB/CIFS server.
Sep 11 09:23:12 poseidon systemd[1]: smbd.service: Unit entered failed state.
Sep 11 09:23:12 poseidon systemd[1]: smbd.service: Failed with result 'exit-code'.
and journalctl -xe says this:
-- Subject: Unit smbd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit smbd.service has begun starting up.
Sep 11 09:23:02 poseidon systemd[1]: smbd.service: Control process exited, code=exited status=1
Sep 11 09:23:02 poseidon systemd[1]: Failed to start Samba SMB/CIFS server.
-- Subject: Unit smbd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit smbd.service has failed.
--
-- The result is failed.
Sep 11 09:23:02 poseidon systemd[1]: smbd.service: Unit entered failed state.
Sep 11 09:23:02 poseidon systemd[1]: smbd.service: Failed with result 'exit-code'.
Sep 11 09:23:02 poseidon polkitd[3015]: Unregistered Authentication Agent for unix-process:3727:18997 (system bus name :1.18, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale de_DE.utf8) (disconnected from bus)
Sep 11 09:23:02 poseidon sudo[3726]: pam_unix(sudo:session): session closed for user root
Sep 11 09:23:11 poseidon sudo[3742]: tobias : TTY=pts/1 ; PWD=/home/tobias ; USER=root ; COMMAND=/usr/bin/systemctl daemon-reload
Sep 11 09:23:11 poseidon sudo[3742]: pam_unix(sudo:session): session opened for user root by tobias(uid=0)
Sep 11 09:23:11 poseidon polkitd[3015]: Registered Authentication Agent for unix-process:3743:19894 (system bus name :1.19 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale de_DE.utf8)
Sep 11 09:23:11 poseidon systemd[1]: Reloading.
Sep 11 09:23:11 poseidon systemd-fstab-generator[3749]: Failed to create mount unit file /run/systemd/generator/mnt-extern.mount, as it already exists. Duplicate entry in /etc/fstab?
Sep 11 09:23:11 poseidon systemd[3747]: /usr/lib/systemd/system-generators/systemd-fstab-generator failed with error code 1.
Sep 11 09:23:11 poseidon polkitd[3015]: Unregistered Authentication Agent for unix-process:3743:19894 (system bus name :1.19, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale de_DE.utf8) (disconnected from bus)
Sep 11 09:23:11 poseidon sudo[3742]: pam_unix(sudo:session): session closed for user root
Sep 11 09:23:12 poseidon sudo[3757]: tobias : TTY=pts/1 ; PWD=/home/tobias ; USER=root ; COMMAND=/usr/bin/systemctl start smbd
Sep 11 09:23:12 poseidon sudo[3757]: pam_unix(sudo:session): session opened for user root by tobias(uid=0)
Sep 11 09:23:12 poseidon polkitd[3015]: Registered Authentication Agent for unix-process:3758:20044 (system bus name :1.20 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale de_DE.utf8)
Sep 11 09:23:12 poseidon systemd[1]: Starting Samba SMB/CIFS server...
-- Subject: Unit smbd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit smbd.service has begun starting up.
Sep 11 09:23:12 poseidon systemd[1]: smbd.service: Control process exited, code=exited status=1
Sep 11 09:23:12 poseidon systemd[1]: Failed to start Samba SMB/CIFS server.
-- Subject: Unit smbd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit smbd.service has failed.
--
-- The result is failed.
Sep 11 09:23:12 poseidon systemd[1]: smbd.service: Unit entered failed state.
Sep 11 09:23:12 poseidon systemd[1]: smbd.service: Failed with result 'exit-code'.
Sep 11 09:23:12 poseidon polkitd[3015]: Unregistered Authentication Agent for unix-process:3758:20044 (system bus name :1.20, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale de_DE.utf8) (disconnected from bus)
Sep 11 09:23:12 poseidon sudo[3757]: pam_unix(sudo:session): session closed for user root
I don't know whats wrong there, can someone please have a look and give me an hint?
Thanks!
Last edited by sbt1 (2015-09-11 14:36:30)
Offline
In my case nmbd doesn't start, I have seen message in /var/log/samba/log.nmbd
2015/09/11 08:52:22.213327, 0] ../lib/util/util.c:285(directory_create_or_exist_strict)
invalid permissions on directory '/var/cache/samba/msg': has 0700 should be 0755
I did:
chmod 0755 /var/cache/samba/msg
systemctl start nmbd
systemctl start smbd
Samba have been started. Good luck!
Offline
You, sir, are my hero! Thank you very much, that was the problem!
I would have never solved this on my own.
Offline
I seem to be having the same issue, although there was no info in any of the log files. I tried chmod the /var/cache file, but still no go. I also did a fresh install on a machine that did not have it installed previously and it gives me the same error.
Any other ideas?
Last edited by heimer16 (2015-09-11 16:14:35)
Offline
Thanks. Glad to help.
Offline
I seem to be having the same issue, although there was no info in any of the log files. I tried chmod the /var/cache file, but still no go. I also did a fresh install on a machine that did not have it installed previously and it gives me the same error. Any other ideas?
Same problem here, Samba used to work fine a week ago, and it now fails to start. Here's my journalctl -xe
Sep 11 22:18:00 x sudo[2805]: pam_ecryptfs: pam_sm_authenticate: /home/ronj is already mounted
Sep 11 22:18:00 x sudo[2805]: ronj : TTY=pts/1 ; PWD=/home/ronj ; USER=root ; COMMAND=/usr/bin/systemctl start smbd.service
Sep 11 22:18:00 x sudo[2805]: pam_unix(sudo:session): session opened for user root by ronj(uid=0)
Sep 11 22:18:00 x polkitd[396]: Registered Authentication Agent for unix-process:2809:816686 (system bus name :1.81 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.utf8)
Sep 11 22:18:00 x systemd[1]: Starting Samba SMB/CIFS server...
-- Subject: Unit smbd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Unit smbd.service has begun starting up.
Sep 11 22:18:00 x systemd[1]: smbd.service: Control process exited, code=exited status=1
Sep 11 22:18:00 x systemd[1]: Failed to start Samba SMB/CIFS server.
-- Subject: Unit smbd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Unit smbd.service has failed.
-- The result is failed.
Sep 11 22:18:00 x systemd[1]: smbd.service: Unit entered failed state.
Sep 11 22:18:00 x systemd[1]: smbd.service: Failed with result 'exit-code'.
Sep 11 22:18:00 x sudo[2805]: pam_unix(sudo:session): session closed for user root
Sep 11 22:18:00 x polkitd[396]: Unregistered Authentication Agent for unix-process:2809:816686 (system bus name :1.81, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.utf8) (disconnected from bus)
Like heimer16, my /var/log/samba/ folder has nothing fresh to report (the most recent item that ls -latr yields is from two days ago).
Any idea? Thanks for your help.
Offline
Got it working somehow. I resotred the default smb.conf and completely removed /var/log/samba and /var/cache/samba. Then, from another thread https://bbs.archlinux.org/viewtopic.php?id=195907 someone suggested running
# smbd -i
(as root) to start the daemon without using systemd to see if there were any errors. I got some error about /etc/printcap, but it seemed to be working. I killed that process and then did systemctl start smbd and then it worked. (I may have also done a systemctl daemon-reload in there as well). I think running smdb -i generated what it needed in /var/log or whatever. Got it working now on two different machines that were having the same issue.
Hope that helps.
Last edited by heimer16 (2015-09-12 05:01:22)
Offline
From another thread https://bbs.archlinux.org/viewtopic.php?id=195907 someone suggested running `smbd -i` (as root) to start the daemon without using systemd to see if there were any errors.
Yes! Thanks for the tip of starting smbd interactively as root, that reported the problem (which was neither in journalctl -xe, nor in any /var/samba log):
[root@x ronj]# smbd -i
smbd version 4.3.0 started. Copyright Andrew Tridgell and the Samba Team 1992-2015
invalid permissions on directory '/var/cache/samba/msg': has 0700 should be 0755
One chmod later, samba starts fine; not sure why the permessions were borked . Thanks again for the help!
Offline
Thank you very much.
smbd -i found "invalid permissions on directory '/var/cache/samba/msg': has 0700 should be 0755" and as you say, a quick chmod fixed it.
I seem to be having the same issue, although there was no info in any of the log files. I tried chmod the /var/cache file, but still no go. I also did a fresh install on a machine that did not have it installed previously and it gives me the same error.
Any other ideas?
Offline
I had the same problem. chmod fixed it. Rather disturbing that the error is not logged when nmbd and smbd are started from systemd. Anyone know why the invalid permissions error is not getting logged?
Offline
Thank you! I also had the same problem. Everything was working a few weeks ago and then suddenly stopped working. Here's what I did to fix it:
sudo smbd -i
sudo chmod 0755 /var/cache/samba/msg
sudo systemctl start smbd.service
Offline