Bug 1779239 - ad_open_rsrc: SMB_VFS_CREATE_FILE failed
Summary: ad_open_rsrc: SMB_VFS_CREATE_FILE failed
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: samba
Version: 33
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
Assignee: Guenther Deschner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-12-03 15:03 UTC by Harald Reindl
Modified: 2021-10-06 09:32 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-06 09:32:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Harald Reindl 2019-12-03 15:03:52 UTC Comment hidden (abuse)
Comment 1 Guenther Deschner 2019-12-03 15:26:24 UTC
Can you share the smb.conf share configuration as well, I see that fruit is used globally but checking on the other fruit options might help quite a bit here.

Comment 2 Harald Reindl 2019-12-03 15:43:21 UTC
which other fruit options and why should i set them in the share?


[www-servers]
 comment = Webserver
 path = /var/www
 valid users = user1, user2, user3
 force group = apache

---------------------------------------

all machines are identical configured and smb.conf is in sync here, the same happens with the glohbal settings above and a share definition like this *randomly*

[fileserver]
 comment = Fileserver
 path = /storage
 valid users = @smb-fileserver
 write list = @smb-fileserver

Comment 3 Harald Reindl 2019-12-09 02:43:07 UTC
no idea why the "needinfo" flag was not cleared

Comment 4 Harald Reindl 2020-02-04 11:14:07 UTC
vfs_fruit sucks the same way as apple devices

