-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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 is failing. See the error. #6356
Comments
@Skarakkattil Thanks for your feedback! We will investigate and update as appropriate. |
Let me now if you need any additional detail. I ran Procmon.exe and could not see any access issues. User running is an administrator on the machine. |
@Skarakkattil Could you post your question in https://social.msdn.microsoft.com/forums/azure/en-US/home?forum=windowsazuredata |
@Adam-Smith-MSFT has any resolution been found? I believe we are experiencing something similar. |
Hi @seguler ! It is just a folder.This is the script used: Set-Location "C:\Program Files (x86)\Microsoft SDKs\Azure\AzCopy" |
@EmmaZhu can you help ? |
@Skarakkattil @gbstan92 |
My issue was, if azcopy user did not have access on the source share, it was failing with the error I gave instead of giving file access error. I was using the latest copy of azcopy which I downloaded from the web.
Thanks..Sii
From: EmmaZhu-MSFT <notifications@github.com>
Sent: Thursday, April 12, 2018 8:49 PM
To: MicrosoftDocs/azure-docs <azure-docs@noreply.github.com>
Cc: Skarakkattil <sibi_karakkattil@hotmail.com>; Mention <mention@noreply.github.com>
Subject: Re: [MicrosoftDocs/azure-docs] Azcopy is failing. See the error. (#6356)
@Skarakkattil<https://github.com/Skarakkattil> @gbstan92<https://github.com/gbstan92> Could you share version of AzCopy you are using?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#6356 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AhKnVZylWb9QcH47A1PP6aXPbTvYmICXks5toAQkgaJpZM4S9Quf>.
|
@Skarakkattil We do have issue on reading file/directory without access that we're working on a fix. But the error you shared, seems it's caused by trying to read a corrupted journal file. AzCopy supports to resume last failed transfer, it keeps a journal file on the local disk. If last AzCopy process is killed or crashed, it may leave some corrupted journal file. It can report the error you meet when it tries to resume from the corrupted journal file. Thanks |
I think what you said is correct. I got a failure today due to corrupted journal file. The error I got is given below. Once I removed the journal file, it worked.
Unhandled Exception: System.Runtime.Serialization.SerializationException: End of Stream encountered before parsing was completed.
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream)
at Microsoft.WindowsAzure.Storage.DataMovement.StreamJournal.Initialize()
at Microsoft.WindowsAzure.Storage.DataMovement.TransferCheckpoint..ctor(Stream journalStream)
at Microsoft.WindowsAzure.Storage.DataMovement.TransferContext..ctor(Stream journalStream)
at Microsoft.WindowsAzure.Storage.AzCopy.DirectoryTransferLauncher..ctor(ILocation source, ILocation dest, CommandLineParameters parameters)
at Microsoft.WindowsAzure.Storage.AzCopy.TransferLauncherBuilder.BuildTransferLauncher()
at Microsoft.WindowsAzure.Storage.AzCopy.BlobFileTransfer.DoTransfer()
at Microsoft.WindowsAzure.Storage.AzCopy.AzCopy.ExecuteTransfer()
at Microsoft.WindowsAzure.Storage.AzCopy.AzCopy.Execute(String[] args)
at Microsoft.WindowsAzure.Storage.AzCopy.AzCopy.Main(String[] args)
From: EmmaZhu-MSFT <notifications@github.com>
Sent: Thursday, April 12, 2018 9:33 PM
To: MicrosoftDocs/azure-docs <azure-docs@noreply.github.com>
Cc: Skarakkattil <sibi_karakkattil@hotmail.com>; Mention <mention@noreply.github.com>
Subject: Re: [MicrosoftDocs/azure-docs] Azcopy is failing. See the error. (#6356)
@Skarakkattil<https://github.com/Skarakkattil> We do have issue on reading file/directory without access that we're working on a fix. But the error you shared, seems it's caused by trying to read a corrupted journal file.
AzCopy supports to resume last failed transfer, it keeps a journal file on the local disk. If last AzCopy process is killed or crashed, it may leave some corrupted journal file. It can report the error you meet when it tries to resume from the corrupted journal file.
Thanks
Emma
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#6356 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AhKnVYC8wEkaPJf168XcXA_xZGYhdVK_ks5toA5agaJpZM4S9Quf>.
|
Hi @Skarakkattil . The version is 7.0.25. After clearing the journal, we are now getting a different error: We use the same container for other log backups so the storage is definitely working fine. |
@gbstan92 The error message shows an error from network to me. Can you share the account name to me to take a look if it's OK? My email address is emmazhu@microsoft.com |
Hi @EmmaZhu Very sorry for the late reply. I've done some additional troubleshooting and found out that whenever I run the script the following System Error (Event 36871) gets generated: "A fatal error occured while creating a TLS client credential. The internal error state is 10013" This is a WS2016 box that has TLS 1.0 and 1.1 disabled. I understand that AzCopy might be using TLS 1.1. Any chance we can force it to use TLS 1.2? |
Can someone answer @gbstan92 query? "I understand that AzCopy might be using TLS 1.1. Any chance we can force it to use TLS 1.2?" |
AzCopy 7.0 is built against .NET Framework 4.5. You can set the TLS version it uses by a registry, Please refer to |
@EmmaZhu I was actually coming here to post that I had found the below thread. I appreciate the information. microsoft/azure-pipelines-tasks#10337 |
User is an administrator on the machine. But Azcopy with my personal id which is an admin on the machine works. I am trying it from cmd prompt
Unhandled Exception: System.Runtime.Serialization.SerializationException: End of Stream encountered before parsing was completed.
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream)
at Microsoft.WindowsAzure.Storage.DataMovement.StreamJournal.Initialize()
at Microsoft.WindowsAzure.Storage.DataMovement.TransferCheckpoint..ctor(Stream journalStream)
at Microsoft.WindowsAzure.Storage.DataMovement.TransferContext..ctor(Stream journalStream)
at Microsoft.WindowsAzure.Storage.AzCopy.DirectoryTransferLauncher..ctor(ILocation source, ILocation dest, CommandLineParameters parameters)
at Microsoft.WindowsAzure.Storage.AzCopy.TransferLauncherBuilder.BuildTransferLauncher()
at Microsoft.WindowsAzure.Storage.AzCopy.BlobFileTransfer.DoTransfer()
at Microsoft.WindowsAzure.Storage.AzCopy.AzCopy.ExecuteTransfer()
at Microsoft.WindowsAzure.Storage.AzCopy.AzCopy.Execute(String[] args)
at Microsoft.WindowsAzure.Storage.AzCopy.AzCopy.Main(String[] args)
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: