MaxWinterstein / homeassistant-addons

GNU General Public License v3.0
137 stars 39 forks source link

[ioBroker] can't connect to ui after updateing js-controller and admin #184

Open Presl1983 opened 1 year ago

Presl1983 commented 1 year ago

can't connect to ui after updateing js-controller and admin.

anyone else got that issue?

jnsness commented 1 year ago

Jip - same problem here. Don't know what changed. Just got

Error: Cannot find module '/data/iobroker/node_modules/iobroker.js-controller/controller.js'

bastard-GIT commented 1 year ago

Same here:


------------------------------------------------------------
---------------     2023-09-21 21:03:46      ---------------
------------------------------------------------------------

------------------------------------------------------------
-----       Welcome to your ioBroker-container!        -----
-----          Startupscript is now running.           -----
-----                Please be patient!                -----
------------------------------------------------------------

------------------------------------------------------------
-----              Debugging information               -----
-----                                                  -----
-----                      System                      -----
-----               arch:      aarch64                 -----
-----                                                  -----
-----                     Versions                     -----
-----               image:                             -----
-----               node:      v12.21.0                -----
-----               npm:       6.14.11                 -----
-----                                                  -----
-----                       ENV                        -----
-----               SETGID:    1000                    -----
-----               SETUID:    1000                    -----
------------------------------------------------------------

------------------------------------------------------------
-----         Step 1 of 5: Preparing container         -----
------------------------------------------------------------

Registering maintenance script as command.
Done.

------------------------------------------------------------
-----   Step 2 of 5: Detecting ioBroker installation   -----
------------------------------------------------------------

Existing installation of ioBroker detected in /opt/iobroker.

------------------------------------------------------------
-----   Step 3 of 5: Checking ioBroker installation    -----
------------------------------------------------------------

(Re)Setting folder permissions (This might take a while! Please be patient!)...
Done.

Fixing "sudo-bug" by replacing sudo in iobroker with gosu...
Done.

internal/modules/cjs/loader.js:818
  throw err;
  ^
Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
    at Function.Module._load (internal/modules/cjs/loader.js:667:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
/opt/scripts/iobroker_startup.sh: line 205: [: !=: unary operator expected
------------------------------------------------------------
-----      Step 4 of 5: Applying special settings      -----
------------------------------------------------------------

Some adapters have special requirements/ settings which can be activated by the use of environment variables.
For more information take a look at readme.md on Github!

------------------------------------------------------------
-----          Step 5 of 5: ioBroker startup           -----
------------------------------------------------------------

Starting ioBroker...

Running 'eval' commands
internal/modules/cjs/loader.js:818
  throw err;
  ^
Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
    at Function.Module._load (internal/modules/cjs/loader.js:667:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
internal/modules/cjs/loader.js:818
  throw err;
  ^
Error: Cannot find module '/data/iobroker/node_modules/iobroker.js-controller/controller.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
    at Function.Module._load (internal/modules/cjs/loader.js:667:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
Dr4g0nM4st3r commented 1 year ago

same problem here, Problem occures since reboot (and eval iobroker update && iobroker upgrade self)

Hakko62 commented 1 year ago

… same issue here. After System reboot the Addon doesn‘t start.

jove01 commented 1 year ago

Some problem here after changing my ha-hardware and reinstall this addon. The Status of the addon ist green, but the same Error and the website can't connect.

jove01 commented 11 months ago

Hello I tried it without eval: iobroker update && iobroker upgrade self that works, but I need the update for installing "mqtt.client"!

With the eval-option the error occus:

`Adapter "zwave2" : 3.1.0
Update js-controller from @3.2.16 to @5.0.16 NPM version: 6.14.11 npm install iobroker.js-controller@5.0.16 --loglevel error --unsafe-perm --prefix "/data/iobroker" (System call) In file included from ../node_modules/nan/nan.h:62, from ../src/main.cpp:3: /opt/iobroker/.cache/node-gyp/12.21.0/include/node/node.h:737:43: warning: cast between incompatible function types from ‘void ()(v8::Local)’ to ‘node::addon_register_func’ {aka ‘void ()(v8::Local, v8::Local, void)’} [-Wcast-function-type] (node::addon_register_func) (regfunc), \ ^ /opt/iobroker/.cache/node-gyp/12.21.0/include/node/node.h:771:3: note: in expansion of macro ‘NODE_MODULE_X’ NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) ^~~~~ ../src/main.cpp:42:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(diskusage, Init) ^~~ In file included from ../node_modules/nan/nan.h:62, from ../src/unix_dgram.cc:5: /opt/iobroker/.cache/node-gyp/12.21.0/include/node/node.h:737:43: warning: cast between incompatible function types from ‘void ()(v8::Local)’ to ‘node::addon_register_func’ {aka ‘void ()(v8::Local, v8::Local, void)’} [-Wcast-function-type] (node::addon_register_func) (regfunc), \ ^ /opt/iobroker/.cache/node-gyp/12.21.0/include/node/node.h:771:3: note: in expansion of macro ‘NODE_MODULE_X’ NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) ^~~~~ ../src/unix_dgram.cc:404:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(unix_dgram, Initialize) ^~~ internal/modules/cjs/loader.js:818 throw err; ^

Error: Cannot find module 'node:timers/promises' Require stack:

npm ERR! A complete log of this run can be found in: npm ERR! /opt/iobroker/.npm/_logs/2023-11-30T12_03_41_153Z-debug.log host.f1c878cb-iobroker Cannot install iobroker.js-controller@5.0.16: 1 internal/modules/cjs/loader.js:818 throw err; ^

Error: Cannot find module '/data/iobroker/node_modules/iobroker.js-controller/controller.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15) at Function.Module._load (internal/modules/cjs/loader.js:667:27) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) at internal/main/run_main_module.js:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] }`

Please help; thanks

MaxWinterstein commented 11 months ago

this add-on needs a huge makeover...

i will try to put it somewhere in my schedule, as it seems like there is some interest in it :)

jove01 commented 11 months ago

this add-on needs a huge makeover...

i will try to put it somewhere in my schedule, as it seems like there is some interest in it :)

Thanks you for the Informationen. I hope so

jnsness commented 10 months ago

It definitely is :-)

td-mygit commented 8 months ago

Are there any news about this? I also need to upgrade the js-controller because I would like to use the MQTT client.

SolarPower2024 commented 4 months ago

Need to bring this issue up again.

@MaxWinterstein any chance that this can be fixed? As the others I would need to use the mqtt client to bring data to my home assistant instance, for which an update is unfortunately needed.