openKB icon indicating copy to clipboard operation
openKB copied to clipboard

mongodb error upgrde

Open littleheart opened this issue 5 years ago • 0 comments

[root@skykb openKB]# npm run-script dbUpgrade

[email protected] dbUpgrade /var/www/html/openKB node data/mongodbUpgrade.js

undefined:28 "connection_string": "mongodb://0.0.0.0:27017/skykbdb" ^

SyntaxError: Unexpected string in JSON at position 844 at JSON.parse () at Object.exports.read_config (/var/www/html/openKB/routes/common.js:34:31) at Object. (/var/www/html/openKB/data/mongodbUpgrade.js:16:23) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) at startup (internal/bootstrap/node.js:283:19) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] dbUpgrade: node data/mongodbUpgrade.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] dbUpgrade script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-09-22T14_52_15_896Z-debug.log [root@skykb openKB]#

littleheart avatar Sep 22 '20 15:09 littleheart