You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the base posthog docker image. The celery worker threads fail to start with the below error due to which the pre-flight checks are not completing successfully.
Has anyone else encountered this issue? There are many threads talking of setting docker environment variables etc.
Just wanted to check if there is a prescribed solution from the Posthog team.
Traceback (most recent call last):
File "/usr/local/bin/celery", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.8/site-packages/celery/__main__.py", line 16, in main
_main()
File "/usr/local/lib/python3.8/site-packages/celery/bin/celery.py", line 322, in main
cmd.execute_from_commandline(argv)
File "/usr/local/lib/python3.8/site-packages/celery/bin/celery.py", line 495, in execute_from_commandline
super(CeleryCommand, self).execute_from_commandline(argv)))
File "/usr/local/lib/python3.8/site-packages/celery/bin/base.py", line 305, in execute_from_commandline
return self.handle_argv(self.prog_name, argv[1:])
File "/usr/local/lib/python3.8/site-packages/celery/bin/celery.py", line 487, in handle_argv
return self.execute(command, argv)
File "/usr/local/lib/python3.8/site-packages/celery/bin/celery.py", line 415, in execute
return cls(
File "/usr/local/lib/python3.8/site-packages/celery/bin/worker.py", line 221, in run_from_argv
*self.parse_options(prog_name, argv, command))
File "/usr/local/lib/python3.8/site-packages/celery/bin/base.py", line 428, in parse_options
self.parser = self.create_parser(prog_name, command)
File "/usr/local/lib/python3.8/site-packages/celery/bin/base.py", line 440, in create_parser
description=self._format_description(self.description),
File "/usr/local/lib/python3.8/site-packages/celery/bin/base.py", line 462, in _format_description
text.fill_paragraphs(text.dedent(description), width))
File "/usr/local/lib/python3.8/site-packages/celery/utils/text.py", line 58, in fill_paragraphs
return sep.join(fill(p, width) for p in s.split(sep))
File "/usr/local/lib/python3.8/site-packages/celery/utils/text.py", line 58, in <genexpr>
return sep.join(fill(p, width) for p in s.split(sep))
File "/usr/local/lib/python3.8/textwrap.py", line 391, in fill
return w.fill(text)
File "/usr/local/lib/python3.8/textwrap.py", line 363, in fill
return "\n".join(self.wrap(text))
File "/usr/local/lib/python3.8/textwrap.py", line 354, in wrap
return self._wrap_chunks(chunks)
File "/usr/local/lib/python3.8/textwrap.py", line 248, in _wrap_chunks
raise ValueError("invalid width %r (must be > 0)" % self.width)
ValueError: invalid width -2 (must be > 0)
^[[2K^[[1G^[[2m[1/4]^[[22m Resolving packages...
The text was updated successfully, but these errors were encountered:
Unfortunately it looks like a very very system specific issue regarding terminal size (looking at celery/celery#5761). We haven't seen this before, but setting shell var COLUMNS should fix it.
I am using the base posthog docker image. The celery worker threads fail to start with the below error due to which the pre-flight checks are not completing successfully.
Has anyone else encountered this issue? There are many threads talking of setting docker environment variables etc.
Just wanted to check if there is a prescribed solution from the Posthog team.
The text was updated successfully, but these errors were encountered: