Messed up venv variables

Reverse proxies, SSL termination, web servers, helm charts, integrations, batch files, anything having to do with installing Mayan.
Post Reply
facu8990
Posts: 2
Joined: Fri Aug 28, 2020 1:53 pm

Messed up venv variables

Post by facu8990 »

Hi, while trying to troubleshoot my apache configuration, Mayan became unavailable to start:

Code: Select all

mayan@shivering-substance:/$ sudo supervisorctl restart all
mayan-gunicorn: ERROR (spawn error)
mayan-worker-slow: ERROR (spawn error)
mayan-worker-medium: ERROR (spawn error)
mayan-worker-fast: ERROR (spawn error)
mayan-celery-beat: ERROR (spawn error)
I've "unset" PYTHONPATH and PYTHONHOME variables and I thinks thats the root of my problem, but don't know how to fix it.

Here are some of the errors I'm getting:

Code: Select all

mayan@shivering-substance:/$ sudo tail /var/log/supervisor/*stderr*
==> /var/log/supervisor/mayan-celery-beat-stderr---supervisor-s9JF98.log <==
    from celery.__main__ import main
ModuleNotFoundError: No module named 'celery'
Traceback (most recent call last):
  File "/opt/mayan-edms/bin/celery", line 5, in <module>
    from celery.__main__ import main
ModuleNotFoundError: No module named 'celery'
Traceback (most recent call last):
  File "/opt/mayan-edms/bin/celery", line 5, in <module>
    from celery.__main__ import main
ModuleNotFoundError: No module named 'celery'

==> /var/log/supervisor/mayan-gunicorn-stderr---supervisor-b09ycF.log <==
    from gunicorn.app.wsgiapp import run
ModuleNotFoundError: No module named 'gunicorn'
Traceback (most recent call last):
  File "/opt/mayan-edms/bin/gunicorn", line 5, in <module>
    from gunicorn.app.wsgiapp import run
ModuleNotFoundError: No module named 'gunicorn'
Traceback (most recent call last):
  File "/opt/mayan-edms/bin/gunicorn", line 5, in <module>
    from gunicorn.app.wsgiapp import run
ModuleNotFoundError: No module named 'gunicorn'

==> /var/log/supervisor/mayan-worker-fast-stderr---supervisor-W16sZY.log <==
    from celery.__main__ import main
ModuleNotFoundError: No module named 'celery'
Traceback (most recent call last):
  File "/opt/mayan-edms/bin/celery", line 5, in <module>
    from celery.__main__ import main
ModuleNotFoundError: No module named 'celery'
Traceback (most recent call last):
  File "/opt/mayan-edms/bin/celery", line 5, in <module>
    from celery.__main__ import main
ModuleNotFoundError: No module named 'celery'

==> /var/log/supervisor/mayan-worker-medium-stderr---supervisor-iTuNHs.log <==
    from celery.__main__ import main
ModuleNotFoundError: No module named 'celery'
Traceback (most recent call last):
  File "/opt/mayan-edms/bin/celery", line 5, in <module>
    from celery.__main__ import main
ModuleNotFoundError: No module named 'celery'
Traceback (most recent call last):
  File "/opt/mayan-edms/bin/celery", line 5, in <module>
    from celery.__main__ import main
ModuleNotFoundError: No module named 'celery'

==> /var/log/supervisor/mayan-worker-slow-stderr---supervisor-EdDnxK.log <==
    from celery.__main__ import main
ModuleNotFoundError: No module named 'celery'
Traceback (most recent call last):
  File "/opt/mayan-edms/bin/celery", line 5, in <module>
    from celery.__main__ import main
ModuleNotFoundError: No module named 'celery'
Traceback (most recent call last):
  File "/opt/mayan-edms/bin/celery", line 5, in <module>
    from celery.__main__ import main
ModuleNotFoundError: No module named 'celery'
I'm not a expecting a full troubleshoot guidance, but just a few tips to know where to start solving my problem.

Thanks a lot.
Post Reply