Hello all, I’m hoping someone can point me in the right direction. When I try to create back-ups manually from the Settings -> System -> Backups
menu I’m getting an Unknown Error
.
When I look in the log I see:
2023-04-16 09:47:07.283 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [546959012912] Error handling message: Unknown error (unknown_error) User from 192.168.1.233 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 26, in _handle_async_response
await func(hass, connection, msg)
File "/usr/src/homeassistant/homeassistant/components/backup/websocket.py", line 70, in handle_create
backup = await manager.generate_backup()
File "/usr/src/homeassistant/homeassistant/components/backup/manager.py", line 190, in generate_backup
size_in_bytes = await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/backup/manager.py", line 241, in _mkdir_and_generate_backup_contents
atomic_contents_add(
File "/usr/local/lib/python3.10/site-packages/securetar/__init__.py", line 179, in atomic_contents_add
tar_file.add(directory_item.as_posix(), arcname=arcpath, recursive=False)
File "/usr/local/lib/python3.10/tarfile.py", line 2002, in add
self.addfile(tarinfo, f)
File "/usr/local/lib/python3.10/tarfile.py", line 2030, in addfile
copyfileobj(fileobj, self.fileobj, tarinfo.size, bufsize=bufsize)
File "/usr/local/lib/python3.10/tarfile.py", line 256, in copyfileobj
raise exception("unexpected end of data")
OSError: unexpected end of data
There is a .tar
getting created, but it’s only 10240 bytes which I believe is the minimum size for a tar. Also when I try to de-compress it, there’s nothing there.
~/web_services/home_assistant/home_assistant_config/backups > ls -l 23e07b68.tar
-rw-r--r-- 1 root root 10240 Apr 16 09:47 23e07b68.tar
A little bit about my system:
- Running in a docker-container on a Raspberry Pi 3
- Running Home Assistant 2023.4.1 w/ Frontend 20230406.1 - latest
- Otherwise, home assistant is functioning totally normally and working
I’m not totally sure how to troubleshoot this or where to go so any advice is much appreciated. Thanks!