I had configured supervisor based on documentation, Thanks, Roberto Rosario. It works fine when I start the supervisor while my system is on. But when I restart my system I get "500 Internal server error". and my log shows
[Mon Aug 20 06:39:12.222986 2018] [wsgi:error] [pid 2235:tid 139642472040320] mod_wsgi (pid=2235): Failed to exec Python script file '/etc/mod_wsgi-express-82/handler.wsgi'.
[Mon Aug 20 06:39:12.223013 2018] [wsgi:error] [pid 2235:tid 139642472040320] mod_wsgi (pid=2235): Exception occurred processing WSGI script '/etc/mod_wsgi-express-82/handler.wsgi'.
[Mon Aug 20 06:39:12.223027 2018] [wsgi:error] [pid 2235:tid 139642472040320] Traceback (most recent call last):
[Mon Aug 20 06:39:12.223037 2018] [wsgi:error] [pid 2235:tid 139642472040320] File "/etc/mod_wsgi-express-82/handler.wsgi", line 94, in <module>
[Mon Aug 20 06:39:12.223083 2018] [wsgi:error] [pid 2235:tid 139642472040320] recorder_directory=recorder_directory)
[Mon Aug 20 06:39:12.223091 2018] [wsgi:error] [pid 2235:tid 139642472040320] File "/var/www/bigb/mayan-edms-master/venv/local/lib/python2.7/site-packages/mod_wsgi/server/__init__.py", line 1411, in __init__
[Mon Aug 20 06:39:12.223495 2018] [wsgi:error] [pid 2235:tid 139642472040320] exec(code, self.module.__dict__)
[Mon Aug 20 06:39:12.223502 2018] [wsgi:error] [pid 2235:tid 139642472040320] File "/var/www/bigb/mayan-edms-master/mayan/wsgi.py", line 50, in <module>
[Mon Aug 20 06:39:12.223524 2018] [wsgi:error] [pid 2235:tid 139642472040320] application = get_wsgi_application()
[Mon Aug 20 06:39:12.223531 2018] [wsgi:error] [pid 2235:tid 139642472040320] File "/var/www/bigb/mayan-edms-master/venv/local/lib/python2.7/site-packages/django/core/wsgi.py", line 13, in get_wsgi_application
[Mon Aug 20 06:39:12.223549 2018] [wsgi:error] [pid 2235:tid 139642472040320] django.setup(set_prefix=False)
[Mon Aug 20 06:39:12.223554 2018] [wsgi:error] [pid 2235:tid 139642472040320] File "/var/www/bigb/mayan-edms-master/venv/local/lib/python2.7/site-packages/django/__init__.py", line 27, in setup
[Mon Aug 20 06:39:12.223571 2018] [wsgi:error] [pid 2235:tid 139642472040320] apps.populate(settings.INSTALLED_APPS)
[Mon Aug 20 06:39:12.223578 2018] [wsgi:error] [pid 2235:tid 139642472040320] File "/var/www/bigb/mayan-edms-master/venv/local/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate
[Mon Aug 20 06:39:12.223650 2018] [wsgi:error] [pid 2235:tid 139642472040320] app_config = AppConfig.create(entry)
[Mon Aug 20 06:39:12.223655 2018] [wsgi:error] [pid 2235:tid 139642472040320] File "/var/www/bigb/mayan-edms-master/venv/local/lib/python2.7/site-packages/django/apps/config.py", line 120, in create
[Mon Aug 20 06:39:12.223694 2018] [wsgi:error] [pid 2235:tid 139642472040320] mod = import_module(mod_path)
[Mon Aug 20 06:39:12.223699 2018] [wsgi:error] [pid 2235:tid 139642472040320] File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
[Mon Aug 20 06:39:12.223720 2018] [wsgi:error] [pid 2235:tid 139642472040320] __import__(name)
[Mon Aug 20 06:39:12.223724 2018] [wsgi:error] [pid 2235:tid 139642472040320] File "/var/www/bigb/mayan-edms-master/mayan/apps/checkouts/apps.py", line 33, in <module>
[Mon Aug 20 06:39:12.223772 2018] [wsgi:error] [pid 2235:tid 139642472040320] from .tasks import task_check_expired_check_outs # NOQA
[Mon Aug 20 06:39:12.223778 2018] [wsgi:error] [pid 2235:tid 139642472040320] File "/var/www/bigb/mayan-edms-master/mayan/apps/checkouts/tasks.py", line 8, in <module>
[Mon Aug 20 06:39:12.223808 2018] [wsgi:error] [pid 2235:tid 139642472040320] from lock_manager.runtime import locking_backend
[Mon Aug 20 06:39:12.223812 2018] [wsgi:error] [pid 2235:tid 139642472040320] File "/var/www/bigb/mayan-edms-master/mayan/apps/lock_manager/runtime.py", line 5, in <module>
[Mon Aug 20 06:39:12.223826 2018] [wsgi:error] [pid 2235:tid 139642472040320] locking_backend = import_string(setting_backend.value)
[Mon Aug 20 06:39:12.223832 2018] [wsgi:error] [pid 2235:tid 139642472040320] File "/var/www/bigb/mayan-edms-master/venv/local/lib/python2.7/site-packages/django/utils/module_loading.py", line 20, in import_string
[Mon Aug 20 06:39:12.223869 2018] [wsgi:error] [pid 2235:tid 139642472040320] module = import_module(module_path)
[Mon Aug 20 06:39:12.223873 2018] [wsgi:error] [pid 2235:tid 139642472040320] File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
[Mon Aug 20 06:39:12.223881 2018] [wsgi:error] [pid 2235:tid 139642472040320] __import__(name)
[Mon Aug 20 06:39:12.223884 2018] [wsgi:error] [pid 2235:tid 139642472040320] File "/var/www/bigb/mayan-edms-master/mayan/apps/lock_manager/backends/file_lock.py", line 28, in <module>
[Mon Aug 20 06:39:12.223913 2018] [wsgi:error] [pid 2235:tid 139642472040320] open(lock_file, 'a').close()
[Mon Aug 20 06:39:12.223927 2018] [wsgi:error] [pid 2235:tid 139642472040320] IOError: [Errno 13] Permission denied: '/tmp/99d3feeced40aff018a62dc9fc7049f2f9abfa23ec7c08d4d3cb7cf11899bad9'
I think the error is due to conflict between Redis server and celery. Is there any solution. thanks in advance.