question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

az storage blob upload-batch terminates with error in 2.10 but worked in 2.08

See original GitHub issue

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az storage blob upload-batch

Errors:

[Errno 2] No such file or directory: 'batch-pool-startup-script'
Traceback (most recent call last):
python3.8/site-packages/knack/cli.py, ln 215, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 654, in execute
    raise ex
cli/core/commands/__init__.py, ln 718, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 709, in _run_job
    cmd_copy.exception_handler(ex)
...
command_modules/storage/operations/blob.py, ln 444, in upload_block_blob
    return client.create_blob_from_path(**create_blob_args)
storage/v2018_11_09/blob/blockblobservice.py, ln 453, in create_blob_from_path
    count = path.getsize(file_path)
../lib/python3.8/genericpath.py, ln 50, in getsize
    return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: 'batch-pool-startup-script'

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here…
  • az storage blob upload-batch -d {} -s {} --account-name {}

Expected Behavior

Environment Summary

macOS-10.15.6-x86_64-i386-64bit
Python 3.8.5
Installer: HOMEBREW

azure-cli 2.10.0

Extensions:
application-insights 0.1.1

Additional Context

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
yonzhancommented, Aug 5, 2020

@Juliehzl is looking into this and will update here later.

1reaction
m-jacobicommented, Aug 5, 2020

With the azure-cli 2.9.1 * version it still works. The Dockerfile mcr.microsoft.com/azure-cli:2.9.1 provides a remedy in the CI / CD context

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error from az storage blob upload-batch command in Azure ...
I mean without changing anything, the release task (Azure CLI) was working to upload the same files to az storage blob, but now...
Read more >
Azure blob storage upload fail - Microsoft Q&A
I have an issue uploading a large file to my azure storage blob thru azure storage explorer. The file is approx. 160GB.
Read more >
az cmd "account clear" fails after "az storage blob upload-batch"
You can try running the Azure CLI task with the Fail on Standard Error option unchecked. This could be the script is writing...
Read more >
Azure CLI logging errors from progress - Octopus Server
... the az cli command az storage blob upload-batch to upload a bunch ... that sort of worked, in that it failed after...
Read more >
How to host your static website in Azure Storage
Verify your Azure CLI works by running az command in your terminal. ... az storage blob upload-batch \ --account-name soheilstorage \ --source ....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found