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

Remove cloud folder #57

Closed
pvizeli opened this issue May 15, 2019 · 0 comments · Fixed by #60
Closed

Remove cloud folder #57

pvizeli opened this issue May 15, 2019 · 0 comments · Fixed by #60

Comments

@pvizeli
Copy link
Member

pvizeli commented May 15, 2019

Happens if someone removes the cloud folder on runtime. Should be not a real user case but should also not throw an error

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/cloud/http_api.py", line 117, in error_handler
    result = await handler(view, request, *args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/http/data_validator.py", line 46, in wrapper
    result = await method(view, request, *args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/cloud/http_api.py", line 197, in post
    data['password'])
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.7/site-packages/hass_nabucasa/auth.py", line 138, in login
    self.cloud.write_user_info()
  File "/usr/local/lib/python3.7/site-packages/hass_nabucasa/__init__.py", line 162, in write_user_info
    indent=4,
  File "/usr/local/lib/python3.7/pathlib.py", line 1218, in write_text
    with self.open(mode='w', encoding=encoding, errors=errors) as f:
  File "/usr/local/lib/python3.7/pathlib.py", line 1186, in open
    opener=self._opener)
  File "/usr/local/lib/python3.7/pathlib.py", line 1039, in _opener
    return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/config/.cloud/production_auth.json'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant