502 Bad Gateway error after rebooting Ubuntu

Hi,

I get a 502 Bad Gateway error after rebooting Ubuntu 16.04. Nginx is up and running. The log file is showing

connect() to unix:/home/deploy/consul/sockets/unicorn.sock failed (111: Connection refused) while connecting to upstream

What seems to be a problem?

Hi,

I manged to fix this by restarting the application cap production deploy:restart