Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mongodb error upgrde #315

Open
littleheart opened this issue Sep 22, 2020 · 0 comments
Open

mongodb error upgrde #315

littleheart opened this issue Sep 22, 2020 · 0 comments

Comments

@littleheart
Copy link

[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]#

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant