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
Closed

Cannot login (session not saved) #87

emorozov opened this issue Apr 3, 2019 · 3 comments

Comments

@emorozov
Copy link

emorozov 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
Copy link
Member

thebaer commented Apr 3, 2019

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

@emorozov
Copy link
Author

emorozov commented Apr 3, 2019

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

@emorozov emorozov closed this as completed Apr 3, 2019
@thebaer
Copy link
Member

thebaer commented Apr 3, 2019

No problem 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants