AshkanDev
AshkanDev

Reputation: 25

502 Bad Gateway after reloading supervisor

My Flask web application runs using nginx and gunicorn. I use supervisor to let my application run in the background. I always updated my files using Windows Power Shell and the command SCP. After i moved the new edited files, which are already existing on my Ubuntu server, to the server, i use the command sudo supervisorctl reload to restart the flask app to see the changes. But this time the flask app did not start and i only get 502 Bad Gateway. It does not matter how many times i reload the supervisor or restart nginx, i only get the error code 502.

Upvotes: 0

Views: 818

Answers (1)

AshkanDev
AshkanDev

Reputation: 25

The issue was a not installed module and a typing error in a configuration file.

Upvotes: 1

Related Questions