111: Connection Refused
I'm getting the following error in my Flask app:
[error] 689#689: *13965 connect() failed (111: Connection refused) while connecting to upstream,
I'm having trouble diagnosing the root cause of this. Any suggestions on what to look for?
I'm not all that familiar with Flask, but I'll try to help out nonetheless.
From what I've discovered through my research into this for you, this error is apparently caused on the backend for Nginx. I found a post on Stack Exchange that describes this, and it turns out the user didn't have
PHP-FPM installed. I don't know if this is the solution to your particular situation, because I'm not familiar with how you have things set up, but I figured it was worth passing along to you:
If this isn't the solution, perhaps another one of our Flask users will have some input. I'll toss some tags on this post to give it some extra visibility.