Feb  4 09:23:27 south smbd[1116]: [2020/02/04 09:23:27.432718,  0] ../../source3/smbd/open.c:3443(open_file_ntcreate)
Feb  4 09:23:27 south smbd[1116]:  open_file_ntcreate: Could not get share mode lock for CLIENTS/CLIENTS i-o/loncium.at/2020/01/01_naturradler_plakat/MAT/._Radler Euro Flasche_bearbeitet.png
Feb  4 09:23:27 south smbd[1116]: [2020/02/04 09:23:27.432798,  0] ../../source3/modules/vfs_fruit.c:1615(ad_open_rsrc)
Feb  4 09:23:27 south smbd[1116]:  ad_open_rsrc: SMB_VFS_CREATE_FILE failed
Feb  4 09:25:38 south smbd[1116]: [2020/02/04 09:25:38.115049,  0] ../../source3/modules/vfs_fruit.c:1700(ad_read_rsrc_adouble)
Feb  4 09:25:38 south smbd[1116]:  ad_read_rsrc_adouble: invalid AppleDouble resource .
Feb  4 09:25:38 south smbd[1116]: [2020/02/04 09:25:38.115820,  0] ../../source3/modules/vfs_fruit.c:1700(ad_read_rsrc_adouble)
Feb  4 09:25:38 south smbd[1116]:  ad_read_rsrc_adouble: invalid AppleDouble resource .
Feb  4 09:25:40 south smbd[1116]: [2020/02/04 09:25:40.613854,  0] ../../source3/modules/vfs_fruit.c:1700(ad_read_rsrc_adouble)
Feb  4 09:25:40 south smbd[1116]:  ad_read_rsrc_adouble: invalid AppleDouble resource .
Feb  4 09:25:40 south smbd[1116]: [2020/02/04 09:25:40.614596,  0] ../../source3/modules/vfs_fruit.c:1700(ad_read_rsrc_adouble)
Feb  4 09:25:40 south smbd[1116]:  ad_read_rsrc_adouble: invalid AppleDouble resource .
Feb  4 09:31:06 south smbd[1116]: [2020/02/04 09:31:06.921851,  0] ../../source3/modules/vfs_fruit.c:1700(ad_read_rsrc_adouble)
Feb  4 09:31:06 south smbd[1116]:  ad_read_rsrc_adouble: invalid AppleDouble resource .
Feb  4 09:31:06 south smbd[1116]: [2020/02/04 09:31:06.922449,  0] ../../source3/modules/vfs_fruit.c:1700(ad_read_rsrc_adouble)
Feb  4 09:31:06 south smbd[1116]:  ad_read_rsrc_adouble: invalid AppleDouble resource .
Feb  4 09:31:07 south smbd[1116]: [2020/02/04 09:31:07.503789,  0] ../../source3/modules/vfs_fruit.c:1700(ad_read_rsrc_adouble)
Feb  4 09:31:07 south smbd[1116]:  ad_read_rsrc_adouble: invalid AppleDouble resource .
Feb  4 09:31:07 south smbd[1116]: [2020/02/04 09:31:07.504095,  0] ../../source3/modules/vfs_fruit.c:1700(ad_read_rsrc_adouble)
Feb  4 09:31:07 south smbd[1116]:  ad_read_rsrc_adouble: invalid AppleDouble resource .
Feb  4 09:33:45 south smbd[1116]: [2020/02/04 09:33:45.790819,  0] ../../source3/modules/vfs_fruit.c:1700(ad_read_rsrc_adouble)
Feb  4 09:33:45 south smbd[1116]:  ad_read_rsrc_adouble: invalid AppleDouble resource .
Feb  4 09:33:45 south smbd[1116]: [2020/02/04 09:33:45.791366,  0] ../../source3/modules/vfs_fruit.c:1700(ad_read_rsrc_adouble)
Feb  4 09:33:45 south smbd[1116]:  ad_read_rsrc_adouble: invalid AppleDouble resource .
Feb  4 09:34:23 south smbd[1116]: [2020/02/04 09:34:23.172385,  0] ../../source3/modules/vfs_fruit.c:1700(ad_read_rsrc_adouble)
Feb  4 09:34:23 south smbd[1116]:  ad_read_rsrc_adouble: invalid AppleDouble resource .
Feb  4 09:34:23 south smbd[1116]: [2020/02/04 09:34:23.172916,  0] ../../source3/modules/vfs_fruit.c:1700(ad_read_rsrc_adouble)
Feb  4 09:34:23 south smbd[1116]:  ad_read_rsrc_adouble: invalid AppleDouble resource .
Feb  4 09:37:24 south smbd[1116]: [2020/02/04 09:37:24.425378,  0] ../../source3/modules/vfs_fruit.c:1700(ad_read_rsrc_adouble)
Feb  4 09:37:24 south smbd[1116]:  ad_read_rsrc_adouble: invalid AppleDouble resource .
Feb  4 09:37:24 south smbd[1116]: [2020/02/04 09:37:24.426141,  0] ../../source3/modules/vfs_fruit.c:1700(ad_read_rsrc_adouble)
Feb  4 09:37:24 south smbd[1116]:  ad_read_rsrc_adouble: invalid AppleDouble resource .
Feb  4 09:37:24 south smbd[1116]: [2020/02/04 09:37:24.940789,  0] ../../source3/modules/vfs_fruit.c:1700(ad_read_rsrc_adouble)
Feb  4 09:37:24 south smbd[1116]:  ad_read_rsrc_adouble: invalid AppleDouble resource .
Feb  4 09:37:24 south smbd[1116]: [2020/02/04 09:37:24.941394,  0] ../../source3/modules/vfs_fruit.c:1700(ad_read_rsrc_adouble)
Feb  4 09:37:24 south smbd[1116]:  ad_read_rsrc_adouble: invalid AppleDouble resource .
Feb  4 09:43:48 south smbd[1116]: [2020/02/04 09:43:48.929491,  0] ../../source3/modules/vfs_fruit.c:1700(ad_read_rsrc_adouble)
Feb  4 09:43:48 south smbd[1116]:  ad_read_rsrc_adouble: invalid AppleDouble resource .
Feb  4 09:43:48 south smbd[1116]: [2020/02/04 09:43:48.929819,  0] ../../source3/modules/vfs_fruit.c:1700(ad_read_rsrc_adouble)
Feb  4 09:43:48 south smbd[1116]:  ad_read_rsrc_adouble: invalid AppleDouble resource .
Feb  4 09:47:55 south smbd[1116]: [2020/02/04 09:47:55.179898,  0] ../../source3/smbd/open.c:3443(open_file_ntcreate)
Feb  4 09:47:55 south smbd[1116]:  open_file_ntcreate: Could not get share mode lock for CLIENTS/CLIENTS i-o/loncium.at/2020/01/01_landbier_plakat/._Radler Euro Flasche frei.psd
Feb  4 09:47:55 south smbd[1116]: [2020/02/04 09:47:55.179938,  0] ../../source3/modules/vfs_fruit.c:1615(ad_open_rsrc)
Feb  4 09:47:55 south smbd[1116]:  ad_open_rsrc: SMB_VFS_CREATE_FILE failed

Comment 5 Harald Reindl 2020-02-07 12:31:03 UTC
this becomes worser and worser, now with samba-4.11.6-0.fc31.x86_64 after upgrade to Fedora 31:


systemd-journald[408]: Suppressed 562 messages from smb.service

