[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

smbd fails to start on FC4 using service restart



Hi,

Having reset-up a print server from installation disks today, I did
something stupid and blindly copied the contents of /etc/samba from the
previous installation into the new installation.

Now smbd refuses to start (nmbd starts OK). I am currently using a blank
smb.conf file and the smb.conf file from the old installation. testparm
doesn't report any errors in the smb.conf from the old installation.

This is what I see in the shell when restarting smb:

/sbin/service smb restart

Shutting down SMB services:                                [FAILED]
Shutting down NMB services:                                [  OK  ]
Starting SMB services: /etc/init.d/functions: line 83:  2945 Aborted
$nice $*
                                                           [FAILED]
Starting NMB services:                                     [  OK  ]

And this is the relevant part of the log file:

[2006/02/15 15:36:42, 0] lib/util.c:smb_panic2(1525)
  BACKTRACE: 7 stack frames:
   #0 smbd(smb_panic2+0x8a) [0x72507c]
   #1 smbd(smb_panic+0x19) [0x7252c2]
   #2 smbd(get_global_sam_sid+0x2bc) [0x6dd84c]
   #3 smbd(init_guest_info+0x65) [0x76b6be]
   #4 smbd(main+0x2a7) [0x7a6fb3]
   #5 /lib/libc.so.6(__libc_start_main+0xdf) [0x408d5f]
   #6 smbd [0x5a54f1]
[2006/02/15 15:47:21, 0] smbd/server.c:main(798)
  smbd version 3.0.14a-2 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2004
[2006/02/15 15:47:21, 0] passdb/secrets.c:secrets_init(64)
  Failed to open /etc/samba/secrets.tdb
[2006/02/15 15:47:21, 0] passdb/secrets.c:secrets_init(64)
  Failed to open /etc/samba/secrets.tdb
[2006/02/15 15:47:21, 0] passdb/secrets.c:secrets_init(64)
  Failed to open /etc/samba/secrets.tdb
[2006/02/15 15:47:21, 0] passdb/machine_sid.c:pdb_generate_sam_sid(176)
  pdb_generate_sam_sid: Failed to store generated machine SID.
[2006/02/15 15:47:21, 0] lib/util.c:smb_panic2(1517)
  PANIC: Could not generate a machine SID

[2006/02/15 15:47:21, 0] lib/util.c:smb_panic2(1525)
  BACKTRACE: 7 stack frames:
   #0 smbd(smb_panic2+0x8a) [0x31c07c]
   #1 smbd(smb_panic+0x19) [0x31c2c2]
   #2 smbd(get_global_sam_sid+0x2bc) [0x2d484c]
   #3 smbd(init_guest_info+0x65) [0x3626be]
   #4 smbd(main+0x2a7) [0x39dfb3]
   #5 /lib/libc.so.6(__libc_start_main+0xdf) [0x6a5d5f]
   #6 smbd [0x19c4f1]

I sent this to the Samba lists first for advice. One suggestions was
that secrets.tbd couldn't be loaded. I verified that the file was there
and had the correct permissions:

# ls -l /etc/samba
total 24
-rw-------  1 root root 8192 Aug 30 15:15 secrets.tdb
-rw-r--r--  1 root root    0 Feb 15 15:30 smb.conf
-rw-r--r--  1 root root   97 May  2  2005 smbusers

I was then asked to run the following commands and post the output:

smbd -d 10 -i

and

strace -e trace=open smbd -d 0 -i

The output from which is here:

http://ecrc2.geog.ucl.ac.uk/samba/smbd.txt

and

http://ecrc2.geog.ucl.ac.uk/samba/strace.txt

Which indicate that smbd is starting when run like this, but not from
the init.d scripts.

Can anyone see what is wrong and how I can rectify this problem?

Thanks in advance,

Gav
-- 
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
Gavin Simpson                     [T] +44 (0)20 7679 5522
ENSIS Research Fellow             [F] +44 (0)20 7679 7565
ENSIS Ltd. & ECRC                 [E] gavin.simpsonATNOSPAMucl.ac.uk
UCL Department of Geography       [W] http://www.ucl.ac.uk/~ucfagls/cv/
26 Bedford Way                    [W] http://www.ucl.ac.uk/~ucfagls/
London.  WC1H 0AP.
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]