Problems seeding the MongoDB
-
Hello everyone,
I would like to use your tool, but cannot manage to seed the mongodb. I always get following output:
$ nodejs dbseed.jsinternal/modules/cjs/loader.js:1155
throw err;
^SyntaxError: /home/user/cod4xweb/app/config/config.json: Unexpected token
in JSON at position 2030
at parse (<anonymous>)
at Object.Module._extensions..json (internal/modules/cjs/loader.js:1152:22)
at Module.load (internal/modules/cjs/loader.js:982:32)
at Function.Module._load (internal/modules/cjs/loader.js:875:14)
at Module.require (internal/modules/cjs/loader.js:1022:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.<anonymous> (/home/user/cod4xweb/app/seed/dbseed.js:3:16)
at Module._compile (internal/modules/cjs/loader.js:1118:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1138:10)
at Module.load (internal/modules/cjs/loader.js:982:32)
at Function.Module._load (internal/modules/cjs/loader.js:875:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47I don´t know what this means and if it is related to the files or to setting on the machine. I am using ubuntu 16.04.
Thanks for helping!
-
you have a typo somewhere in your config json file
/app/config/config.json: Unexpected token in JSON at position 2030
-
Is there a log which tells on which line related to the config the error is generated?
-
Nvm, got it to work. Looked like the mongodb installation was kinda faulty. But a new problem appeared. After seeding the mongodb I get the the error, the guy in this post recieved: https://forum.cirkus-serveri.com/topic/108/can-some-one-help-me-with-this/23 The output of the database seed is Database succesfully populated with Default data Database succesfully populated with Default data Database succesfully populated with Default data So is this also related to the machine or is this related to the files?
-
Your database is not populated, follow the steps https://forum.cirkus-serveri.com/topic/118/help-me-with-this-problem
-
Thank you, it solved the problem!