Removing corrupted schedule file '/run/celery-beat-schedule': error(13, 'Permission denied')
Bug description A clear and concise description of what the bug is.
Steps to reproduce Steps to reproduce the behavior:
- Follow "https://defectdojo.readthedocs.io/en/latest/upgrading.html" steps
- Run From inside the django-DefectDojo/ directory execute:
#celery -A dojo worker -l info --concurrency 3
#celery beat -A dojo -l info
use "https://defectdojo.readthedocs.io/en/latest/running-in-production.html"
Expected behavior Celery beat should start with no error.
Deployment method (select with an X)
- [ ] Kubernetes
- [ ] Docker
- [X] setup.bash / legacy-setup.bash
Environment information
- Operating System: Red Hat Linux
- DefectDojo Commit Message: [use
git show -s --format="%h: %s [%ci]"] 9986e86
E
bash: [2020-03-11 20:36:05,588: INFO/MainProcess] beat: Starting...
bash: [2020-03-11 20:36:05,593: ERROR/MainProcess] Removing corrupted schedule file '/run/celery-beat-schedule': error(13, 'Permission denied')
bash: Traceback (most recent call last):
bash: File "/usr/local/lib/python3.6/site-packages/kombu/utils/objects.py", line 42, in get
bash: return obj.dict[self.name]
bash: KeyError: 'scheduler'
bash: During handling of the above exception, another exception occurred:
bash: Traceback (most recent call last):
bash: File "/usr/local/lib/python3.6/site-packages/celery/beat.py", line 519, in setup_schedule
bash: self._store = self._open_schedule()
bash: File "/usr/local/lib/python3.6/site-packages/celery/beat.py", line 509, in _open_schedule
bash: return self.persistence.open(self.schedule_filename, writeback=True)
bash: File "/usr/lib64/python3.6/shelve.py", line 243, in open
bash: return DbfilenameShelf(filename, flag, protocol, writeback)
bash: File "/usr/lib64/python3.6/shelve.py", line 227, in init
bash: Shelf.init(self, dbm.open(filename, flag), protocol, writeback)
bash: File "/usr/lib64/python3.6/dbm/init.py", line 94, in open
bash: return mod.open(file, flag, mode)
bash: _gdbm.error: [Errno 13] Permission denied
bash: [2020-03-11 20:36:05,597: CRITICAL/MainProcess] beat raised exception <class '_gdbm.error'>: error(13, 'Permission denied')
[2020-03-11 20:36:05,599: WARNING/MainProcess] File "/usr/local/lib/python3.6/site-packages/kombu/utils/objects.py", line 42, in get
bash: [2020-03-11 20:36:05,599: WARNING/MainProcess] return obj.dict[self.name]
bash: [2020-03-11 20:36:05,599: WARNING/MainProcess] KeyError
bash: [2020-03-11 20:36:05,599: WARNING/MainProcess] :
bash: [2020-03-11 20:36:05,600: WARNING/MainProcess] 'scheduler'
bash: [2020-03-11 20:36:05,600: WARNING/MainProcess] During handling of the above exception, another exception occurred:
bash: [2020-03-11 20:36:05,600: WARNING/MainProcess] Traceback (most recent call last):
bash: [2020-03-11 20:36:05,600: WARNING/MainProcess] File "/usr/local/lib/python3.6/site-packages/celery/beat.py", line 519, in setup_schedule
bash: [2020-03-11 20:36:05,601: WARNING/MainProcess] self._store = self._open_schedule()
bash: [2020-03-11 20:36:05,601: WARNING/MainProcess] File "/usr/local/lib/python3.6/site-packages/celery/beat.py", line 509, in _open_schedule
bash: [2020-03-11 20:36:05,601: WARNING/MainProcess] return self.persistence.open(self.schedule_filename, writeback=True)
bash: [2020-03-11 20:36:05,602: WARNING/MainProcess] File "/usr/lib64/python3.6/shelve.py", line 243, in open
bash: [2020-03-11 20:36:05,602: WARNING/MainProcess] return DbfilenameShelf(filename, flag, protocol, writeback)
bash: [2020-03-11 20:36:05,602: WARNING/MainProcess] File "/usr/lib64/python3.6/shelve.py", line 227, in init
bash: [2020-03-11 20:36:05,603: WARNING/MainProcess] Shelf.init(self, dbm.open(filename, flag), protocol, writeback)
bash: [2020-03-11 20:36:05,603: WARNING/MainProcess] File "/usr/lib64/python3.6/dbm/init.py", line 94, in open
bash: [2020-03-11 20:36:05,603: WARNING/MainProcess] return mod.open(file, flag, mode)
bash: [2020-03-11 20:36:05,604: WARNING/MainProcess] _gdbm
bash: [2020-03-11 20:36:05,604: WARNING/MainProcess] .
bash: [2020-03-11 20:36:05,604: WARNING/MainProcess] error
bash: [2020-03-11 20:36:05,604: WARNING/MainProcess] :
bash: [2020-03-11 20:36:05,604: WARNING/MainProcess] [Errno 13] Permission denied
bash: [2020-03-11 20:36:05,604: WARNING/MainProcess] During handling of the above exception, another exception occurred:
bash: [2020-03-11 20:36:05,604: WARNING/MainProcess] Traceback (most recent call last):
bash: [2020-03-11 20:36:05,604: WARNING/MainProcess] File "/usr/local/bin/celery", line 8, in
@ptrovatelli Can you please comment on this?
sorry never used the setup bash; i'm only using docker and kubernetes and I didn't see that issue. I think @devGregA is our setupbash expert; does this issue ring a bell Greg?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
[email protected] you got the solution?
@MagicScorpion and @rahulsdev I am having the same issue while spinning glitchtip up using helm on kubernetes ``` 2021-08-04 10:24:01,790: WARNING/MainProcess] File "/usr/local/lib/python3.9/dbm/init.py", line 95, in open
[2021-08-04 10:24:01,790: WARNING/MainProcess] [2021-08-04 10:24:01,790: WARNING/MainProcess] return mod.open(file, flag, mode) [2021-08-04 10:24:01,790: WARNING/MainProcess]
[2021-08-04 10:24:01,790: WARNING/MainProcess] _gdbm [2021-08-04 10:24:01,790: WARNING/MainProcess] . [2021-08-04 10:24:01,790: WARNING/MainProcess] error [2021-08-04 10:24:01,790: WARNING/MainProcess] : [2021-08-04 10:24:01,790: WARNING/MainProcess] [Errno 13] Permission denied: 'celerybeat-schedule' [2021-08-04 10:24:01,790: WARNING/MainProcess]
Please did any one resolve this issue?