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

problem with celery beat option #400

Open
lfaino opened this issue Feb 7, 2025 · 1 comment
Open

problem with celery beat option #400

lfaino opened this issue Feb 7, 2025 · 1 comment

Comments

@lfaino
Copy link

lfaino commented Feb 7, 2025

Dear Developper

do you have any idea why i get the error below when i run

celery -A Monica worker -n monica -c 10 --beat -l info -E

as you can immage, if i remove beat, the error is not there.

[2025-02-07 12:52:23,586: ERROR/Beat] Process Beat Traceback (most recent call last): File "/home/lfaino/.local/lib/python3.10/site-packages/billiard/process.py", line 323, in _bootstrap self.run() File "/home/lfaino/.local/lib/python3.10/site-packages/celery/beat.py", line 718, in run self.service.start(embedded_process=True) File "/home/lfaino/.local/lib/python3.10/site-packages/celery/beat.py", line 634, in start humanize_seconds(self.scheduler.max_interval)) File "/home/lfaino/.local/lib/python3.10/site-packages/kombu/utils/objects.py", line 40, in __get__ return super().__get__(instance, owner) File "/usr/lib/python3.10/functools.py", line 981, in __get__ val = self.func(instance) File "/home/lfaino/.local/lib/python3.10/site-packages/celery/beat.py", line 677, in scheduler return self.get_scheduler() File "/home/lfaino/.local/lib/python3.10/site-packages/celery/beat.py", line 667, in get_scheduler aliases = dict(load_extension_class_names(extension_namespace)) File "/home/lfaino/.local/lib/python3.10/site-packages/celery/utils/imports.py", line 150, in load_extension_class_names _entry_points = entry_points(group=namespace) File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 1021, in entry_points return SelectableGroups.load(eps).select(**params) File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 459, in load ordered = sorted(eps, key=by_group) File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 1018, in <genexpr> eps = itertools.chain.from_iterable( File "/usr/lib/python3.10/importlib/metadata/_itertools.py", line 16, in unique_everseen k = key(element) File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 943, in _normalized_name or super()._normalized_name File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 622, in _normalized_name return Prepared.normalize(self.name) File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 617, in name return self.metadata['Name'] File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 606, in metadata or self.read_text('PKG-INFO') File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 927, in read_text return self._path.joinpath(filename).read_text(encoding='utf-8') File "/usr/lib/python3.10/zipfile.py", line 2398, in read_text with self.open('r', encoding, *args, **kwargs) as strm: File "/usr/lib/python3.10/zipfile.py", line 2379, in open stream = self.root.open(self.at, zip_mode, pwd=pwd) File "/usr/lib/python3.10/zipfile.py", line 1541, in open fheader = zef_file.read(sizeFileHeader) File "/usr/lib/python3.10/zipfile.py", line 751, in read self._pos = self._file.tell() OSError: [Errno 9] Bad file descriptor

my setting file looks lik this:

user_settings.py.txt

do you have any advice?

@Chris7
Copy link
Member

Chris7 commented Feb 20, 2025

It looks like the file descriptor that beat is trying to use to claim pids is throwing an error. Maybe some permission issue perhaps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants