Certain paths on SMB share on 20285, 20282 return server cannot perform the requested operation

%3CLINGO-SUB%20id%3D%22lingo-sub-2085415%22%20slang%3D%22en-US%22%3ECertain%20paths%20on%20SMB%20share%20on%2020285%2C%2020282%20return%20server%20cannot%20perform%20the%20requested%20operation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2085415%22%20slang%3D%22en-US%22%3E%3CP%3EI%20upgraded%20a%20fully%20functional%202019%20backup%20file%20server%20a%20week%20ago%20to%2020282%2C%20and%20although%20everything%20seemed%20fine%2C%20a%20nightly%20backup%20script%20(using%20robocopy)%20started%20to%20fail%20reading%20on%20seemingly%20random%20paths.%26nbsp%3B%20After%20more%20investigation%2C%20I%20found%20that%20certain%20paths%20are%20now%20inaccessible%20via%20SMB%20and%20produce%20the%20following%20error%20message%20in%20File%20Explorer%20when%20you%20try%20access%20them%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%5C%5Cserver%5Cbackup%5Cpath%5Cto%5Cfolder%20is%20not%20accessible.%20You%20might%20not%20have%20permission%20to%20use%20this%20network%20resource.%20Contact%20the%20administrator%20of%20this%20server%20to%20find%20out%20if%20you%20have%20access%20permissions.%3C%2FP%3E%3CP%3EThe%20specified%20server%20cannot%20perform%20the%20requested%20operation.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20share%20goes%20to%20a%20volume%20that%20is%20two%20drives%20in%20a%20storage%20pool%2C%20ReFS%2C%20with%20de-duplication.%26nbsp%3B%20The%20folders%20and%20files%20are%20fully%20accessible%20locally%2C%20it%20is%20only%20over%20SMB%20that%20this%20error%20is%20returned.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFurther%20thoughts%3A%3C%2FP%3E%3CUL%3E%3CLI%3EThis%20doesn't%20appear%20to%20do%20with%20permissions%2C%20this%20was%20an%20upgrade%20(at%20first)%20and%20all%20permissions%20are%20inherited.%26nbsp%3B%20The%20share%20is%20for%20the%20entire%20disk%20and%20only%20certain%20paths%20at%20affected.%3C%2FLI%3E%3CLI%3EI%20clean%20installed%2020285%2C%20same%20problem.%3C%2FLI%3E%3CLI%3EI%20clean%20installed%202019%2C%20it%20will%20no%20longer%20mount%20the%20virtual%20disk%2C%20it%20claims%20it's%20RAW%2C%20upgrading%20again%20to%2020285%20fixed%20that.%26nbsp%3B%20(Why%3F)%3C%2FLI%3E%3CLI%3EI%20am%20able%20to%20%22fix%22%20individual%20folders%20having%20this%20problem%2C%20by%20moving%20the%20folder%20to%20boot%20drive%2C%20and%20then%20back%20to%20the%20data%20storage%20pool%20disk.%26nbsp%3B%20Then%20the%20SMB%20path%20works%20for%20that%20folder.%3C%2FLI%3E%3CLI%3ESo%20far%2C%20it%20seems%20to%20be%20only%20folders%20that%20are%20affected.%3C%2FLI%3E%3CLI%3ETrying%20from%20code%2C%20WinAPIs%20MoveFileEx%20or%20FindNextFile%20return%20error%2058.%3C%2FLI%3E%3CLI%3ETrying%20to%20access%20the%20share%20from%20the%20server%20also%20produces%20the%20error%2C%20as%20well%20as%20the%20two%20Windows%2010%20clients%20I%20tried.%3C%2FLI%3E%3CLI%3EI%20disabled%20SMB2%2F3%20and%20installed%20SMB1%20to%20test.%26nbsp%3B%20Same%20problem%20on%20SMB1.%3C%2FLI%3E%3CLI%3EThe%20problem%20does%20not%20appear%20if%20I%20RDP%20from%20the%20server%20to%20another%20machine%2C%20and%20access%20the%20files%20over%20the%20%5C%5Ctsclient%20share.%3C%2FLI%3E%3CLI%3EI%20setup%20an%20SSH%20server%20and%20I'm%20able%20to%20access%20the%20inaccessible%20folders%20over%20SSH%2FSCP%20without%20any%20issue.%3C%2FLI%3E%3CLI%3EThese%20are%20standard%20ascii%20paths%2C%20no%20non-English%20characters.%3C%2FLI%3E%3CLI%3ELength%20of%20the%20path%20doesn't%20appear%20to%20be%20an%20issue%2C%20as%20far%20longer%20paths%20work%20fine.%3C%2FLI%3E%3CLI%3EHowever%2C%20Wireshark%20shows%20a%20%22%5BMalformed%20Packet%3A%20SMB2%3A%20length%20of%20contained%20item%20exceeds%20length%20of%20containing%20item%5D%22%20returned%20as%20part%20of%20Explorer's%20file%20access.%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2085415%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ENetworking%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EStorage%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2088052%22%20slang%3D%22en-US%22%3ERe%3A%20Certain%20paths%20on%20SMB%20share%20on%2020285%2C%2020282%20return%20server%20cannot%20perform%20the%20requested%20operation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2088052%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F51822%22%20target%3D%22_blank%22%3E%40Jonathan%20Kay%3C%2FA%3E%26nbsp%3Bthanks%20for%20reporting%20this.%20Can%20you%20email%20me%20directly%20at%20%3CA%20href%3D%22mailto%3Anedpyle%40microsoft.com%2C%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Enedpyle%40microsoft.com%2C%3C%2FA%3E%26nbsp%3BI%20need%20to%20have%20you%20collect%20some%20data%20while%20reproducing%20this%20under%20one%20of%20our%20logging%20tools.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I upgraded a fully functional 2019 backup file server a week ago to 20282, and although everything seemed fine, a nightly backup script (using robocopy) started to fail reading on seemingly random paths.  After more investigation, I found that certain paths are now inaccessible via SMB and produce the following error message in File Explorer when you try access them:

 

