Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    1. Home
    2. toledano
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 0
    • Groups 0

    toledano

    @toledano

    0
    Reputation
    297
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    toledano Follow

    Latest posts made by toledano

    • Error using ./nodebb

      Hi

      I'm trying to setting up nodebb, but I have some troubles using ./nodebb start. I got this:

      [cluster] Spinning up another process...
      
      /home/javier/proyectos/foros/node_modules/nconf/lib/nconf/stores/file.js:141
            throw new Error("Error parsing your configuration file: [" + self.file +
                  ^
      Error: Error parsing your configuration file: [/home/javier/proyectos/foros/config.json]: Unexpected string
          at File.loadSync (/home/javier/proyectos/foros/node_modules/nconf/lib/nconf/stores/file.js:141:13)
          at Provider.add (/home/javier/proyectos/foros/node_modules/nconf/lib/nconf/provider.js:137:23)
          at Provider.file (/home/javier/proyectos/foros/node_modules/nconf/lib/nconf/provider.js:63:15)
          at loadConfig (/home/javier/proyectos/foros/app.js:79:8)
          at start (/home/javier/proyectos/foros/app.js:110:2)
          at Object.<anonymous> (/home/javier/proyectos/foros/app.js:67:2)
          at Module._compile (module.js:456:26)
          at Object.Module._extensions..js (module.js:474:10)
          at Module.load (module.js:356:32)
          at Function.Module._load (module.js:312:12)
      3 restarts in 10 seconds, most likely an error on startup. Halting.
      

      But, all working fine when I used node loader.js --no-silent --no-daemon

      $ node loader.js --no-silent --no-daemon
      
      Clustering enabled: Spinning up 1 process(es).
      
      2/11 14:04 [22629] - info: Time: Mon Nov 02 2015 14:04:52 GMT-0600 (CST)
      2/11 14:04 [22629] - info: Initializing NodeBB v0.8.2
      2/11 14:04 [22629] - info: [plugins/spam-be-gone] Settings loaded
      2/11 14:04 [22629] - info: NodeBB Ready
      2/11 14:04 [22629] - info: Enabling 'trust proxy'
      2/11 14:04 [22629] - info: NodeBB is now listening on: 0.0.0.0:4567
      

      It also works with ./nodebb dev

      Clustering enabled: Spinning up 1 process(es).
      
      2/11 14:15 [22751] - info: Time: Mon Nov 02 2015 14:15:42 GMT-0600 (CST)
      2/11 14:15 [22751] - info: Initializing NodeBB v0.8.2
      2/11 14:15 [22751] - verbose: * using configuration stored in: /home/javier/proyectos/foros/config.json
      2/11 14:15 [22751] - verbose: * using redis store at 127.0.0.1:6379
      2/11 14:15 [22751] - verbose: * using themes stored in: /home/javier/proyectos/foros/node_modules
      2/11 14:15 [22751] - verbose: Checking dependencies for outdated modules
      2/11 14:15 [22751] - verbose: [notifications.init] Registering jobs.
      

      My config.js is the result of ./nodebb setup

      {
          "url": "http://127.0.0.1:4567",
          "secret": "2xxxxx3",
          "database": "redis",
          "redis": {
              "host": "127.0.0.1",
              "port": "6379",
              "password": "",
              "database": "0"
          }
      }
      

      Thanks for your help... and sorry for my english.

      posted in Technical Support
      toledano
      toledano