|
群晖的套件版HA,bakcup时候出现如下错误。
Traceback (most recent call last): File "/var/packages/HomeAssistant/target/lib/python3.11/site-packages/homeassistant/components/websocket_api/decorators.py", line 26, in _handle_async_response await func(hass, connection, msg) File "/var/packages/HomeAssistant/target/lib/python3.11/site-packages/homeassistant/components/backup/websocket.py", line 70, in handle_create backup = await manager.generate_backup() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/packages/HomeAssistant/target/lib/python3.11/site-packages/homeassistant/components/backup/manager.py", line 192, in generate_backup size_in_bytes = await self.hass.async_add_executor_job( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/packages/python311/target/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/packages/HomeAssistant/target/lib/python3.11/site-packages/homeassistant/components/backup/manager.py", line 244, in _mkdir_and_generate_backup_contents atomic_contents_add( File "/var/packages/HomeAssistant/target/lib/python3.11/site-packages/securetar/__init__.py", line 188, in atomic_contents_add atomic_contents_add(tar_file, directory_item, excludes, arcpath) File "/var/packages/HomeAssistant/target/lib/python3.11/site-packages/securetar/__init__.py", line 188, in atomic_contents_add atomic_contents_add(tar_file, directory_item, excludes, arcpath) File "/var/packages/HomeAssistant/target/lib/python3.11/site-packages/securetar/__init__.py", line 188, in atomic_contents_add atomic_contents_add(tar_file, directory_item, excludes, arcpath) [Previous line repeated 1 more time] File "/var/packages/HomeAssistant/target/lib/python3.11/site-packages/securetar/__init__.py", line 182, in atomic_contents_add for directory_item in origin_path.iterdir(): File "/var/packages/python311/target/lib/python3.11/pathlib.py", line 931, in iterdir for name in os.listdir(self): ^^^^^^^^^^^^^^^^PermissionError: [Errno 13] Permission denied: '/var/packages/HomeAssistant/home/.homeassistant/custom_components/hacs/repositories/__pycache__'
已经确认/var/packages/HomeAssistant/home/.homeassistant/custom_components/hacs/repositories/__pycache__ 目录的own和上级一致, 也给了755权限但仍然报相同的错误无法执行备份
|
|