Feb  7 11:59:14 fileserver smbd[286417]: [2020/02/07 11:59:14.005787,  0] ../../source3/modules/vfs_fruit.c:1615(ad_open_rsrc)
Feb  7 11:59:14 fileserver smbd[286417]:  ad_open_rsrc: SMB_VFS_CREATE_FILE failed
Feb  7 11:59:14 fileserver smbd[286417]: [2020/02/07 11:59:14.005852,  0] ../../source3/modules/vfs_fruit.c:1615(ad_open_rsrc)
Feb  7 11:59:14 fileserver smbd[286417]:  ad_open_rsrc: SMB_VFS_CREATE_FILE failed
Feb  7 11:59:25 fileserver systemd-journald[408]: Suppressed 562 messages from smb.service
Feb  7 11:59:25 fileserver smbd[286417]: [2020/02/07 11:59:25.716207,  0] ../../source3/modules/vfs_fruit.c:1615(ad_open_rsrc)
Feb  7 11:59:25 fileserver smbd[286417]:  ad_open_rsrc: SMB_VFS_CREATE_FILE failed
Feb  7 11:59:25 fileserver smbd[286417]: [2020/02/07 11:59:25.716289,  0] ../../source3/modules/vfs_fruit.c:1615(ad_open_rsrc)
Feb  7 11:59:25 fileserver smbd[286417]:  ad_open_rsrc: SMB_VFS_CREATE_FILE failed
Feb  7 11:59:25 fileserver smbd[286417]: [2020/02/07 11:59:25.717394,  0] ../../source3/modules/vfs_fruit.c:1615(ad_open_rsrc)
Feb  7 11:59:25 fileserver smbd[286417]:  ad_open_rsrc: SMB_VFS_CREATE_FILE failed
Feb  7 11:59:25 fileserver smbd[286417]: [2020/02/07 11:59:25.717887,  0] ../../source3/modules/vfs_fruit.c:1615(ad_open_rsrc)
Feb  7 11:59:25 fileserver smbd[286417]:  ad_open_rsrc: SMB_VFS_CREATE_FILE failed
Feb  7 11:59:25 fileserver smbd[286417]: [2020/02/07 11:59:25.855699,  0] ../../source3/modules/vfs_fruit.c:1615(ad_open_rsrc)
Feb  7 11:59:25 fileserver smbd[286417]:  ad_open_rsrc: SMB_VFS_CREATE_FILE failed
Feb  7 11:59:26 fileserver smbd[286417]: [2020/02/07 11:59:26.184808,  0] ../../source3/modules/vfs_fruit.c:1615(ad_open_rsrc)
Feb  7 11:59:26 fileserver smbd[286417]:  ad_open_rsrc: SMB_VFS_CREATE_FILE failed
Feb  7 11:59:26 fileserver smbd[286417]: [2020/02/07 11:59:26.188253,  0] ../../source3/modules/vfs_fruit.c:1615(ad_open_rsrc)
Feb  7 11:59:26 fileserver smbd[286417]:  ad_open_rsrc: SMB_VFS_CREATE_FILE failed
Feb  7 11:59:26 fileserver smbd[286417]: [2020/02/07 11:59:26.191863,  0] ../../source3/modules/vfs_fruit.c:1615(ad_open_rsrc)
Feb  7 11:59:26 fileserver smbd[286417]:  ad_open_rsrc: SMB_VFS_CREATE_FILE failed

Comment 6 Ben Cotton 2020-11-03 16:47:58 UTC
This message is a reminder that Fedora 31 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 31 on 2020-11-24.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '31'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 31 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 7 Guenther Deschner 2021-07-14 09:45:35 UTC
Harald, is this still an issue with Fedora 34? There have been a variety of fixes for fruit that have made it into the Fedora Samba version.

Comment 8 Harald Reindl 2021-07-20 09:13:42 UTC
[root@fileserver:~]$ cat samba.log | grep SMB_VFS_CREATE_FILE
  ad_open_rsrc: SMB_VFS_CREATE_FILE failed
  ad_open_rsrc: SMB_VFS_CREATE_FILE failed
  ad_open_rsrc: SMB_VFS_CREATE_FILE failed
  ad_open_rsrc: SMB_VFS_CREATE_FILE failed
  ad_open_rsrc: SMB_VFS_CREATE_FILE failed
  ad_open_rsrc: SMB_VFS_CREATE_FILE failed
  ad_open_rsrc: SMB_VFS_CREATE_FILE failed
  ad_open_rsrc: SMB_VFS_CREATE_FILE failed
  ad_open_rsrc: SMB_VFS_CREATE_FILE failed
  ad_open_rsrc: SMB_VFS_CREATE_FILE failed
  ad_open_rsrc: SMB_VFS_CREATE_FILE failed

Comment 9 Guenther Deschner 2021-10-06 09:12:11 UTC
What I can tell is that this function has been completely rewritten in Samba 4.15 (available with Fedora 35), not sure how difficult a backport might be and if it is actually addressing the logging noise as expected.


Note You need to log in before you can comment on or make changes to this bug.