getredash / redash

Make Your Company Data Driven. Connect to any data source, easily visualize, dashboard and share your data.
http://redash.io/
BSD 2-Clause "Simplified" License
25.39k stars 4.3k forks source link

Supervisorctl Status not working for redash workers #5888

Open shubhwip opened 1 year ago

shubhwip commented 1 year ago

Issue Summary

Supervisorctl Status command not working so it might be leading to autorestart not working for programs.

Steps to Reproduce

  1. Login into adhoc worker container
  2. Run Supervisorctl status check
    redash@redash-adhocworker-65757bbb75-rqczz:/app$ exec supervisorctl -c worker.conf
    Error: .ini file does not include supervisorctl section
    For help, use /usr/local/bin/supervisorctl -h
    command terminated with exit code 2

What did you expect to happen instead?

redash@redash-adhocworker-c89d9667b-9lqbd:/app$ exec supervisorctl -c worker.conf status
worker:worker-0                  FATAL     Exited too quickly (process log may have details)
worker:worker-1                  FATAL     Exited too quickly (process log may have details)
worker_healthcheck               RUNNING   pid 14, uptime 7:43:34

Technical details:

zachliu commented 1 week ago

Adding

[supervisorctl]
serverurl=unix:///tmp/supervisor.sock

to the end of worker.conf will produce what we want when executing

supervisorctl -c worker.conf status