-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Description
The path is valid, it seems the arguments are not read...
Command Name
az storage blob sync
Errors:
The command failed with an unexpected error. Here is the traceback:
stat: path should be string, bytes, os.PathLike or integer, not NoneType
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/knack/cli.py", line 206, in invoke
cmd_result = self.invocation.execute(args)
File "/usr/local/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 560, in execute
raise ex
File "/usr/local/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 618, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/usr/local/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 609, in _run_job
cmd_copy.exception_handler(ex)
File "/usr/local/lib/python3.6/site-packages/azure/cli/command_modules/storage/__init__.py", line 240, in new_handler
handler(ex)
File "/usr/local/lib/python3.6/site-packages/azure/cli/command_modules/storage/__init__.py", line 183, in handler
raise ex
File "/usr/local/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 588, in _run_job
result = cmd_copy(params)
File "/usr/local/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 297, in __call__
return self.handler(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/azure/cli/core/__init__.py", line 461, in default_command_handler
return op(**command_args)
File "/usr/local/lib/python3.6/site-packages/azure/cli/command_modules/storage/operations/azcopy.py", line 36, in storage_blob_sync
azcopy = _azcopy_blob_client(cmd, client)
File "/usr/local/lib/python3.6/site-packages/azure/cli/command_modules/storage/operations/azcopy.py", line 54, in _azcopy_blob_client
return AzCopy(creds=blob_client_auth_for_azcopy(cmd, client))
File "/usr/local/lib/python3.6/site-packages/azure/cli/command_modules/storage/azcopy/util.py", line 34, in __init__
if not os.path.isfile(install_location):
File "/usr/local/lib/python3.6/genericpath.py", line 30, in isfile
st = os.stat(path)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
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 sync -c {} --account-name {} -s {} -d {}
Expected Behavior
Environment Summary
FreeBSD-13.0-CURRENT-amd64-64bit-ELF
Python 3.6.8
Shell: bash
azure-cli 2.0.66
Extensions:
interactive 0.4.1
Additional Context
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Storageaz storageaz storage