Problem with deploying a mezzanine project to VPS

March 13, 2016 574 views

I am trying to deploy a mezzanine instance to my droplet after following the available tutorials and articles available on this site and the Mezzanine docs.
I am trying to use nginx with gunicorn along with the mezzanine setup.
Everything seems to go well and I deployed using the included
However, whenever I run the site, I get the following errors

2016/03/13 05:52:46 [crit] 4516#0: *2 connect() to unix:/home/oilwatch/mezzanine/oilwatch/gunicorn.sock failed (2: No such file or directory) while connecting to upstream, client:, server:, request: "GET / HTTP/1.1", upstream: "http://unix:/home/oilwatch/mezzanine/oilwatch/gunicorn.sock:/", host: ""

I've googled around to find a solution but nothing comes close. Has anyone else encountered this and got a solution? I dont know what else to do.

1 Answer

That error likely means that Gunicorn isn't running, and the sock file needed for connection is thus not being created. You'll likely find the cause in the Gunicorn logs, which you need to set by running Gunicorn with a log file directive like so:

gunicorn -b --access-logfile /var/log/yourapp/gunicorn-access.log --error-logfile /var/log/yourapp/gunicorn-error.log

This will give you even more information about setting log levels:

Have another answer? Share your knowledge.