NEWS
Iobroker js-controller - ошибки
-
Здравствуйте, обновил контроллеры до версии 1.1.3 - отвалились ноды. Что делать непонятно, конфигурацию не менял… Может, что изменилось?
Логи нод:
! ```
2017-08-23 10:08:05.593 - .[32minfo.[39m: host.orangepipc-2 iobroker.js-controller version 1.1.3 js-controller starting 2017-08-23 10:08:05.613 - .[32minfo.[39m: host.orangepipc-2 Copyright (c) 2014-2017 bluefox, hobbyquaker 2017-08-23 10:08:05.615 - .[32minfo.[39m: host.orangepipc-2 hostname: orangepipc-2, node: v4.8.4 2017-08-23 10:08:05.618 - .[32minfo.[39m: host.orangepipc-2 ip addresses: 192.168.17.67 fe80::81:d4ff:fe54:4964[/code]
! и все -
похоже что контроллер поднимается на 127.0.0.1:
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 31156/iobroker.js-c tcp 0 0 127.0.0.1:9001 0.0.0.0:* LISTEN 31156/iobroker.js-c
Что надо поправить?
С уважением
-
похоже что контроллер поднимается на 127.0.0.1:
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 31156/iobroker.js-c tcp 0 0 127.0.0.1:9001 0.0.0.0:* LISTEN 31156/iobroker.js-c
Что надо поправить?
С уважением `
На мастере открываешь /opt/iobroker/iobroker-data/iobroker.json и правишь 127.0.0.1 на 0.0.0.0, сохраняешь и перезапускаешь, должны подключится остальные хосты.Второй вариант
iobroker stop
iobroker setup custom
Type of objects DB [file, couch, redis], default [file]: нажать enter
Host of objects DB(file), default[127.0.0.1]: ввести 0.0.0.0 и нажать enter
Port of objects DB(file), default[9001]: нажать enter
Type of states DB [file, redis], default [file]: redis нажать enter
Host of states DB (redis), default[127.0.0.1]: ввести 0.0.0.0 и нажать enter
Port of states DB (redis), default[6379]: нажать enter
Data directory (file), default[../../../iobroker-data/]: нажать enter
Host name of this machine [FastPC]: нажать enter
creating conf/iobroker.json
-
Спасибо, заработало
-
Кто подскажет адрес этого faааааааst-online.
-
-
Обновил js, сейчас не запускается брокер. Подскажите, как исправить?
! /opt/iobroker# sudo iobroker upgrade self
! Update js-controller from @1.4.2 to @1.5.1
! NPM version: 4.6.1
! npm install iobroker.js-controller@1.5.1 –unsafe-perm --production --save --prefix "/opt/iobroker" (System call)
! ../src/diskusage_posix.cpp: In function ‘DiskUsage GetDiskUsage(const char*)’:
! ../src/diskusage_posix.cpp:10:28: warning: missing initializer for member ‘statvfs::f_bsize’ [-Wmissing-field-initializers]
! struct statvfs info = {};
! ^
! ../src/diskusage_posix.cpp:10:28: warning: missing initializer for member ‘statvfs::f_frsize’ [-Wmissing-field-initializers]
! ../src/diskusage_posix.cpp:10:28: warning: missing initializer for member ‘statvfs::f_blocks’ [-Wmissing-field-initializers]
! ../src/diskusage_posix.cpp:10:28: warning: missing initializer for member ‘statvfs::f_bfree’ [-Wmissing-field-initializers]
! ../src/diskusage_posix.cpp:10:28: warning: missing initializer for member ‘statvfs::f_bavail’ [-Wmissing-field-initializers]
! ../src/diskusage_posix.cpp:10:28: warning: missing initializer for member ‘statvfs::f_files’ [-Wmissing-field-initializers]
! ../src/diskusage_posix.cpp:10:28: warning: missing initializer for member ‘statvfs::f_ffree’ [-Wmissing-field-initializers]
! ../src/diskusage_posix.cpp:10:28: warning: missing initializer for member ‘statvfs::f_favail’ [-Wmissing-field-initializers]
! ../src/diskusage_posix.cpp:10:28: warning: missing initializer for member ‘statvfs::f_fsid’ [-Wmissing-field-initializers]
! ../src/diskusage_posix.cpp:10:28: warning: missing initializer for member ‘statvfs::f_flag’ [-Wmissing-field-initializers]
! ../src/diskusage_posix.cpp:10:28: warning: missing initializer for member ‘statvfs::f_namemax’ [-Wmissing-field-initializers]
! ../src/diskusage_posix.cpp:10:28: warning: missing initializer for member ‘statvfs::__f_spare’ [-Wmissing-field-initializers]
! npm WARN winston-daily-rotate-file@1.7.2 requires a peer of winston@2.x but none was installed.
! Host "zvmubn" (linux) updated
! Execute: chmod -R 777 /opt/iobroker
! Chmod finished. Restart controller
! Starting node restart.js
! root@zvmubn:/opt/iobroker# sudo iobroker start
! Starting iobroker controller daemon…
! /opt/iobroker/node_modules/daemonize2/lib/daemonize.js:136
! throw new Error(msg.error);
! ^
! Error: TypeError: Cannot set property DailyRotateFile of # <object>which has only a getter
! at Object. <anonymous>(/opt/iobroker/node_modules/winston-daily-rotate-file/index.js:184:36)
! at Module._compile (module.js:577:32)
! at Object.Module._extensions..js (module.js:586:10)
! at Module.load (module.js:494:32)
! at tryModuleLoad (module.js:453:12)
! at Function.Module._load (module.js:445:3)
! at Module.require (module.js:504:17)
! at require (internal/module.js:20:19)
! at Object. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/lib/logger.js:7:25)
! at Module._compile (module.js:577:32)
! at ChildProcess. <anonymous>(/opt/iobroker/node_modules/daemonize2/lib/daemonize.js:136:19)
! at emitTwo (events.js:106:13)
! at ChildProcess.emit (events.js:191:7)
! at process.nextTick (internal/child_process.js:787:12)
! at _combinedTickCallback (internal/process/next_tick.js:73:7)
! at process._tickCallback (internal/process/next_tick.js:104:9)</anonymous></anonymous></anonymous></object> -
Для начала вернуть версию 1.4.2
npm install iobroker.js-controller@1.4.2 –production
-
Обновил js, сейчас не запускается брокер. Подскажите, как исправить?
../src/diskusage_posix.cpp:10:28: warning: missing initializer for
npm WARN winston-daily-rotate-file@1.7.2 requires a peer of winston@2.x but none was installed. `
Try installing the missing module:
cd /opt/iobroker sudo npm i winston@2 --save --production --force
The other warnings (missing initializer) are unproblematic.
-
Пытаюсь обновить js-controller.
Версия остается старой. Что делаю не так?