contribsys / faktory

Language-agnostic persistent background job server
https://contribsys.com/faktory/
Other
5.78k stars 230 forks source link

Factory can not be run as a second user without a computer restart #435

Closed jonathan-wondereur closed 1 year ago

jonathan-wondereur commented 1 year ago

When I try to run faktory as a user without sudo it crashes. How can I enable faktory to run as a user without sudo?

goroutine 8 [running]: github.com/contribsys/faktory/storage.bootRedis.func2() /Users/mperham/src/github.com/contribsys/faktory/storage/redis.go:166 +0xd3 created by github.com/contribsys/faktory/storage.bootRedis /Users/mperham/src/github.com/contribsys/faktory/storage/redis.go:162 +0xa2c



Are you using an old version? No
Have you checked the changelogs to see if your issue has been fixed in a later version? N/A

https://github.com/contribsys/faktory/blob/master/Changes.md
https://github.com/contribsys/faktory/blob/master/Pro-Changes.md
https://github.com/contribsys/faktory/blob/master/Ent-Changes.md
jonathan-wondereur commented 1 year ago

Okay, sorry, this is actually an issue with starting the process with one user, shutting it down and trying to start it with another user.

In this case the second user can not fully start faktory until the computer has a restart.

mperham commented 1 year ago

Looks like Redis maybe doesn’t have permissions to write to that DB directory?

jonathan-wondereur commented 1 year ago

Sorry, see my comment, the issue is actually something else, not that big of an issue really, just something to know ...