Issue running 'npm start --production' on debian server

June 28, 2014 1.3k views

Hello guys,

I've configured a debian enviroment in order to run a ghost blog and i'm getting the following error:

ERROR: Cannot read property '__cid' of undefined 

 TypeError: Cannot read property '__cid' of undefined
    at Runner_SQLite3.<anonymous> (/root/addictedCoder/stableaddicted/node_modules/knex/lib/runner.js:89:30)
    at tryCatch1 (/root/addictedCoder/stableaddicted/node_modules/knex/node_modules/bluebird/js/main/util.js:63:19)
    at Runner_SQLite3.Promise$_method [as query] (/root/addictedCoder/stableaddicted/node_modules/knex/node_modules/bluebird/js/main/promise.js:267:25)
    at Runner_SQLite3.<anonymous> (/root/addictedCoder/stableaddicted/node_modules/knex/lib/runner.js:100:19)
    at Reduction$iterate [as iterate] (/root/addictedCoder/stableaddicted/node_modules/knex/node_modules/bluebird/js/main/reduce.js:57:27)
    at Object.Promise$_reducer (/root/addictedCoder/stableaddicted/node_modules/knex/node_modules/bluebird/js/main/reduce.js:95:15)
    at Object.Promise$_unpackReducer (/root/addictedCoder/stableaddicted/node_modules/knex/node_modules/bluebird/js/main/reduce.js:102:29)
    at tryCatch1 (/root/addictedCoder/stableaddicted/node_modules/knex/node_modules/bluebird/js/main/util.js:63:19)
    at Promise$_callHandler [as _callHandler] (/root/addictedCoder/stableaddicted/node_modules/knex/node_modules/bluebird/js/main/promise.js:695:13)
    at Promise$_settlePromiseFromHandler [as _settlePromiseFromHandler] (/root/addictedCoder/stableaddicted/node_modules/knex/node_modules/bluebird/js/main/promise.js:711:18)

Looks like a problem with sqlite but couldn't find a solution, could you help me please?

Regards,
Addicted.

1 Answer

How did you install Ghost? Judging from this issue on GitHub, it sounds like you might be trying to run it from the master branch rather than from stable This is unsupported and likely to break.

If you're trying to install from git, you can use this command to get the stable branch:

git clone -b stable git@github.com:TryGhost/Ghost.git
Have another answer? Share your knowledge.