You are not logged in.

#1 2015-09-11 07:30:58

sbt1
Member
Registered: 2015-01-14
Posts: 25

[solved] Samba doesn't start - Unregistered Authentication Agent f...

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! smile

Last edited by sbt1 (2015-09-11 14:36:30)

Offline

#2 2015-09-11 12:15:50

Blitz67
Member
Registered: 2012-11-03
Posts: 28

Re: [solved] Samba doesn't start - Unregistered Authentication Agent f...

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

#3 2015-09-11 14:36:01

sbt1
Member
Registered: 2015-01-14
Posts: 25

Re: [solved] Samba doesn't start - Unregistered Authentication Agent f...

You, sir, are my hero! Thank you very much, that was the problem!

I would have never solved this on my own.

Offline

#4 2015-09-11 15:54:44

heimer16
Member
Registered: 2012-03-15
Posts: 20

Re: [solved] Samba doesn't start - Unregistered Authentication Agent f...

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

#5 2015-09-11 20:04:46

Blitz67
Member
Registered: 2012-11-03
Posts: 28

Re: [solved] Samba doesn't start - Unregistered Authentication Agent f...

Thanks. Glad to help.

Offline

#6 2015-09-12 02:27:26

ronjouch
Member
From: Montreal, QC
Registered: 2014-09-18
Posts: 32
Website

Re: [solved] Samba doesn't start - Unregistered Authentication Agent f...

heimer16 wrote:

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

#7 2015-09-12 05:00:47

heimer16
Member
Registered: 2012-03-15
Posts: 20

Re: [solved] Samba doesn't start - Unregistered Authentication Agent f...

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

#8 2015-09-12 14:47:16

ronjouch
Member
From: Montreal, QC
Registered: 2014-09-18
Posts: 32
Website

Re: [solved] Samba doesn't start - Unregistered Authentication Agent f...

heimer16 wrote:

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 hmm . Thanks again for the help!

Offline

#9 2015-09-12 17:15:37

jclark
Member
Registered: 2015-05-26
Posts: 20

Re: [solved] Samba doesn't start - Unregistered Authentication Agent f...

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.

heimer16 wrote:

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

#10 2015-09-15 18:08:51

scwalla
Member
Registered: 2011-06-01
Posts: 22

Re: [solved] Samba doesn't start - Unregistered Authentication Agent f...

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

#11 2015-10-05 21:08:15

tilex
Member
Registered: 2015-10-05
Posts: 1

Re: [solved] Samba doesn't start - Unregistered Authentication Agent f...

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

Board footer

Powered by FluxBB