-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
I see some strange errors on a samba-3.0.2a PDC and fileserver
running under Linux.
Every now and then users are not able to access some random file.
Windows tells the user that the "file is already opened"
or some similar error message (it's an error message in german)
The files are varying, I see all kinds of filenames where this
happens (*.xls files, *.mdb files, *.doc files, ...) the shares
where it happens are varying, but it seems to happen for every
user every now and then. For the most of the time the fileserver
is working fine for all users, though (but the problem is still
very annoying)
Here is a log from such a situation:
[...]
[2004/05/25 18:50:47, 2] smbd/open.c:open_file(240)
v01 opened file Edv/Dokumentation/Inventar.xls read=Yes write=No (numopen=3)
[2004/05/25 18:50:47, 2] smbd/close.c:close_normal_file(228)
v01 closed file Edv/Dokumentation/Inventar.xls (numopen=2)
[2004/05/25 18:50:47, 2] smbd/open.c:open_file(240)
v01 opened file Edv/Dokumentation/Inventar.xls read=Yes write=No (numopen=3)
[2004/05/25 18:50:47, 2] smbd/close.c:close_normal_file(228)
v01 closed file Edv/Dokumentation/Inventar.xls (numopen=2)
[2004/05/25 18:50:47, 2] smbd/open.c:open_file(240)
v01 opened file Edv/Dokumentation/Inventar.xls read=Yes write=No (numopen=3)
[2004/05/25 18:50:47, 2] smbd/close.c:close_normal_file(228)
v01 closed file Edv/Dokumentation/Inventar.xls (numopen=2)
[2004/05/25 18:50:47, 2] smbd/open.c:open_file(240)
v01 opened file Edv/Dokumentation/Inventar.xls read=Yes write=No (numopen=3)
[2004/05/25 18:50:47, 2] smbd/close.c:close_normal_file(228)
v01 closed file Edv/Dokumentation/Inventar.xls (numopen=2)
[2004/05/25 18:50:47, 2] smbd/open.c:open_file(240)
v01 opened file Edv/Dokumentation/Inventar.xls read=Yes write=No (numopen=3)
[2004/05/25 18:50:47, 2] smbd/close.c:close_normal_file(228)
v01 closed file Edv/Dokumentation/Inventar.xls (numopen=2)
[2004/05/25 18:50:47, 2] smbd/open.c:open_file(240)
v01 opened file Edv/Dokumentation/Inventar.xls read=Yes write=No (numopen=3)
[2004/05/25 18:50:48, 2] smbd/close.c:close_normal_file(228)
v01 closed file Edv/Dokumentation/Inventar.xls (numopen=2)
[2004/05/25 18:50:48, 2] smbd/open.c:open_file(240)
v01 opened file Edv/Dokumentation/Inventar.xls read=Yes write=Yes (numopen=3)
[2004/05/25 18:50:48, 2] lib/access.c:check_access(324)
Allowed connection from (192.168.0.21)
[2004/05/25 18:50:48, 2] lib/access.c:check_access(324)
Allowed connection from (192.168.0.21)
[2004/05/25 18:50:48, 2] smbd/open.c:open_file(240)
v01 opened file Edv/Dokumentation/Inventar.xls read=Yes write=No (numopen=4)
[2004/05/25 18:50:48, 2] smbd/close.c:close_normal_file(228)
v01 closed file Edv/Dokumentation/Inventar.xls (numopen=3)
[2004/05/25 18:50:48, 2] lib/access.c:check_access(324)
Allowed connection from (192.168.0.21)
[2004/05/25 18:50:49, 2] smbd/open.c:open_file(240)
v01 opened file Edv/Dokumentation/Inventar.xls read=Yes write=No (numopen=4)
[2004/05/25 18:50:49, 2] smbd/close.c:close_normal_file(228)
v01 closed file Edv/Dokumentation/Inventar.xls (numopen=3)
[2004/05/25 18:50:49, 2] smbd/open.c:check_share_mode(515)
Share violation on file (2,4,2,24989,Edv/Dokumentation/Inventar.xls,fcbopen =
0, flags = 0) = 0
[2004/05/25 18:50:49, 2] smbd/open.c:open_file(240)
v01 opened file Edv/Dokumentation/Inventar.xls read=Yes write=No (numopen=4)
[2004/05/25 18:50:49, 2] smbd/open.c:open_file(240)
v01 opened file Edv/Dokumentation/Inventar.xls read=Yes write=No (numopen=4)
[2004/05/25 18:50:49, 2] smbd/close.c:close_normal_file(228)
v01 closed file Edv/Dokumentation/Inventar.xls (numopen=3)
[2004/05/25 18:50:49, 2] smbd/open.c:check_share_mode(515)
Share violation on file (2,4,2,24989,Edv/Dokumentation/Inventar.xls,fcbopen =
0, flags = 0) = 0
[2004/05/25 18:50:49, 2] smbd/open.c:open_file(240)
v01 opened file Edv/Dokumentation/Inventar.xls read=Yes write=No (numopen=4)
[2004/05/25 18:50:53, 2] smbd/open.c:open_file(240)
v01 opened file Edv/Dokumentation/Inventar.xls read=Yes write=No (numopen=4)
[2004/05/25 18:50:53, 2] smbd/close.c:close_normal_file(228)
v01 closed file Edv/Dokumentation/Inventar.xls (numopen=3)
[2004/05/25 18:50:53, 2] smbd/open.c:check_share_mode(515)
Share violation on file (2,4,2,24989,Edv/Dokumentation/Inventar.xls,fcbopen =
0, flags = 0) = 0
[2004/05/25 18:50:53, 2] smbd/open.c:open_file(240)
[...]
The file in question is "Edv/Dokumentation/Inventar.xls"
on share "Verwaltung"
Please note that the user most of the time is perfectly
able to open this file. Only sometimes he can't. I can
not currently say how to produce the problem at will.
The user owns the file and even the directory the file is in:
ll /home/gruppen/verwaltung/Edv/Dokumentation/
drwxrws--- 2 v01 verwaltung 688 May 24 16:57 ./
drwxrws--- 14 v01 verwaltung 640 May 25 14:27 ../
- -rw-rw---- 1 v01 verwaltung 181248 May 25 18:50 Inventar.xls
Under Linux the user has no problems reading this file.
The share definition is quite straightforward (typical share
for a group of users) and looks as follows:
[Verwaltung]
comment = Dateibereich Verwaltung
path = /home/gruppen/verwaltung
writable = yes
printable = no
public = no
create mask = 0660
directory mask = 0770
force create mode = 0660
force directory mode = 0770
valid users = @verwaltung @domadmin
I checked the source code of smbd/open.c but could not find
an apparent cause for the problem.
What is going on here?
Any idea, anyone?
Many thanks in advance!
- - andreas
- --
Andreas Haumer | mailto:andreas@xss.co.at
*x Software + Systeme | http://www.xss.co.at/
Karmarschgasse 51/2/20 | Tel: +43-1-6060114-0
A-1100 Vienna, Austria | Fax: +43-1-6060114-71
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFAs4NNxJmyeGcXPhERAiG5AJ9abP6o1bxmMlFMkofxBDiLOq5swgCfcmPH
YLZmNhy/XcaRYbOMP7wdy7U=0Nk5
-----END PGP SIGNATURE-----