I was setting up samba to allow my shares available for windows users. However, i got frustated when if failed to start. I was wondering what could cause it since from previous 12.2 slack it was ok.
bash-3.1# /etc/rc.d/rc.samba start Starting Samba: /usr/sbin/smbd -D /etc/rc.d/rc.samba: line 11: 24728 Aborted (core dumped) /usr/sbin/smbd -D /usr/sbin/nmbd -D /etc/rc.d/rc.samba: line 11: 24729 Aborted (core dumped) /usr/sbin/nmbd -D
I started checking the logs in /var/log/samba/* and tried to dismantle through the errors.
[2009/09/04 15:48:13,0] smbd/server.c:main(1210) smbd version 3.2.13 started. Copyright Andrew Tridgell and the Samba Team 1992-2009 [2009/09/04 15:48:13,0] lib/messages_local.c:messaging_tdb_init(96) ERROR: Failed to initialise messages database: No such file or directory [2009/09/04 15:48:13, 0] lib/messages.c:messaging_init(204) messaging_tdb_init failed: NT_STATUS_OBJECT_NAME_NOT_FOUND [2009/09/04 15:48:13,0] lib/util.c:smb_panic(1670) PANIC (pid 24728): Could not init smbd messaging context [2009/09/04 15:48:13,0] lib/util.c:log_stack_trace(1774) BACKTRACE: 6 stack frames: #0 /usr/sbin/smbd(log_stack_trace+0x2d) [0xb7d29724] #1 /usr/sbin/smbd(smb_panic+0x80) [0xb7d29881] #2 /usr/sbin/smbd(smbd_messaging_context+0x64) [0xb7f6785f] #3 /usr/sbin/smbd(main+0x6ac) [0xb7f69651] #4 /lib/libc.so.6(__libc_start_main+0xe5) [0xb762d6a5] #5 /usr/sbin/smbd [0xb7b12921] [2009/09/04 15:48:13,0] lib/fault.c:dump_core(201) dumping core in /var/log/samba/cores/smbd
core dump? oh shit, not another bug… damn.. It made me disbelief as it was working fine before….
I did numerous test to pin down the root cause.
- Started samba without smb.conf – smbd and nmbd did not run
- Started samba with dummy smb.conf – smbd and nmbd runs
- Started samba with updated smb.conf – smbd and nmbd did not run
Then i realized that the problem lies in the smb.conf file. I checked the /etc/samba/smb.conf file. I run testparm to check what could be the problem.
bash-3.1# testparm Load smb config files from /etc/samba/smb.conf Processing section "[shared]" Loaded services file OK. ERROR: lock directory file:///var/cache/samba does not exist ERROR: pid directory file:///var/run does not exist Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions (input truncated.....) bash-3.1#
What the f u ck man! I knew it when i first saw it. The file:// is appending at every directory configurations.
I quickly remove every occurance of file:// and restarted samba and hell yeah! It resolve the problem.
bash-3.1# /etc/rc.d/rc.samba start Starting Samba: /usr/sbin/smbd -D /usr/sbin/nmbd -D bash-3.1#
How the hell does the config change like that?
Well, its kde4 samba setting bug…damn..should have go through *all bug lists* first.. hahahah
The fix would be in KDE 4.3.0. However if you have the sources, just update with the latest SVN.
He has always been interested in computing. He is very passionate when it comes to technology oriented knowledge. He knows that the more that one knows, the more that one needs to learn. Experienced in content management and forms processing, he was a FileNet and Datacap Specialist. He is also a part time gamer and streams sometime.