Storage Migration Service - Access Denied with SetFileAttributes

%3CLINGO-SUB%20id%3D%22lingo-sub-1068631%22%20slang%3D%22en-US%22%3EStorage%20Migration%20Service%20-%20Access%20Denied%20with%20SetFileAttributes%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1068631%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20using%20the%20storage%20migration%20service%20to%20move%20shares%20from%20a%202008%20R2%20server%20to%202019.%20It%20will%20copy%20almost%20all%20of%20my%20files%20but%20the%20ones%20that%20fail%20to%20transfer%20I%20get%20an%20error%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E12%2F15%2F2019-02%3A49%3A27.820%20%5BErro%5D%20Transfer%20error%20for%20%5C%5Coldserver.domain.local%5CF%24%5Cname-EngShares%5Cname-Engineering%5CAcad%5CXrefs%5CAddress_with_geo.dwg%3A%20(5)%20Access%20is%20denied.%0AStack%20Trace%3A%0A%20%20%20at%20Microsoft.StorageMigration.Proxy.Service.Transfer.FileDirUtils.SetFileAttributes(SafeFileHandle%20file%2C%20Nullable%601%20creationTime%2C%20Nullable%601%20lastAccessTime%2C%20Nullable%601%20lastWriteTime%2C%20Nullable%601%20changeTime%2C%20Nullable%601%20attributes)%0A%20%20%20at%20Microsoft.StorageMigration.Proxy.Service.Transfer.CopyEngineBase.MarkFileForModification()%0A%20%20%20at%20Microsoft.StorageMigration.Proxy.Service.Transfer.FileTransfer.Transfer()%0A%20%20%20at%20Microsoft.StorageMigration.Proxy.Service.Transfer.FileTransfer.TryTransfer()%20%20%20%20%5Bd%3A%5Cos%5Csrc%5Cbase%5Cdms%5Cproxy%5Ctransfer%5Ctransferproxy%5CFileTransfer.cs%3A%3ATryTransfer%3A%3A55%5D%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EThough%20this%20is%20similar%20to%20the%20error%20from%20the%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-server%2Fstorage%2Fstorage-migration-service%2Fknown-issues%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EKnown%20Issues%3C%2FA%3E%26nbsp%3Bbut%20references%20the%20error%3A%26nbsp%3B%3CSPAN%3EFileDirUtils.OpenFile.%20I%20checked%20to%20see%20if%20the%20referenced%20update%20was%20listed%20and%20that%20the%20account%20I%20was%20using%20was%20both%20a%20member%20of%20the%20administrators%20group%20and%20backup%20operators.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20my%20spot%20checking%20the%20files%20do%20appear%20to%20copy%20but%20obviously%20something%20is%20wrong.%26nbsp%3BComparing%20the%20files%20the%20permissions%20look%20the%20same%20and%20file%20size%20appears%20OK.%20I'm%2099%25%20confident%20the%20files%20were%20not%20in%20use%20as%20no%20one%20was%20working%20during%20my%20last%20attempt%20to%20transfer.%3C%2FP%3E%3CP%3EThe%20failure%20occurs%20in%20736%20of%2093200%20files.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1068631%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EStorage%20Migration%20Service%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Contributor

I'm using the storage migration service to move shares from a 2008 R2 server to 2019. It will copy almost all of my files but the ones that fail to transfer I get an error:

12/15/2019-02:49:27.820 [Erro] Transfer error for \\oldserver.domain.local\F$\name-EngShares\name-Engineering\Acad\Xrefs\Address_with_geo.dwg: (5) Access is denied.
Stack Trace:
   at Microsoft.StorageMigration.Proxy.Service.Transfer.FileDirUtils.SetFileAttributes(SafeFileHandle file, Nullable`1 creationTime, Nullable`1 lastAccessTime, Nullable`1 lastWriteTime, Nullable`1 changeTime, Nullable`1 attributes)
   at Microsoft.StorageMigration.Proxy.Service.Transfer.CopyEngineBase.MarkFileForModification()
   at Microsoft.StorageMigration.Proxy.Service.Transfer.FileTransfer.Transfer()
   at Microsoft.StorageMigration.Proxy.Service.Transfer.FileTransfer.TryTransfer()    [d:\os\src\base\dms\proxy\transfer\transferproxy\FileTransfer.cs::TryTransfer::55]

Though this is similar to the error from the Known Issues but references the error: FileDirUtils.OpenFile. I checked to see if the referenced update was listed and that the account I was using was both a member of the administrators group and backup operators. 

 

It my spot checking the files do appear to copy but obviously something is wrong. Comparing the files the permissions look the same and file size appears OK. I'm 99% confident the files were not in use as no one was working during my last attempt to transfer.

The failure occurs in 736 of 93200 files.

 

0 Replies