WebFaction
Community site: login faq

I cannot seem to get ghost to start. I did a clean install of 0.5.5 and am getting a 502 Bad Gateway error when I go to the domain. I tried to start the application manually from ssh and get the following error:

warn:    --minUptime not set. Defaulting to: 1000ms
warn:    --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
info:    Forever processing file: /home/psoulos/webapps/ghost/ghost/index.js

fs.js:438
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^
Error: ENOENT, no such file or directory '/home/psoulos/.forever/Tzzy.log'
    at Object.fs.openSync (fs.js:438:18)
    at Object.forever.startDaemon (/home/psoulos/webapps/ghost/ghost/node_modules/forever/lib/forever.js:484:14)
    at /home/psoulos/webapps/ghost/ghost/node_modules/forever/lib/forever/cli.js:270:13
    at /home/psoulos/webapps/ghost/ghost/node_modules/forever/lib/forever/cli.js:157:5
    at /home/psoulos/webapps/ghost/ghost/node_modules/forever/lib/forever.js:436:11
    at Object.oncomplete (fs.js:107:15)

asked 25 Dec '14, 04:45

psoulos
313
accept rate: 0%

edited 25 Dec '14, 16:52

seanf
12.2k41836


The error seems to be that forever is not able to open/create the ~/.forever directory.

I've taken a look at your account and the permissions for your home directory weren't correct, as your home directory was owned by the root user, instead of yours. Because of this, new directories couldn't be created.

I've fixed them and it seems that forever is starting and stopping as expected.

permanent link

answered 25 Dec '14, 16:46

iliasr ♦♦
2.1k14
accept rate: 35%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×67
×27

question asked: 25 Dec '14, 04:45

question was seen: 2,109 times

last updated: 25 Dec '14, 16:52

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM