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

SK bootup error about Freeboad-SK permission #120

Closed
KEGustafsson opened this issue Sep 17, 2023 · 5 comments
Closed

SK bootup error about Freeboad-SK permission #120

KEGustafsson opened this issue Sep 17, 2023 · 5 comments

Comments

@KEGustafsson
Copy link

KEGustafsson commented Sep 17, 2023

I got this error to log after I updated Freeboard-SK.

Error: You do not have permission to view this resource, <a href='/admin/#/login'>Please Login</a> at IncomingMessage.<anonymous> (/home/node/.signalk/node_modules/@signalk/freeboard-sk/plugin/lib/fetch.js:25:28) at IncomingMessage.emit (node:events:526:35) at endReadableNT (node:internal/streams/readable:1376:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

If SSL is enabled then error is a bit different.
Error: socket hang up at connResetException (node:internal/errors:720:14) at Socket.socketOnEnd (node:_http_client:519:23) at Socket.emit (node:events:526:35) at endReadableNT (node:internal/streams/readable:1376:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { code: 'ECONNRESET' }

@panaaj
Copy link
Member

panaaj commented Sep 17, 2023

Do you have security enabled?
It looks like the check to see if the anchor-alarm plugin is installed requires authentication.

I will have to remove this.

I will raise an issue under the server repo to allow GETs to /plugins to allow detection of capabilities.

@KEGustafsson
Copy link
Author

Security is enabled.

@tkurki
Copy link
Member

tkurki commented Sep 18, 2023

That is freeboard plugin fetch call - what is it doing? Something we should have an api for?

@panaaj
Copy link
Member

panaaj commented Sep 18, 2023

At plugin startup it is checking for the presence of the signalk-anchor-alarm via a GET request to /plugins.

Have raised an issue for this.
SignalK/signalk-server#1627

@tkurki
Copy link
Member

tkurki commented Sep 19, 2023

I think we should solve this by creating a server plugin API that allows a plugin to check the presence of other APIs.

@panaaj panaaj closed this as completed in 5703c0a Sep 23, 2023
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