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 fabfile.py 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: 197.78.155.21, server: 45.55.150.38, request: "GET / HTTP/1.1", upstream: "http://unix:/home/oilwatch/mezzanine/oilwatch/gunicorn.sock:/", host: "45.55.150.38"
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.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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 0.0.0.0:8069 --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: http://docs.gunicorn.org/en/develop/configure.html#logging
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.