Report this

What is the reason for this report?

Deleted /tmp/ files and getting 502

Posted on June 23, 2017

I accidentally the files in my tmp folder and now I am getting a 502 error on all of the sites running on my server.

Getting the following error in my error.log

2017/06/23 12:21:00 [crit] 17256#0: *1 connect() to unix:/var/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 81.132.245.224, server: boss-14-001.bareface.work, request: “GET /favicon.ico HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.0-fpm.sock:”, host: “boss-14-001.bareface.work”, referrer: “http://boss-14-001.bareface.work/

I also get the following in my syslog

I am very new at this so if you can help, please be as clear as possible. As far as I can see I may have deleted php7.0-fpm.sock but not sure how to restore that.



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.

This comment has been deleted

fixed now. Had to re-add /tmp with correct permissions and ownership

@dev3a892af9f2c224325df0b94 Restart PHP service:

sudo service php7.0-fpm restart

You might have issues with lingering services, so it might be easier to restart the server, since that will create the socket files again for all your services.

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.