New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AzCopy sync failes to write hash data when using a readonly VSS shadow copy as the source #2584
Comments
I'd recommend you use the |
(also, please re-open this issue if this doesn't entirely solve your issue" ^) |
I am trying this but it is failing with the following error (for every file):
The arguments I passed were the following:
To confirm, T:\AzCopyMetdata\ContainerA is an empty directory. Should AzCopy create all the directories and files in here automatically? |
Typically, the meta directory root should already be created. In hindsight, I think what I'll do is re-open this issue and file a quick PR to add some automatic directory creation. |
@adreed-msft thank you! While waiting for a fix for this I used robocopy to mirror the directory structure to the metdata folder so I could test. This did allow it to go further and it creates all the metadata files now. However I am still seeing the following error in the scanning log duplicated for every file:
I checked the code and it seems the |
I am using azcopy on two different volumes. Both use to work fine but now one of them is crashing: Capturing this error is dificult as it only shows up in console. No errors are logged to the log files.
This is just the first two stack traces. The full output is over 5mb. |
This issue should be resolved with our next release since the PR above has been merged. Closing this as a fix has been merged to main. |
Which version of the AzCopy was used?
10.23.0
Which platform are you using?
Windows
What command did you run?
sync #SourcePath# #BlobStoragePath# --recursive=true --exclude-pattern=*humbs.db --exclude-attributes=S;H --put-md5 --delete-destination=true --compare-hash=md5 --cap-mbps=900
What problem was encountered?
Seeing this in the output:
INFO: One or more hash storage operations (read/write) have failed. Check the scanning log for details.
Seeing this in the logs:
failed to write hash data for #RelativePath#/#Filename#: failed to open data stream: open \?\C:\Backup\SymbolicLink#RelativePath##Filename#:.azcopysyncmeta: The media is write protected.
How can we reproduce the problem in the simplest way?
cmd /c mklink /d $SymbolicLinkPath "$ShadowDevicePath"
Have you found a mitigation/solution?
No
The sync works but I am not clear if this will cause issues long term. It seems AzCopy saves the hash of every file as an Alternate Data Stream on the source files however this is now failing because the shadow copy is read only.
I ran the sync command directly on the source files before I started using VSS snapshots. Will this now cause problems because the read only snapshot copy has an out of date hash that can no longer be updated? I am seeing a lot of these messages:
File #FilePath# was skipped because the source has the same hash
The text was updated successfully, but these errors were encountered: