Re: [Samba] shared files not locked - samba culprit or clients?

2003-10-20 Thread Michael Gasch
hi tom

possibly it's not a bug in samba but a problem on client side?
you said, you tried even with 2k clients and it worked: was it the same 
excel version like on XP ?

maybe it's because of excel:
when opening files in excel, copies are made of this file until you 
close this file AFAIK

if another user opens the same file, a new tmp-file is created by excel
so maybe the older one is overwriten/deleted and the first client can't 
modify his document anymore?

may be you can define this excel behaviour in the options-menu ?

micha

Jeremy Allison wrote:
On Fri, Oct 17, 2003 at 06:10:35PM +0200, Tom Lazar wrote:

hello,

i have a question concerning the locking feature of samba (both 2.2.8 
and 3.0.0) that i haven't found answered in the documentation. at this 
point i am not sure, whether it's a bug in samba, the client 
applications or simply a misunderstanding of the locking feature itself 
on my part - at any rate it's a pressing problem, as my clients are 
losing both their data as well as their faith in the server!


This was a bug in 3.0.0, has been fixed in the 3.0.1 CVS tree
and in the 3.0.1 pre release.
I posted the patch on this list, sorry for the problem. If you
can't find it in the archives (look for read only Excel file)
mail me and I'll look it up.
Jeremy.
--

 Matrix - more than a vision

**
Michael Gasch
Max Planck Institute for Evolutionary Anthropology
Deutscher Platz 6
04103 Leipzig
Germany
**
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] shared files not locked - samba culprit or clients?

2003-10-19 Thread Dmitry Melekhov

- Original Message -
From: Jeremy Allison [EMAIL PROTECTED]
To: Dmitry Melekhov [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, October 18, 2003 11:57 AM
Subject: Re: [Samba] shared files not locked - samba culprit or clients?


 On Sat, Oct 18, 2003 at 12:47:55PM +0400, Dmitry Melekhov wrote:
 
  Unfortunately this patch doesn't solve all locking problems :-(
  As i wrote (I posted mail to samba-technical by mistake) I have locking
  problems with current CVS.

 I don't know of any outstanding problems. I tried to reproduce
 the problem you reported on Samba-technical and was unable to
 do so (the two user opens of an Excel spreadsheet worked fine
 for me). You didn't contact me with follow up information on
 what your problem was.


Just because I don't have such information :-(
I can't reproduce my problems too.
Is it possible to reproduce Excel crash? ;-)
But I asked how can I see what happens, i.e. where samba 3 store locks info?
No replies :-(
Again, even deleting of locking.tdb didn't help.

And another problem, when smbstatus reported file, locked by unexistent
process is not reproducable too.
Just because I can't do it on production server  and can't simulate workload
:-(

 Please don't allege general locking problems on the list without
 trying to follow up with someone investigation your problem first.

Sorry, but there are _general_ locking problems in samba 3.
And, sorry, I have no technical info which can help to solve problem.
(yet? ).


May be somebody here had the same problems:

1.
After MS Excel crash file becomed busy, i.e. Excel said that file is
opened by another user and can be opened only read-only.

smbstatus didn't show that there is lock on this file.
Only way to open file was to disable locking in smb.conf.


I even deleted locking.tdb and no results, file still can be opened only as
read-only.
fuser and lsof didn't show any locks on kernel level.

2.
smbstatus showed that file is locked, but there was no such smb process
running.



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] shared files not locked - samba culprit or clients?

2003-10-19 Thread Jeremy Allison
On Sun, Oct 19, 2003 at 11:41:29AM +0400, Dmitry Melekhov wrote:

 Sorry, but there are _general_ locking problems in samba 3.
 And, sorry, I have no technical info which can help to solve problem.
 (yet? ).

The only known problems with 3.0.0 are the read-only issue,
for which there is a posted patch and there is fixed in the 3.0.1
pre release. You are experiencing locking problems. This does
not make a general locking problem in Samba3. You have not
given me a reproducible test case, no one else is reporting
this problem.

I say again, don't allege general problems unless you have
evidence for this being the case. You don't right now.

Jeremy.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] shared files not locked - samba culprit or clients?

2003-10-18 Thread Dmitry Melekhov
On Fri, Oct 17, 2003 at 06:10:35PM +0200, Tom Lazar wrote:
 hello,
 
 i have a question concerning the locking feature of samba (both 2.2.8 
 and 3.0.0) that i haven't found answered in the documentation. at this 
 point i am not sure, whether it's a bug in samba, the client 
 applications or simply a misunderstanding of the locking feature itself 
 on my part - at any rate it's a pressing problem, as my clients are 
 losing both their data as well as their faith in the server!

This was a bug in 3.0.0, has been fixed in the 3.0.1 CVS tree
and in the 3.0.1 pre release.
I posted the patch on this list, sorry for the problem. If you
can't find it in the archives (look for read only Excel file)
mail me and I'll look it up.

Unfortunately this patch doesn't solve all locking problems :-(
As i wrote (I posted mail to samba-technical by mistake) I have locking
problems with current CVS.


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] shared files not locked - samba culprit or clients?

