LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-25-2002, 07:06 PM   #1
MThunter
LQ Newbie
 
Registered: May 2002
Posts: 1

Rep: Reputation: 0
Unhappy samba client troubles


I am still pretty new to linux, anb so far im loving it. I had samba up and running under mandrake 8.2 it wasnt perfect but it worked. sence then i have switched to RH 7.3 I like RH alot and I would like to keep it but I have been unable to get samba working I am on a large network and there are quite a few windows shares that i would like to be able to access but im having some trouble with it. when I run smbstatus I get the following message

Samba version 2.2.3a
Service uid gid pid machine
----------------------------------------------

tdb((null)): tdb_open_ex: could not open file /var/cache/samba/brlock.tdb: No su ch file or directory
Failed to open byte range locking database
tdb((null)): tdb_open_ex: could not open file /var/cache/samba/locking.tdb: No s uch file or directory
ERROR: Failed to initialise locking database
Can't initialise locking module - exiting

I am hoping to be able to get a graphical frontend like xSMBrowser working as well if anyone can help or point me in the write direction I would really apreciate it.
 
Old 05-26-2002, 05:01 AM   #2
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
check permissions on that dir and files (chmod) and owner

+ be carefull when you set samba as master browser to set chmod -R 755 to /var/log/samba
This is where the browse list is kept (other computers would not see network neighbourhood is no access to this dir)

regards
 
Old 07-16-2002, 04:43 PM   #3
fdumont
LQ Newbie
 
Registered: Jul 2002
Posts: 1

Rep: Reputation: 0
Answer ?

Hi,

How did you solve this error ?

Regards,
Florian
 
Old 07-23-2002, 12:05 PM   #4
mnham
LQ Newbie
 
Registered: Jul 2002
Posts: 1

Rep: Reputation: 0
Im having the EXACT same problem, CAN ANYONE PLZZZZZZZZZZZZZZZZ HELP??????????????????

micheal
 
Old 09-22-2002, 08:56 PM   #5
neilmr
LQ Newbie
 
Registered: Sep 2002
Posts: 1

Rep: Reputation: 0
Issues running RedHat Samba Server on 7.3

I don't know how far you've gotten with your research but, I've found that the following DOES NOT WORK:

I changed the following values as sugested and got negative results.

[root@humm]# ls -al /var/cache/samba/
total 36
drwxr-xr-x 2 root root 4096 Sep 22 21:59 .
drwxr-xr-x 7 root root 4096 Aug 24 19:35 ..
-rwxr-xr-x 1 root root 0 Sep 22 21:47 brlock.tbd
-rw-r--r-- 1 root root 148 Sep 22 21:59 browse.dat
-rwxr-xr-x 1 root root 8192 Sep 22 21:59 connections.tdb
-rwxr-xr-x 1 root root 0 Sep 22 21:47 locking.tbd
-rwxr-xr-x 1 root root 696 Sep 22 21:59 messages.tdb
-rw-r--r-- 1 root root 20 Sep 22 21:59 nmbd.pid
-rw-r--r-- 1 root root 20 Sep 22 21:59 smbd.pid
-rw-r--r-- 1 root root 304 Sep 22 21:59 wins.dat


Restated the after the changes "Service SMB restart" and as you can see aaaa?

Samba version 2.2.3a
Service uid gid pid machine
----------------------------------------------

tdb((null)): tdb_open_ex: could not open file /var/cache/samba/brlock.tdb: No such file or directory
Failed to open byte range locking database
tdb((null)): tdb_open_ex: could not open file /var/cache/samba/locking.tdb: No such file or directory
ERROR: Failed to initialise locking database
Can't initialise locking module - exiting

To make a long story short; I also, thinking that the problem might be in the build, rebuilt it with the source code several different times with debug and still didn't get any useable insight...

Rather perplexing...

Good luck and I will revisite if I get any further with this.
 
Old 11-26-2002, 12:51 AM   #6
happy
LQ Newbie
 
Registered: Nov 2002
Posts: 1

Rep: Reputation: 0
Cool Solution

The solution to the following problems:

Failed to open byte range locking database
/usr/local/samba/var/locks/connections.tdb not initialized
ERROR: Failed to initialise locking database
Can't initialise locking module - exiting

Any ONE or more of these errors can be caused by missing LOCK files.

Lock files are located based on you smb.conf file: lock directory
or your distro has a place:

Mandrake: /var/cache/samba/
Rhat: /var/cache/samba/
other I've heard of: /var/lock/samba/

I had this problem when upgrading from samba 2.2.6 to 2.2.7. No big deal. Went to another server and grabbed the missing lock files.

Here's a link of mine backed up:
http://smp.byteharmony.com/~happy/ft...d/locks.tar.gz

unzip the file in a temp dir and use the following command to copy the files missing to your locks dir:
(assuming /var/cache/samba is your locks dir)
(assuming your in the directory where you unziped the files tar -zxf locks.tar.gz)
cp locks/* /var/cache/samba
Say: n
to every question where it asks you if you want to over write your files. If you do want to overwrite them, be my guest, I didn't test that .

1st donation after taking so much ,
BK
 
Old 01-04-2003, 12:53 PM   #7
unolinuxguru
LQ Newbie
 
Registered: Jan 2002
Location: omaha, ne
Distribution: suse, debian, redhat, mandrake, openbsd, progeny, engarde
Posts: 15

Rep: Reputation: 0
thanks!!

I've just had the same problem on a fresh install of Knoppix 3.1 (2002-12-12beta) which is Debian based, with samba 2.2.3a-6....

i dnld'd your locks.tar.gz file and unzipped/tarred, copied over brlock.tdb and locking.tdb to /var/run/samba ...
and viola! smbstatus works again. =) reports "No locked files" thanks a ton!
 
Old 01-13-2003, 04:44 AM   #8
mormon
LQ Newbie
 
Registered: Jan 2003
Posts: 1

Rep: Reputation: 0
Re: thanks!!

Quote:
Originally posted by unolinuxguru
I've just had the same problem on a fresh install of Knoppix 3.1 (2002-12-12beta) which is Debian based, with samba 2.2.3a-6....

i dnld'd your locks.tar.gz file and unzipped/tarred, copied over brlock.tdb and locking.tdb to /var/run/samba ...
and viola! smbstatus works again. =) reports "No locked files" thanks a ton!
Hi all,
I copied also brlock.tbd and locking.tbd and smbstatus don't reported the errors any more but the day after when I restart my server I had again the same problem.
Any ideas?

Thank you very much to every body,

Jonathan Mormon
 
Old 07-07-2003, 01:05 PM   #9
cesargcman
LQ Newbie
 
Registered: Jul 2003
Posts: 1

Rep: Reputation: 0
Try this

smbclient -NL localhost

Work fine.

Cheers.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
samba client freezes when samba server goes down timcharper Linux - Networking 1 08-22-2005 10:29 PM
Samba: W2K client OK, XP client hangs Tim Green Linux - Networking 4 08-10-2004 01:55 AM
samba DC troubles alec77 Linux - Networking 2 07-22-2004 06:51 AM
Dynamic DNS Troubles (client-side) samus8zero2x Linux - Networking 2 02-26-2004 11:52 AM
Mandrake (Samba) Client Can't Connect To Samba Buick Linux - Networking 1 01-21-2004 01:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration