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

[Bug] Failed to create pid file #466

Closed
makorne opened this issue Oct 4, 2023 · 4 comments · Fixed by #467
Closed

[Bug] Failed to create pid file #466

makorne opened this issue Oct 4, 2023 · 4 comments · Fixed by #467
Labels

Comments

@makorne
Copy link

makorne commented Oct 4, 2023

Describe the bug

Installed package pueue v3.2.0 (executables pueue, pueued)
pueued -d
Pueued is now running in the background
~/rs/$ Error: Failed to create pid file.

Caused by:
I/O error while creating pid file:
Permission denied (os error 13)

Steps to reproduce

  1. cargo install --locked pueue
  2. pueued -d

Debug logs (if relevant)

No response

Operating system

Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux

Pueue version

3.2

Additional context

No response

@Nukesor
Copy link
Owner

Nukesor commented Oct 5, 2023

Please check your $XDG_RUNTIME_DIR variable and whether the path it points to actually exists and whether you're allowed to write into your runtime directory.

This looks like a misconfigured user environment.

If that variable is not set, pueue falls back to the pueue directory, which would be ~/.local/share/pueue/.

Also check your config file, if you explicitly set the path to the pid. In case you did, please check your permissions.

@Nukesor
Copy link
Owner

Nukesor commented Oct 5, 2023

I'll go ahead and improve the error messages for this case as well.

I thought I already did this for all path related I/O errors, but looks like I missed a few places.

@Nukesor
Copy link
Owner

Nukesor commented Oct 15, 2023

Ping @makorne

@Nukesor
Copy link
Owner

Nukesor commented Oct 21, 2023

Closing for now as solved :)
Feel free to comment if you have any additional information.

@Nukesor Nukesor closed this as completed Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants