View previous topic :: View next topic |
Author |
Message |
marcelser Tux's lil' helper
Joined: 30 Sep 2004 Posts: 99
|
Posted: Tue Jul 17, 2018 8:37 pm Post subject: samba 4.8.3 init script always reports crashed [SOLVED] |
|
|
Since I updated my samba4 from 4.8.2 to 4.8.3 a "/etc/init.d/samba4 status" always reports "* status : crashed". If you try to restart and look in the logs it complains about samba already beeing running as process
Code: | 2018/07/17 22:30:12.164882, 0] ../lib/util/pidfile.c:197(pidfile_create)
ERROR: samba is already running. File /run/samba/samba.pid exists and process id 4519 is running.
|
when I kill the listed process in this case 4519 and restart samba it restart fine, but another look at the status reports still crashed. It seems the init script is broken regarding status as the logs show it restarted just fine after I killed the previous process:
Code: | [2018/07/17 22:30:45.529224, 0] ../source4/smbd/server.c:466(binary_smbd_main)
samba version 4.8.3 started.
Copyright Andrew Tridgell and the Samba Team 1992-2018
[2018/07/17 22:30:45.701087, 0] ../source4/smbd/server.c:638(binary_smbd_main)
binary_smbd_main: samba: using 'standard' process model
[2018/07/17 22:30:45.726630, 0] ../lib/util/become_daemon.c:138(daemon_ready)
daemon_ready: STATUS=daemon 'samba' finished starting up and ready to serve connections
==> /var/log/samba/log.smbd <==
[2018/07/17 22:30:46.125407, 0] ../lib/util/become_daemon.c:138(daemon_ready)
daemon_ready: STATUS=daemon 'smbd' finished starting up and ready to serve connections
==> /var/log/samba/log.winbindd <==
[2018/07/17 22:30:45.815098, 0] ../source3/winbindd/winbindd_cache.c:3160(initialize_winbindd_cache)
initialize_winbindd_cache: clearing cache and re-creating with version number 2
[2018/07/17 22:30:46.124951, 0] ../lib/util/become_daemon.c:138(daemon_ready)
daemon_ready: STATUS=daemon 'winbindd' finished starting up and ready to serve connections
|
Any help on this would be appreciated. I mean in general samba4 runs but I don't like failing init scripts.
Last edited by marcelser on Wed Jul 18, 2018 8:21 am; edited 2 times in total |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30909 Location: here
|
Posted: Wed Jul 18, 2018 5:51 am Post subject: |
|
|
Can help this? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
marcelser Tux's lil' helper
Joined: 30 Sep 2004 Posts: 99
|
Posted: Wed Jul 18, 2018 8:20 am Post subject: thanks |
|
|
Yes that helped as the pidfile in the /etc/conf.d/samba has the wrong name. It's samba4.pid but should be samba.pid for Active Directory installations (so when running "samba4" daemon)
After posting this to the thread, it took 7 minutes then the maintainer of samba created a patch, wow that was amazingly fast!
So, probably with next samba release this thing will be fixed. I changed it manually and restarted samba and it works.
Thanks for the hint to this bug thread. Searched also in google but couldn't find it. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|