FuzzyGrim / Yamtrack

A self hosted media tracker.
GNU Affero General Public License v3.0
182 stars 1 forks source link

[Bug Report] celerybeat-schedule: permission denied #215

Closed Walmarpole closed 2 months ago

Walmarpole commented 2 months ago

Issue Description

Hosting the docker-compose.yml of either provided database variant provides an error when attempting to run the container. Appears to be related to celerybeat-schedule needing root permissions according to some searching around but the logs are provided for proper diagnostics. No edits made to docker-compose.yml.

Operating System

Windows 11

Version

latest

Steps to reproduce

  1. Create fresh yamtrack container from docker-compose
  2. Failure with celerybeat error

Relevant logs (if applicable)

2024-09-16 11:42:53 yamtrack-redis  | 1:C 16 Sep 2024 19:42:53.687 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
2024-09-16 11:42:53 yamtrack-redis  | 1:C 16 Sep 2024 19:42:53.687 * Redis version=7.4.0, bits=64, commit=00000000, modified=0, pid=1, just started
2024-09-16 11:42:53 yamtrack-redis  | 1:C 16 Sep 2024 19:42:53.687 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
2024-09-16 11:42:53 yamtrack-redis  | 1:M 16 Sep 2024 19:42:53.687 * monotonic clock: POSIX clock_gettime
2024-09-16 11:42:53 yamtrack-redis  | 1:M 16 Sep 2024 19:42:53.688 * Running mode=standalone, port=6379.
2024-09-16 11:42:53 yamtrack-redis  | 1:M 16 Sep 2024 19:42:53.688 * Server initialized
2024-09-16 11:42:53 yamtrack-redis  | 1:M 16 Sep 2024 19:42:53.688 * Loading RDB produced by version 7.4.0
2024-09-16 11:42:53 yamtrack-redis  | 1:M 16 Sep 2024 19:42:53.688 * RDB age 77 seconds
2024-09-16 11:42:53 yamtrack-redis  | 1:M 16 Sep 2024 19:42:53.688 * RDB memory usage when created 1.28 Mb
2024-09-16 11:42:53 yamtrack-redis  | 1:M 16 Sep 2024 19:42:53.688 * Done loading RDB, keys loaded: 1, keys expired: 0.
2024-09-16 11:42:53 yamtrack-redis  | 1:M 16 Sep 2024 19:42:53.688 * DB loaded from disk: 0.000 seconds
2024-09-16 11:42:53 yamtrack-redis  | 1:M 16 Sep 2024 19:42:53.688 * Ready to accept connections tcp
2024-09-16 11:48:35 yamtrack-redis  | 1:signal-handler (1726516115) Received SIGTERM scheduling shutdown...
2024-09-16 11:48:35 yamtrack-redis  | 1:M 16 Sep 2024 19:48:35.636 * User requested shutdown...
2024-09-16 11:48:35 yamtrack-redis  | 1:M 16 Sep 2024 19:48:35.636 * Saving the final RDB snapshot before exiting.
2024-09-16 11:48:35 yamtrack-redis  | 1:M 16 Sep 2024 19:48:35.640 * DB saved on disk
2024-09-16 11:48:35 yamtrack-redis  | 1:M 16 Sep 2024 19:48:35.640 # Redis is now ready to exit, bye bye...
2024-09-16 11:48:39 yamtrack-redis  | 1:C 16 Sep 2024 19:48:39.816 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
2024-09-16 11:48:39 yamtrack-redis  | 1:C 16 Sep 2024 19:48:39.816 * Redis version=7.4.0, bits=64, commit=00000000, modified=0, pid=1, just started
2024-09-16 11:48:39 yamtrack-redis  | 1:C 16 Sep 2024 19:48:39.816 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
2024-09-16 11:48:39 yamtrack-redis  | 1:M 16 Sep 2024 19:48:39.816 * monotonic clock: POSIX clock_gettime
2024-09-16 11:48:39 yamtrack-redis  | 1:M 16 Sep 2024 19:48:39.817 * Running mode=standalone, port=6379.
2024-09-16 11:48:39 yamtrack-redis  | 1:M 16 Sep 2024 19:48:39.817 * Server initialized
2024-09-16 11:48:39 yamtrack-redis  | 1:M 16 Sep 2024 19:48:39.817 * Loading RDB produced by version 7.4.0
2024-09-16 11:48:39 yamtrack-redis  | 1:M 16 Sep 2024 19:48:39.817 * RDB age 4 seconds
2024-09-16 11:48:39 yamtrack-redis  | 1:M 16 Sep 2024 19:48:39.817 * RDB memory usage when created 1.28 Mb
2024-09-16 11:48:39 yamtrack-redis  | 1:M 16 Sep 2024 19:48:39.817 * Done loading RDB, keys loaded: 1, keys expired: 0.
2024-09-16 11:48:39 yamtrack-redis  | 1:M 16 Sep 2024 19:48:39.817 * DB loaded from disk: 0.000 seconds
2024-09-16 11:48:39 yamtrack-redis  | 1:M 16 Sep 2024 19:48:39.817 * Ready to accept connections tcp
2024-09-16 11:48:40 yamtrack        | Operations to perform:
2024-09-16 11:48:40 yamtrack        |   Apply all migrations: app, auth, contenttypes, django_celery_results, events, lists, sessions, users
2024-09-16 11:48:40 yamtrack        | Running migrations:
2024-09-16 11:48:40 yamtrack        |   Applying contenttypes.0001_initial... OK
2024-09-16 11:48:41 yamtrack        |   Applying contenttypes.0002_remove_content_type_name... OK
2024-09-16 11:48:41 yamtrack        |   Applying auth.0001_initial... OK
2024-09-16 11:48:41 yamtrack        |   Applying auth.0002_alter_permission_name_max_length... OK
2024-09-16 11:48:41 yamtrack        |   Applying auth.0003_alter_user_email_max_length... OK
2024-09-16 11:48:41 yamtrack        |   Applying auth.0004_alter_user_username_opts... OK
2024-09-16 11:48:41 yamtrack        |   Applying auth.0005_alter_user_last_login_null... OK
2024-09-16 11:48:41 yamtrack        |   Applying auth.0006_require_contenttypes_0002... OK
2024-09-16 11:48:41 yamtrack        |   Applying auth.0007_alter_validators_add_error_messages... OK
2024-09-16 11:48:41 yamtrack        |   Applying auth.0008_alter_user_username_max_length... OK
2024-09-16 11:48:41 yamtrack        |   Applying auth.0009_alter_user_last_name_max_length... OK
2024-09-16 11:48:41 yamtrack        |   Applying auth.0010_alter_group_name_max_length... OK
2024-09-16 11:48:41 yamtrack        |   Applying auth.0011_update_proxy_permissions... OK
2024-09-16 11:48:41 yamtrack        |   Applying auth.0012_alter_user_first_name_max_length... OK
2024-09-16 11:48:41 yamtrack        |   Applying users.0001_squashed_0008_user_game_layout_alter_user_last_search_type... OK
2024-09-16 11:48:41 yamtrack        |   Applying app.0001_squashed_0014_historicalanime_historicalepisode_historicalgame_and_more... OK
2024-09-16 11:48:41 yamtrack        |   Applying app.0015_customlist_listitem... OK
2024-09-16 11:48:41 yamtrack        |   Applying app.0016_rename_user_customlist_owner_and_more... OK
2024-09-16 11:48:41 yamtrack        |   Applying app.0017_remove_customlistitem_custom_list_and_more... OK
2024-09-16 11:48:41 yamtrack        |   Applying app.0018_item... OK
2024-09-16 11:48:41 yamtrack        | [2024-09-16 19:48:41 +0000] [7] [INFO] Starting migration for tvs.
2024-09-16 11:48:41 yamtrack        | [2024-09-16 19:48:41 +0000] [7] [INFO] Finished migration for tvs.
2024-09-16 11:48:41 yamtrack        | [2024-09-16 19:48:41 +0000] [7] [INFO] Starting migration for seasons.
2024-09-16 11:48:41 yamtrack        | [2024-09-16 19:48:41 +0000] [7] [INFO] Finished migration for seasons.
2024-09-16 11:48:41 yamtrack        | [2024-09-16 19:48:41 +0000] [7] [INFO] Starting migration for mangas.
2024-09-16 11:48:41 yamtrack        | [2024-09-16 19:48:41 +0000] [7] [INFO] Finished migration for mangas.
2024-09-16 11:48:41 yamtrack        | [2024-09-16 19:48:41 +0000] [7] [INFO] Starting migration for animes.
2024-09-16 11:48:41 yamtrack        | [2024-09-16 19:48:41 +0000] [7] [INFO] Finished migration for animes.
2024-09-16 11:48:41 yamtrack        | [2024-09-16 19:48:41 +0000] [7] [INFO] Starting migration for movies.
2024-09-16 11:48:41 yamtrack        | [2024-09-16 19:48:41 +0000] [7] [INFO] Finished migration for movies.
2024-09-16 11:48:41 yamtrack        | [2024-09-16 19:48:41 +0000] [7] [INFO] Starting migration for games.
2024-09-16 11:48:41 yamtrack        | [2024-09-16 19:48:41 +0000] [7] [INFO] Finished migration for games.
2024-09-16 11:48:41 yamtrack        | [2024-09-16 19:48:41 +0000] [7] [INFO] Starting migration for episodes.
2024-09-16 11:48:41 yamtrack        | [2024-09-16 19:48:41 +0000] [7] [INFO] Finished migration for episodes.
2024-09-16 11:48:41 yamtrack        |   Applying app.0019_anime_item_episode_item_game_item_manga_item_and_more... OK
2024-09-16 11:48:42 yamtrack        |   Applying app.0020_alter_episode_options_alter_anime_unique_together_and_more... OK
2024-09-16 11:48:42 yamtrack        |   Applying app.0021_alter_item_media_type... OK
2024-09-16 11:48:42 yamtrack        |   Applying django_celery_results.0001_initial... OK
2024-09-16 11:48:42 yamtrack        |   Applying django_celery_results.0002_add_task_name_args_kwargs... OK
2024-09-16 11:48:42 yamtrack        |   Applying django_celery_results.0003_auto_20181106_1101... OK
2024-09-16 11:48:42 yamtrack        |   Applying django_celery_results.0004_auto_20190516_0412... OK
2024-09-16 11:48:42 yamtrack        |   Applying django_celery_results.0005_taskresult_worker... OK
2024-09-16 11:48:42 yamtrack        |   Applying django_celery_results.0006_taskresult_date_created... OK
2024-09-16 11:48:42 yamtrack        |   Applying django_celery_results.0007_remove_taskresult_hidden... OK
2024-09-16 11:48:42 yamtrack        |   Applying django_celery_results.0008_chordcounter... OK
2024-09-16 11:48:42 yamtrack        |   Applying django_celery_results.0009_groupresult... OK
2024-09-16 11:48:42 yamtrack        |   Applying django_celery_results.0010_remove_duplicate_indices... OK
2024-09-16 11:48:42 yamtrack        |   Applying django_celery_results.0011_taskresult_periodic_task_name... OK
2024-09-16 11:48:42 yamtrack        |   Applying events.0001_initial... OK
2024-09-16 11:48:42 yamtrack        |   Applying lists.0001_initial... OK
2024-09-16 11:48:42 yamtrack        |   Applying lists.0002_alter_customlistitem_item_alter_customlist_items_and_more... OK
2024-09-16 11:48:42 yamtrack        |   Applying sessions.0001_initial... OK
2024-09-16 11:48:42 yamtrack        |   Applying users.0009_alter_user_options... OK
2024-09-16 11:48:43 yamtrack        |   Applying users.0010_alter_user_last_search_type... OK
2024-09-16 11:48:43 yamtrack        | usermod: no changes
2024-09-16 11:48:45 yamtrack        | 2024-09-16 19:48:45,102 INFO Set uid to user 0 succeeded
2024-09-16 11:48:45 yamtrack        | 2024-09-16 19:48:45,105 INFO supervisord started with pid 1
2024-09-16 11:48:46 yamtrack        | 2024-09-16 19:48:46,109 INFO spawned: 'gunicorn' with pid 17
2024-09-16 11:48:46 yamtrack        | 2024-09-16 19:48:46,110 INFO spawned: 'celery' with pid 18
2024-09-16 11:48:46 yamtrack        | 2024-09-16 19:48:46,111 INFO spawned: 'celery-beat' with pid 19
2024-09-16 11:48:46 yamtrack        | celery beat v5.4.0 (opalescent) is starting.
2024-09-16 11:48:46 yamtrack        | [2024-09-16 19:48:46 +0000] [17] [INFO] Starting gunicorn 22.0.0
2024-09-16 11:48:46 yamtrack        | [2024-09-16 19:48:46 +0000] [17] [INFO] Listening at: http://0.0.0.0:8000 (17)
2024-09-16 11:48:46 yamtrack        | [2024-09-16 19:48:46 +0000] [17] [INFO] Using worker: sync
2024-09-16 11:48:46 yamtrack        | [2024-09-16 19:48:46 +0000] [20] [INFO] Booting worker with pid: 20
2024-09-16 11:48:46 yamtrack        | __    -    ... __   -        _
2024-09-16 11:48:46 yamtrack        | LocalTime -> 2024-09-16 19:48:46
2024-09-16 11:48:46 yamtrack        | Configuration ->
2024-09-16 11:48:46 yamtrack        |     . broker -> redis://redis:6379//
2024-09-16 11:48:46 yamtrack        |     . loader -> celery.loaders.app.AppLoader
2024-09-16 11:48:46 yamtrack        |     . scheduler -> celery.beat.PersistentScheduler
2024-09-16 11:48:46 yamtrack        |     . db -> ./db/celerybeat-schedule
2024-09-16 11:48:46 yamtrack        |     . logfile -> [stderr]@%INFO
2024-09-16 11:48:46 yamtrack        |     . maxinterval -> 5.00 minutes (300s)
2024-09-16 11:48:46 yamtrack        | [2024-09-16 19:48:46 +0000] [19] [INFO] beat: Starting...
2024-09-16 11:48:46 yamtrack        |  
2024-09-16 11:48:46 yamtrack        |  -------------- celery@f45f25683da7 v5.4.0 (opalescent)
2024-09-16 11:48:46 yamtrack        | --- ***** ----- 
2024-09-16 11:48:46 yamtrack        | -- ******* ---- Linux-5.15.153.1-microsoft-standard-WSL2-x86_64-with-glibc2.31 2024-09-16 19:48:46
2024-09-16 11:48:46 yamtrack        | - *** --- * --- 
2024-09-16 11:48:46 yamtrack        | - ** ---------- [config]
2024-09-16 11:48:46 yamtrack        | - ** ---------- .> app:         yamtrack:0x7f2624560b10
2024-09-16 11:48:46 yamtrack        | - ** ---------- .> transport:   redis://redis:6379//
2024-09-16 11:48:46 yamtrack        | - ** ---------- .> results:     
2024-09-16 11:48:46 yamtrack        | - *** --- * --- .> concurrency: 1 (prefork)
2024-09-16 11:48:46 yamtrack        | -- ******* ---- .> task events: OFF (enable -E to monitor tasks in this worker)
2024-09-16 11:48:46 yamtrack        | --- ***** ----- 
2024-09-16 11:48:46 yamtrack        |  -------------- [queues]
2024-09-16 11:48:46 yamtrack        |                 .> celery           exchange=celery(direct) key=celery
2024-09-16 11:48:46 yamtrack        |                 
2024-09-16 11:48:46 yamtrack        | 
2024-09-16 11:48:46 yamtrack        | [tasks]
2024-09-16 11:48:46 yamtrack        |   . Import from AniList
2024-09-16 11:48:46 yamtrack        |   . Import from MyAnimeList
2024-09-16 11:48:46 yamtrack        |   . Import from TMDB
2024-09-16 11:48:46 yamtrack        |   . Import from Yamtrack
2024-09-16 11:48:46 yamtrack        |   . Reload calendar
2024-09-16 11:48:46 yamtrack        | 
2024-09-16 11:48:46 yamtrack        | [2024-09-16 19:48:46 +0000] [18] [INFO] Connected to redis://redis:6379//
2024-09-16 11:48:46 yamtrack        | [2024-09-16 19:48:46 +0000] [18] [INFO] celery@f45f25683da7 ready.
2024-09-16 11:48:47 yamtrack        | 2024-09-16 19:48:47,746 INFO success: gunicorn entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-09-16 11:48:47 yamtrack        | [2024-09-16 19:48:47 +0000] [22] [INFO] beat: Starting...
2024-09-16 11:48:47 yamtrack        | 2024-09-16 19:48:47,746 INFO success: celery entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-09-16 11:48:47 yamtrack        | 2024-09-16 19:48:47,746 INFO success: celery-beat entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-09-16 11:48:47 yamtrack        | [2024-09-16 19:48:47 +0000] [22] [ERROR] Removing corrupted schedule file 'celerybeat-schedule': error(13, 'Permission denied')
2024-09-16 11:48:47 yamtrack        | Traceback (most recent call last):
2024-09-16 11:48:47 yamtrack        |   File "/usr/local/lib/python3.11/site-packages/celery/beat.py", line 531, in setup_schedule
2024-09-16 11:48:47 yamtrack        |     self._store = self._open_schedule()
2024-09-16 11:48:47 yamtrack        |                   ^^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        |   File "/usr/local/lib/python3.11/site-packages/celery/beat.py", line 521, in _open_schedule
2024-09-16 11:48:47 yamtrack        |     return self.persistence.open(self.schedule_filename, writeback=True)
2024-09-16 11:48:47 yamtrack        |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        |   File "/usr/local/lib/python3.11/shelve.py", line 243, in open
2024-09-16 11:48:47 yamtrack        |     return DbfilenameShelf(filename, flag, protocol, writeback)
2024-09-16 11:48:47 yamtrack        |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        |   File "/usr/local/lib/python3.11/shelve.py", line 227, in __init__
2024-09-16 11:48:47 yamtrack        |     Shelf.__init__(self, dbm.open(filename, flag), protocol, writeback)
2024-09-16 11:48:47 yamtrack        |                          ^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        |   File "/usr/local/lib/python3.11/dbm/__init__.py", line 95, in open
2024-09-16 11:48:47 yamtrack        |     return mod.open(file, flag, mode)
2024-09-16 11:48:47 yamtrack        |            ^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        | _gdbm.error: [Errno 13] Permission denied: 'celerybeat-schedule'
2024-09-16 11:48:47 yamtrack        | [2024-09-16 19:48:47,758: ERROR/Beat] Process Beat
2024-09-16 11:48:47 yamtrack        | Traceback (most recent call last):
2024-09-16 11:48:47 yamtrack        |   File "/usr/local/lib/python3.11/site-packages/celery/beat.py", line 531, in setup_schedule
2024-09-16 11:48:47 yamtrack        |     self._store = self._open_schedule()
2024-09-16 11:48:47 yamtrack        |                   ^^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        |   File "/usr/local/lib/python3.11/site-packages/celery/beat.py", line 521, in _open_schedule
2024-09-16 11:48:47 yamtrack        |     return self.persistence.open(self.schedule_filename, writeback=True)
2024-09-16 11:48:47 yamtrack        |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        |   File "/usr/local/lib/python3.11/shelve.py", line 243, in open
2024-09-16 11:48:47 yamtrack        |     return DbfilenameShelf(filename, flag, protocol, writeback)
2024-09-16 11:48:47 yamtrack        |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        |   File "/usr/local/lib/python3.11/shelve.py", line 227, in __init__
2024-09-16 11:48:47 yamtrack        |     Shelf.__init__(self, dbm.open(filename, flag), protocol, writeback)
2024-09-16 11:48:47 yamtrack        |                          ^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        |   File "/usr/local/lib/python3.11/dbm/__init__.py", line 95, in open
2024-09-16 11:48:47 yamtrack        |     return mod.open(file, flag, mode)
2024-09-16 11:48:47 yamtrack        |            ^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        | _gdbm.error: [Errno 13] Permission denied: 'celerybeat-schedule'
2024-09-16 11:48:47 yamtrack        | 
2024-09-16 11:48:47 yamtrack        | During handling of the above exception, another exception occurred:
2024-09-16 11:48:47 yamtrack        | 
2024-09-16 11:48:47 yamtrack        | Traceback (most recent call last):
2024-09-16 11:48:47 yamtrack        |   File "/usr/local/lib/python3.11/site-packages/billiard/process.py", line 323, in _bootstrap
2024-09-16 11:48:47 yamtrack        |     self.run()
2024-09-16 11:48:47 yamtrack        |   File "/usr/local/lib/python3.11/site-packages/celery/beat.py", line 718, in run
2024-09-16 11:48:47 yamtrack        |     self.service.start(embedded_process=True)
2024-09-16 11:48:47 yamtrack        |   File "/usr/local/lib/python3.11/site-packages/celery/beat.py", line 634, in start
2024-09-16 11:48:47 yamtrack        |     humanize_seconds(self.scheduler.max_interval))
2024-09-16 11:48:47 yamtrack        |                      ^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        |   File "/usr/local/lib/python3.11/site-packages/kombu/utils/objects.py", line 40, in __get__
2024-09-16 11:48:47 yamtrack        |     return super().__get__(instance, owner)
2024-09-16 11:48:47 yamtrack        |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        |   File "/usr/local/lib/python3.11/functools.py", line 1001, in __get__
2024-09-16 11:48:47 yamtrack        |     val = self.func(instance)
2024-09-16 11:48:47 yamtrack        |           ^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        |   File "/usr/local/lib/python3.11/site-packages/celery/beat.py", line 677, in scheduler
2024-09-16 11:48:47 yamtrack        |     return self.get_scheduler()
2024-09-16 11:48:47 yamtrack        |            ^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        |   File "/usr/local/lib/python3.11/site-packages/celery/beat.py", line 668, in get_scheduler
2024-09-16 11:48:47 yamtrack        |     return symbol_by_name(self.scheduler_cls, aliases=aliases)(
2024-09-16 11:48:47 yamtrack        |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        |   File "/usr/local/lib/python3.11/site-packages/celery/beat.py", line 513, in __init__
2024-09-16 11:48:47 yamtrack        |     super().__init__(*args, **kwargs)
2024-09-16 11:48:47 yamtrack        |   File "/usr/local/lib/python3.11/site-packages/celery/beat.py", line 264, in __init__
2024-09-16 11:48:47 yamtrack        |     self.setup_schedule()
2024-09-16 11:48:47 yamtrack        |   File "/usr/local/lib/python3.11/site-packages/celery/beat.py", line 539, in setup_schedule
2024-09-16 11:48:47 yamtrack        |     self._store = self._destroy_open_corrupted_schedule(exc)
2024-09-16 11:48:47 yamtrack        |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        |   File "/usr/local/lib/python3.11/site-packages/celery/beat.py", line 527, in _destroy_open_corrupted_schedule
2024-09-16 11:48:47 yamtrack        |     return self._open_schedule()
2024-09-16 11:48:47 yamtrack        |            ^^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        |   File "/usr/local/lib/python3.11/site-packages/celery/beat.py", line 521, in _open_schedule
2024-09-16 11:48:47 yamtrack        |     return self.persistence.open(self.schedule_filename, writeback=True)
2024-09-16 11:48:47 yamtrack        |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        |   File "/usr/local/lib/python3.11/shelve.py", line 243, in open
2024-09-16 11:48:47 yamtrack        |     return DbfilenameShelf(filename, flag, protocol, writeback)
2024-09-16 11:48:47 yamtrack        |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        |   File "/usr/local/lib/python3.11/shelve.py", line 227, in __init__
2024-09-16 11:48:47 yamtrack        |     Shelf.__init__(self, dbm.open(filename, flag), protocol, writeback)
2024-09-16 11:48:47 yamtrack        |                          ^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        |   File "/usr/local/lib/python3.11/dbm/__init__.py", line 95, in open
2024-09-16 11:48:47 yamtrack        |     return mod.open(file, flag, mode)
2024-09-16 11:48:47 yamtrack        |            ^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        | _gdbm.error: [Errno 13] Permission denied: 'celerybeat-schedule'
2024-09-16 11:48:47 yamtrack        | [2024-09-16 19:48:47 +0000] [22] [WARNING] Process Beat:
2024-09-16 11:48:47 yamtrack        | [2024-09-16 19:48:47 +0000] [22] [WARNING] Traceback (most recent call last):
2024-09-16 11:48:47 yamtrack        | [2024-09-16 19:48:47 +0000] [22] [WARNING]   File "/usr/local/lib/python3.11/site-packages/celery/beat.py", line 531, in setup_schedule
2024-09-16 11:48:47 yamtrack        |     self._store = self._open_schedule()
2024-09-16 11:48:47 yamtrack        |                   ^^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        | [2024-09-16 19:48:47 +0000] [22] [WARNING]   File "/usr/local/lib/python3.11/site-packages/celery/beat.py", line 521, in _open_schedule
2024-09-16 11:48:47 yamtrack        |     return self.persistence.open(self.schedule_filename, writeback=True)
2024-09-16 11:48:47 yamtrack        |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        | [2024-09-16 19:48:47 +0000] [22] [WARNING]   File "/usr/local/lib/python3.11/shelve.py", line 243, in open
2024-09-16 11:48:47 yamtrack        |     return DbfilenameShelf(filename, flag, protocol, writeback)
2024-09-16 11:48:47 yamtrack        |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        | [2024-09-16 19:48:47 +0000] [22] [WARNING]   File "/usr/local/lib/python3.11/shelve.py", line 227, in __init__
2024-09-16 11:48:47 yamtrack        |     Shelf.__init__(self, dbm.open(filename, flag), protocol, writeback)
2024-09-16 11:48:47 yamtrack        |                          ^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        | [2024-09-16 19:48:47 +0000] [22] [WARNING]   File "/usr/local/lib/python3.11/dbm/__init__.py", line 95, in open
2024-09-16 11:48:47 yamtrack        |     return mod.open(file, flag, mode)
2024-09-16 11:48:47 yamtrack        |            ^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        | [2024-09-16 19:48:47 +0000] [22] [WARNING] _gdbm.error: [Errno 13] Permission denied: 'celerybeat-schedule'
2024-09-16 11:48:47 yamtrack        | [2024-09-16 19:48:47 +0000] [22] [WARNING] 
2024-09-16 11:48:47 yamtrack        | During handling of the above exception, another exception occurred:
2024-09-16 11:48:47 yamtrack        | [2024-09-16 19:48:47 +0000] [22] [WARNING] Traceback (most recent call last):
2024-09-16 11:48:47 yamtrack        | [2024-09-16 19:48:47 +0000] [22] [WARNING]   File "/usr/local/lib/python3.11/site-packages/billiard/process.py", line 323, in _bootstrap
2024-09-16 11:48:47 yamtrack        |     self.run()
2024-09-16 11:48:47 yamtrack        | [2024-09-16 19:48:47 +0000] [22] [WARNING]   File "/usr/local/lib/python3.11/site-packages/celery/beat.py", line 718, in run
2024-09-16 11:48:47 yamtrack        |     self.service.start(embedded_process=True)
2024-09-16 11:48:47 yamtrack        | [2024-09-16 19:48:47 +0000] [22] [WARNING]   File "/usr/local/lib/python3.11/site-packages/celery/beat.py", line 634, in start
2024-09-16 11:48:47 yamtrack        |     humanize_seconds(self.scheduler.max_interval))
2024-09-16 11:48:47 yamtrack        |                      ^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        | [2024-09-16 19:48:47 +0000] [22] [WARNING]   File "/usr/local/lib/python3.11/site-packages/kombu/utils/objects.py", line 40, in __get__
2024-09-16 11:48:47 yamtrack        |     return super().__get__(instance, owner)
2024-09-16 11:48:47 yamtrack        |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        | [2024-09-16 19:48:47 +0000] [22] [WARNING]   File "/usr/local/lib/python3.11/functools.py", line 1001, in __get__
2024-09-16 11:48:47 yamtrack        |     val = self.func(instance)
2024-09-16 11:48:47 yamtrack        |           ^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        | [2024-09-16 19:48:47 +0000] [22] [WARNING]   File "/usr/local/lib/python3.11/site-packages/celery/beat.py", line 677, in scheduler
2024-09-16 11:48:47 yamtrack        |     return self.get_scheduler()
2024-09-16 11:48:47 yamtrack        |            ^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        | [2024-09-16 19:48:47 +0000] [22] [WARNING]   File "/usr/local/lib/python3.11/site-packages/celery/beat.py", line 668, in get_scheduler
2024-09-16 11:48:47 yamtrack        |     return symbol_by_name(self.scheduler_cls, aliases=aliases)(
2024-09-16 11:48:47 yamtrack        |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        | [2024-09-16 19:48:47 +0000] [22] [WARNING]   File "/usr/local/lib/python3.11/site-packages/celery/beat.py", line 513, in __init__
2024-09-16 11:48:47 yamtrack        |     super().__init__(*args, **kwargs)
2024-09-16 11:48:47 yamtrack        | [2024-09-16 19:48:47 +0000] [22] [WARNING]   File "/usr/local/lib/python3.11/site-packages/celery/beat.py", line 264, in __init__
2024-09-16 11:48:47 yamtrack        |     self.setup_schedule()
2024-09-16 11:48:47 yamtrack        | [2024-09-16 19:48:47 +0000] [22] [WARNING]   File "/usr/local/lib/python3.11/site-packages/celery/beat.py", line 539, in setup_schedule
2024-09-16 11:48:47 yamtrack        |     self._store = self._destroy_open_corrupted_schedule(exc)
2024-09-16 11:48:47 yamtrack        |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        | [2024-09-16 19:48:47 +0000] [22] [WARNING]   File "/usr/local/lib/python3.11/site-packages/celery/beat.py", line 527, in _destroy_open_corrupted_schedule
2024-09-16 11:48:47 yamtrack        |     return self._open_schedule()
2024-09-16 11:48:47 yamtrack        |            ^^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        | [2024-09-16 19:48:47 +0000] [22] [WARNING]   File "/usr/local/lib/python3.11/site-packages/celery/beat.py", line 521, in _open_schedule
2024-09-16 11:48:47 yamtrack        |     return self.persistence.open(self.schedule_filename, writeback=True)
2024-09-16 11:48:47 yamtrack        |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        | [2024-09-16 19:48:47 +0000] [22] [WARNING]   File "/usr/local/lib/python3.11/shelve.py", line 243, in open
2024-09-16 11:48:47 yamtrack        |     return DbfilenameShelf(filename, flag, protocol, writeback)
2024-09-16 11:48:47 yamtrack        |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        | [2024-09-16 19:48:47 +0000] [22] [WARNING]   File "/usr/local/lib/python3.11/shelve.py", line 227, in __init__
2024-09-16 11:48:47 yamtrack        |     Shelf.__init__(self, dbm.open(filename, flag), protocol, writeback)
2024-09-16 11:48:47 yamtrack        |                          ^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        | [2024-09-16 19:48:47 +0000] [22] [WARNING]   File "/usr/local/lib/python3.11/dbm/__init__.py", line 95, in open
2024-09-16 11:48:47 yamtrack        |     return mod.open(file, flag, mode)
2024-09-16 11:48:47 yamtrack        |            ^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-16 11:48:47 yamtrack        | [2024-09-16 19:48:47 +0000] [22] [WARNING] _gdbm.error: [Errno 13] Permission denied: 'celerybeat-schedule'