Unable to sign token: secretOrPrivateKey must have a value
I have been trying to get SignalK installed, it was working, and when I upgraded with apt upgrade, and reinistalled SignalK, I get this error trying to log in...
Unable to sign token: secretOrPrivateKey must have a value
I have tried everything I can think of but there are not error logs, it almost looks from the logs like it logs in. If I go to a different section, and try to log in, such as Freeboard-sk, the error is Invalid Username or Password.
My username and password are correct, I make them as soon as the server installs, I have checked carefully.
Any thoughts?
5 Replies
GitHub
FAQ: Frequently Asked Questions
An implementation of a Signal K central server for boats. - SignalK/signalk-server
This absolutely lets me into the system settings, but does not let me secure the server, I cannot leave my autopilot open to the internet. I need to be able to require login to control the boat. I appreciate the input, do you know what the error might be related to?
I have the server behind nginx at this point, and reconstructing it, but I am remote, specifically 9000km away, so I have to be a bit careful what I break. I do not know what I could have broken in the raspberry pi image that would break the login, but the SignalK is working great other than that.
Again, the error is 'Unable to sign token: secretOrPrivateKey must have a value' which means nothing to me and google.
Well, I got it working, in a way I am not super happy with. I removed the security like suggested, then I created a new user, and it re-enabled security. It also recreated the security.json file and most certainly changed the hashed password for the user(password is the same)
I have no idea why this worked, but it did, and I do not know why it was messed up in the first place. I assume it is something I deleted, but maybe this will help someone if they get here like I did, and cannot simply do a re-format and start over.
Thanks for the input everyone!
👍That is what I meant that you should do - disable and re enable security
Ah ok, that makes more sense!
Every install I do has this problem, I never had this problem before, what am I missing?
really? how do you install it? is there no security.json in the settings directory?