『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 1058|回复: 2

[技术探讨] 请教一个问题,无法进行备份

[复制链接]

1

主题

2

帖子

40

积分

新手上路

Rank: 1

积分
40
金钱
38
HASS币
0
发表于 2023-7-13 22:16:12 | 显示全部楼层 |阅读模式
群晖的套件版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权限但仍然报相同的错误无法执行备份
回复

使用道具 举报

2

主题

71

帖子

519

积分

高级会员

Rank: 4

积分
519
金钱
448
HASS币
0
发表于 2023-7-14 02:37:54 来自手机 | 显示全部楼层
给777权限
回复

使用道具 举报

1

主题

2

帖子

40

积分

新手上路

Rank: 1

积分
40
金钱
38
HASS币
0
 楼主| 发表于 2023-7-14 13:51:10 | 显示全部楼层
试过了,777也不行
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-27 07:29 , Processed in 0.053509 second(s), 24 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表