standardnotes / server

Server ecosystem for Standard Notes; fully self-hostable.
https://standardnotes.com/help/self-hosting/docker
GNU General Public License v3.0
249 stars 60 forks source link

A server error occurred while trying to register. Please try again. #551

Closed kgnfth closed 1 year ago

hazzuk commented 1 year ago

I believe I'm facing a similar issue, as when I try to register for a new account I also get status 500 error.

I've tried following the Self-hosting with Docker documentation. Completed it twice, with no modifications to the basic setup, haven't gotten anywhere sadly.

Running tail -f logs/*.log these look the most interesting

Screenshot 2023-05-03 211124 Screenshot 2023-05-03 211046 Screenshot 2023-05-03 211038

moughxyz commented 1 year ago

Are there logs for logs/auth.log? And are you also using CapRover (as per the original issue)?

hazzuk commented 1 year ago

Are there logs for logs/auth.log? And are you also using CapRover (as per the original issue)?

Hello, I'm not using CapRover, I've tried following the 'Self-hosting with Docker' documentation to the letter. Tried it twice, with no modifications.

Thought I'd chime in here as it seemed I was facing a similar problem, unable to register only getting a 500 error. And similar error in my logs. I've attached all my logs and my config files here. standardnotes_server_logs.zip

moughxyz commented 1 year ago

In the logs/auth.err file, it says:

Error: ENCRYPTION_SERVER_KEY must be a hex string exactly 32 bytes long!

As per the documentation:

If you encounter issues, check the error logs: tail -f logs/*.err

hazzuk commented 1 year ago

In the logs/auth.err file, it says:

Error: ENCRYPTION_SERVER_KEY must be a hex string exactly 32 bytes long!

As per the documentation:

If you encounter issues, check the error logs: tail -f logs/*.err

Ah thank you! That fixed my issue, I didn't see that line when looking through the logs.

My mistake following the documentation was generating the keys. I had created them directly in my personal password manager. And had mistaken this example command to be generating a key 32 characters in length openssl rand -hex 32 which is clearly not the case.