Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot start instance #135

Closed
mrhoga opened this issue Jan 4, 2019 · 5 comments
Closed

Cannot start instance #135

mrhoga opened this issue Jan 4, 2019 · 5 comments

Comments

@mrhoga
Copy link

mrhoga commented Jan 4, 2019

hm-rpc instance cannot be started due to script error

Two instances of the adapter are configured, one for HM and another one for HM-IP. While the HM-IP instance is running without problems, the one configured for HM recently stopped working and logs the below messages:

Quelle Zeit debug Meldung
host.ioBroker-Pi 2019-01-04 04:13:37.475 info Restart adapter system.adapter.hm-rpc.0 because enabled
host.ioBroker-Pi 2019-01-04 04:13:37.475 error instance system.adapter.hm-rpc.0 terminated with code 0 (OK)
host.ioBroker-Pi 2019-01-04 04:13:37.475 error Caught by controller[0]: at Object. (/opt/iobroker/node_modules/iobroker.hm-rpc/node_modules/binrpc/lib/client.js:6:14)
host.ioBroker-Pi 2019-01-04 04:13:37.475 error Caught by controller[0]: at require (internal/module.js:20:19)
host.ioBroker-Pi 2019-01-04 04:13:37.475 error Caught by controller[0]: at Module.require (module.js:497:17)
host.ioBroker-Pi 2019-01-04 04:13:37.473 error Caught by controller[0]: at Function.Module._load (module.js:438:3)
host.ioBroker-Pi 2019-01-04 04:13:37.472 error Caught by controller[0]: at tryModuleLoad (module.js:446:12)
host.ioBroker-Pi 2019-01-04 04:13:37.470 error Caught by controller[0]: at Module.load (module.js:487:32)
host.ioBroker-Pi 2019-01-04 04:13:37.469 error Caught by controller[0]: at Object.Module._extensions..js (module.js:579:10)
host.ioBroker-Pi 2019-01-04 04:13:37.467 error Caught by controller[0]: at Module._compile (module.js:542:28)
host.ioBroker-Pi 2019-01-04 04:13:37.466 error Caught by controller[0]: at Object.runInThisContext (vm.js:97:10)
host.ioBroker-Pi 2019-01-04 04:13:37.465 error Caught by controller[0]: at createScript (vm.js:56:10)
host.ioBroker-Pi 2019-01-04 04:13:37.463 error Caught by controller[0]: SyntaxError: Unexpected token *
host.ioBroker-Pi 2019-01-04 04:13:37.462 error Caught by controller[0]: ^
host.ioBroker-Pi 2019-01-04 04:13:37.460 error Caught by controller[0]: var man = Math.floor((d * (2 ** -exp)) * (1 << 30));
host.ioBroker-Pi 2019-01-04 04:13:37.460 error Caught by controller[0]: /opt/iobroker/node_modules/iobroker.hm-rpc/node_modules/binrpc/lib/protocol.js:213
host.ioBroker-Pi 2019-01-04 04:13:35.549 info instance system.adapter.hm-rpc.0 started with pid 24276
@foxriver76
Copy link
Collaborator

The binrpc has received two new versions in the last 24 hours, maybe the version published about 15 hours ago included a syntax error. I would assume that this is fixed with version 3.3.1, published this morning.

@foxriver76
Copy link
Collaborator

Would be great if you can give feedback if it works with binrpc 3.3.1, then I can explicitly depend on a version >= 3.3.1

@mrhoga
Copy link
Author

mrhoga commented Jan 4, 2019

Confirmed, I just reinstalled hm-rpc v. 1.8.2 and the adapter starts without any errors again.
Thank you!

@Apollon77
Copy link
Contributor

@foxriver76 but please ^3.3.1!! Not >=

@foxriver76
Copy link
Collaborator

@mrhoga thanks for your feedback
@Apollon77 of course ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants