Nukesor / pueue

:stars: Manage your shell commands.
MIT License
4.69k stars 128 forks source link

[Bug] Failed to create pid file #466

Closed makorne closed 8 months ago

makorne commented 9 months ago

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 commented 9 months ago

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 commented 9 months ago

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 commented 8 months ago

Ping @makorne

Nukesor commented 8 months ago

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