lbryio / lbryio/hub

Permission issue rolling over log file

Open
#60 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
15
Forks
16
PR merge metrics
No merged PRs in 30d

Description

```herald_1 | 2022-07-14 14:51:46,625 INFO hub.herald.mempool:290: notified 1 sessions/3 touched addresses
herald_1 | --- Logging error ---
herald_1 | Traceback (most recent call last):
herald_1 | File "/usr/lib/python3.9/logging/handlers.py", line 74, in emit
herald_1 | self.doRollover()
herald_1 | File "/usr/lib/python3.9/logging/handlers.py", line 177, in doRollover
herald_1 | self.rotate(self.baseFilename, dfn)
herald_1 | File "/usr/lib/python3.9/logging/handlers.py", line 115, in rotate
herald_1 | os.rename(source, dest)
herald_1 | PermissionError: [Errno 13] Permission denied: '/database/herald.log' -> '/database/herald.log.1'
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Use the traceback's Python logging.handlers.doRollover path and the /database/herald.log to /database/herald.log.1 rename as the starting point. Reproduce the rollover and confirm it completes without PermissionError; the issue does not identify a repository file or test.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.