connections.tdb corruption - samba 2.2.2, 2.2.3 +error code fix
Olaf Frączyk
olaf at cbk.poznan.pl
Tue Feb 19 01:41:04 GMT 2002
Hi,
I have smaba 2.2.3 + error code fix, on linux 2.4.17 with XFS. Samba has
acl support compiled in.
I thought that with 2.2.2 everything worked OK, since I didn't get any
complaints. But I found similar problems (but not so much!) in logs.
Clients - Win2k SP2 PL, WinNT4.0 Workstation PL SP 6a.
Now I get corrupted connections.tdb.
Samba server is on host 'venus' with netbios alias 'Fileserv'
Symptomps on Windows side (Win2k PL) (translated from Polish):
1. User wants to open file, and he get "Permission denied...". Tries
second time, it is successfull.
2. User wants to open file and he gets 'Unable to find "\\Fileserv". Check
if the filename is correct and if file location is right.'. Next tries are
not successfull, but files in other _directories_ on the same share can be
accessed.
Symptoms on linux side:
When I run smbstatus I get list of services, it is cutted in the middle
and I get:
tdb(/var/lock/samba/connections.tdb): rec_read bad magic 0x42424242 at
offset=5036
And sometimes problems with oplocks.
In logs I get (I have logs per computer) - samples (2.2.3+error code fix):
Full logs are available on request (but there is not much more :( - I have
debug level =0.
For Win2k:
[2002/02/11 14:31:38, 0] tdb/tdbutil.c:tdb_log(475)
tdb(/var/lock/samba/connections.tdb): rec_read bad magic 0x42424242 at
offset=4416
[2002/02/11 14:37:59, 0] smbd/connection.c:yield_connection(62)
yield_connection: tdb_delete for name wymiana failed with error Record
does not exist.
[2002/02/11 14:37:59, 0] tdb/tdbutil.c:tdb_log(475)
tdb(/var/lock/samba/connections.tdb): rec_read bad magic 0x42424242 at
offset=14336
[2002/02/11 14:37:59, 0] smbd/connection.c:yield_connection(62)
yield_connection: tdb_delete for name aga failed with error Corrupt
database.
[2002/02/15 13:01:33, 0] smbd/oplock.c:oplock_break(758)
oplock_break: receive_smb error (Success)
oplock_break failed for file formularze/indywidualna_lista_plac.xls
(dev = 812, inode = 22746522, file_id = 740).
[2002/02/15 13:01:33, 0] smbd/oplock.c:oplock_break(843)
oplock_break: client failure in break - shutting down this smbd.
[2002/02/15 13:01:33, 0] smbd/connection.c:yield_connection(62)
yield_connection: tdb_delete for name IPC$ failed with error Record
does not exist.
[2002/02/15 13:01:33, 0] smbd/connection.c:yield_connection(62)
yield_connection: tdb_delete for name home failed with error Record
does not exist.
[2002/02/15 13:01:33, 0] smbd/connection.c:yield_connection(62)
yield_connection: tdb_delete for name home failed with error Record
does not exist.
[2002/02/15 14:03:15, 0] tdb/tdbutil.c:tdb_log(475)
tdb(/var/lock/samba/connections.tdb): remove_from_freelist: not on list
at off=19296
[2002/02/15 14:03:15, 0] tdb/tdbutil.c:tdb_log(475)
tdb(/var/lock/samba/connections.tdb): tdb_free: left free failed at
19296
tdb(/var/lock/samba/connections.tdb): rec_free_read bad magic
0x42424242 at offset=6896
[2002/02/19 09:34:49, 0] smbd/connection.c:claim_connection(188)
claim_connection: tdb_store failed with error Corrupt database.
[2002/02/19 09:34:49, 0] tdb/tdbutil.c:tdb_log(475)
tdb(/var/lock/samba/connections.tdb): rec_free_read bad magic
0x42424242 at offset=6896
[2002/02/19 09:34:49, 0] smbd/connection.c:claim_connection(188)
claim_connection: tdb_store failed with error Corrupt database.
[2002/02/19 09:41:00, 0] smbd/connection.c:yield_connection(62)
yield_connection: tdb_delete for name navioffice failed with error
Record does not exist.
Log for another computer (WinNT), sample:
[2002/02/19 09:35:54, 0] smbd/connection.c:claim_connection(188)
claim_connection: tdb_store failed with error Corrupt database.
[2002/02/19 09:40:27, 0] smbd/connection.c:yield_connection(62)
yield_connection: tdb_delete for name piotr failed with error Record
does not exist.
[2002/02/19 09:40:27, 0] smbd/connection.c:yield_connection(62)
yield_connection: tdb_delete for name home failed with error Record
does not exist.
[2002/02/19 09:40:27, 0] tdb/tdbutil.c:tdb_log(475)
tdb(/var/lock/samba/connections.tdb): rec_read bad magic 0x42424242 at
offset=8136
[2002/02/19 09:40:27, 0] smbd/connection.c:yield_connection(62)
yield_connection: tdb_delete for name navitech failed with error
Corrupt database.
[2002/02/19 09:40:27, 0] smbd/connection.c:yield_connection(62)
yield_connection: tdb_delete for name navioffice failed with error
Record does not exist.
[2002/02/19 09:40:27, 0] smbd/connection.c:yield_connection(62)
yield_connection: tdb_delete for name naviarch failed with error Record
does not exist.
[2002/02/19 09:40:27, 0] smbd/connection.c:yield_connection(62)
yield_connection: tdb_delete for name naviorg failed with error Record
does not exist.
[2002/02/19 09:40:27, 0] smbd/connection.c:yield_connection(62)
yield_connection: tdb_delete for name mail failed with error Record
does not exist.
[2002/02/19 09:40:27, 0] tdb/tdbutil.c:tdb_log(475)
tdb(/var/lock/samba/connections.tdb): rec_read bad magic 0xd9fee666 at
offset=23636
[2002/02/19 09:40:27, 0] smbd/connection.c:yield_connection(62)
yield_connection: tdb_delete for name failed with error Corrupt
database.
[2002/02/19 09:40:28, 0] tdb/tdbutil.c:tdb_log(475)
tdb(/var/lock/samba/connections.tdb): rec_free_read bad magic
0x42424242 at offset=6896
[2002/02/19 09:40:28, 0] smbd/connection.c:claim_connection(188)
claim_connection: tdb_store failed with error Corrupt database.
[2002/02/19 09:40:28, 0] tdb/tdbutil.c:tdb_log(475)
tdb(/var/lock/samba/connections.tdb): rec_free_read bad magic
0x42424242 at offset=6896
[2002/02/19 09:40:28, 0] smbd/connection.c:claim_connection(188)
claim_connection: tdb_store failed with error Corrupt database.
[2002/02/19 09:40:28, 0] tdb/tdbutil.c:tdb_log(475)
tdb(/var/lock/samba/connections.tdb): rec_free_read bad magic
0x42424242 at offset=6896
[2002/02/19 09:40:28, 0] smbd/connection.c:claim_connection(188)
claim_connection: tdb_store failed with error Corrupt database.
[2002/02/19 09:40:28, 0] tdb/tdbutil.c:tdb_log(475)
tdb(/var/lock/samba/connections.tdb): rec_free_read bad magic
0x42424242 at offset=6896
[2002/02/19 09:40:28, 0] smbd/connection.c:claim_connection(188)
claim_connection: tdb_store failed with error Corrupt database.
[2002/02/19 09:40:28, 0] tdb/tdbutil.c:tdb_log(475)
tdb(/var/lock/samba/connections.tdb): rec_free_read bad magic
0x42424242 at offset=6896
[2002/02/19 09:40:28, 0] smbd/connection.c:claim_connection(188)
claim_connection: tdb_store failed with error Corrupt database.
[2002/02/19 09:40:28, 0] tdb/tdbutil.c:tdb_log(475)
tdb(/var/lock/samba/connections.tdb): rec_free_read bad magic
0x42424242 at offset=6896
[2002/02/19 09:40:28, 0] smbd/connection.c:claim_connection(188)
claim_connection: tdb_store failed with error Corrupt database.
[2002/02/19 09:40:28, 0] tdb/tdbutil.c:tdb_log(475)
tdb(/var/lock/samba/connections.tdb): rec_read bad magic 0x42424242 at
offset=5656
[2002/02/19 09:40:28, 0] tdb/tdbutil.c:tdb_log(475)
tdb(/var/lock/samba/connections.tdb): rec_read bad magic 0x42424242 at
offset=5656
[2002/02/19 09:40:28, 0] tdb/tdbutil.c:tdb_log(475)
tdb(/var/lock/samba/connections.tdb): rec_free_read bad magic
0x42424242 at offset=6896
[2002/02/19 09:40:28, 0] smbd/connection.c:claim_connection(188)
claim_connection: tdb_store failed with error Corrupt database.
[2002/02/19 09:40:28, 0] tdb/tdbutil.c:tdb_log(475)
tdb(/var/lock/samba/connections.tdb): rec_free_read bad magic
0x42424242 at offset=6896
[2002/02/19 09:40:28, 0] smbd/connection.c:claim_connection(188)
claim_connection: tdb_store failed with error Corrupt database.
Regards,
Olaf Fraczyk
More information about the samba-technical
mailing list