2003-10-18 Thread Jeremy Allison
On Sat, Oct 18, 2003 at 12:47:55PM +0400, Dmitry Melekhov wrote:
 
 Unfortunately this patch doesn't solve all locking problems :-(
 As i wrote (I posted mail to samba-technical by mistake) I have locking
 problems with current CVS.

I don't know of any outstanding problems. I tried to reproduce
the problem you reported on Samba-technical and was unable to
do so (the two user opens of an Excel spreadsheet worked fine
for me). You didn't contact me with follow up information on
what your problem was.

Please don't allege general locking problems on the list without
trying to follow up with someone investigation your problem first.

Thanks,

Jeremy.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] shared files not locked - samba culprit or clients?

2003-10-18 Thread Tom Lazar
On 17.10.2003, at 21:17, Jeremy Allison wrote:

No, I can't reproduce this with 2 W2K boxes and Office 2000 SR1.
hi again,

i've done some more testing and have been able to nail down, when it 
happens:

user a opens file test.xls, modifies it, but doesn't save it yet.
user b opens it, closes it
user a can't save any changes anymore! excel times out, renames the 
file to an arbitrary name and will not permit any further save attempts 
of the file.

i have repeated this five times and it happened every time.

i have created a fresh log-directory for samba, turned the log-level up 
to 10, restarted samba and then repeated the above steps. i've taken 
the liberty to upload a .tgz of both clients log files, the smbd.log, 
as well as my smb.conf to the following URL:

http://tomster.org/geek/samba-debug-logs.tgz

in the logs user a is machine burroughs with IP 192.168.0.23 and b is 
goedel with IP 192.168.0.177

What are the permissions/ownership on the xls file on your share ?
the permissions for the file in question are:

[EMAIL PROTECTED] ll /home/shared/SambaTest/
total 34
-rwxrw-r--  1 tomster  house 82 Oct 18 18:26 ._FA7E5000
-rwxrw-r--  1 tomster  house 82 Oct 17 20:36 ._test.xls
-rwxrw-r--  1 tomster  house 82 Oct 18 18:19 ._test2.xls
-rwxrw-r--  1 tomster  house 82 Oct 18 18:21 ._test3.xls
-rwxrw-r--  1 tomster  house 82 Oct 18 18:24 ._test4.xls
-rwxrw-r--  1 tomster  house  24064 Oct 18 18:50 FA7E5000
(this is after excels renaming-funk...)

clients are both mac osx (build 7B85 aka Panther Golden Master), using 
the latest version of Office v. X (10.1.5) the server is running 
freebsd 5.1p10 with samba 3.0.0 and your patch applied.

the behaviour has been the same with 10.2.8 clients (to which i haven't 
got acces right now)

currently I'm also not able to provide any testing with a Windows 
Client, but i can do that tomorrow or on monday.

thank you for any feedback. I'm sort of getting desparate here... :-( 
there's twelve people who will have a busy day on monday and will be 
opening, closing and saving A LOT of excel files...

kind regards from berlin,

tom

--
tom lazar [EMAIL PROTECTED]
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] shared files not locked - samba culprit or clients?

2003-10-18 Thread Jeremy Allison
On Sat, Oct 18, 2003 at 06:51:23PM +0200, Tom Lazar wrote:
 On 17.10.2003, at 21:17, Jeremy Allison wrote:
 
  No, I can't reproduce this with 2 W2K boxes and Office 2000 SR1.
 
 hi again,
 
 i've done some more testing and have been able to nail down, when it 
 happens:

 clients are both mac osx (build 7B85 aka Panther Golden Master), using 
 the latest version of Office v. X (10.1.5) the server is running 
 freebsd 5.1p10 with samba 3.0.0 and your patch applied.

Ok, this is the problem, I don't have access to a MacOSX
client so no wonder I can't reproduce it. I'll contact
Apple to see if I can get this fixed (ie. if they'll
give me a client to test with).

 currently I'm also not able to provide any testing with a Windows 
 Client, but i can do that tomorrow or on monday.

I tested with the Windows clients. With two W2K clients it
works fine.

Jeremy.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] shared files not locked - samba culprit or clients?

2003-10-17 Thread Jeremy Allison
On Fri, Oct 17, 2003 at 06:10:35PM +0200, Tom Lazar wrote:
 hello,
 
 i have a question concerning the locking feature of samba (both 2.2.8 
 and 3.0.0) that i haven't found answered in the documentation. at this 
 point i am not sure, whether it's a bug in samba, the client 
 applications or simply a misunderstanding of the locking feature itself 
 on my part - at any rate it's a pressing problem, as my clients are 
 losing both their data as well as their faith in the server!

This was a bug in 3.0.0, has been fixed in the 3.0.1 CVS tree
and in the 3.0.1 pre release.
I posted the patch on this list, sorry for the problem. If you
can't find it in the archives (look for read only Excel file)
mail me and I'll look it up.

Jeremy.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba