1

I'm running through an error that's giving me serious headache. Tried to Google for it but all I find is about MySQL which doesn't apply here.

I've just updated Node and Ghost (blogging platform) on Ubuntu. Had some major issues to update Node since it didn't come installed in a normal way so apt-get didn't work. I was able to install Node with NVM. After trying to restart the service it now says "Job failed to start"

They're using this init.d script: https://raw.githubusercontent.com/TryGhost/Ghost-Config/master/init.d/ghost which I've updated to be like this:

PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="Ghost"
NAME=ghost
GHOST_ROOT=/var/www/ghost
GHOST_GROUP=ghost
GHOST_USER=ghost
DAEMON=/root/.nvm/versions/node/v4.2.3/bin/node
DAEMON_ARGS="$GHOST_ROOT/index.js"
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
export NODE_ENV=production

Other than that, it remains the same.

However, I can't work out the "Job Failed to start" part, is not giving any other message even though VERBOSE seems to be set to yes.

I've checked permissions on new bins and all seems alright. Also tried to run the blog manually and it seems to work without any errors.

How can I debug the reason of the failure?

0 Answers0