While trying start samba services on Fedora 17 Alpha PPC64 (3.3.4-1.fc17.ppc64) on P7 server, it failed to start by following error. [root@elm17f130 ~]# systemctl enable smb.service ln -s '/usr/lib/systemd/system/smb.service' '/etc/systemd/system/multi-user.target.wants/smb.service' [root@elm17f130 ~]# systemctl enable nmb.service ln -s '/usr/lib/systemd/system/nmb.service' '/etc/systemd/system/multi-user.target.wants/nmb.service' [root@elm17f130 ~]# systemctl start smb.service nmb.service [root@elm17f130 ~]# systemctl status smb.service nmb.service smb.service - Samba SMB Daemon Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled) Active: failed (Result: exit-code) since Thu, 10 May 2012 15:00:01 -0400; 2s ago Process: 28256 ExecStart=/usr/sbin/smbd $SMBDOPTIONS (code=exited, status=0/SUCCESS) Main PID: 28259 (code=exited, status=255) CGroup: name=systemd:/system/smb.service nmb.service - Samba NMB Daemon Loaded: loaded (/usr/lib/systemd/system/nmb.service; enabled) Active: failed (Result: exit-code) since Thu, 10 May 2012 15:00:01 -0400; 2s ago Process: 28257 ExecStart=/usr/sbin/nmbd $NMBDOPTIONS (code=exited, status=0/SUCCESS) Main PID: 28258 (code=exited, status=1/FAILURE) CGroup: name=systemd:/system/nmb.service --- logs from /var/log/messages --- May 10 15:00:01 elm17f130 smbd[28256]: [2012/05/10 15:00:01.845442, 0] ../source3/smbd/server.c:1179(main) May 10 15:00:01 elm17f130 smbd[28256]: standard input is not a socket, assuming -D option May 10 15:00:01 elm17f130 systemd[1]: nmb.service: main process exited, code=exited, status=1 May 10 15:00:01 elm17f130 systemd[1]: Unit nmb.service entered failed state. May 10 15:00:01 elm17f130 smbd[28259]: [2012/05/10 15:00:01.897810, 0] ../lib/util/util.c:158(directory_create_or_exist) May 10 15:00:01 elm17f130 smbd[28259]: error creating directory /run/samba/ncalrpc: No such file or directory May 10 15:00:01 elm17f130 smbd[28259]: [2012/05/10 15:00:01.898079, 0] ../source3/smbd/server.c:1336(main) May 10 15:00:01 elm17f130 smbd[28259]: Failed to create pipe directory /run/samba/ncalrpc - No such file or directory May 10 15:00:01 elm17f130 systemd[1]: smb.service: main process exited, code=exited, status=255 May 10 15:00:01 elm17f130 systemd[1]: Unit smb.service entered failed state. --- uname -a --- [root@elm17f130 ~]# uname -a Linux elm17f130.x.x.x 3.3.4-1.fc17.ppc64 #1 SMP Tue May 1 12:48:10 MST 2012 ppc64 ppc64 ppc64 GNU/Linux --- Samba packages installed --- [root@elm17f130 ~]# rpm -qa | grep -i samba samba4-dc-4.0.0-47alpha18.fc17.ppc64 samba4-winbind-clients-4.0.0-47alpha18.fc17.ppc64 samba4-swat-4.0.0-47alpha18.fc17.ppc64 samba4-libs-4.0.0-47alpha18.fc17.ppc64 samba4-client-4.0.0-47alpha18.fc17.ppc64 samba4-test-4.0.0-47alpha18.fc17.ppc64 samba4-winbind-krb5-locator-4.0.0-47alpha18.fc17.ppc64 samba4-dc-libs-4.0.0-47alpha18.fc17.ppc64 samba4-winbind-4.0.0-47alpha18.fc17.ppc64 samba4-devel-4.0.0-47alpha18.fc17.ppc64 samba4-common-4.0.0-47alpha18.fc17.ppc64 samba4-4.0.0-47alpha18.fc17.ppc64 samba4-python-4.0.0-47alpha18.fc17.ppc64 samba4-pidl-4.0.0-47alpha18.fc17.ppc64 [root@elm17f130 ~]# rpm -qa | grep -i cifs cifs-utils-5.4-1.fc17.ppc64 [root@elm17f130 ~]# systemctl list-units --all |grep nmb nmb.service loaded failed failed Samba NMB Daemon [root@elm17f130 ~]# systemctl list-units --all |grep smb smb.service loaded failed failed Samba SMB Daemon [root@elm17f130 ~]# ls -ld /run drwxr-xr-x 19 root root 720 May 10 15:01 /run [root@elm17f130 ~]# ls -ld /run/samba ls: cannot access /run/samba: No such file or directory [root@elm17f130 ~]# ls -l /run/samba ls: cannot access /run/samba: No such file or directory [root@elm17f130 ~]# rpm -qa | grep -i selinux selinux-policy-3.10.0-110.fc17.noarch selinux-policy-targeted-3.10.0-110.fc17.noarch libselinux-python-2.1.10-3.fc17.ppc64 libselinux-2.1.10-3.fc17.ppc64 libselinux-utils-2.1.10-3.fc17.ppc64 [root@elm17f130 ~]# getenforce Disabled [root@elm17f130 ~]# cat /run/smbd.pid 28259 [root@elm17f130 ~]# cat /run/nmbd.pid 28258 [root@elm17f130 ~]# ls -l /run/nmbd.pid -rw-r--r-- 1 root root 6 May 10 15:00 /run/nmbd.pid [root@elm17f130 ~]# ls -l /run/smbd.pid -rw-r--r-- 1 root root 6 May 10 15:00 /run/smbd.pid Also attached files named as smb.conf , var-log-samba_log.nmbd & var-log-samba_log.smbd got collected from /var/log/samba/log.%m.
Created attachment 583654 [details] var-log-samba_log.smbd
Created attachment 583655 [details] var-log-samba_log.nmbd
Do you have the following file: /etc/tmpfiles.d/samba.conf This should make sure that /var/run/samba (/run/samba) is created by systemd on boot.
------- Comment From maknayak.com 2012-05-11 11:53 EDT------- (In reply to comment #9) > Do you have the following file: > > /etc/tmpfiles.d/samba.conf > > This should make sure that /var/run/samba (/run/samba) is created by systemd > on boot. Yes Server has the same file and it has following content in it: [root@elm17f130 ~]# cat /etc/tmpfiles.d/samba.conf d /var/run/samba 755 root root [root@elm17f130 ~]# ls -l /etc/tmpfiles.d/samba.conf -rw-r--r-- 1 root root 32 May 8 19:57 /etc/tmpfiles.d/samba.conf Thanks... Manas
------- Comment From baude.com 2012-05-11 12:55 EDT------- @asn, that's an interesting point re: 'on boot' . It appears that /run/samba IS created on boot, but not if you just yum install samba4. Is there a way to account for this without a reboot?
To confirm, the issue you are seeing is that someone needs to trigger running /etc/tmpfiles.d/samba.conf after the samba4 package is installed or otherwise samba will not work properly if started BEFORE the reboot. I think we need to add /usr/bin/systemd-tmpfiles --create /etc/tmpfiles.d/samba.conf to post-install script to ensure the content of the samba.conf is correctly processed. Could you please confirm that running the line above manually allows you to start samba afterwards without reboot?
------- Comment From baude.com 2012-05-11 15:13 EDT------- Yeah that does the trick
------- Comment From maknayak.com 2012-05-28 12:42 EDT------- (In reply to comment #15) > Hi Manas, > Is it possible to verify whether the changes in the samba package are > present in beta? > > Regards, > Seenu. Hi Seenu, I installed samba4 packages on f17 beta ppc64 , and verified by starting both the services smb & nmb .It could start successfully. [root@miz11 ~]# systemctl start smb.service nmb.service [root@miz11 ~]# systemctl status smb.service nmb.service Loaded: loaded (/usr/lib/systemd/system/smb.service; disabled) Active: active (running) since Mon, 28 May 2012 12:39:12 -0400; 6s ago Process: 1070 ExecStart=/usr/sbin/smbd $SMBDOPTIONS (code=exited, status=0/SUCCESS) Main PID: 1072 (smbd) ? 1072 /usr/sbin/smbd ? 1073 /usr/sbin/smbd Loaded: loaded (/usr/lib/systemd/system/nmb.service; disabled) Active: active (running) since Mon, 28 May 2012 12:39:13 -0400; 6s ago Process: 1071 ExecStart=/usr/sbin/nmbd $NMBDOPTIONS (code=exited, status=0/SUCCESS) Main PID: 1075 (nmbd) ? 1075 /usr/sbin/nmbd [root@miz11 ~]# rpm -qa | grep -i samba [root@miz11 ~]# uname -a Linux miz11.austin.ibm.com 3.3.4-4.fc17.ppc64 #1 SMP Tue May 8 17:19:04 MST 2012 ppc64 ppc64 ppc64 GNU/Linux looks like Beta has fix for this issue? Thanks... Manas
------- Comment From clnperez.com 2012-05-29 16:41 EDT------- Fedora folks - This was not reproducible on Beta so we have closed the bug on our side. Thanks.
samba4-4.0.0-51alpha18.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/samba4-4.0.0-51alpha18.fc17
samba4-4.0.0-52alpha18.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/FEDORA-2012-8842/samba4-4.0.0-52alpha18.fc17
samba4-4.0.0-53alpha18.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/samba4-4.0.0-53alpha18.fc17
Package samba4-4.0.0-53alpha18.fc17: * should fix your issue, * was pushed to the Fedora 17 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing samba4-4.0.0-53alpha18.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-9393/samba4-4.0.0-53alpha18.fc17 then log in and leave karma (feedback).
samba4-4.0.0-54alpha18.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/samba4-4.0.0-54alpha18.fc17
samba4-4.0.0-55alpha18.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/samba4-4.0.0-55alpha18.fc17
ppc64 builds should eventually land here -> http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=593100
samba4-4.0.0-56alpha18.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/samba4-4.0.0-56alpha18.fc17
samba4-4.0.0-58alpha18.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/samba4-4.0.0-58alpha18.fc17
samba4-4.0.0-58alpha18.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.