You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
'Operation not permitted' when accessing network shares mounted with drvfs from an IBM iSeries host #1952
When attempting to access a network share from an IBM iSeries running OS version V5R1 (if that matters), any command returns the error "Operation not permitted". Like so:
$ sudo mkdir /mnt/ibm
$ sudo mount -t drvfs '\\ibmserver\ifs' /mnt/ibm
$ ls /mnt/ibm
ls: reading directory '/mnt/ibm': Operation not permitted
$ sudo ls /mnt/ibm
ls: reading directory '/mnt/ibm': Operation not permitted
Also tried mapping the share to a Windows drive letter first, but the same result was encountered:
$ sudo mount -t drvfs Z: /mnt/ibm
$ ls /mnt/ibm
ls: reading directory '/mnt/ibm': Operation not permitted
$ sudo ls /mnt/ibm
ls: reading directory '/mnt/ibm': Operation not permitted
I have verified in Windows Credential Manager that all of the credentials are correct and, indeed, simply accessing the files via Windows Explorer like "normal" works just fine. It is also worth noting that accessing removable storage (USB thumb drive) and folders shared from other Windows machines appears to work fantastically.
Could you run enable tracing as per the instructions here under point 8, and send me the log files? Hopefully it'll provide a clue as to what's going wrong.
Deepu Thomas (@dethoma) When I spoke with our system manager, he believed it is providing both NFS and Samba. Unfortunately I don't know enough to be able to judge the usefulness or accuracy of that statement.
Sven Groot (@SvenGroot) Attached are the 4 log files generated. Thank you! (Nuts, I believe I attached incorrect logs the first time, I've edited this comment and attached what I hope are the correct logs now). drvfs_mount_logs.zip
Then I rebooted again and did the same thing except with a non-elevated command prompt. Zipped all of the files up here. Sure hoping I got it right this time :-P drvfs_mount_logs.zip
Just another quick update to note the problem still exists in build 16193 (so much for hoping for dumb luck :-) ). Deepu Thomas (@dethoma) How'd I do on the logs this go-around?
Thanks for sharing the logs, we are failing on the getdents system call(used with ls) with the file share and also failing on querying volume information on it. Since we only support SMB today it is highly likely there is some aspect of the server that is not compatible with our SMB expectations if it is indeed an SMB server.
From regular Windows cmd prompt how are you accessing this share today? That will reveal more clues.
From the regular cmd prompt, the follow commands have always worked successfully for me:
> net use y: \\qspokane\usr\local\zendsvr6\var\log
> y:
> dir
I'll see if I can figure out whether it's truly using SMB or not. The tools IBM gives us to configure these things aren't terribly verbose, so I'm kind of flailing blind.
Ok, this is my first shot at a Wireshark trace. Hopefully I've exported relevant data. This trace represents the initial mount after a fresh boot (which gave no errors on the screen), an attempt to list the contents of the mounted folder, and a subsequent umount: https://pastebin.com/vecKavEJ
Thank you. Let me know if I can provide anything else.
We believe we understand this issue. The problem is that the server does not support the file enumeration class we're using to list the directory. We've recently fixed this internally by allowing DrvFs to fall back to a different enumeration class if the preferred one isn't supported. This fix should be available in a future insider build.
Activity
mphaney commentedon Apr 19, 2017
Not sure if it's relevant, but thought I'd also include that our IBM server is a "System p" and not an "AIX" server.
dethoma commentedon Apr 19, 2017
Can you share what network file protocol the server is providing?
SvenGroot commentedon Apr 19, 2017
Hi Mark Haney (@mphaney)
Could you run enable tracing as per the instructions here under point 8, and send me the log files? Hopefully it'll provide a clue as to what's going wrong.
mphaney commentedon Apr 20, 2017
Deepu Thomas (@dethoma) When I spoke with our system manager, he believed it is providing both NFS and Samba. Unfortunately I don't know enough to be able to judge the usefulness or accuracy of that statement.
Sven Groot (@SvenGroot) Attached are the 4 log files generated. Thank you! (Nuts, I believe I attached incorrect logs the first time, I've edited this comment and attached what I hope are the correct logs now).
drvfs_mount_logs.zip
mphaney commentedon May 4, 2017
Rats. Appears to still be an issue in build 16188. Anything else I can try to provide? Sven Groot (@SvenGroot) Deepu Thomas (@dethoma)?
dethoma commentedon May 4, 2017
The logs are empty for me, can you start the logs before you do the first bash launch and then stop it after you close the bash instance?
mphaney commentedon May 10, 2017
Dang it. Ok, with a freshly rebooted system, I opened up an elevated command prompt, ran exactly these commands (all from within the same window):
Then I rebooted again and did the same thing except with a non-elevated command prompt. Zipped all of the files up here. Sure hoping I got it right this time :-P
drvfs_mount_logs.zip
mphaney commentedon May 12, 2017
Just another quick update to note the problem still exists in build 16193 (so much for hoping for dumb luck :-) ). Deepu Thomas (@dethoma) How'd I do on the logs this go-around?
dethoma commentedon May 12, 2017
Thanks for sharing the logs, we are failing on the getdents system call(used with ls) with the file share and also failing on querying volume information on it. Since we only support SMB today it is highly likely there is some aspect of the server that is not compatible with our SMB expectations if it is indeed an SMB server.
From regular Windows cmd prompt how are you accessing this share today? That will reveal more clues.
mphaney commentedon May 12, 2017
From the regular cmd prompt, the follow commands have always worked successfully for me:
I'll see if I can figure out whether it's truly using SMB or not. The tools IBM gives us to configure these things aren't terribly verbose, so I'm kind of flailing blind.
MrObvious commentedon May 16, 2017
You could start a packet trace when you run that command and see what happens after the mount command using Wireshark. Just a thought.
mphaney commentedon Jun 9, 2017
Ok, this is my first shot at a Wireshark trace. Hopefully I've exported relevant data. This trace represents the initial mount after a fresh boot (which gave no errors on the screen), an attempt to list the contents of the mounted folder, and a subsequent umount: https://pastebin.com/vecKavEJ
Thank you. Let me know if I can provide anything else.
MrObvious commentedon Jun 9, 2017
Everything is SMB1, so yeah. Would it work better if you used the net use from Windows first? You could add that to your bash shell.
SvenGroot commentedon Jun 9, 2017
We believe we understand this issue. The problem is that the server does not support the file enumeration class we're using to list the directory. We've recently fixed this internally by allowing DrvFs to fall back to a different enumeration class if the preferred one isn't supported. This fix should be available in a future insider build.
mphaney commentedon Jun 12, 2017
Excellent, thank you! I look forward to seeing that :-)
mphaney commentedon Jun 22, 2017
YES! This is now working as of build 16226. Thank you all for your hard work!