A little further on this:
I tried running gunicorn manually using the command:
gunicorn --bind 0.0.0.0:8297 my_project.wsgi:application
Well, that got me a lot further than the error logs did. It appears that
gunicorn is not reading my local_settings.py config. Because the errors are
telling me that I don't have ALLOWED_HOSTS set up and that I don't have a
SECRET KEY setup. But in reality I do, it's just not reading the config for
some reason. Any idea why?
On Monday, November 16, 2015 at 1:21:16 PM UTC-5, Joshua Glenn wrote:
>
>
> So, I am getting the error as described below.
>
> It is saying that the connection is refused. But is not telling me why
> it's refusing the connection. Based on the information I have seen in my
> Google searches, it seems like it's telling me that the host associated
> with the request is not in the list of allowed hosts. Is that what it's
> telling me? Or are there other possibilities?
>
> I have checked to make sure that I have the allowed host settings
> correctly set in ```local_settings.py```. Any ideas as to where I should go
> from here?
>
> If I change the upstream server to point to a running instance of the
> Django runserver for the project, I am able to browse the actual site. It's
> just the upstream gunicorn server that doesn't work. But obviously I can't
> use the run server in a production environment.
>
> Any ideas or advice?
>
> 2015/11/16 18:10:30 [error] 21888#0: *1 connect() to
> unix:/home/ubuntu/mezzanine/example_com/gunicorn.sock failed (111:
> Connection refused) while connecting to upstream, client: {clientip},
> server: subdomain.example.com, request: "GET / HTTP/1.1", upstream:
> "http://unix:/home/ubuntu/mezzanine/example_com/gunicorn.sock:/", host: "
> subdomain.example.com"
>
>
>
--
You received this message because you are subscribed to the Google Groups
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.