Networking Forums

Networking Forums > Computer Networking > Linux Networking > freezing samba

Reply
Thread Tools Display Modes

freezing samba

 
 
C3
Guest
Posts: n/a

 
      11-07-2004, 08:28 AM
I'm running Samba 2.2.3a-14.1 for Debian, and every now and then when I
access a file from my WinXP machine, the program accessing the file in
Windows will freeze for almost a minute before opening the file. I think
both Windows and Samba are at fault here: Windows for hanging until the
program can read the file, and Samba for delaying this transaction (for
whatever reason), but I think I can fix the problem with Samba (don't know
about Windows).

The machine running Samba has 128MB RAM, and does not appear to be affected
by this behaviour in that I can still issue commands at the command prompt
via SSH.

Most of the time, I can open shared files very quickly. Sometimes, I
accidentally try to access files for which I haven't granted myself
permissions yet, though this should instantly return an error in the Windows
application, shouldn't it?

Any ideas where to start debugging this would be appreciated.


 
Reply With Quote
 
 
 
 
=?ISO-8859-1?Q?J=F8rn?= Dahl-Stamnes
Guest
Posts: n/a

 
      11-08-2004, 04:50 PM
"C3" <_> wrote:

> I'm running Samba 2.2.3a-14.1 for Debian, and every now and then when I
> access a file from my WinXP machine, the program accessing the file in
> Windows will freeze for almost a minute before opening the file. I think
> both Windows and Samba are at fault here: Windows for hanging until the
> program can read the file, and Samba for delaying this transaction (for
> whatever reason), but I think I can fix the problem with Samba (don't know
> about Windows).


Is the application Word or Excel? I have the same problem, and after the
problem has occured, I find this a log-file under /var/log/samba/<pc>.log,
that says:

[2004/11/03 17:08:04, 0] smbd/oplock.cplock_break(758)
oplock_break: receive_smb error (Success)
oplock_break failed for file /SomePath/somefilename.doc (dev = 808, inode
= 1844384, file_id = 26583).
[2004/11/03 17:08:04, 0] smbd/oplock.cplock_break(843)
oplock_break: client failure in break - shutting down this smbd.

The name of the logfile (the <pc> part of the name, see above) is based on
the windows machine name.

I'm running Version 2.2.3a under RH 7.3

--
Jørn Dahl-Stamnes
http://www.dahl-stamnes.net/dahls/index.html
 
Reply With Quote
 
C3
Guest
Posts: n/a

 
      11-09-2004, 02:21 AM
Yes! I get exactly the same error in my log file. I use Word and Excel, but
this also happens when I open files up with my text editor.

[2004/11/09 14:19:43, 0] smbd/oplock.cplock_break(758)
oplock_break: receive_smb error (Success)
oplock_break failed for file Summary-Paper.doc (dev = 304, inode = 33468,
file_id = 3).
[2004/11/09 14:19:43, 0] smbd/oplock.cplock_break(843)
oplock_break: client failure in break - shutting down this smbd.

Any idea what's causing this or how to fix it?


cheers,

C3


 
Reply With Quote
 
Michael W Cocke
Guest
Posts: n/a

 
      11-09-2004, 11:06 AM
On Tue, 9 Nov 2004 14:21:25 +1100, "C3" <_> wrote:

>Yes! I get exactly the same error in my log file. I use Word and Excel, but
>this also happens when I open files up with my text editor.
>
>[2004/11/09 14:19:43, 0] smbd/oplock.cplock_break(758)
> oplock_break: receive_smb error (Success)
> oplock_break failed for file Summary-Paper.doc (dev = 304, inode = 33468,
>file_id = 3).
>[2004/11/09 14:19:43, 0] smbd/oplock.cplock_break(843)
> oplock_break: client failure in break - shutting down this smbd.
>
>Any idea what's causing this or how to fix it?
>
>
>cheers,
>
>C3


What do you have in your samba config for 'opprortunistic file
locking' (probably misspelled). There are several ways to lock a busy
file in MS operating systems, and MS isn't always consistant.

Mike-

--
If you can keep your head while those around you are losing theirs...
You may have a great career as a network administrator ahead!
--
Please note - Due to the intense volume of spam, we have installed
site-wide spam filters at catherders.com. If email from you bounces,
try non-HTML, non-encoded, non-attachments,
 
Reply With Quote
 
C3
Guest
Posts: n/a

 
      11-10-2004, 12:01 PM
No occurences of 'opportunistic' and only a commented example contains the
word 'lock' for /etc/samba/smb.conf


C3

"Michael W Cocke" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Tue, 9 Nov 2004 14:21:25 +1100, "C3" <_> wrote:
>
>>Yes! I get exactly the same error in my log file. I use Word and Excel,
>>but
>>this also happens when I open files up with my text editor.
>>
>>[2004/11/09 14:19:43, 0] smbd/oplock.cplock_break(758)
>> oplock_break: receive_smb error (Success)
>> oplock_break failed for file Summary-Paper.doc (dev = 304, inode =
>> 33468,
>>file_id = 3).
>>[2004/11/09 14:19:43, 0] smbd/oplock.cplock_break(843)
>> oplock_break: client failure in break - shutting down this smbd.
>>
>>Any idea what's causing this or how to fix it?
>>
>>
>>cheers,
>>
>>C3

>
> What do you have in your samba config for 'opprortunistic file
> locking' (probably misspelled). There are several ways to lock a busy
> file in MS operating systems, and MS isn't always consistant.
>
> Mike-
>
> --
> If you can keep your head while those around you are losing theirs...
> You may have a great career as a network administrator ahead!
> --
> Please note - Due to the intense volume of spam, we have installed
> site-wide spam filters at catherders.com. If email from you bounces,
> try non-HTML, non-encoded, non-attachments,



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Do all Linux distros have Samba built-in? Detect if Samba installed? Matthew Lincoln Linux Networking 8 11-17-2008 12:11 AM
MN-700 freezing Broadband Hardware 2 04-09-2005 11:07 AM
A few questions regarding samba from a samba and windows rookie Madhusudan Singh Linux Networking 0 03-30-2005 05:54 PM
freezing Beck Broadband Hardware 1 10-13-2004 04:26 AM
[Samba] WINS on Samba server and Routing jbob Linux Networking 0 08-13-2003 01:31 AM



1 2 3 4 5 6 7 8 9 10 11