\\server\backup\path\to\folder is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions.

The specified server cannot perform the requested operation.

 

The share goes to a volume that is two drives in a storage pool, ReFS, with de-duplication.  The folders and files are fully accessible locally, it is only over SMB that this error is returned.

 

Further thoughts:

  • This doesn't appear to do with permissions, this was an upgrade (at first) and all permissions are inherited.  The share is for the entire disk and only certain paths at affected.
  • I clean installed 20285, same problem.
  • I clean installed 2019, it will no longer mount the virtual disk, it claims it's RAW, upgrading again to 20285 fixed that.  (Why?)
  • I am able to "fix" individual folders having this problem, by moving the folder to boot drive, and then back to the data storage pool disk.  Then the SMB path works for that folder.
  • So far, it seems to be only folders that are affected.
  • Trying from code, WinAPIs MoveFileEx or FindNextFile return error 58.
  • Trying to access the share from the server also produces the error, as well as the two Windows 10 clients I tried.
  • I disabled SMB2/3 and installed SMB1 to test.  Same problem on SMB1.
  • The problem does not appear if I RDP from the server to another machine, and access the files over the \\tsclient share.
  • I setup an SSH server and I'm able to access the inaccessible folders over SSH/SCP without any issue.
  • These are standard ascii paths, no non-English characters.
  • Length of the path doesn't appear to be an issue, as far longer paths work fine.
  • However, Wireshark shows a "[Malformed Packet: SMB2: length of contained item exceeds length of containing item]" returned as part of Explorer's file access.

 

1 Reply

@Jonathan Kay thanks for reporting this. Can you email me directly at nedpyle@microsoft.com, I need to have you collect some data while reproducing this under one of our logging tools.