LMS/CMS worker Error

Hi, I’m running OpenEdx in development mode. All the services are running except the LMS and CMS worker which is giving the error. I have attached the log below which is appearing in cms worker.

lms-worker_1                 | Traceback (most recent call last):
lms-worker_1                 |   File "/openedx/venv/bin/celery", line 8, in <module>
lms-worker_1                 |     sys.exit(main())
lms-worker_1                 |   File "/openedx/venv/lib/python3.8/site-packages/celery/__main__.py", line 16, in main
lms-worker_1                 |     _main()
lms-worker_1                 |   File "/openedx/venv/lib/python3.8/site-packages/celery/bin/celery.py", line 322, in main
lms-worker_1                 |     cmd.execute_from_commandline(argv)
lms-worker_1                 |   File "/openedx/venv/lib/python3.8/site-packages/celery/bin/celery.py", line 499, in execute_from_commandline
lms-worker_1                 |     super(CeleryCommand, self).execute_from_commandline(argv)))
lms-worker_1                 |   File "/openedx/venv/lib/python3.8/site-packages/celery/bin/base.py", line 305, in execute_from_commandline
lms-worker_1                 |     return self.handle_argv(self.prog_name, argv[1:])
lms-worker_1                 |   File "/openedx/venv/lib/python3.8/site-packages/celery/bin/celery.py", line 491, in handle_argv
lms-worker_1                 |     return self.execute(command, argv)
lms-worker_1                 |   File "/openedx/venv/lib/python3.8/site-packages/celery/bin/celery.py", line 415, in execute
lms-worker_1                 |     return cls(
lms-worker_1                 |   File "/openedx/venv/lib/python3.8/site-packages/celery/bin/worker.py", line 221, in run_from_argv
lms-worker_1                 |     *self.parse_options(prog_name, argv, command))
lms-worker_1                 |   File "/openedx/venv/lib/python3.8/site-packages/celery/bin/base.py", line 428, in parse_options
lms-worker_1                 |     self.parser = self.create_parser(prog_name, command)
lms-worker_1                 |   File "/openedx/venv/lib/python3.8/site-packages/celery/bin/base.py", line 440, in create_parser
lms-worker_1                 |     description=self._format_description(self.description),
lms-worker_1                 |   File "/openedx/venv/lib/python3.8/site-packages/celery/bin/base.py", line 462, in _format_description
lms-worker_1                 |     text.fill_paragraphs(text.dedent(description), width))
lms-worker_1                 |   File "/openedx/venv/lib/python3.8/site-packages/celery/utils/text.py", line 58, in fill_paragraphs
lms-worker_1                 |     return sep.join(fill(p, width) for p in s.split(sep))
lms-worker_1                 |   File "/openedx/venv/lib/python3.8/site-packages/celery/utils/text.py", line 58, in <genexpr>
lms-worker_1                 |     return sep.join(fill(p, width) for p in s.split(sep))
lms-worker_1                 |   File "/opt/pyenv/versions/3.8.12/lib/python3.8/textwrap.py", line 391, in fill
lms-worker_1                 |     return w.fill(text)
lms-worker_1                 |   File "/opt/pyenv/versions/3.8.12/lib/python3.8/textwrap.py", line 363, in fill
lms-worker_1                 |     return "\n".join(self.wrap(text))
lms-worker_1                 |   File "/opt/pyenv/versions/3.8.12/lib/python3.8/textwrap.py", line 354, in wrap
lms-worker_1                 |     return self._wrap_chunks(chunks)
lms-worker_1                 |   File "/opt/pyenv/versions/3.8.12/lib/python3.8/textwrap.py", line 248, in _wrap_chunks
lms-worker_1                 |     raise ValueError("invalid width %r (must be > 0)" % self.width)
lms-worker_1                 | ValueError: invalid width -2 (must be > 0)
cms-worker_1                 | Traceback (most recent call last):
cms-worker_1                 |   File "/openedx/venv/bin/celery", line 8, in <module>
cms-worker_1                 |     sys.exit(main())
cms-worker_1                 |   File "/openedx/venv/lib/python3.8/site-packages/celery/__main__.py", line 16, in main
cms-worker_1                 |     _main()
cms-worker_1                 |   File "/openedx/venv/lib/python3.8/site-packages/celery/bin/celery.py", line 322, in main
cms-worker_1                 |     cmd.execute_from_commandline(argv)
cms-worker_1                 |   File "/openedx/venv/lib/python3.8/site-packages/celery/bin/celery.py", line 499, in execute_from_commandline
cms-worker_1                 |     super(CeleryCommand, self).execute_from_commandline(argv)))
cms-worker_1                 |   File "/openedx/venv/lib/python3.8/site-packages/celery/bin/base.py", line 305, in execute_from_commandline
cms-worker_1                 |     return self.handle_argv(self.prog_name, argv[1:])
cms-worker_1                 |   File "/openedx/venv/lib/python3.8/site-packages/celery/bin/celery.py", line 491, in handle_argv
cms-worker_1                 |     return self.execute(command, argv)
cms-worker_1                 |   File "/openedx/venv/lib/python3.8/site-packages/celery/bin/celery.py", line 415, in execute
cms-worker_1                 |     return cls(
cms-worker_1                 |   File "/openedx/venv/lib/python3.8/site-packages/celery/bin/worker.py", line 221, in run_from_argv
cms-worker_1                 |     *self.parse_options(prog_name, argv, command))
cms-worker_1                 |   File "/openedx/venv/lib/python3.8/site-packages/celery/bin/base.py", line 428, in parse_options
cms-worker_1                 |     self.parser = self.create_parser(prog_name, command)
cms-worker_1                 |   File "/openedx/venv/lib/python3.8/site-packages/celery/bin/base.py", line 440, in create_parser
cms-worker_1                 |     description=self._format_description(self.description),
cms-worker_1                 |   File "/openedx/venv/lib/python3.8/site-packages/celery/bin/base.py", line 462, in _format_description
cms-worker_1                 |     text.fill_paragraphs(text.dedent(description), width))
cms-worker_1                 |   File "/openedx/venv/lib/python3.8/site-packages/celery/utils/text.py", line 58, in fill_paragraphs
cms-worker_1                 |     return sep.join(fill(p, width) for p in s.split(sep))
cms-worker_1                 |   File "/openedx/venv/lib/python3.8/site-packages/celery/utils/text.py", line 58, in <genexpr>
cms-worker_1                 |     return sep.join(fill(p, width) for p in s.split(sep))
cms-worker_1                 |   File "/opt/pyenv/versions/3.8.12/lib/python3.8/textwrap.py", line 391, in fill
cms-worker_1                 |     return w.fill(text)
cms-worker_1                 |   File "/opt/pyenv/versions/3.8.12/lib/python3.8/textwrap.py", line 363, in fill
cms-worker_1                 |     return "\n".join(self.wrap(text))
cms-worker_1                 |   File "/opt/pyenv/versions/3.8.12/lib/python3.8/textwrap.py", line 354, in wrap
cms-worker_1                 |     return self._wrap_chunks(chunks)
cms-worker_1                 |   File "/opt/pyenv/versions/3.8.12/lib/python3.8/textwrap.py", line 248, in _wrap_chunks
cms-worker_1                 |     raise ValueError("invalid width %r (must be > 0)" % self.width)
cms-worker_1                 | ValueError: invalid width -2 (must be > 0)
tutor_dev_lms-worker_1 exited with code 1
tutor_dev_cms-worker_1 exited with code 1

Thank you

1 Like

I have also observed this issue while running the tutor dev.

However, it does not affect testing the platform according to my experience.

1 Like

Yes @uetuluk, it did not affect. Also, it got fixed and I’m not sure how or when it was fixed. Will find some time and try to reproduce it.