Skip to content
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

Issue running az storage blob list on CentOS and AmazonLinux2 VMs #23809

Open
garrett-gkp opened this issue Sep 7, 2022 · 11 comments
Open

Issue running az storage blob list on CentOS and AmazonLinux2 VMs #23809

garrett-gkp opened this issue Sep 7, 2022 · 11 comments
Assignees
Labels
Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. feature-request Storage az storage
Milestone

Comments

@garrett-gkp
Copy link

This is autogenerated. Please review and update as needed.

Describe the bug

Hello, I am having issues connecting to my Azure storage blob but only from a few flavors of Linux - CentOS and Amazon Linux2. The issue popped up 2 weeks ago with no changes made on my side in the Azure portal or to the machines. I noticed the issue on an AWS instance but repro it in a CentOS VM on my local machine. Please let me know how I can address this issue, thank you.

Command Name
az storage blob list

Errors:

The command failed with an unexpected error. Here is the traceback:
'NoneType' object is not iterable
Traceback (most recent call last):
  File "/usr/lib64/az/lib/python3.6/site-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 561, in execute
    self.commands_loader.load_arguments(command)
  File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/__init__.py", line 516, in load_arguments
    loader.load_arguments(command)  # this adds entries to the argument registries
  File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/__init__.py", line 31, in load_arguments
    load_arguments(self, command)
  File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/_params.py", line 1713, in load_arguments
    help_str = 'Allowed values: {}. Can be combined'.format(get_permission_help_string(t_share_permissions))
  File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/_validators.py", line 862, in get_permission_help_string
    return ' '.join(['({}){}'.format(x[0], x[1:]) for x in allowed_values])
TypeError: 'NoneType' object is not iterable

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 list --account-name {} --container-name {} --output {} --auth-mode {}

Expected Behavior

Environment Summary

Linux-5.10.135-122.509.amzn2.x86_64-x86_64-with-glibc2.2.5, Amazon Linux 2
Python 3.7.10
Installer: RPM

azure-cli 2.38.0 *

Additional Context

@ghost ghost added customer-reported Issues that are reported by GitHub users external to the Azure organization. Storage az storage labels Sep 7, 2022
@ghost ghost added this to the Backlog milestone Sep 7, 2022
@ghost ghost assigned evelyn-ys Sep 7, 2022
@ghost ghost added the Auto-Assign Auto assign by bot label Sep 7, 2022
@yonzhan yonzhan added Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Sep 8, 2022
@yonzhan
Copy link
Collaborator

yonzhan commented Sep 8, 2022

@evelyn-ys for awareness

@evelyn-ys
Copy link
Member

The dependency azure-multiapi-storage package is not installed properly. So that we get None for enum definition from SDK.

Please make sure you have installed CLI successfully following https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=script

The Azure CLI 2.38.0 you used may not from official CLI. @jiasli for awareness

@yonzhan yonzhan added the CXP Attention This issue is handled by CXP team. label Sep 8, 2022
@ghost
Copy link

ghost commented Sep 8, 2022

Thank you for your feedback. This has been routed to the support team for assistance.

@garrett-gkp
Copy link
Author

Oh, I installed using yum and the instructions on that website. Is there a way for me to upgrade the azure-multiapi-storage package you mentioned?

Note that my Azure connection failed after a few months of no issues and no changes from my side, so I suspect something changed on the Azure side. Is there any sense of an ETA for a fix?

@garrett-gkp
Copy link
Author

Any ideas what might be going on here? @yonzhan @evelyn-ys @jiasli ?

@evelyn-ys
Copy link
Member

Do you mean that this issue still exist after installing Azure CLI following https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=script?

@garrett-gkp
Copy link
Author

Correct. I followed that page before filing this ticket.

@garrett-gkp
Copy link
Author

Oh, I see what you meant. I used the generic install script with Curl and now I am able to list the file blobs. Any thoughts on how I can tell what is different between the two installations?

@evelyn-ys
Copy link
Member

evelyn-ys commented Sep 14, 2022

Any thoughts on how I can tell what is different between the two installations?

cc our packaging expert @jiasli

@evelyn-ys evelyn-ys removed the CXP Attention This issue is handled by CXP team. label Sep 14, 2022
@yonzhan yonzhan added feature-request and removed question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Oct 3, 2022
@ferben
Copy link

ferben commented Oct 21, 2024

Hello,
I have almost the same error on macOS (both processors M1 or Intel):

az storage blob download ...
ERROR: The command failed with an unexpected error. Here is the traceback:
ERROR: 'NoneType' object is not iterable
Traceback (most recent call last):
  File "/opt/homebrew/Cellar/azure-cli/2.65.0_1/libexec/lib/python3.12/site-packages/knack/cli.py", line 233, in invoke
    cmd_result = self.invocation.execute(args)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/azure-cli/2.65.0_1/libexec/lib/python3.12/site-packages/azure/cli/core/commands/__init__.py", line 564, in execute
    self.commands_loader.load_arguments(command)
  File "/opt/homebrew/Cellar/azure-cli/2.65.0_1/libexec/lib/python3.12/site-packages/azure/cli/core/__init__.py", line 527, in load_arguments
    loader.load_arguments(command)  # this adds entries to the argument registries
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/azure-cli/2.65.0_1/libexec/lib/python3.12/site-packages/azure/cli/command_modules/storage/__init__.py", line 42, in load_arguments
    load_arguments(self, command)
  File "/opt/homebrew/Cellar/azure-cli/2.65.0_1/libexec/lib/python3.12/site-packages/azure/cli/command_modules/storage/_params.py", line 758, in load_arguments
    get_permission_help_string(t_account_permissions)),
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/azure-cli/2.65.0_1/libexec/lib/python3.12/site-packages/azure/cli/command_modules/storage/_validators.py", line 871, in get_permission_help_string
    return ' '.join(['({}){}'.format(x[0], x[1:]) for x in allowed_values])
                                                           ^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues

Azure-CLI version, fresh install using hombrew:

% az --version
azure-cli                         2.65.0
core                              2.65.0
telemetry                          1.1.0
Dependencies:
msal                              1.31.0
azure-mgmt-resource               23.1.1
Python location '/opt/homebrew/Cellar/azure-cli/2.65.0_1/libexec/bin/python'
Extensions directory '/Users/developer/.azure/cliextensions'
Python (Darwin) 3.12.7 (main, Oct  1 2024, 02:05:46) [Clang 15.0.0 (clang-1500.3.9.4)]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.

@calvinhzy
Copy link
Member

Hi @ferben please install setuptools, similar issue to #30127

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. feature-request Storage az storage
Projects
None yet
Development

No branches or pull requests

6 participants