Hello Samba list,
we have a weird problem that occurs randomly when accessing file in a
subfolder.
When opening the file (specifically a PDF) it works sometimes, but
sometimes it only gives NT_STATUS_OBJECT_NAME_NOT_FOUND in the logs and
"The Directory name is invalid" in Windows, though the file is
available
and opened fine a few seconds before. A few seconds later it will work
again. In the following log example it didn't work for the first 7
tries, the eight worked and the ninth didn't again, though nothing
changed on the file nor the system itself.
When I put the file itself or the last subfolder in in the shares' root,
the problem does not occur.
Does everyone here have an idea which could cause such behaviour? I
thought of Windows caching, but nothing changed on the file, so the
cache should always have the correct data to access the file. Also
Windows asks for the right file as seen in a packet capture (Create
Request File: "correct path", Create Response, Error:
NT_STATUS_OBJECT_NAME_NOT_FOUND)
Next try: (Create Request File: "correct path", Create Response File:
"correct path) => Works
[2021/06/17 18:29:29.849069,? 3]
../../source3/smbd/smb2_server.c:3254(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_OBJECT_NAME_NOT_FOUND] || at
../../source3/smbd/smb2_create.c:296
[2021/06/17 18:31:28.336197,? 3]
../../source3/smbd/smb2_server.c:3254(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_OBJECT_NAME_NOT_FOUND] || at
../../source3/smbd/smb2_create.c:296
[2021/06/17 18:31:28.407373,? 3]
../../source3/smbd/smb2_server.c:3254(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_OBJECT_NAME_NOT_FOUND] || at
../../source3/smbd/smb2_create.c:296
[2021/06/17 18:31:39.903532,? 3]
../../source3/smbd/smb2_server.c:3254(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_OBJECT_NAME_NOT_FOUND] || at
../../source3/smbd/smb2_create.c:296
[2021/06/17 18:31:40.031113,? 3]
../../source3/smbd/smb2_server.c:3254(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_OBJECT_NAME_NOT_FOUND] || at
../../source3/smbd/smb2_create.c:296
[2021/06/17 18:31:42.833156,? 3]
../../source3/smbd/smb2_server.c:3254(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_OBJECT_NAME_NOT_FOUND] || at
../../source3/smbd/smb2_create.c:296
[2021/06/17 18:31:46.593537,? 3]
../../source3/smbd/smb2_server.c:3254(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_OBJECT_NAME_NOT_FOUND] || at
../../source3/smbd/smb2_create.c:296
[2021/06/17 18:31:46.693575,? 3]
../../source3/smbd/smb2_server.c:3254(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_OBJECT_NAME_NOT_FOUND] || at
../../source3/smbd/smb2_create.c:296
[2021/06/17 18:31:49.310879,? 3]
../../source3/smbd/smb2_server.c:3254(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_OBJECT_NAME_NOT_FOUND] || at
../../source3/smbd/smb2_create.c:296
[2021/06/17 18:31:51.708015,? 3]
../../source3/smbd/smb2_server.c:3254(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_OBJECT_NAME_NOT_FOUND] || at
../../source3/smbd/smb2_create.c:296
[2021/06/17 18:31:51.814863,? 3]
../../source3/smbd/smb2_server.c:3254(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_OBJECT_NAME_NOT_FOUND] || at
../../source3/smbd/smb2_create.c:296
[2021/06/17 18:31:55.481628,? 3]
../../source3/smbd/smb2_server.c:3254(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_OBJECT_NAME_NOT_FOUND] || at
../../source3/smbd/smb2_create.c:296
[2021/06/17 18:31:58.133868,? 3]
../../source3/smbd/smb2_server.c:3254(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_OBJECT_NAME_NOT_FOUND] || at
../../source3/smbd/smb2_create.c:296
[2021/06/17 18:31:58.223283,? 3]
../../source3/smbd/smb2_server.c:3254(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_OBJECT_NAME_NOT_FOUND] || at
../../source3/smbd/smb2_create.c:296
[2021/06/17 18:32:00.493763,? 3]
../../source3/smbd/smb2_server.c:3254(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_CANCELLED] || at ../../source3/smbd/smb2_notify.c:126
[2021/06/17 18:32:00.495542,? 3]
../../source3/smbd/smb2_server.c:3254(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_CANCELLED] || at ../../source3/smbd/smb2_notify.c:126
[2021/06/17 18:32:00.505379,? 3]
../../source3/smbd/smb2_server.c:3254(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[9]
status[STATUS_NO_MORE_FILES] || at
../../source3/smbd/smb2_query_directory.c:159
[2021/06/17 18:32:01.734864,? 3]
../../source3/smbd/smb2_server.c:3254(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[5]
status[STATUS_NO_MORE_FILES] || at
../../source3/smbd/smb2_query_directory.c:159
[2021/06/17 18:32:01.737934,? 3]
../../source3/smbd/smb2_server.c:3254(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[5]
status[STATUS_NO_MORE_FILES] || at
../../source3/smbd/smb2_query_directory.c:159
[2021/06/17 18:32:01.739696,? 3]
../../source3/smbd/smb2_server.c:3254(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[5]
status[STATUS_NO_MORE_FILES] || at
../../source3/smbd/smb2_query_directory.c:159
[2021/06/17 18:32:01.769591,? 3]
../../source3/smbd/smb2_server.c:3254(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[9]
status[STATUS_NO_MORE_FILES] || at
../../source3/smbd/smb2_query_directory.c:159
[2021/06/17 18:32:01.800016,? 3]
../../source3/smbd/smb2_server.c:3254(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_FILE_IS_A_DIRECTORY] || at
../../source3/smbd/smb2_create.c:296
[2021/06/17 18:32:01.816426,? 3]
../../source3/smbd/smb2_server.c:3254(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[9]
status[STATUS_NO_MORE_FILES] || at
../../source3/smbd/smb2_query_directory.c:159
[2021/06/17 18:32:01.819604,? 3]
../../source3/smbd/smb2_server.c:3254(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_FILE_IS_A_DIRECTORY] || at
../../source3/smbd/smb2_create.c:296
[2021/06/17 18:32:01.870702,? 3]
../../source3/smbd/smb2_server.c:3254(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_OBJECT_NAME_NOT_FOUND] || at
../../source3/smbd/smb2_create.c:296
[2021/06/17 18:32:01.957345,? 3]
../../source3/smbd/smb2_server.c:3254(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[9]
status[STATUS_NO_MORE_FILES] || at
../../source3/smbd/smb2_query_directory.c:159
[2021/06/17 18:32:02.029047,? 3]
../../source3/smbd/smb2_read.c:416(smb2_read_complete)
? smbd_smb2_read: fnum 1862652967, file
SLV_34/Customer/Druckdaten/Druck_Konfektionierung/Customer_Germany/Error/5207233101/5207233101_Lieferschein.pdf,
length=4096 offset=0 read=4096
[2021/06/17 18:32:02.029518,? 3]
../../source3/smbd/smb2_read.c:416(smb2_read_complete)
? smbd_smb2_read: fnum 1862652967, file
SLV_34/Customer/Druckdaten/Druck_Konfektionierung/Customer_Germany/Error/5207233101/5207233101_Lieferschein.pdf,
length=512 offset=0 read=512
[2021/06/17 18:32:02.031995,? 3]
../../source3/smbd/smb2_read.c:416(smb2_read_complete)
? smbd_smb2_read: fnum 2859460223, file
SLV_34/Customer/Druckdaten/Druck_Konfektionierung/Customer_Germany/Error/5207233101/5207233101_Lieferschein.pdf,
length=4096 offset=0 read=4096
[2021/06/17 18:32:02.033571,? 3]
../../source3/smbd/smb2_read.c:416(smb2_read_complete)
? smbd_smb2_read: fnum 2859460223, file
SLV_34/Customer/Druckdaten/Druck_Konfektionierung/Customer_Germany/Error/5207233101/5207233101_Lieferschein.pdf,
length=8 offset=0 read=8
[2021/06/17 18:32:02.034471,? 3]
../../source3/smbd/smb2_read.c:416(smb2_read_complete)
? smbd_smb2_read: fnum 2859460223, file
SLV_34/Customer/Druckdaten/Druck_Konfektionierung/Customer_Germany/Error/5207233101/5207233101_Lieferschein.pdf,
length=4096 offset=0 read=4096
[2021/06/17 18:32:02.036386,? 3]
../../source3/smbd/smb2_read.c:416(smb2_read_complete)
? smbd_smb2_read: fnum 4277816032, file
SLV_34/Customer/Druckdaten/Druck_Konfektionierung/Customer_Germany/Error/5207233101/5207233101_Lieferschein.pdf,
length=4096 offset=0 read=4096
[2021/06/17 18:32:02.036862,? 3]
../../source3/smbd/smb2_read.c:416(smb2_read_complete)
? smbd_smb2_read: fnum 4277816032, file
SLV_34/Customer/Druckdaten/Druck_Konfektionierung/Customer_Germany/Error/5207233101/5207233101_Lieferschein.pdf,
length=512 offset=0 read=512
[2021/06/17 18:32:02.039738,? 3]
../../source3/smbd/smb2_read.c:416(smb2_read_complete)
? smbd_smb2_read: fnum 8802267, file
SLV_34/Customer/Druckdaten/Druck_Konfektionierung/Customer_Germany/Error/5207233101/5207233101_Lieferschein.pdf,
length=4096 offset=0 read=4096
[2021/06/17 18:32:02.041024,? 3]
../../source3/smbd/smb2_read.c:416(smb2_read_complete)
? smbd_smb2_read: fnum 8802267, file
SLV_34/Customer/Druckdaten/Druck_Konfektionierung/Customer_Germany/Error/5207233101/5207233101_Lieferschein.pdf,
length=4096 offset=0 read=4096
[2021/06/17 18:32:02.042860,? 3]
../../source3/smbd/smb2_read.c:416(smb2_read_complete)
? smbd_smb2_read: fnum 8802267, file
SLV_34/Customer/Druckdaten/Druck_Konfektionierung/Customer_Germany/Error/5207233101/5207233101_Lieferschein.pdf,
length=23672 offset=0 read=23672
[2021/06/17 18:32:02.043599,? 3]
../../source3/smbd/smb2_read.c:416(smb2_read_complete)
? smbd_smb2_read: fnum 8802267, file
SLV_34/Customer/Druckdaten/Druck_Konfektionierung/Customer_Germany/Error/5207233101/5207233101_Lieferschein.pdf,
length=23672 offset=0 read=23672
[2021/06/17 18:32:02.045047,? 3]
../../source3/smbd/smb2_read.c:416(smb2_read_complete)
? smbd_smb2_read: fnum 8802267, file
SLV_34/Customer/Druckdaten/Druck_Konfektionierung/Customer_Germany/Error/5207233101/5207233101_Lieferschein.pdf,
length=4225 offset=18801 read=4225
[2021/06/17 18:32:02.045329,? 3]
../../source3/smbd/smb2_read.c:416(smb2_read_complete)
? smbd_smb2_read: fnum 8802267, file
SLV_34/Customer/Druckdaten/Druck_Konfektionierung/Customer_Germany/Error/5207233101/5207233101_Lieferschein.pdf,
length=4225 offset=18801 read=4225
[2021/06/17 18:32:02.045814,? 3]
../../source3/smbd/smb2_read.c:416(smb2_read_complete)
? smbd_smb2_read: fnum 8802267, file
SLV_34/Customer/Druckdaten/Druck_Konfektionierung/Customer_Germany/Error/5207233101/5207233101_Lieferschein.pdf,
length=4225 offset=18801 read=4225
[2021/06/17 18:32:02.046088,? 3]
../../source3/smbd/smb2_read.c:416(smb2_read_complete)
? smbd_smb2_read: fnum 8802267, file
SLV_34/Customer/Druckdaten/Druck_Konfektionierung/Customer_Germany/Error/5207233101/5207233101_Lieferschein.pdf,
length=4225 offset=18801 read=4225
[2021/06/17 18:32:02.146745,? 3]
../../source3/smbd/smb2_read.c:416(smb2_read_complete)
? smbd_smb2_read: fnum 8802267, file
SLV_34/Customer/Druckdaten/Druck_Konfektionierung/Customer_Germany/Error/5207233101/5207233101_Lieferschein.pdf,
length=4225 offset=18801 read=4225
[2021/06/17 18:32:02.147357,? 3]
../../source3/smbd/smb2_read.c:416(smb2_read_complete)
? smbd_smb2_read: fnum 8802267, file
SLV_34/Customer/Druckdaten/Druck_Konfektionierung/Customer_Germany/Error/5207233101/5207233101_Lieferschein.pdf,
length=4225 offset=18801 read=4225
[2021/06/17 18:32:02.149296,? 3]
../../source3/smbd/smb2_read.c:416(smb2_read_complete)
? smbd_smb2_read: fnum 8802267, file
SLV_34/Customer/Druckdaten/Druck_Konfektionierung/Customer_Germany/Error/5207233101/5207233101_Lieferschein.pdf,
length=4225 offset=18801 read=4225
[2021/06/17 18:32:02.150416,? 3]
../../source3/smbd/smb2_read.c:416(smb2_read_complete)
? smbd_smb2_read: fnum 8802267, file
SLV_34/Customer/Druckdaten/Druck_Konfektionierung/Customer_Germany/Error/5207233101/5207233101_Lieferschein.pdf,
length=4225 offset=18801 read=4225
[2021/06/17 18:32:02.152147,? 3]
../../source3/smbd/smb2_read.c:416(smb2_read_complete)
? smbd_smb2_read: fnum 8802267, file
SLV_34/Customer/Druckdaten/Druck_Konfektionierung/Customer_Germany/Error/5207233101/5207233101_Lieferschein.pdf,
length=4225 offset=18801 read=4225
[2021/06/17 18:32:02.153170,? 3]
../../source3/smbd/smb2_read.c:416(smb2_read_complete)
? smbd_smb2_read: fnum 8802267, file
SLV_34/Customer/Druckdaten/Druck_Konfektionierung/Customer_Germany/Error/5207233101/5207233101_Lieferschein.pdf,
length=4225 offset=18801 read=4225
[2021/06/17 18:32:02.156067,? 3]
../../source3/smbd/smb2_read.c:416(smb2_read_complete)
? smbd_smb2_read: fnum 8802267, file
SLV_34/Customer/Druckdaten/Druck_Konfektionierung/Customer_Germany/Error/5207233101/5207233101_Lieferschein.pdf,
length=4225 offset=18801 read=4225
[2021/06/17 18:32:02.217941,? 3]
../../source3/smbd/smb2_server.c:3254(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[5]
status[STATUS_NO_MORE_FILES] || at
../../source3/smbd/smb2_query_directory.c:159
[2021/06/17 18:32:02.221885,? 3]
../../source3/smbd/smb2_server.c:3254(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[5]
status[STATUS_NO_MORE_FILES] || at
../../source3/smbd/smb2_query_directory.c:159
[2021/06/17 18:32:02.223721,? 3]
../../source3/smbd/smb2_server.c:3254(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[5]
status[STATUS_NO_MORE_FILES] || at
../../source3/smbd/smb2_query_directory.c:159
[2021/06/17 18:32:02.235759,? 3]
../../source3/smbd/smb2_server.c:3254(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[9]
status[STATUS_NO_MORE_FILES] || at
../../source3/smbd/smb2_query_directory.c:159
[2021/06/17 18:32:02.265302,? 3]
../../source3/smbd/smb2_read.c:416(smb2_read_complete)
? smbd_smb2_read: fnum 8802267, file
SLV_34/Customer/Druckdaten/Druck_Konfektionierung/Customer_Germany/Error/5207233101/5207233101_Lieferschein.pdf,
length=1969 offset=536 read=1969
[2021/06/17 18:32:02.266122,? 3]
../../source3/smbd/smb2_read.c:416(smb2_read_complete)
? smbd_smb2_read: fnum 8802267, file
SLV_34/Customer/Druckdaten/Druck_Konfektionierung/Customer_Germany/Error/5207233101/5207233101_Lieferschein.pdf,
length=2593 offset=15528 read=2593
[2021/06/17 18:32:02.276603,? 3]
../../source3/smbd/smb2_read.c:416(smb2_read_complete)
? smbd_smb2_read: fnum 8802267, file
SLV_34/Customer/Druckdaten/Druck_Konfektionierung/Customer_Germany/Error/5207233101/5207233101_Lieferschein.pdf,
length=12474 offset=2956 read=12474
[2021/06/17 18:32:02.279230,? 3]
../../source3/smbd/smb2_read.c:416(smb2_read_complete)
? smbd_smb2_read: fnum 8802267, file
SLV_34/Customer/Druckdaten/Druck_Konfektionierung/Customer_Germany/Error/5207233101/5207233101_Lieferschein.pdf,
length=11 offset=15430 read=11
[2021/06/17 18:32:03.795127,? 3]
../../source3/smbd/smb2_read.c:416(smb2_read_complete)
? smbd_smb2_read: fnum 8802267, file
SLV_34/Customer/Druckdaten/Druck_Konfektionierung/Customer_Germany/Error/5207233101/5207233101_Lieferschein.pdf,
length=1969 offset=536 read=1969
[2021/06/17 18:32:05.196600,? 3]
../../source3/smbd/smb2_read.c:416(smb2_read_complete)
? smbd_smb2_read: fnum 8802267, file
SLV_34/Customer/Druckdaten/Druck_Konfektionierung/Customer_Germany/Error/5207233101/5207233101_Lieferschein.pdf,
length=1969 offset=536 read=1969
[2021/06/17 18:32:05.242571,? 3]
../../source3/smbd/smb2_server.c:3254(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_OBJECT_PATH_NOT_FOUND] || at
../../source3/smbd/smb2_create.c:296
[2021/06/17 18:32:06.752754,? 3]
../../source3/smbd/smb2_read.c:416(smb2_read_complete)
? smbd_smb2_read: fnum 8802267, file
SLV_34/Customer/Druckdaten/Druck_Konfektionierung/Customer_Germany/Error/5207233101/5207233101_Lieferschein.pdf,
length=4096 offset=0 read=4096
[2021/06/17 18:32:09.814406,? 3]
../../source3/smbd/smb2_server.c:3254(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_OBJECT_NAME_NOT_FOUND] || at
../../source3/smbd/smb2_create.c:296
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
'winbind separator = +' might cause problems with group membership.
Server role: ROLE_DOMAIN_MEMBER
Press enter to see a dump of your service definitions
# Global parameters
[global]
??????? log file = /var/log/samba/log.%m
??????? logging = file
??????? map to guest = Bad User
??????? max log size = 102400
??????? netbios aliases = 05px
??????? obey pam restrictions = Yes
??????? pam password change = Yes
??????? panic action = /usr/share/samba/panic-action %d
??????? passwd chat = *Enter\snew\s*\spassword:* %n\n
*Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
??????? passwd program = /usr/bin/passwd %u
??????? preferred master = No
??????? realm = CUSTOMER.LOCAL
??????? server min protocol = NT1
??????? server role = member server
??????? server string = %h server (Samba, Ubuntu)
??????? unix password sync = Yes
??????? usershare allow guests = Yes
??????? winbind enum groups = Yes
??????? winbind enum users = Yes
??????? winbind refresh tickets = Yes
??????? winbind separator = +
??????? workgroup = CUSTOMER
??????? idmap config * : range = 10000-40000
??????? idmap config * : backend = tdb
??????? acl allow execute always = Yes
[daten]
??????? comment = Daten
??????? path = /home
??????? read only = No
[testme]
??????? comment = Test-Share
??????? path = /share/testme
??????? read only = No
Any hints on this are welcome! Thanks in advance for every help.
Peace
Bastian
--
Bastian Sebode
Fachinformatiker Systemintegration
LINET Services GmbH | Cyriaksring 10a | 38118 Braunschweig
Tel. 0531-180508-0 | Fax 0531-180508-29 | http://www.linet-services.de
LINET in den sozialen Netzwerken:
www.twitter.com/linetservices | www.facebook.com/linetservices
Wissenswertes aus der IT-Welt: www.linet-services.de/blog/
Gesch?ftsf?hrung: Timo Springmann, Mirko Savic und Moritz Bunkus
HR B 9170 Amtsgericht Braunschweig
USt-IdNr. DE 259 526 516