On my droplet I use git to pull a new theme, and it uses SASS and Compass and Grunt to compile the code. So I needed to update nodejs for it to work. and after updating my node and rebooting the server I get a 502 Bad Gateway when I visit my site.
when running (sudo or not) $ service ghost start
It gives me the feedback that Ghost is started really quickly (too quickly) and if afterwards I check with $ service ghost status it says it is not running.
nginx does the same.
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.