Join GitHub today
Unable to Update Ghost to v0.8.0 on production server #7084
I tried several combinations of following :
But none of them work.
While using 0.12.0, I get following error while installing node
What does Killed mean?
This is what is shown when I type
And these are contents of
Update: I get the same issue while installing 0.9.0-beta.2
The Solution was given over at slack community by @acburdine
So, the issue (Killed ) occurs because NPM might use a lot of resources/RAM while installing packages.
For me, I tried doing something very simple before trying out 2 options above
Thanks @prashantsani for documenting this. I had the exact same issue.
The only thing I'd add was at the very beginning, I got a strange message—the one reported here.
$ npm install --production npm WARN cannot run in wd firstname.lastname@example.org npm install semver && node -e "require('./core/server/utils/startup-check.js').nodeVersion()" (wd=/var/www/ghost)
I changed permissions on everything, rebooted the droplet: nothing.
All of the following were ran with and without
Register yourselfon the ghost slack link mentioned above.
Which node version you are using?
Also, you don't need to chown any director to root user. Root user has permissions for most of the directories.
Hm. Now I'm in situation where I got it install to happen without errors, and
It results in this in the browser:
I try to restart nginx, which works, but notice that weird double
$ sudo service ghost restart ghost stop/waiting ghost start/running, process 7282 $ npm start --production > email@example.com start /var/www/ghost > node index Migrations: Up-to-date at version 005 Ghost is running in production... Your blog is now available on http://kevinsuttle.com Ctrl+C to shut down
I saw the traffic logging in the terminal after I logged into the Ghost admin UI in the browser. Then I saw this error in the terminal:
127.0.0.1 - - [22/Jul/2016:20:26:58 +0000] "GET /ghost/vendor.min.js?v=bc8b0446e1 HTTP/1.0" 200 - "https://kevinsuttle.com/ghost/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36" ERROR: Invalid refresh token. Error at Error.NoPermissionError (/var/www/ghost/core/server/errors/no-permission-error.js:6:18) at then (/var/www/ghost/core/server/middleware/oauth.js:14:25) at tryCatcher (/var/www/ghost/node_modules/bookshelf/node_modules/bluebird/js/main/util.js:26:23) at Promise._settlePromiseFromHandler (/var/www/ghost/node_modules/bookshelf/node_modules/bluebird/js/main/promise.js:507:31) at Promise._settlePromiseAt (/var/www/ghost/node_modules/bookshelf/node_modules/bluebird/js/main/promise.js:581:18) at Async._drainQueue (/var/www/ghost/node_modules/bookshelf/node_modules/bluebird/js/main/async.js:128:12) at Async._drainQueues (/var/www/ghost/node_modules/bookshelf/node_modules/bluebird/js/main/async.js:133:10) at Async.drainQueues (/var/www/ghost/node_modules/bookshelf/node_modules/bluebird/js/main/async.js:15:14) at process._tickDomainCallback (node.js:502:13)
I had this running without pm2/forever before.
I noticed that the ghost service doesn't appear anymore here:
But again, running