[CloudShell] Error on every command run on Azure Cloud Shell: OSError: [Errno 30] Read-only file system
See original GitHub issueThis is autogenerated. Please review and update as needed.
Describe the bug
When I go to run any command on the system it errors out and prevents me from using the cloud shell interface.
Command Name Any command at all
Errors:
The command failed with an unexpected error. Here is the traceback:
[Errno 30] Read-only file system: '/home/**Redacted Username**/.azure/commands/2020-06-05.22-24-38.unknown_command.211.log'
Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 215, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 511, in execute
load_cmd_tbl_func=self.commands_loader.load_command_table, args=args)
File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 164, in raise_event
func(self, **kwargs)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/azlogging.py", line 86, in init_command_file_logging
self._init_command_logfile_handlers(cmd_logger, args) # pylint: disable=protected-access
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/azlogging.py", line 108, in _init_command_logfile_handlers
logfile_handler = logging.FileHandler(log_file_path)
File "/opt/az/lib/python3.6/logging/__init__.py", line 1032, in __init__
StreamHandler.__init__(self, self._open())
File "/opt/az/lib/python3.6/logging/__init__.py", line 1061, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
OSError: [Errno 30] Read-only file system: '/home/**Redacted Username**/.azure/commands/2020-06-05.22-24-38.unknown_command.211.log'
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- I don’t know how to reproduce the errors. I just get the error every time I put in a command.
Expected Behavior
I expected all the commands to not error out on run.
Environment Summary
Cloud Shell
Additional Context
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:32 (4 by maintainers)
Top Results From Across the Web
[CloudShell] Error on every command run on Azure Cloud Shell
[CloudShell] Error on every command run on Azure Cloud Shell: OSError: [Errno 30] Read-only file system. michelcedric Azure 23 décembre 2020 ...
Read more >Azure cloudshell - issues with commands - Microsoft Q&A
I am running a az cli command from Azure cloudshell (Powershell or Bash) from my personal Azure tenant and it's working perfectly.
Read more >#netazurerangers - Explore | Facebook
[CloudShell] Error on every command run on Azure Cloud Shell: OSError: [ ... command run on Azure Cloud Shell: OSError: [Errno 30] Read-only...
Read more >Michel Cédric (@MichelCdric) / Twitter
[CloudShell] Error on every command run on Azure Cloud Shell: OSError: [Errno 30] Read-only... Si vous rencontrez cette erreur, c'est peut-être que comme ......
Read more >Azure Cloud Shell 環境からの Ansible の使用ができなくなっ ...
Azure Cloud Shell のansible/Pythonバージョンは下記となっており、手順を ... _os.mkdir(file, 0o700) OSError: [Errno 30] Read-only file system: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, I can reproduce the problem and a fix/workaround: 1/ Delete the group “cloud-shell-storage-westeurope” in which the “Storage account” for the Cloud Shell has been created. 2/ Wait for the deletion. 3/ Go back to Cloud Shell and click “Create storage”. 4/ See the issue by typing (for instance):
5/ Restart Cloud Shell with the “power” button/icon. 6/ Check that the issue is fixed by typing (for instance):
Hope this help.