Config file not loaded when running as service #158
Labels
No Label
dependencies
duplicate
help wanted
invalid
kind/bug
kind/feature
needs reproduction
question
security
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/vikunja#158
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
After some troubleshooting I've found that my config file is only getting loaded when I run the vikunja executable in the foreground, and not when I run it as a service.
When running in the foreground, I get the following and everything seems to work:
When running as a service, I get the following and I can't login, presumably due to the database not being loaded:
I use the following unit file, following the example in the documentation:
I'm running Debian 10 and Vikunja 0.11 for backend and frontend.
I noticed there were some possibly related changes recently.
51c74de1de
I don't know whether this is included in the current master build, but using that did not seem to help.
Yes,
51c74de1de
is included in the current master build (that one has always the latest changes from the master branch).The behaviour you describe is indeed a bug, it should not bail if the home directory is not set but instead just don't try to add a config file from that directory. I assume this has something to do with the way systemd sets env variables.
I'll push a fix.
I've pushed a fix in
6d1018e647
, a release will be ready in a few minutes once ci passes.Please test again once a new release is ready.
That seems to work. Thanks!