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 login (session not saved) #87

Closed
emorozov opened this issue Apr 3, 2019 · 3 comments

Comments

Projects
None yet
2 participants
@emorozov
Copy link

commented Apr 3, 2019

Describe the bug

I've set up private writefreely instance on my VPS as described on the QuickStart page.
The only difference is that I've used a different user to run the writefreely service in systemd as opposed to the QuickStart documentation that runs server as root.

I cannot log in to my instance (got redirected to log in form on every attempt) and I see the following error message in the logs:

Apr 03 17:24:52 hostname writefreely[17486]: ERROR: 2019/04/03 17:24:52 log.go:26: Login: Couldn't save session: securecookie: hash key is not set

All files belong to the user that runs the writefreely user, so there can't be any permission issues, unless it tries to write outside of the home directory for the user.

  • Single mode
  • Database? sqlite
  • Open registration? no
  • Federation enabled? yes

Version or last commit:
0.8.1

@thebaer

This comment has been minimized.

Copy link
Member

commented Apr 3, 2019

Did you run the writefreely --gen-keys step?

@emorozov

This comment has been minimized.

Copy link
Author

commented Apr 3, 2019

Sorry, my bad. Shouldn't set up a new software late night. Works perfectly now.

@emorozov emorozov closed this Apr 3, 2019

@thebaer

This comment has been minimized.

Copy link
Member

commented Apr 3, 2019

No problem 👍

@thebaer thebaer added the not a bug label Apr 3, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.