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
Running into this issue however trying just azcopy to a disk in a resource group using the following script :
Logs :
Start
2024/11/27 21:51:42 Number of CPUs: 16
2024/11/27 21:51:42 Max file buffer RAM 8.000 GB
2024/11/27 21:51:42 Max concurrent network operations: 256 (Based on number of CPUs. Set AZCOPY_CONCURRENCY_VALUE environment variable to override)
2024/11/27 21:51:42 Check CPU usage when dynamically tuning concurrency: true (Based on hard-coded default. Set AZCOPY_TUNE_TO_CPU environment variable to true or false override)
2024/11/27 21:51:42 Max concurrent transfer initiation routines: 64 (Based on hard-coded default. Set AZCOPY_CONCURRENT_FILES environment variable to override)
2024/11/27 21:51:42 Max enumeration routines: 16 (Based on hard-coded default. Set AZCOPY_CONCURRENT_SCAN environment variable to override)
2024/11/27 21:51:42 Parallelize getting file properties (file.Stat): false (Based on AZCOPY_PARALLEL_STAT_FILES environment variable)
2024/11/27 21:51:42 Max open files when downloading: 523618 (auto-computed)
I also see TLS Handshake timeouts with the following go stacktrace.
Full scripts used (has been confirmed to work in the past, upload a vhd image to a disk on Azure) :
#!/usr/bin/env bash####################################################
AZ LOGIN CHECK
####################################################
Making sure that one is logged in (to avoid
surprises down the line).
if [ $(az account list | jq -r 'length')-eq 0 ]
thenechoecho''echo'* Please log in to Azure by typing "az login", and 'echo' repeat the "./upload-image.sh" command. *'echo''exit 1
fi####################################################
HELPERS
####################################################show_id() {
az $1 show
--resource-group "${resource_group}"
--name "${img_name}"
--query "[id]"
--output tsv
}
usage() {
echo''echo'USAGE: (Every switch requires an argument)'echo''echo'-g --resource-group REQUIRED Created if does not exist. Will'echo' house a new disk and the created'echo' image.'echo''echo'-n --image-name REQUIRED The name of the image created'echo' (and also of the new disk).'echo''echo'-l --location Values from az account list-locations.'echo' Default value: "westus2".'
}
####################################################
SWITCHES
####################################################
https://unix.stackexchange.com/a/204927/85131
while [ $#-gt 0 ];docase"$1"in
-l|--location)
location="$2"
;;
-g|--resource-group)
resource_group="$2"
;;
-n|--image-name)
img_name="$2"
;;
-h|--help)
usage
exit 1
;;
)
printf"\n"printf" Error: Invalid argument \n"printf"*\n"
usage
exit 1
esacshiftshiftdoneif [ -z"${img_name}" ] || [ -z"${resource_group}" ]
thenprintf"\n"printf" Error: Missing required argument \n"printf"\n"
usage
exit 1
fi####################################################
DEFAULTS
####################################################
location_d="${location:-"uksouth"}"####################################################
PUT IMAGE INTO AZURE CLOUD
####################################################
https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
set -euo pipefail
set -x
img_file="$(readlink -f ./result/disk.vhd)"
Make resource group exists
if! az group show --resource-group "${resource_group}"&>/dev/null
then
az group create
--name "${resource_group}"
--location "${location_d}"fi
note: the disk access token song/dance is tedious
but allows us to upload direct to a disk image
thereby avoid storage accounts (and naming them) entirely!if! az disk show -g "${resource_group}" -n "${img_name}"&>/dev/null;then
bytes="$(stat -c %s ${img_file})"
size="30"
az disk create
--resource-group "${resource_group}"
--name "${img_name}"
--hyper-v-generation V2
--upload-type Upload --upload-size-bytes "${bytes}"
timeout=$((60*60))# disk access token timeout
sasurl="$(az disk grant-access --access-level Write --resource-group "${resource_group}"--name "${img_name}"--duration-in-seconds ${timeout}| jq -r '.accessSas')"
azcopy copy "${img_file}""${sasurl}"
--blob-type PageBlob
az disk revoke-access
--resource-group "${resource_group}"
--name "${img_name}"fiif! az image show -g "${resource_group}" -n "${img_name}"&>/dev/null;then
diskid="$(az disk show -g "${resource_group}" -n "${img_name}" -o json | jq -r .id)"
az image create
--resource-group "${resource_group}"
--name "${img_name}"
--source "${diskid}"
--hyper-v-generation V2
--os-type "linux">/dev/null
fi
imageid="$(az image show -g "${resource_group}" -n "${img_name}" -o json | jq -r .id)"echo"image creation completed:"echo"image_id: ${imageid}"
The operation has failed, I've tried this about 3 times already.
Logs failure :
Diagnostic stats:
IOPS: 1
End-to-end ms per request: 115727
Network Errors: 3.81%
Server Busy: 0.00%
Job REDACTED summary
Elapsed Time (Minutes): 51.5539
Number of File Transfers: 1
Number of Folder Property Transfers: 0
Number of Symlink Transfers: 0
Total Number of Transfers: 1
Number of File Transfers Completed: 0
Number of Folder Transfers Completed: 0
Number of File Transfers Failed: 1
Number of Folder Transfers Failed: 0
Number of File Transfers Skipped: 0
Number of Folder Transfers Skipped: 0
Total Number of Bytes Transferred: 0
Final Job Status: Failed
2024/11/27 21:33:07 Closing Log
The text was updated successfully, but these errors were encountered:
AkechiShiro
changed the title
azcopy 10.27.0 throws a lot of 500 operation timed out errors when uploading to a disk a vhd file of 8GB
azcopy 10.27.0, 4000 PUT request return 500 operation timed out errors in an hour when uploading to a disk a vhd file of 8GB
Nov 27, 2024
Hi @AkechiShiro. Thanks for reaching out. The 500 OperationTimedOut is a server-side error. Can you please create a support ticket for this where the backend team can help investigate the issue.
Running into this issue however trying just
azcopy
to a disk in a resource group using the following script :Logs :
I also see TLS Handshake timeouts with the following go stacktrace.
I believe I'm stuck here :
Full scripts used (has been confirmed to work in the past, upload a vhd image to a disk on Azure) :
The operation has failed, I've tried this about 3 times already.
Logs failure :
The text was updated successfully, but these errors were encountered: