Report this

What is the reason for this report?

my_project.sock some problem with that

Posted on December 3, 2019

Hi, i have made my website in flask and now i try to set this on a server on digitalocean.

I go through tutorial about it https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-uswgi-and-nginx-on-ubuntu-18-04

and I think (I’m pretty sure) i redirect my domain correctly to DO servers but still it doesn’t work. As i go through an IP on webbrowser i got deafault nginx site but when i go through my domain it deosn’t go. I have found such error:

2019/12/03 11:21:35 [crit] 6414#6414: *10 connect() to unix:/home/bartek/config/website.sock failed (2: No such file or directory) while connecting to upstream, client: 84.213.215.255, server: bartoszkobylinski.com, request: "GET / HTTP/1.1", upstream: "uwsgi://unix:/home/bartek/config/website.sock:", host: "bartoszkobylinski.com"

but actually for me it doesn’t say much. Any help would be great!



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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @bartoszkobylinski,

I can see that you’ve managed to get your website up and running which is great!

Would you mind sharing with the community what was the problem that you were facing and how did you fix it?

Thank you and regards, Bobby

My friend who helped me to settings thing right told me to make a config directory with config files. In my case .sock file was in the project directory instead in config directory so just copy paste fixed everything

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.