Find the answer to your Linux question:
Results 1 to 3 of 3
Samba is failing to start. The problem started when I could just could not get samba shares to work with Suse 10. So I took my old smb.conf file from ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    sbn
    sbn is offline
    Just Joined!
    Join Date
    May 2005
    Posts
    52

    Samba failure to start


    Samba is failing to start. The problem started when I could just could not get samba shares to work with Suse 10. So I took my old smb.conf file from a Suse 9.3 machine and copied it over. When I went to start Samba it failed over and over. I have checked, and rechecked the permissions and conf file and can not see any errors. I stripped down the conf file some more to just the most basic. I am assuming that the file "registry.tdb" has some issues. How can I fix this?

    This is what I have in the log...

    [2005/12/16 15:51:54, 0] smbd/server.c:main(806)
    smbd version 3.0.20b-3.1-SUSE started.
    Copyright Andrew Tridgell and the Samba Team 1992-2005
    [2005/12/16 15:51:54, 1] param/loadparm.c:lp_do_parameter(3405)
    WARNING: The "printer admin" option is deprecated
    [2005/12/16 15:51:54, 0] printing/print_cups.c:cups_cache_reload(85)
    Unable to connect to CUPS server localhost - Connection refused
    [2005/12/16 15:51:54, 0] printing/print_cups.c:cups_cache_reload(85)
    Unable to connect to CUPS server localhost - Connection refused
    [2005/12/16 15:51:54, 0] tdb/tdbutil.c:tdb_log(767)
    tdb(/var/lib/samba/registry.tdb): rec_read bad magic 0x42424242 at offset=4212
    [2005/12/16 15:51:54, 0] tdb/tdbutil.c:tdb_log(767)
    tdb(/var/lib/samba/registry.tdb): rec_read bad magic 0x42424242 at offset=4212
    [2005/12/16 15:51:54, 0] tdb/tdbutil.c:tdb_log(767)
    tdb(/var/lib/samba/registry.tdb): rec_read bad magic 0x42424242 at offset=4212
    [2005/12/16 15:51:54, 0] tdb/tdbutil.c:tdb_log(767)
    tdb(/var/lib/samba/registry.tdb): rec_free_read bad magic 0x42424242 at offset=4324
    [2005/12/16 15:51:54, 0] registry/reg_db.c:regdb_store_keys(344)
    regdb_store_keys: Failed to store new record for key [HKLM\SYSTEM\CurrentControlSet/Services}
    [2005/12/16 15:51:54, 0] registry/reg_db.c:init_registry_db(223)
    init_registry: Failed to initiailize data in registry!
    [2005/12/16 15:51:54, 0] registry/reg_frontend.c:init_registry(57)
    init_registry: failed to initialize the registry tdb!

  2. #2
    sbn
    sbn is offline
    Just Joined!
    Join Date
    May 2005
    Posts
    52
    Just fixed my own problem. I copied "registry.tdb" over from the old machine and Samba started just fine. The only question I have is why this reg file would have caused this problem when the smb.conf was pretty basic. meaning all I had was one simple share listed, in other words the smb.conf was pretty basic and simple.

  3. #3
    Just Joined!
    Join Date
    Jan 2006
    Posts
    1
    Please submit a bugreport to bugzilla.Novell.com next time you run in such trouble. And please inform us about the file system used for /var/lib/samba/

    It looks like you ran into a corrupt tdb file.

    Lars

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •