sabeechen / hassio-google-drive-backup

Automatically create and sync Home Assistant backups into Google Drive
MIT License
3.19k stars 197 forks source link

Fritzbox NAS + Google Drive #993

Closed Isengo1989 closed 7 months ago

Isengo1989 commented 9 months ago

In seperate both work, but combined my backup always fails. Not sure what the issue is, NAS seems like a pretty default setting in HASS storage.

  File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 280, in core_proxy
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/supervisor/supervisor/api/utils.py", line 63, in wrap_api
    answer = await method(api, *args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/supervisor/supervisor/api/backups.py", line 139, in list
    data_backups = self._list_backups()
                   ^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/supervisor/supervisor/api/backups.py", line 123, in _list_backups
    ATTR_SIZE: backup.size,
               ^^^^^^^^^^^
  File "/usr/src/supervisor/supervisor/backups/backup.py", line 187, in size
    if not self.tarfile.is_file():
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/pathlib.py", line 892, in is_file
    return S_ISREG(self.stat().st_mode)
                   ^^^^^^^^^^^
  File "/usr/local/lib/python3.12/pathlib.py", line 840, in stat
    return os.stat(self, follow_symlinks=follow_symlinks)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 112] Host is down: '/data/mounts/Fritzbox/8c25c897.tar'
24-02-15 08:52:40 ERROR (MainThread) [supervisor.backups.manager] Could not list backups from /data/mounts/Fritzbox: [Errno 112] Host is down: '/data/mounts/Fritzbox'
24-02-15 08:52:40 INFO (MainThread) [supervisor.backups.manager] Found 1 backup files
24-02-15 08:52:50 ERROR (MainThread) [supervisor.backups.manager] Could not list backups from /data/mounts/Fritzbox: [Errno 112] Host is down: '/data/mounts/Fritzbox'
sabeechen commented 7 months ago

I can't really do anything about NAS problems, you'll need to either sort out why HA can't use your NAS or just use local disk.