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

[Errno 13] Permission denied: '.' when call"az iot du update init v5" #28914

Open
SophiaZhang-eaton opened this issue May 8, 2024 · 3 comments
Labels
Auto-Assign Auto assign by bot bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Issues that are reported by GitHub users external to the Azure organization. IoT/CLI IoT Service Attention This issue is responsible by Azure service team.

Comments

@SophiaZhang-eaton
Copy link

Describe the bug

when send "az iot du update init v5" command, it will show permission denied

Related command

az iot du update init v5

Errors

[Errno 13] Permission denied: '.'

Issue script & Debug output

Command group 'iot du update init' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Skipping processing of 'company.', input format is key=value | key='value value'.
No value assigned to key 'manufacturer', input format is key=value | key='value value'.
Skipping processing of '-230223.signed', input format is key=value | key='value value'.
No value assigned to key 'path', input format is key=value | key='value value'.
Skipping processing of '-230223.signed', input format is key=value | key='value value'.
No value assigned to key 'path', input format is key=value | key='value value'.
The command failed with an unexpected error. Here is the traceback:
[Errno 13] Permission denied: '.'
Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 664, in execute
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 731, in _run_jobs_serially
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 701, in _run_job
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 334, in call
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
File "C:\Users.azure\cliextensions\azure-iot\azext_iot\deviceupdate\commands_update.py", line 387, in manifest_init_v5
assembled_file_metadata = DeviceUpdateDataManager.calculate_file_metadata(assembled_file["path"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users.azure\cliextensions\azure-iot\azext_iot\deviceupdate\providers\base.py", line 259, in calculate_file_metadata
with io.open(file_pure_path.as_posix(), "rb") as file_io:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '.'
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues

Expected behavior

should be create manifest file

Environment Summary

azure-cli 2.60.0

core 2.60.0
telemetry 1.1.0

Extensions:
azure-iot 0.23.1

Dependencies:
msal 1.28.0
azure-mgmt-resource 23.1.0b2

Additional context

No response

@SophiaZhang-eaton SophiaZhang-eaton added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label May 8, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. IoT Service Attention This issue is responsible by Azure service team. Auto-Assign Auto assign by bot IoT/CLI labels May 8, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented May 8, 2024

Thank you for opening this issue, we will look into it.

Copy link
Contributor

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/azure-iot-cli-triage.

@digimaun
Copy link
Member

Hi @SophiaZhang-eaton , how are you using the command? Only seeing the error here, not the form of input that caused it.

I am able to repro the issue using a directory for --file path= for example "--file path=." -- The command path is expecting a file path value, not a directory path.

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 bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Issues that are reported by GitHub users external to the Azure organization. IoT/CLI IoT Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

3 participants