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

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

/addons目录无法访问

[复制链接]

57

主题

403

帖子

3041

积分

论坛元老

Rank: 8Rank: 8

积分
3041
金钱
2638
HASS币
0
发表于 2018-11-6 14:15:51 | 显示全部楼层 |阅读模式
本帖最后由 李丑男 于 2018-11-7 13:41 编辑

前面碰到一次系统无法启动的问题,后来查看是因为8g的卡满了,无法写入。把内存卡插到电脑上查看,发现home-assistant_v2.db文件有2G多,删掉之后就可以正常启动了。
但是还发现有一个文件占了有2G多,好像是在/addons目录下面。
但是现在ssh到HA上面,查看/addons目录是空的。然后也找不到大文件到底在哪里。有谁知道呢。
core-ssh:/addons# df -h
Filesystem                Size      Used Available Use% Mounted on
none                      6.5G      4.8G      1.4G  78% /
tmpfs                   486.1M         0    486.1M   0% /dev
tmpfs                   486.1M         0    486.1M   0% /sys/fs/cgroup
/dev/mmcblk0p2          294.1M    225.8M     48.7M  82% /dev/init
/dev/mmcblk0p6            6.5G      4.8G      1.4G  78% /config
/dev/mmcblk0p6            6.5G      4.8G      1.4G  78% /ssl
/dev/mmcblk0p6            6.5G      4.8G      1.4G  78% /addons
/dev/mmcblk0p6            6.5G      4.8G      1.4G  78% /backup
/dev/mmcblk0p6            6.5G      4.8G      1.4G  78% /share
/dev/mmcblk0p6            6.5G      4.8G      1.4G  78% /data
/dev/mmcblk0p6            6.5G      4.8G      1.4G  78% /etc/resolv.conf
/dev/mmcblk0p6            6.5G      4.8G      1.4G  78% /etc/hostname
/dev/mmcblk0p6            6.5G      4.8G      1.4G  78% /etc/hosts
shm                      64.0M         0     64.0M   0% /dev/shm
tmpfs                   486.1M         0    486.1M   0% /proc/timer_list
tmpfs                   486.1M         0    486.1M   0% /proc/timer_stats
tmpfs                   486.1M         0    486.1M   0% /proc/sched_debug
tmpfs                   486.1M         0    486.1M   0% /sys/firmware
2018-11-06 13:14:52 WARNING (Recorder) [homeassistant.components.recorder.migration] Database requires upgrade. Schema version: 5
2018-11-06 13:14:52 INFO (Recorder) [homeassistant.components.recorder.migration] Upgrading recorder db schema to version 6
2018-11-06 13:14:52 INFO (Recorder) [homeassistant.components.recorder.migration] Adding columns context_id, context_user_id to table events. Note: this can take several minutes on large databases and slow computers. Please be patient!
2018-11-06 13:14:58 WARNING (MainThread) [homeassistant.setup] Setup of recorder is taking over 10 seconds.
2018-11-06 14:13:53 INFO (Recorder) [homeassistant.components.recorder.migration] Unable to use quick column add. Adding 1 by 1.
2018-11-06 14:13:53 ERROR (Recorder) [homeassistant.components.recorder.util] Error executing query: (_mysql_exceptions.OperationalError) (2002, "Can't connect to MySQL server on 'core-mariadb' (115)") (Background on this error at: [url=http://sqlalche.me/e/e3q8]http://sqlalche.me/e/e3q8[/url])
2018-11-06 14:13:53 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: (_mysql_exceptions.OperationalError) (2013, 'Lost connection to MySQL server during query') (Background on this error at: [url=http://sqlalche.me/e/e3q8]http://sqlalche.me/e/e3q8[/url]) (retrying in 3 seconds)
2018-11-06 14:13:57 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: (_mysql_exceptions.OperationalError) (2002, "Can't connect to MySQL server on 'core-mariadb' (115)") (Background on this error at: [url=http://sqlalche.me/e/e3q8]http://sqlalche.me/e/e3q8[/url]) (retrying in 3 seconds)
2018-11-06 14:14:00 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: (_mysql_exceptions.OperationalError) (2002, "Can't connect to MySQL server on 'core-mariadb' (115)") (Background on this error at: [url=http://sqlalche.me/e/e3q8]http://sqlalche.me/e/e3q8[/url]) (retrying in 3 seconds)
2018-11-06 14:14:04 WARNING (Recorder) [homeassistant.components.recorder.migration] Database requires upgrade. Schema version: 5
2018-11-06 14:14:04 INFO (Recorder) [homeassistant.components.recorder.migration] Upgrading recorder db schema to version 6
2018-11-06 14:14:04 INFO (Recorder) [homeassistant.components.recorder.migration] Adding columns context_id, context_user_id to table events. Note: this can take several minutes on large databases and slow computers. Please be patient!


解决:使用数据库客户端,连接到树莓派上去,把homeassistant这个库完全删掉,马上就正常了,释放了3G的空间出来。
回复

使用道具 举报

40

主题

3056

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11149
金钱
8042
HASS币
182
发表于 2018-11-6 14:27:31 | 显示全部楼层
addons里面有个data目录是存容器的持久化数据的,这个要看你装了什么addons ,如果是装了mariadb 他也一样会写入到这个文件夹中,导致文件越来越大。这个你需要看看你装了什么addons来判定了
Nero
回复

使用道具 举报

57

主题

403

帖子

3041

积分

论坛元老

Rank: 8Rank: 8

积分
3041
金钱
2638
HASS币
0
 楼主| 发表于 2018-11-6 15:06:54 | 显示全部楼层
本帖最后由 李丑男 于 2018-11-6 15:09 编辑
neroxps 发表于 2018-11-6 14:27
addons里面有个data目录是存容器的持久化数据的,这个要看你装了什么addons ,如果是装了mariadb 他也一样 ...

我确实有装了mariadb ,怎么进去这个目录呢?我知道把卡挂载到其他linux下面是可以看到,在HA里面怎么看不到下面的文件。
core-ssh:~# cd /addons/
core-ssh:/addons# ls
core-ssh:/addons# ls -la
total 8
drwxr-xr-x    2 root     root          4096 Sep 17  2017 .
drwxr-xr-x   51 root     root          4096 Nov  6 09:56 ..

回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-24 07:19 , Processed in 0.133364 second(s), 24 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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