Zincat
Posts: 8
Joined: Sat Jan 17, 2015 2:35 pm

Samba not starting - was working in wheezy

Wed Apr 27, 2016 9:59 pm

So, I have a raspberry pi 2. I just moved to Jessie with a clean reinstall, and I reinstalled samba, in order to use the pi as a fileserver for various windows computers. This is my smb.conf

Code: Select all

#======================= Global Settings =======================
[global]
   workgroup = WORKGROUP
   server string = %h server
   dns proxy = no
   socket options = TCP_NODELAY IPTOS_LOWDELAY
   min receivefile size = 16384
   security = share

#======================= Share Definitions =======================

[PiShare]
comment=Raspberry Pi Share
path=/media/Movies
browseable=yes
writeable=yes
create mask=0777
directory mask=0777
public=yes
Under Wheezy it worked perfectly. My share was visible through all my home network. Now, this is the error I get on start
[....] Restarting smbd (via systemctl): smbd.serviceJob for smbd.service failed. See 'systemctl status smbd.service' and 'journalctl -xn' for details.
failed!

Trying those 2 commands I get
systemctl status smbd.service
● smbd.service - LSB: start Samba SMB/CIFS daemon (smbd)
Loaded: loaded (/etc/init.d/smbd)
Active: failed (Result: exit-code) since Wed 2016-04-27 23:51:05 CEST; 33s ago
Process: 8273 ExecStop=/etc/init.d/smbd stop (code=exited, status=0/SUCCESS)
Process: 8280 ExecStart=/etc/init.d/smbd start (code=exited, status=1/FAILURE)

And
journalctl -xn
No journal files were found.

I decided to try tinkering with the .conf a bit, and I found the (probable) culprit. If I set

Code: Select all

security = user
Then it works just fine, server start and is visible. Of course I'd have to set up a user for windows access though (never did that, don't even know where to start from :P)
Please help me because I am going nuts. I can't begin to understand why keeping

Code: Select all

security = share
makes samba crash...

DirkS
Posts: 7706
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Samba not starting - was working in wheezy

Thu Apr 28, 2016 12:33 am

Those two commands need root permissions to get the full info:

Code: Select all

sudo systemctl status smbd.service
sudo journalctl -xn

User avatar
ByteYourLife
Posts: 59
Joined: Wed Jul 23, 2014 3:04 am
Location: Germany
Contact: Website

Re: Samba not starting - was working in wheezy

Thu May 05, 2016 1:11 pm

Hi DirkS,
I have the same problem that samba is not longer starting. I executed the command "sudo journalctl -xn" as you wrote and I got some interesting information back. But I do not know how to understand them.

Maybe samba does not has access to the folder /home/pi ?

Code: Select all

pi@discbox:~ $ sudo journalctl -xn
-- Logs begin at Do 2016-05-05 13:00:26 UTC, end at Do 2016-05-05 13:09:17 UTC. --
Mai 05 13:03:31 discbox dbus[455]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.18" (uid=1000 pid=1048 comm="/bin/systemctl start smbd.service ") interface="org.freedesktop.systemd1.Manager" member="Sta
Mai 05 13:05:05 discbox sudo[1069]: pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/bin/systemctl status smbd.service
Mai 05 13:05:05 discbox sudo[1069]: pam_unix(sudo:session): session opened for user root by pi(uid=0)
Mai 05 13:05:05 discbox sudo[1069]: pam_unix(sudo:session): session closed for user root
Mai 05 13:05:08 discbox wpa_supplicant[416]: wlan0: WPA: Group rekeying completed with 34:81:c4:ff:4d:05 [GTK=CCMP]
Mai 05 13:05:31 discbox sudo[1077]: pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/bin/journalctl -xn
Mai 05 13:05:31 discbox sudo[1077]: pam_unix(sudo:session): session opened for user root by pi(uid=0)
Mai 05 13:09:10 discbox sudo[1077]: pam_unix(sudo:session): session closed for user root
Mai 05 13:09:17 discbox sudo[1088]: pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/bin/journalctl -xn
Mai 05 13:09:17 discbox sudo[1088]: pam_unix(sudo:session): session opened for user root by pi(uid=0)
Thank you very much for your help,

ByteYourLife
My project I am working on: An autonomous driving car with the Raspberry Pi and a lot of sensors.

Return to “Beginners”

Who is online

Users browsing this forum: No registered users and 48 guests