提供信息截图,我不明白你什么意思啊。
我提供的截图也上传不上去
你看看是否变了ip吧。按照教程,当他是新的一样接入试试。我估计是你路由改变它ip
断电重启一下
我刚刚查看了,ip没有变化
我把筒灯都接到了 xiaomi 这个集成里,怎么做成灯组呢
NR总是502,我想不让NR用add on的方式,所以到加载项里把NR卸载掉了,打算装到DOCKER里。
然后打开IP:3000,镜像,下载了NR:
回到容器,新建容器:
下面我就不知道该添啥了。
能不能发一个盒子的NR容器安装教程?我看这个WEB管理器是EASYDOCKERWEB,可是百度里也没有这个WEB管理器的教程,也不知道该干啥。
进入webssh,直接新建
docker run -it -d -p 1880:1880 --name=node-red01 -v /usr/share/hassio/homeassistant/node-red:/data -e TZ=Asia/Shanghai --restart=always nodered/node-red:latest
安装完成,结果:
Last login: Mon Aug 29 05:42:15 2022 from 127.0.0.1
root@smarthomefansbox:~# docker run -it -d -p 1880:1880 --name=node-red01 -v /usr/share/hassio/homeassistant/node-red:/data -e TZ=Asia/Shanghai --restart=always nodered/node-red:latest
Unable to find image ‘nodered/node-red:latest’ locally
latest: Pulling from nodered/node-red
latest: Pulling from nodered/node-red
f97344484467: Pull complete
c1a0afc8369f: Pull complete
d33bf715aa70: Pull complete
197c33cbfa1c: Pull complete
f7018d8aadc6: Pull complete
8b31a1a18921: Pull complete
f538842103af: Pull complete
4f4fb700ef54: Pull complete
032ad75ee134: Pull complete
af6799cfdc81: Pull complete
458321820ca1: Pull complete
6041a5a2b024: Pull complete
ee3562cc3365: Pull complete
b6606717bb98: Pull complete
ae7db747e34b: Pull complete
ccb287c4510c: Pull complete
43b8c7dbf565: Pull complete
Digest: sha256:524316b9b84cb5bbfe006c117f3dad31ee806804b12e4b866047a65e2080e92d
Status: Downloaded newer image for nodered/node-red:latest
a958a5243cd841c9a24dfe9cefbba2be604154158349b08e23071936ab56d48e
root@smarthomefansbox:~#
node-red01运行日志:
Error: EACCES: permission denied, lstat ‘/data/settings.js’
at Object.lstatSync (node:fs:1529:3)
at Object.lstatSync (/usr/src/node-red/node_modules/graceful-fs/polyfills.js:318:34)
at statFunc (/usr/src/node-red/node_modules/fs-extra/lib/util/stat.js:24:20)
at getStatsSync (/usr/src/node-red/node_modules/fs-extra/lib/util/stat.js:27:16)
at Object.checkPathsSync (/usr/src/node-red/node_modules/fs-extra/lib/util/stat.js:67:33)
at Object.copySync (/usr/src/node-red/node_modules/fs-extra/lib/copy/copy-sync.js:27:38)
at Object. (/usr/src/node-red/node_modules/node-red/red.js:129:20)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions…js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32) {
errno: -13,
syscall: ‘lstat’,
code: ‘EACCES’,
path: ‘/data/settings.js’
}
/usr/src/node-red/node_modules/fs-extra/lib/util/stat.js:30
throw err
^
Error: EACCES: permission denied, lstat ‘/data/settings.js’
at Object.lstatSync (node:fs:1529:3)
at Object.lstatSync (/usr/src/node-red/node_modules/graceful-fs/polyfills.js:318:34)
at statFunc (/usr/src/node-red/node_modules/fs-extra/lib/util/stat.js:24:20)
at getStatsSync (/usr/src/node-red/node_modules/fs-extra/lib/util/stat.js:27:16)
at Object.checkPathsSync (/usr/src/node-red/node_modules/fs-extra/lib/util/stat.js:67:33)
at Object.copySync (/usr/src/node-red/node_modules/fs-extra/lib/copy/copy-sync.js:27:38)
at Object. (/usr/src/node-red/node_modules/node-red/red.js:129:20)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions…js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32) {
errno: -13,
syscall: ‘lstat’,
code: ‘EACCES’,
path: ‘/data/settings.js’
}
===Logs stream finished===
HA里node_red显示:
192.168.8.100 拒绝了我们的连接请求。
chmod 755 /usr/share/hassio/homeassistant/node-red
docker stop node-red01
docker rm node-red01
docker run -it -d -p 1880:1880 --name=node-red01 -v /usr/share/hassio/homeassistant/node-red:/data -e TZ=Asia/Shanghai --restart=always nodered/node-red:latest
0:30:15 - [error] Failed to start server:
29 Aug 10:30:15 - [error] Error: EACCES: permission denied, mkdir ‘/data/lib/flows’
29 Aug 10:30:22 - [error] Failed to start server:
29 Aug 10:30:22 - [error] Error: EACCES: permission denied, mkdir ‘/data/lib/flows’
29 Aug 10:30:28 - [error] Failed to start server:
29 Aug 10:30:28 - [error] Error: EACCES: permission denied, mkdir ‘/data/lib/flows’
29 Aug 10:30:35 - [error] Failed to start server:
29 Aug 10:30:35 - [error] Error: EACCES: permission denied, mkdir ‘/data/lib/flows’
29 Aug 10:30:41 - [error] Failed to start server:
29 Aug 10:30:41 - [error] Error: EACCES: permission denied, mkdir ‘/data/lib/flows’
===Logs stream finished===
我每天都会碰到,哈,正在解决此问题。主要精力都在NR上,可是它老不正常!
更新一下版本看看。
那就不用原来的配置了,直接装吧
docker stop node-red01
docker rm node-red01
mkdir node-red
cd /root/node-red/
mkdir config01
cd /root/node-red/config01
docker run -it -d -p 1880:1880 --name=node-red01 -v /usr/share/hassio/homeassistant/node-red:/data -e TZ=Asia/Shanghai --restart=always nodered/node-red:latest
点击启动看看