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

Install failed - how to debug? #70

Open
mukulele opened this issue Jan 15, 2024 · 3 comments
Open

Install failed - how to debug? #70

mukulele opened this issue Jan 15, 2024 · 3 comments

Comments

@mukulele
Copy link

My setup:
Signalk server 2.5.0 on docker without node red embedded

Tried to install https://www.npmjs.com/package/signalk-to-influxdb from signalk appstore
Result : Status failed

@tkurki
Copy link
Owner

tkurki commented Jan 16, 2024

Check the server log. Also just restart and try again, could be just temporary.

@mukulele
Copy link
Author

A server restart did not solve the problem
Please see below the error messages from server.log

Jan 16 15:05:33 Could not start mDNS:TypeError: argument 8 must be an integer (port)
...

Jan 16 15:07:25 POST /skServer/appstore/install/signalk-to-influxdb/1.9.1 200 442.334 ms - 33
Jan 16 15:07:28 stderr: npm
Jan 16 15:07:28 stderr: ERR! code EJSONPARSE
Jan 16 15:07:28 stderr: npm ERR! path /home/node/.signalk/package.json
Jan 16 15:07:28 stderr: npm
Jan 16 15:07:28 stderr: ERR! JSON.parse
Jan 16 15:07:28 stderr: Unexpected token "}" (0x7D) in JSON at position 554 while parsing near "...2000": "^2.17.0",\n }\n}\n" npm ERR! JSON.parse Failed to parse JSON data.
Jan 16 15:07:28 stderr: npm ERR! JSON.parse Note: package.json must be actual JSON, not just JavaScript.
Jan 16 15:07:28 stderr:
Jan 16 15:07:28 stderr: npm ERR! A complete log of this run can be found in: /home/node/.npm/_logs/2024-01-16T15_07_26_923Z-debug-0.log

@tkurki
Copy link
Owner

tkurki commented Jan 17, 2024

The file /home/node/.signalk/package.json is corrupt. You can try to fix it or just remove it. It contains a list of your installed plugins in casee you’d want to reinstall them on the same or another server, so removing it is not a disaster.

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

2 participants