Exception: redis_queue missing in common_site_config.json

Hello everybody. I’m using supervisor to start server. But when i read logs, i found same ‘Exception: redis_queue missing in common_site_config.json’ fault in worker.error.log and scheduler.error.log. But when I read common_site_config.json file in sites, ‘redis_queue’ still be there. Anybody has idea to fix this? Thank you.

Here is my common_site_config.json file:

    {
    "auto_update": false,
    "background_workers": 1,
    "file_watcher_port": 6787,
    "frappe_user": "frappe",
    "gunicorn_workers": 1,
    "rebase_on_pull": false,
    "redis_cache": "redis://localhost:13000",
    "redis_queue": "redis://localhost:11000",
    "redis_socketio": "redis://localhost:12000",
    "restart_supervisor_on_update": true,
    "restart_systemd_on_update": false,
    "serve_default_site": true,
    "shallow_clone": true,
    "socketio_port": 9000,
    "update_bench_on_update": true,
    "webserver_port": 8000
    }
  • What version of softwares and ERPNext/Frappe you are running?
  • Post more detailed logs

do following if you don’t have any customisations done

bench update --force

or if you have customization done to code

bench update

Here is my worker logs.

raceback (most recent call last):
  File "./python-scripts/worker-short.py", line 241, in <module>
    start_worker(queue='short', quiet = False)
  File "./python-scripts/worker-short.py", line 140, in start_worker
    redis_connection = get_redis_conn()
  File "./python-scripts/worker-short.py", line 224, in get_redis_conn
    raise Exception('redis_queue missing in common_site_config.json')
Exception: redis_queue missing in common_site_config.json
Traceback (most recent call last):
Traceback (most recent call last):
  File "./python-scripts/worker-short.py", line 241, in <module>
    start_worker(queue='short', quiet = False)
  File "./python-scripts/worker-short.py", line 140, in start_worker
    redis_connection = get_redis_conn()
  File "./python-scripts/worker-short.py", line 224, in get_redis_conn
    raise Exception('redis_queue missing in common_site_config.json')
Exception  File "./python-scripts/worker-default.py", line 241, in <module>
:     redis_queue missing in common_site_config.json
start_worker(queue='default', quiet = False)
  File "./python-scripts/worker-default.py", line 140, in start_worker
    redis_connection = get_redis_conn()
  File "./python-scripts/worker-default.py", line 224, in get_redis_conn
    raise Exception('redis_queue missing in common_site_config.json')
Exception: redis_queue missing in common_site_config.json
Traceback (most recent call last):
  File "./python-scripts/worker-long.py", line 241, in <module>
    start_worker(queue='long', quiet = False)
  File "./python-scripts/worker-long.py", line 140, in start_worker
    redis_connection = get_redis_conn()
  File "./python-scripts/worker-long.py", line 224, in get_redis_conn
    raise Exception('redis_queue missing in common_site_config.json')
Exception: redis_queue missing in common_site_config.json
Traceback (most recent call last):
  File "./python-scripts/worker-long.py", line 241, in <module>
    start_worker(queue='long', quiet = False)
  File "./python-scripts/worker-long.py", line 140, in start_worker
    redis_connection = get_redis_conn()
  File "./python-scripts/worker-long.py", line 224, in get_redis_conn
    raise Exception('redis_queue missing in common_site_config.json')
Exception: redis_queue missing in common_site_config.json
Traceback (most recent call last):
  File "./python-scripts/worker-default.py", line 241, in <module>
    start_worker(queue='default', quiet = False)
  File "./python-scripts/worker-default.py", line 140, in start_worker
    redis_connection = get_redis_conn()
  File "./python-scripts/worker-default.py", line 224, in get_redis_conn
    raise Exception('redis_queue missing in common_site_config.json')
Exception: redis_queue missing in common_site_config.json

i replaced ‘bench’ command like bench worker, bench schedule in supervisor config file with the corresponding python functions and using python run it.

I am not sure how to help you without knowing software version and you customized default behaviour which is not recommended as obviously you will run into issues that nobody might have not came across yet.

if possible take backup of files and database and reinstall ERPNext / create new bench with bench tool with stable branch.