• CoD4xAdmin
  • Recent
  • Popular
  • Groups
  • Users
  • Register
  • Login
Cirkus Serveri Forum
  • CoD4xAdmin
  • Recent
  • Popular
  • Groups
  • Users
  • Register
  • Login

Problems seeding the MongoDB

Scheduled Pinned Locked Moved
Support
2
6
332
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C
    cod4gg
    last edited by 17 Mar 2021, 01:08

    Hello everyone,
    I would like to use your tool, but cannot manage to seed the mongodb. I always get following output:
    $ nodejs dbseed.js

    internal/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:47

    I 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!

    1 Reply Last reply Reply Quote 0
    • N
      NeHo Administrators
      last edited by 18 Mar 2021, 20:59

      you have a typo somewhere in your config json file

      /app/config/config.json: Unexpected token in JSON at position 2030

      I keep hitting the 'Escape' key - but I'm still here. ...

      1 Reply Last reply Reply Quote 0
      • C
        cod4gg
        last edited by 18 Mar 2021, 23:52

        Is there a log which tells on which line related to the config the error is generated?

        1 Reply Last reply Reply Quote 0
        • C
          cod4gg
          last edited by 19 Mar 2021, 21:03

          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?

          1 Reply Last reply Reply Quote 0
          • N
            NeHo Administrators
            last edited by 19 Mar 2021, 21:22

            Your database is not populated, follow the steps https://forum.cirkus-serveri.com/topic/118/help-me-with-this-problem

            I keep hitting the 'Escape' key - but I'm still here. ...

            1 Reply Last reply Reply Quote 0
            • C
              cod4gg
              last edited by 20 Mar 2021, 15:59

              Thank you, it solved the problem!

              1 Reply Last reply Reply Quote 1
              3 out of 6
              • First post
                3/6
                Last post

              0

              Online

              191

              Users

              268

              Topics

              1.2k

              Posts
              Powered & Designed by NeHo