You are not logged in.

#1 2015-04-07 18:36:03

jo-shva
Member
From: Sherman, TX USA
Registered: 2010-10-18
Posts: 133

Samba daemon will not start >> SOLVED

● samba.service - Samba AD Daemon
   Loaded: loaded (/usr/lib/systemd/system/samba.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2015-04-07 10:05:16 CDT; 1min 48s ago
  Process: 469 ExecStart=/usr/bin/samba $SAMBAOPTIONS (code=exited, status=0/SUCCESS)
 Main PID: 503 (code=exited, status=1/FAILURE)

Apr 07 10:05:15 rooster samba[469]: Copyright Andrew Tridgell and the Samba Team 1992-2014
Apr 07 10:05:16 rooster samba[503]: [2015/04/07 10:05:16.628720,  0] ../source4/smbd/server.c:475(binary_smbd_main)
Apr 07 10:05:16 rooster samba[503]: At this time the 'samba' binary should only be used for either:
Apr 07 10:05:16 rooster samba[503]: 'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dcerpc endpoint servers = remote'
Apr 07 10:05:16 rooster samba[503]: You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
Apr 07 10:05:16 rooster samba[503]: [2015/04/07 10:05:16.628800,  0] ../lib/util/become_daemon.c:111(exit_daemon)
Apr 07 10:05:16 rooster samba[503]: STATUS=daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22
Apr 07 10:05:16 rooster systemd[1]: samba.service: main process exited, code=exited, status=1/FAILURE
Apr 07 10:05:16 rooster systemd[1]: Unit samba.service entered failed state.
Apr 07 10:05:16 rooster systemd[1]: samba.service failed.

testparm says everything is a okay.
I noticed the ../lib/util above and have no such directory in my system.
Help Please!

Last edited by jo-shva (2015-04-08 14:52:31)


"Democracy is being allowed to vote for the candidate you dislike least." -- Robert Byrne
http://killhellokitty.deviantart.com/

Offline

#2 2015-04-07 18:55:36

Raynman
Member
Registered: 2011-10-22
Posts: 1,459

Re: Samba daemon will not start >> SOLVED

Read the messages (before/after the line with ../lib/util).

Last edited by Raynman (2015-04-07 18:56:59)

Offline

#3 2015-04-07 19:34:06

jo-shva
Member
From: Sherman, TX USA
Registered: 2010-10-18
Posts: 133

Re: Samba daemon will not start >> SOLVED

I see that, but I do not understand what it means, ie what to do. and smbd nmbd and winbindd are enabled

testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[Public]"
Processing section "[jo-shva]"
Loaded services file OK.
Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

# Global parameters
[global]
	server string = Media Server
	interfaces = 192.168.2.194/24
	security = USER
	map to guest = Bad User
	log file = /var/log/samba/%m.log
	max log size = 50
	dns proxy = No
	idmap config * : backend = tdb


[Public]
	comment = Share Folder
	path = /media/jo-shva/Share
	read only = No
	fake oplocks = Yes


[jo-shva]
	comment = Joshuas share
	path = /media/jo-shva
	valid users = jo-shva
	read only = No
systemctl status smbd
● smbd.service - Samba SMB/CIFS server
   Loaded: loaded (/usr/lib/systemd/system/smbd.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2015-04-07 10:05:16 CDT; 4h 39min ago
 Main PID: 538 (smbd)
   CGroup: /system.slice/smbd.service
           ├─538 /usr/bin/smbd -D
           └─636 /usr/bin/smbd -D

Apr 07 14:09:36 rooster smbd[4617]: Unable to connect to CUPS server /run/cups/cups.sock:631 - Bad file descriptor
Apr 07 14:09:36 rooster smbd[636]: [2015/04/07 14:09:36.581467,  0] ../source3/printing/print_cups.c:529(cups_async_callback)
Apr 07 14:09:36 rooster smbd[636]: failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
Apr 07 14:22:37 rooster smbd[5058]: [2015/04/07 14:22:37.009228,  0] ../source3/printing/print_cups.c:151(cups_connect)
Apr 07 14:22:37 rooster smbd[5058]: Unable to connect to CUPS server /run/cups/cups.sock:631 - Bad file descriptor
Apr 07 14:22:37 rooster smbd[636]: [2015/04/07 14:22:37.009335,  0] ../source3/printing/print_cups.c:529(cups_async_callback)
Apr 07 14:22:37 rooster smbd[636]: failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
Apr 07 14:35:37 rooster smbd[7576]: [2015/04/07 14:35:37.479218,  0] ../source3/printing/print_cups.c:151(cups_connect)
Apr 07 14:35:37 rooster smbd[636]: [2015/04/07 14:35:37.479316,  0] ../source3/printing/print_cups.c:529(cups_async_callback)
Apr 07 14:35:37 rooster smbd[636]: failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
status nmbd
● nmbd.service - Samba NetBIOS name server
   Loaded: loaded (/usr/lib/systemd/system/nmbd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2015-04-07 10:05:15 CDT; 4h 40min ago
 Main PID: 504 (code=exited, status=1/FAILURE)

Apr 07 10:05:15 rooster nmbd[504]: bind failed on port 137 socket_addr = 192.168.2.194.
Apr 07 10:05:15 rooster nmbd[504]: Error = Cannot assign requested address
Apr 07 10:05:15 rooster nmbd[504]: [2015/04/07 10:05:15.599769,  0] ../source3/nmbd/nmbd_subnetdb.c:113(make_subnet)
Apr 07 10:05:15 rooster nmbd[504]: nmbd_subnetdb:make_subnet()
Apr 07 10:05:15 rooster nmbd[504]: Failed to open nmb socket on interface 192.168.2.194 for port 137.  Error was Cannot assign requested address
Apr 07 10:05:15 rooster nmbd[504]: [2015/04/07 10:05:15.599810,  0] ../lib/util/become_daemon.c:111(exit_daemon)
Apr 07 10:05:15 rooster nmbd[504]: STATUS=daemon failed to start: NMBD failed when creating subnet lists, error code 13
Apr 07 10:05:15 rooster systemd[1]: nmbd.service: main process exited, code=exited, status=1/FAILURE
Apr 07 10:05:15 rooster systemd[1]: Unit nmbd.service entered failed state.
Apr 07 10:05:15 rooster systemd[1]: nmbd.service failed.
systemctl status winbindd
● winbindd.service - Samba Winbind daemon
   Loaded: loaded (/usr/lib/systemd/system/winbindd.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2015-04-07 10:05:16 CDT; 4h 42min ago
 Main PID: 534 (winbindd)
   CGroup: /system.slice/winbindd.service
           ├─534 /usr/bin/winbindd -D
           ├─537 /usr/bin/winbindd -D
           ├─541 /usr/bin/winbindd -D
           └─574 /usr/bin/winbindd -D

Apr 07 10:05:16 rooster winbindd[534]: [2015/04/07 10:05:16.477843,  0] ../source3/winbindd/winbindd_cache.c:3235(initialize_winbindd_cache)
Apr 07 10:05:16 rooster winbindd[534]: initialize_winbindd_cache: clearing cache and re-creating with version number 2
Apr 07 10:05:16 rooster winbindd[534]: [2015/04/07 10:05:16.674830,  0] ../lib/util/become_daemon.c:124(daemon_ready)
Apr 07 10:05:16 rooster winbindd[534]: STATUS=daemon 'winbindd' finished starting up and ready to serve connections

Last edited by jo-shva (2015-04-07 19:49:22)


"Democracy is being allowed to vote for the candidate you dislike least." -- Robert Byrne
http://killhellokitty.deviantart.com/

Offline

#4 2015-04-07 20:15:35

Raynman
Member
Registered: 2011-10-22
Posts: 1,459

Re: Samba daemon will not start >> SOLVED

At this time the 'samba' binary should only be used for either: 'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dcerpc endpoint servers = remote'

Do you want any of these things? If no, don't try to start it. If yes, fix your config.

Last edited by Raynman (2015-04-07 20:15:56)

Offline

#5 2015-04-07 20:29:06

jo-shva
Member
From: Sherman, TX USA
Registered: 2010-10-18
Posts: 133

Re: Samba daemon will not start >> SOLVED

I appreciate your help, but I find your answers to be vague.  Consider me as a total novice to Samba.  I just want lthe shares to work between other Linux and Windows machines.
Do you suggest I not enable samba.service? and change the config how?  Again I know nothing about Samba except that over 6hours and I am still nowhere, but persistant.


"Democracy is being allowed to vote for the candidate you dislike least." -- Robert Byrne
http://killhellokitty.deviantart.com/

Offline

#6 2015-04-07 20:48:06

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,293
Website

Re: Samba daemon will not start >> SOLVED


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2015-04-07 21:47:26

jo-shva
Member
From: Sherman, TX USA
Registered: 2010-10-18
Posts: 133

Re: Samba daemon will not start >> SOLVED

Yes, I saw that, thank you, That is how it all started 3 times.  I uninstalled and reinstalled 3 times following the wiki.  I then whent to google and tried variations, no luck. I tried a HUGE amount of variations.
The problem could be with my coputer as I set up mysql/maria yestarday and it wouldn't work, I spent hours only to discover that it didn't create its socket file in /var/lib/run.  That fixed it.  I have a btrfs with subvolumes setup, I have /lib/var on a separate subvol that is attached to my root subvolume, This may be causing problems.  It appears that it did with mysql.
My current config is taken from the tips and tricks samba wiki of arch.

Last edited by jo-shva (2015-04-07 22:01:33)


"Democracy is being allowed to vote for the candidate you dislike least." -- Robert Byrne
http://killhellokitty.deviantart.com/

Offline

#8 2015-04-08 01:57:51

jo-shva
Member
From: Sherman, TX USA
Registered: 2010-10-18
Posts: 133

Re: Samba daemon will not start >> SOLVED

I figured it out.  I forgot to install gvfs-smb.   Wow, that mistake cost me a day.
I still can't get cifs to mount.  If anyone can shed some light on cifs(I  not sure what to enter where) I would apreciate it.

With cifs I am not sure what the 'sharename' should be? And I have seen examples where instead of using 'hostname' they use an ip, my router doesnt give static ips, how might I go about this?  I believe I understand the rest.

Last edited by jo-shva (2015-04-08 13:03:53)


"Democracy is being allowed to vote for the candidate you dislike least." -- Robert Byrne
http://killhellokitty.deviantart.com/

Offline

Board footer

Powered by FluxBB