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.

[CloudShell] Error on every command run on Azure Cloud Shell: OSError: [Errno 30] Read-only file system

See original GitHub issue

This 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:open
  • Created 3 years ago
  • Reactions:1
  • Comments:32 (4 by maintainers)

github_iconTop GitHub Comments

14reactions
patricekrakowcommented, Nov 5, 2020

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):

$ echo "hello world" > ~/test.txt
bash: /home/benoit/test.txt: Read-only file system

5/ Restart Cloud Shell with the “power” button/icon. 6/ Check that the issue is fixed by typing (for instance):

$ echo "hello world" > ~/test.txt

Hope this help.

4reactions
dempsey93commented, Dec 25, 2020

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):

$ echo "hello world" > ~/test.txt
bash: /home/benoit/test.txt: Read-only file system

5/ Restart Cloud Shell with the “power” button/icon. 6/ Check that the issue is fixed by typing (for instance):

$ echo "hello world" > ~/test.txt

Hope this help.

Read more comments on GitHub >

github_iconTop 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 >

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