ioBroker / ioBroker.b-control-em

B-Control Energy Manager
MIT License
5 stars 3 forks source link

Bcontrol showing error after installing host controller 5.0.5 #13

Open looxer01 opened 1 year ago

looxer01 commented 1 year ago

Hi, after installing Controller version 5.0.5. I am receiving the below error. Bcontrol is currently not working with this version of the controller in my system.

`

host.RR-DEB-iOB | 2023-06-18 21:52:33.681 | error | instance system.adapter.b-control-em.0 terminated with code 1 (JS_CONTROLLER_STOPPED) -- | -- | -- | -- host.RR-DEB-iOB | 2023-06-18 21:52:33.680 | error | Caught by controller[0]: Node.js v18.16.0 host.RR-DEB-iOB | 2023-06-18 21:52:33.680 | error | Caught by controller[0]: } host.RR-DEB-iOB | 2023-06-18 21:52:33.680 | error | Caught by controller[0]: ] host.RR-DEB-iOB | 2023-06-18 21:52:33.680 | error | Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.b-control-em/main.js' host.RR-DEB-iOB | 2023-06-18 21:52:33.680 | error | Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.b-control-em/lib/utils.js', host.RR-DEB-iOB | 2023-06-18 21:52:33.680 | error | Caught by controller[0]: requireStack: [ host.RR-DEB-iOB | 2023-06-18 21:52:33.680 | error | Caught by controller[0]: code: 'MODULE_NOT_FOUND', host.RR-DEB-iOB | 2023-06-18 21:52:33.680 | error | Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1141:19) { host.RR-DEB-iOB | 2023-06-18 21:52:33.680 | error | Caught by controller[0]: at Module._load (node:internal/modules/cjs/loader:958:12) host.RR-DEB-iOB | 2023-06-18 21:52:33.680 | error | Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1117:32) host.RR-DEB-iOB | 2023-06-18 21:52:33.680 | error | Caught by controller[0]: at Module._extensions..js (node:internal/modules/cjs/loader:1308:10) host.RR-DEB-iOB | 2023-06-18 21:52:33.680 | error | Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1254:14) host.RR-DEB-iOB | 2023-06-18 21:52:33.680 | error | Caught by controller[0]: at Object. (/opt/iobroker/node_modules/iobroker.b-control-em/lib/utils.js:60:25) host.RR-DEB-iOB | 2023-06-18 21:52:33.680 | error | Caught by controller[0]: at require (node:internal/modules/cjs/helpers:110:18) host.RR-DEB-iOB | 2023-06-18 21:52:33.680 | error | Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1141:19) host.RR-DEB-iOB | 2023-06-18 21:52:33.680 | error | Caught by controller[0]: at Module._load (node:internal/modules/cjs/loader:920:27) host.RR-DEB-iOB | 2023-06-18 21:52:33.680 | error | Caught by controller[0]: at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15) host.RR-DEB-iOB | 2023-06-18 21:52:33.680 | error | Caught by controller[0]: - /opt/iobroker/node_modules/iobroker.b-control-em/main.js host.RR-DEB-iOB | 2023-06-18 21:52:33.680 | error | Caught by controller[0]: - /opt/iobroker/node_modules/iobroker.b-control-em/lib/utils.js host.RR-DEB-iOB | 2023-06-18 21:52:33.680 | error | Caught by controller[0]: Require stack: host.RR-DEB-iOB | 2023-06-18 21:52:33.680 | error | Caught by controller[0]: Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js' host.RR-DEB-iOB | 2023-06-18 21:52:33.680 | error | Caught by controller[0]: ^ host.RR-DEB-iOB | 2023-06-18 21:52:33.680 | error | Caught by controller[0]: throw err; host.RR-DEB-iOB | 2023-06-18 21:52:33.680 | error | Caught by controller[0]: node:internal/modules/cjs/loader:1078 host.RR-DEB-iOB | 2023-06-18 21:52:33.523 | info | instance system.adapter.b-control-em.0 started with pid 4103188

`

looxer01 commented 1 year ago

I have also tried to execute iobroker fix and a npm rebuild with no success.

Apollon77 commented 1 year ago

adapter-core needs to be updated: https://github.com/ioBroker/ioBroker.b-control-em/blob/master/package.json#L23

bytec77 commented 1 year ago

Is there anyone to update the adapter to work with controller 5.05 ?

Apollon77 commented 1 year ago

please try GitHub version

looxer01 commented 1 year ago

Thank you for fixing. Tried the current Github version with Controller 5.0.8. and it seems to be working. I receive updates of objects and B-Control is up and running

bytec77 commented 1 year ago

@Apollon77 Thanks same here.