Open baosoul opened 1 month ago
Thank you for opening this issue, we will look into it.
Seems like a token issue, can you try to rerunning az login
. Another thing to try is to run without the extension by running az extension remove -n storage-preview
Seems like a token issue, can you try to rerunning
az login
. Another thing to try is to run without the extension by runningaz extension remove -n storage-preview
After the upload fails, run the command again to upload successfully. crontab is uploaded every hour az storage blob upload --file log-2024.07.22.04.00.gz --container-name logs/2024/07/22/04 --account-name logs --auth-mode login
I am aware that the token needs to be refreshed every hour so maybe multiple processes try to compete for the lock? How are you running the crontab? And if you run jobs back to back within an hour, does it fail with this error?
Describe the bug
An error occurred when uploading blob files
Related command
az storage blob upload --file log-2024.07.22.04.00.gz --container-name logs/2024/07/22/04 --account-name logs --auth-mode login
Errors
Issue script & Debug output
Expected behavior
An error occurred when uploading blob files
Environment Summary
azure-cli 2.62.0
core 2.62.0 telemetry 1.1.0
Extensions: storage-preview 1.0.0b2
Dependencies: msal 1.28.1 azure-mgmt-resource 23.1.1
Python location '/opt/az/bin/python3' Extensions directory '/root/.azure/cliextensions'
Python (Linux) 3.11.8 (main, Jul 4 2024, 02:27:42) [GCC 9.4.0]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
No response