- 积分
- 129
- 金钱
- 108
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
注册会员
- 积分
- 129
- 金钱
- 108
- HASS币
- 0
|
本帖最后由 szcxs 于 2019-12-24 13:45 编辑
百度找不到解决方案,折腾了几天,换了很多个版本,求大神指导,谢谢
环境:QNAP 威联通 4.3.4.0675
CPU:ARMv7
[~] # uname -a
Linux MyNas 3.10.20-al-2.5.3 #70 SMP PREEMPT Fri Aug 10 04:20:38 CST 2018 armv7l unknown
[~] # docker version
Client:
Version: 17.09.1-ce
API version: 1.32
Go version: go1.8.3
Git commit: 0a5102e
Built: Fri Oct 26 09:19:15 2018
OS/Arch: linux/arm
Server:
Version: 17.09.1-ce
API version: 1.32 (minimum version 1.12)
Go version: go1.8.3
Git commit: 0a5102e
Built: Fri Oct 26 09:19:15 2018
OS/Arch: linux/arm
Experimental: false
容器里python都执行不了, /dev/random, /dev/urandom文件存在
[~] # docker run -it homeassistant/home-assistant:latest /bin/bash
starting version 3.2.8
bash-5.0# python
Fatal Python error: _Py_HashRandomization_Init: failed to get random numbers to initialize Python
bash-5.0# ls -lrt /dev/*ran*
crw-rw-rw- 1 root root 1, 9 Dec 24 05:07 /dev/urandom
crw-rw-rw- 1 root root 1, 8 Dec 24 05:07 /dev/random
docker镜像:
homeassistant/armv7-hassio-supervisor:latest
homeassistant/home-assistant:latest
其他低版本的也试过
问题描述:启动docker下的homeassistant,无法正常启动
具体报错日志:
starting version 3.2.8
Fatal Python error: _Py_HashRandomization_Init: failed to get random numbers to initialize Python
暂时定位到错误是这里:
os.urandom(16)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 14] Bad address
|
|