NEWS
Разные ошибки
-
после попытки обновить admin через админку, он пропал. `
вначале обновить js-controlleriobroker upgrade self
затем
iobroker del admin
iobroker add admin –enabled
Мне помогло
-
@kID:после попытки обновить admin через админку, он пропал. `
вначале обновить js-controlleriobroker upgrade self
затем
iobroker del admin
iobroker add admin –enabled
Мне помогло `
Дело было в канале связи - ограничение скорости до 64 кбит.
Пополнил баланс, команда на обновление после этого отработала нормально.
Возьмите на заметку.
-
Обнаружил ошибку в мультихост.
Ситуация: на основном сервере стоит драйвер, вторую версию драйвера устанавливаю на дочерний сервер. Ошибка заключается в том, что если с дочернего сервера удаляешь драйвер, то с основного сервера он тоже удаляется.
-
Настройка let's encrypt.
! ````
2016-11-01 12:13:37.224 - error: uncaught exception: listen EACCES 0.0.0.0:80
2016-11-01 12:13:37.238 - error: Error: listen EACCES 0.0.0.0:80
at Object.exports._errnoException (util.js:874:11)
at exports._exceptionWithHostPort (util.js:897:20)
at Server._listen2 (net.js:1221:19)
at listen (net.js:1270:10)
at Server.listen (net.js:1366:5)
at Object.createServer (/opt/iobroker/node_modules/iobroker.js-controller/lib/letsencrypt.js:69:21)
at initWebServer (/opt/iobroker/node_modules/iobroker.admin/admin.js:523:28)
at /opt/iobroker/node_modules/iobroker.admin/admin.js:255:25
at Socket. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:360:21)
at Socket.onack (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:312:9)
at Socket.onpacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:236:12)
at Manager. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15)
at Manager.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-emitter/index.js:131:20)
at Manager.ondecoded (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/manager.js:332:8)
at Decoder. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15)
at Decoder.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/socket.io-parser/node_modules/component-emitter/index.js:134:20)
at Decoder.add (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/socket.io-parser/index.js:246:12)
at Manager.ondata (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/manager.js:322:16)
at Socket. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15)
at Socket.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/component-emitter/index.js:134:20)
at Socket.onPacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/lib/socket.js:444:14)
at WS. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/lib/socket.js:261:10)
at WS.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/component-emitter/index.js:134:20)
at WS.Transport.onPacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/lib/transport.js:143:8)
at WS.Transport.onData (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/lib/transport.js:135:8)
at WebSocket.ws.onmessage (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/lib/transports/websocket.js:135:10)
at WebSocket.onMessage (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/lib/WebSocket.js:442:14)
at emitTwo (events.js:87:13)
2016-11-01 12:13:37.245 - info: admin.0 terminating https server on port 8081
2016-11-01 12:13:37.269 - info: admin.0 https server listening on port 8081
2016-11-01 12:13:37.271 - info: admin.0 Use link "https://localhost:8081" to configure.
2016-11-01 12:13:38.259 - info: admin.0 terminating https server on port 8081
2016-11-01 12:13:39.783 - error: host.Cubian instance system.adapter.admin.0 terminated with code 6 (uncaught exception)
2016-11-01 12:13:39.786 - info: host.Cubian Restart adapter system.adapter.admin.0 because enabled</anonymous></anonymous></anonymous></anonymous></anonymous> -
Попробовал сделать экспорт всех скриптов, получил ошибку.
! TypeError: 2017-02-15 12:23:57.693 error at Manager.ondecoded (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/manager.js:332:8)
! TypeError: 2017-02-15 12:23:57.693 error at Manager.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-emitter/index.js:133:20)
! TypeError: 2017-02-15 12:23:57.693 error at Manager. (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15)
! TypeError: 2017-02-15 12:23:57.693 error at Socket.onpacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:228:12)
! TypeError: 2017-02-15 12:23:57.693 error at Socket.onevent (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:270:10)
! TypeError: 2017-02-15 12:23:57.693 error at Socket.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-emitter/index.js:133:20)
! TypeError: 2017-02-15 12:23:57.693 error at Socket. (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInMemClient.js:45:30)
! TypeError: 2017-02-15 12:23:57.693 error at Object.States.change (/opt/iobroker/node_modules/iobroker.js-controller/controller.js:228:25)
! TypeError: 2017-02-15 12:23:57.693 error at processMessage (/opt/iobroker/node_modules/iobroker.js-controller/controller.js:1282:26)
! TypeError: 2017-02-15 12:23:57.693 error at Object.readObjectsAsZip (/opt/iobroker/node_modules/iobroker.js-controller/lib/zipFiles.js:249:13)
! TypeError: 2017-02-15 12:23:57.693 error objects.getConfigKeys is not a function
! message 2017-02-15 12:23:57.679 error messagebox.system.host.raspberrypi [object Object] objects.getConfigKeys is not a function -
Попробовал сделать экспорт всех скриптов, получил ошибку.
! TypeError: 2017-02-15 12:23:57.693 error at Manager.ondecoded (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/manager.js:332:8)
! TypeError: 2017-02-15 12:23:57.693 error at Manager.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-emitter/index.js:133:20)
! TypeError: 2017-02-15 12:23:57.693 error at Manager. (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15)
! TypeError: 2017-02-15 12:23:57.693 error at Socket.onpacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:228:12)
! TypeError: 2017-02-15 12:23:57.693 error at Socket.onevent (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:270:10)
! TypeError: 2017-02-15 12:23:57.693 error at Socket.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-emitter/index.js:133:20)
! TypeError: 2017-02-15 12:23:57.693 error at Socket. (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInMemClient.js:45:30)
! TypeError: 2017-02-15 12:23:57.693 error at Object.States.change (/opt/iobroker/node_modules/iobroker.js-controller/controller.js:228:25)
! TypeError: 2017-02-15 12:23:57.693 error at processMessage (/opt/iobroker/node_modules/iobroker.js-controller/controller.js:1282:26)
! TypeError: 2017-02-15 12:23:57.693 error at Object.readObjectsAsZip (/opt/iobroker/node_modules/iobroker.js-controller/lib/zipFiles.js:249:13)
! TypeError: 2017-02-15 12:23:57.693 error objects.getConfigKeys is not a function
! message 2017-02-15 12:23:57.679 error messagebox.system.host.raspberrypi [object Object] objects.getConfigKeys is not a function `
Multihost? -
Попробовал сделать экспорт всех скриптов, получил ошибку.
! TypeError: 2017-02-15 12:23:57.693 error at Manager.ondecoded (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/manager.js:332:8)
! TypeError: 2017-02-15 12:23:57.693 error at Manager.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-emitter/index.js:133:20)
! TypeError: 2017-02-15 12:23:57.693 error at Manager. (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15)
! TypeError: 2017-02-15 12:23:57.693 error at Socket.onpacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:228:12)
! TypeError: 2017-02-15 12:23:57.693 error at Socket.onevent (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:270:10)
! TypeError: 2017-02-15 12:23:57.693 error at Socket.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-emitter/index.js:133:20)
! TypeError: 2017-02-15 12:23:57.693 error at Socket. (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInMemClient.js:45:30)
! TypeError: 2017-02-15 12:23:57.693 error at Object.States.change (/opt/iobroker/node_modules/iobroker.js-controller/controller.js:228:25)
! TypeError: 2017-02-15 12:23:57.693 error at processMessage (/opt/iobroker/node_modules/iobroker.js-controller/controller.js:1282:26)
! TypeError: 2017-02-15 12:23:57.693 error at Object.readObjectsAsZip (/opt/iobroker/node_modules/iobroker.js-controller/lib/zipFiles.js:249:13)
! TypeError: 2017-02-15 12:23:57.693 error objects.getConfigKeys is not a function
! message 2017-02-15 12:23:57.679 error messagebox.system.host.raspberrypi [object Object] objects.getConfigKeys is not a functionMultihost?
Да.
-
Попробовал сделать экспорт всех скриптов, получил ошибку.
! TypeError: 2017-02-15 12:23:57.693 error at Manager.ondecoded (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/manager.js:332:8)
! TypeError: 2017-02-15 12:23:57.693 error at Manager.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-emitter/index.js:133:20)
! TypeError: 2017-02-15 12:23:57.693 error at Manager. (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15)
! TypeError: 2017-02-15 12:23:57.693 error at Socket.onpacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:228:12)
! TypeError: 2017-02-15 12:23:57.693 error at Socket.onevent (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:270:10)
! TypeError: 2017-02-15 12:23:57.693 error at Socket.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-emitter/index.js:133:20)
! TypeError: 2017-02-15 12:23:57.693 error at Socket. (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInMemClient.js:45:30)
! TypeError: 2017-02-15 12:23:57.693 error at Object.States.change (/opt/iobroker/node_modules/iobroker.js-controller/controller.js:228:25)
! TypeError: 2017-02-15 12:23:57.693 error at processMessage (/opt/iobroker/node_modules/iobroker.js-controller/controller.js:1282:26)
! TypeError: 2017-02-15 12:23:57.693 error at Object.readObjectsAsZip (/opt/iobroker/node_modules/iobroker.js-controller/lib/zipFiles.js:249:13)
! TypeError: 2017-02-15 12:23:57.693 error objects.getConfigKeys is not a function
! message 2017-02-15 12:23:57.679 error messagebox.system.host.raspberrypi [object Object] objects.getConfigKeys is not a functionMultihost?
Да. `
Ошибка.. Поправлю в следующей версии.Спасибо.
-
Настройка let's encrypt.
!
2016-11-01 12:13:37.224 - error: uncaught exception: listen EACCES 0.0.0.0:80 2016-11-01 12:13:37.238 - error: Error: listen EACCES 0.0.0.0:80 at Object.exports._errnoException (util.js:874:11) at exports._exceptionWithHostPort (util.js:897:20) at Server._listen2 (net.js:1221:19) at listen (net.js:1270:10) at Server.listen (net.js:1366:5) at Object.createServer (/opt/iobroker/node_modules/iobroker.js-controller/lib/letsencrypt.js:69:21) at initWebServer (/opt/iobroker/node_modules/iobroker.admin/admin.js:523:28) at /opt/iobroker/node_modules/iobroker.admin/admin.js:255:25 at Socket. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:360:21) at Socket.onack (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:312:9) at Socket.onpacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:236:12) at Manager. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15) at Manager.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-emitter/index.js:131:20) at Manager.ondecoded (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/manager.js:332:8) at Decoder. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15) at Decoder.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/socket.io-parser/node_modules/component-emitter/index.js:134:20) at Decoder.add (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/socket.io-parser/index.js:246:12) at Manager.ondata (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/manager.js:322:16) at Socket. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15) at Socket.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/component-emitter/index.js:134:20) at Socket.onPacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/lib/socket.js:444:14) at WS. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/lib/socket.js:261:10) at WS.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/component-emitter/index.js:134:20) at WS.Transport.onPacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/lib/transport.js:143:8) at WS.Transport.onData (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/lib/transport.js:135:8) at WebSocket.ws.onmessage (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/lib/transports/websocket.js:135:10) at WebSocket.onMessage (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/lib/WebSocket.js:442:14) at emitTwo (events.js:87:13) 2016-11-01 12:13:37.245 - info: admin.0 terminating https server on port 8081 2016-11-01 12:13:37.269 - info: admin.0 https server listening on port 8081 2016-11-01 12:13:37.271 - info: admin.0 Use link "https://localhost:8081" to configure. 2016-11-01 12:13:38.259 - info: admin.0 terminating https server on port 8081 2016-11-01 12:13:39.783 - error: host.Cubian instance system.adapter.admin.0 terminated with code 6 (uncaught exception) 2016-11-01 12:13:39.786 - info: host.Cubian Restart adapter system.adapter.admin.0 because enabled</anonymous></anonymous></anonymous></anonymous></anonymous>
`
Кто то висит на порту 80 и не даёт запустить web.Lets Encrypt работает только с 80. Хотя если на рутере перенаправить 80 на что либо другое, то тоже будет работать.
-
Настройка let's encrypt.
!
2016-11-01 12:13:37.224 - error: uncaught exception: listen EACCES 0.0.0.0:80 2016-11-01 12:13:37.238 - error: Error: listen EACCES 0.0.0.0:80 at Object.exports._errnoException (util.js:874:11) at exports._exceptionWithHostPort (util.js:897:20) at Server._listen2 (net.js:1221:19) at listen (net.js:1270:10) at Server.listen (net.js:1366:5) at Object.createServer (/opt/iobroker/node_modules/iobroker.js-controller/lib/letsencrypt.js:69:21) at initWebServer (/opt/iobroker/node_modules/iobroker.admin/admin.js:523:28) at /opt/iobroker/node_modules/iobroker.admin/admin.js:255:25 at Socket. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:360:21) at Socket.onack (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:312:9) at Socket.onpacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:236:12) at Manager. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15) at Manager.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-emitter/index.js:131:20) at Manager.ondecoded (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/manager.js:332:8) at Decoder. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15) at Decoder.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/socket.io-parser/node_modules/component-emitter/index.js:134:20) at Decoder.add (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/socket.io-parser/index.js:246:12) at Manager.ondata (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/manager.js:322:16) at Socket. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15) at Socket.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/component-emitter/index.js:134:20) at Socket.onPacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/lib/socket.js:444:14) at WS. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/lib/socket.js:261:10) at WS.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/component-emitter/index.js:134:20) at WS.Transport.onPacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/lib/transport.js:143:8) at WS.Transport.onData (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/lib/transport.js:135:8) at WebSocket.ws.onmessage (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/lib/transports/websocket.js:135:10) at WebSocket.onMessage (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/lib/WebSocket.js:442:14) at emitTwo (events.js:87:13) 2016-11-01 12:13:37.245 - info: admin.0 terminating https server on port 8081 2016-11-01 12:13:37.269 - info: admin.0 https server listening on port 8081 2016-11-01 12:13:37.271 - info: admin.0 Use link "https://localhost:8081" to configure. 2016-11-01 12:13:38.259 - info: admin.0 terminating https server on port 8081 2016-11-01 12:13:39.783 - error: host.Cubian instance system.adapter.admin.0 terminated with code 6 (uncaught exception) 2016-11-01 12:13:39.786 - info: host.Cubian Restart adapter system.adapter.admin.0 because enabled</anonymous></anonymous></anonymous></anonymous></anonymous>
`
Кто то висит на порту 80 и не даёт запустить web.Lets Encrypt работает только с 80. Хотя если на рутере перенаправить 80 на что либо другое, то тоже будет работать. `
Странно, висеть больше не чему. Ну в любом случае обновился.
-
Подскажите, node-red ругается на node.js- как поправить?
! ````
node-red.0 2017-03-09 10:48:45.449 error no connection to objects DB
node-red.0 2017-03-09 10:48:45.451 warn 2017-03-09 10:48:45.451 - error: node-red.0 no connection to objects DB
node-red.0 2017-03-09 10:48:45.438 warn 9 Mar 10:48:45 - [warn] ------------------------------------------------------
node-red.0 2017-03-09 10:48:45.438 warn 9 Mar 10:48:45 - [warn] [mqtt] SyntaxError: Use of const in strict mode.
node-red.0 2017-03-09 10:48:45.438 warn 9 Mar 10:48:45 - [warn] [rpi-gpio] Info : Ignoring Raspberry Pi specific node
node-red.0 2017-03-09 10:48:45.438 warn 9 Mar 10:48:45 - [warn] ------------------------------------------------------
node-red.0 2017-03-09 10:48:09.753 warn ^^^^^
node-red.0 2017-03-09 10:48:09.753 warn const isSecure = ['mqtts', 'wss'].indexOf(opts.protocol) !== -1
node-red.0 2017-03-09 10:48:09.753 warn /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/mqtt/lib/connect/index.js:100
node-red.0 2017-03-09 10:48:09.753 warn
web.0 2017-03-09 10:48:06.540 info 2017-03-09T06:48:06.540Z Connected system.user.admin
web.0 2017-03-09 10:48:06.270 info 2017-03-09T06:48:06.270Z Connected system.user.admin
web.0 2017-03-09 10:48:03.746 info 2017-03-09T06:48:03.746Z Connected system.user.admin
node-red.0 2017-03-09 10:48:00.249 error 9 Mar 10:48:00 - [error] *****************************************************************
node-red.0 2017-03-09 10:48:00.246 error 9 Mar 10:48:00 - [error] * Unsupported version of Node.js. Requires: >=4 Found: v0.10.25 *
node-red.0 2017-03-09 10:48:00.242 error 9 Mar 10:48:00 - [error] ***************************************************************** -
Подскажите, node-red ругается на node.js- как поправить?
!
node-red.0 2017-03-09 10:48:45.449 error no connection to objects DB node-red.0 2017-03-09 10:48:45.451 warn 2017-03-09 10:48:45.451 - error: node-red.0 no connection to objects DB node-red.0 2017-03-09 10:48:45.438 warn 9 Mar 10:48:45 - [warn] ------------------------------------------------------ node-red.0 2017-03-09 10:48:45.438 warn 9 Mar 10:48:45 - [warn] [mqtt] SyntaxError: Use of const in strict mode. node-red.0 2017-03-09 10:48:45.438 warn 9 Mar 10:48:45 - [warn] [rpi-gpio] Info : Ignoring Raspberry Pi specific node node-red.0 2017-03-09 10:48:45.438 warn 9 Mar 10:48:45 - [warn] ------------------------------------------------------ node-red.0 2017-03-09 10:48:09.753 warn ^^^^^ node-red.0 2017-03-09 10:48:09.753 warn const isSecure = ['mqtts', 'wss'].indexOf(opts.protocol) !== -1 node-red.0 2017-03-09 10:48:09.753 warn /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/mqtt/lib/connect/index.js:100 node-red.0 2017-03-09 10:48:09.753 warn web.0 2017-03-09 10:48:06.540 info 2017-03-09T06:48:06.540Z Connected system.user.admin web.0 2017-03-09 10:48:06.270 info 2017-03-09T06:48:06.270Z Connected system.user.admin web.0 2017-03-09 10:48:03.746 info 2017-03-09T06:48:03.746Z Connected system.user.admin node-red.0 2017-03-09 10:48:00.249 error 9 Mar 10:48:00 - [error] ***************************************************************** node-red.0 2017-03-09 10:48:00.246 error 9 Mar 10:48:00 - [error] * Unsupported version of Node.js. Requires: >=4 Found: v0.10.25 * node-red.0 2017-03-09 10:48:00.242 error 9 Mar 10:48:00 - [error] *****************************************************************
`* Unsupported version of Node.js. Requires: >=4 Found: v0.10.25 *
Сменить nodejs нужна версия v4.x и выше.
-
Обновился до крайней версии. MQTT сервер стал заваливать сообщениями в лог.
Перезапускал отдельно драйвер, перезагружал сервер целиком. Эффекта нет.js-controller 0.16.2
Admin 1.7.0
JS 3.2.6
-
Обновился до крайней версии. MQTT сервер стал заваливать сообщениями в лог.
WarrMqtt.PNG
Перезапускал отдельно драйвер, перезагружал сервер целиком. Эффекта нет.
js-controller 0.16.2
Admin 1.7.0
JS 3.2.6 `
А на самом деле эти переменные существуют? -
Сменить nodejs нужна версия v4.x и выше. `
Как это сделать, подскажите. -
Сменить nodejs нужна версия v4.x и выше.
Как это сделать, подскажите.
apt-get --purge remove node apt-get --purge remove nodejs apt-get autoremove reboot apt-get update apt-get upgrade apt-get install curl build-essential curl -sL https://deb.nodesource.com/setup_4.x | bash - apt-get install -y nodejs
-
apt-get --purge remove node apt-get --purge remove nodejs apt-get autoremove reboot apt-get update apt-get upgrade apt-get install curl build-essential curl -sL https://deb.nodesource.com/setup_4.x | bash - apt-get install -y nodejs ```` `
Обновил, сейчас сыплются ошибки с sql и s7
! ````
host.zvmubn 2017-03-10 12:25:46.641 error instance system.adapter.s7.0 terminated with code 0 (OK)
s7.0 2017-03-10 12:25:46.627 info terminating
s7.0 2017-03-10 12:25:46.206 info starting. Version 0.2.5 in /opt/iobroker/node_modules/iobroker.s7, node: v4.8.0
s7.0 2017-03-10 12:25:46.116 error at Object.Module._extensions..js (module.js:416:10)
s7.0 2017-03-10 12:25:46.116 error at Module._compile (module.js:409:26)
s7.0 2017-03-10 12:25:46.116 error at Object. (/opt/iobroker/node_modules/iobroker.s7/node_modules/node-snap7/lib/node-snap7.js:6:45)
s7.0 2017-03-10 12:25:46.116 error at bindings (/opt/iobroker/node_modules/iobroker.s7/node_modules/node-snap7/node_modules/bindings/bindings.js:76:44)
s7.0 2017-03-10 12:25:46.116 error at require (internal/module.js:12:17)
s7.0 2017-03-10 12:25:46.116 error at Module.require (module.js:353:17)
s7.0 2017-03-10 12:25:46.116 error at Function.Module._load (module.js:300:12)
s7.0 2017-03-10 12:25:46.116 error at Module.load (module.js:343:32)
s7.0 2017-03-10 12:25:46.116 error at Object.Module._extensions..node (module.js:434:18)
s7.0 2017-03-10 12:25:46.116 error at Error (native)
s7.0 2017-03-10 12:25:46.116 error Error: Module did not self-register.
s7.0 2017-03-10 12:25:46.108 error uncaught exception: Module did not self-register.
host.zvmubn 2017-03-10 12:25:45.677 info instance system.adapter.s7.0 started with pid 7860
sql.0 2017-03-10 12:25:31.347 error TypeError: Cannot read property 'borrow' of undefined
sql.0 2017-03-10 12:25:31.347 error Selected SQL DB was not installed properly: "sqlite". SQLite requires build tools on system. See README.md
host.zvmubn 2017-03-10 12:25:15.668 info Restart adapter system.adapter.s7.0 because enabled
host.zvmubn 2017-03-10 12:25:15.668 error instance system.adapter.s7.0 terminated with code 0 (OK) -
apt-get --purge remove node apt-get --purge remove nodejs apt-get autoremove reboot apt-get update apt-get upgrade apt-get install curl build-essential curl -sL https://deb.nodesource.com/setup_4.x | bash - apt-get install -y nodejs ```` `
Обновил, сейчас сыплются ошибки с sql и s7
!
host.zvmubn 2017-03-10 12:25:46.641 error instance system.adapter.s7.0 terminated with code 0 (OK) s7.0 2017-03-10 12:25:46.627 info terminating s7.0 2017-03-10 12:25:46.206 info starting. Version 0.2.5 in /opt/iobroker/node_modules/iobroker.s7, node: v4.8.0 s7.0 2017-03-10 12:25:46.116 error at Object.Module._extensions..js (module.js:416:10) s7.0 2017-03-10 12:25:46.116 error at Module._compile (module.js:409:26) s7.0 2017-03-10 12:25:46.116 error at Object. (/opt/iobroker/node_modules/iobroker.s7/node_modules/node-snap7/lib/node-snap7.js:6:45) s7.0 2017-03-10 12:25:46.116 error at bindings (/opt/iobroker/node_modules/iobroker.s7/node_modules/node-snap7/node_modules/bindings/bindings.js:76:44) s7.0 2017-03-10 12:25:46.116 error at require (internal/module.js:12:17) s7.0 2017-03-10 12:25:46.116 error at Module.require (module.js:353:17) s7.0 2017-03-10 12:25:46.116 error at Function.Module._load (module.js:300:12) s7.0 2017-03-10 12:25:46.116 error at Module.load (module.js:343:32) s7.0 2017-03-10 12:25:46.116 error at Object.Module._extensions..node (module.js:434:18) s7.0 2017-03-10 12:25:46.116 error at Error (native) s7.0 2017-03-10 12:25:46.116 error Error: Module did not self-register. s7.0 2017-03-10 12:25:46.108 error uncaught exception: Module did not self-register. host.zvmubn 2017-03-10 12:25:45.677 info instance system.adapter.s7.0 started with pid 7860 sql.0 2017-03-10 12:25:31.347 error TypeError: Cannot read property 'borrow' of undefined sql.0 2017-03-10 12:25:31.347 error Selected SQL DB was not installed properly: "sqlite". SQLite requires build tools on system. See README.md host.zvmubn 2017-03-10 12:25:15.668 info Restart adapter system.adapter.s7.0 because enabled host.zvmubn 2017-03-10 12:25:15.668 error instance system.adapter.s7.0 terminated with code 0 (OK)
`
node.js Version? npm Version?node -v npm -v
Если команда node -v выдаёт ошибку, то выполнить:
ln -s /usr/bin/nodejs /usr/bin/node
-
node.js Version? npm Version?
node -v npm -v
Если команда node -v выдаёт ошибку, то выполнить:
ln -s /usr/bin/nodejs /usr/bin/node ```` `
root@zvmubn:/opt/iobroker# node -v v4.8.0 root@zvmubn:/opt/iobroker# npm -v 2.15.11
-
node.js Version? npm Version?
node -v npm -v
Если команда node -v выдаёт ошибку, то выполнить:
ln -s /usr/bin/nodejs /usr/bin/node ```` `
root@zvmubn:/opt/iobroker# node -v v4.8.0 root@zvmubn:/opt/iobroker# npm -v 2.15.11 ```` `
При смене ноды нужно все бинарные пакеты перекомпилировать.
Попробуй
cd /opt/iobroker iobroker stop npm i node-gyp -g --force npm i iobroker.s7 --force npm i iobroker.sql --force iobroker start
Может быть нужно выполнить как sudo. Зависит от того какая у тебя система