iobroker js-controller - ошибки

Сообщите об ошибках в ioBroker
znammut
starter
Beiträge: 13
Registriert: 16.06.2016, 14:40

Re: iobroker js-controller - ошибки

Beitrag von znammut » 23.08.2017, 15:59

Спасибо, заработало

sukuy
Beiträge: 2
Registriert: 31.08.2018, 09:36

Re: iobroker js-controller - ошибки

Beitrag von sukuy » 07.09.2018, 04:41

Кто подскажет адрес этого faааааааst-online.


gclub


ford7
starter
Beiträge: 60
Registriert: 27.10.2014, 12:28

Re: iobroker js-controller - ошибки

Beitrag von ford7 » 14.09.2018, 06:47

Обновил js, сейчас не запускается брокер. Подскажите, как исправить?
Spoiler: Show hidden text
/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)

Pooh
professional
Beiträge: 143
Registriert: 11.05.2017, 05:15
Wohnort: Самара
Kontaktdaten:

Re: iobroker js-controller - ошибки

Beitrag von Pooh » 17.09.2018, 03:38

Для начала вернуть версию 1.4.2
npm install iobroker.js-controller@1.4.2 --production

Benutzeravatar
Stabilostick
professional
Beiträge: 830
Registriert: 23.05.2018, 14:52

Re: iobroker js-controller - ошибки

Beitrag von Stabilostick » 17.09.2018, 06:26

ford7 hat geschrieben:Обновил 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:

Code: Alles auswählen

cd /opt/iobroker
sudo npm i winston@2 --save --production --force
The other warnings (missing initializer) are unproblematic.

Antworten