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

PermissionError: [Errno 13] Permission denied: '/tmp/buskill.log' #75

Open
maltfield opened this issue Jun 19, 2023 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@maltfield
Copy link
Member

maltfield commented Jun 19, 2023

Describe the bug
If a user starts buskill as one user and then later starts it as another user, the BusKill app will fail to start with the following error

PermissionError: [Errno 13] Permission denied: '/tmp/buskill.log'

To Reproduce
Steps to reproduce the behavior:

  1. Install Debian 12
  2. Install BusKill sudo apt-get install buskill
  3. Become root sudo su -
  4. Start BusKill buskill
  5. Either leave [4] open or close it with SIGTERM
  6. Open buskill as another user buskill
  7. See errro

Expected behavior

BusKill should start as any user, regardless of previous runs by other users

Probably it would be wise to move the BusKill log file into a system CACHE dir or buskill-specific CACHE dir.

We should also default to not storing >1 run in the log file, such that on-start the app overwrites the previous log file's contents (unless persist debug log is enabled). Also, we should catch permission errors on attempt to write to a given log file and then just append a timestamp to the filename.

Screenshots
If applicable, add screenshots to help explain your problem.

Versions (please complete the following information):

  • OS: Debian 12
  • BusKill: 0.6.0+git20221227.e1539d2-4
@maltfield maltfield self-assigned this Jun 19, 2023
@maltfield maltfield added the bug Something isn't working label Jun 19, 2023
@maltfield
Copy link
Member Author

See also #31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant