UNSOLVED Error after update to 0.9.3

  • GNU/Linux

    @pichalite said:

    @djcyry well that's the problem... you don't have a port specified in your config.json

    You already have hercio.net running on port 4567. Running NodeBB without a port setting in config.json will try to run it on 4567 and it's already being used in your case.

    Add this to your config.json

    "port": "4568"

    /root/nodebb_es/node_modules/nconf/lib/nconf/stores/file.js:153
    throw new Error("Error parsing your configuration file: [" + this.file + '
    ^
    Error: Error parsing your configuration file: [/root/nodebb_es/config.json]: Unexpected string
    at File.loadSync (/root/nodebb_es/node_modules/nconf/lib/nconf/stores/file.js:153:11)
    at Provider.add (/root/nodebb_es/node_modules/nconf/lib/nconf/provider.js:137:23)
    at Provider.file (/root/nodebb_es/node_modules/nconf/lib/nconf/provider.js:63:15)
    at Object.<anonymous> (/root/nodebb_es/loader.js:14:20)
    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)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)

  • Plugin & Theme Dev

    @djcyry what does your new config.json look like?

  • GNU/Linux

    @pichalite said:

    @djcyry what does your new config.json look like?

    {
    "url": "http://www.nodebb.es",
    "port": "4568"
    "secret": "86df865a-c4a2-4060-be42-be1cdbf1b3cd",
    "database": "redis",
    "redis": {
    "host": "127.0.0.1",
    "port": "6379",
    "password": "pass",
    "database": "1"
    }

    }

  • Plugin & Theme Dev

    @djcyry you are missing a comma after "port": "4568"

  • GNU/Linux

    @pichalite said:

    @djcyry you are missing a comma after "port": "4568"

    OMFG...thanks , its works. 😅
    But why this problem , after update to latest version ?

  • Plugin & Theme Dev

    @djcyry not sure what steps you took to upgrade..... I had two installations of NodeBB running on the same machine with different ports and never had this issue with upgrades (had other issues but not this one).

  • GNU/Linux

    @pichalite said:

    @djcyry not sure what steps you took to upgrade..... I had two installations of NodeBB running on the same machine with different ports and never had this issue with upgrades (had other issues but not this one).

    In this case , i need to upgrade the second forum .
    What is the best way - commands to update it ? from 0.9.2 to 0.9.3 ? thanks

  • Plugin & Theme Dev

    @djcyry follow this docs

    Under this section... run the second option

  • GNU/Linux

    @pichalite said:

    @djcyry follow this docs

    Under this section... run the second option

    Now , another problem , after upgrade and fix this , i have upgrate booth forums , but nodebb.es :
    When i enter to a topic my database goes offline i think , beacause i have this in ssh terminal :

    Look at this : https://i.imgur.com/AVlOT8t.png , also after reboot/reload/restart its starting slowly ,
    later than other forum ...


    21/12 22:38 [768] - error: TypeError: Converting circular structure to JSON
    at Object.stringify (native)
    at ServerResponse.json (/root/nodebb_es/node_modules/express/lib/response.js:242:19)
    at ServerResponse.res.render (/root/nodebb_es/src/middleware/render.js:42:16)
    at /root/nodebb_es/src/controllers/topics.js:287:8
    at fireFilterHook (/root/nodebb_es/src/plugins/hooks.js:86:11)
    at Object.Plugins.fireHook (/root/nodebb_es/src/plugins/hooks.js:70:5)
    at /root/nodebb_es/src/controllers/topics.js:283:11
    at /root/nodebb_es/node_modules/async/lib/async.js:52:16
    at Object._onImmediate (/root/nodebb_es/node_modules/async/lib/async.js:1201:34)
    at processImmediate [as _immediateCallback] (timers.js:354:15)
    TypeError: Converting circular structure to JSON
    at Object.stringify (native)
    at ServerResponse.json (/root/nodebb_es/node_modules/express/lib/response.js:242:19)
    at ServerResponse.res.render (/root/nodebb_es/src/middleware/render.js:42:16)
    at /root/nodebb_es/src/controllers/topics.js:287:8
    at fireFilterHook (/root/nodebb_es/src/plugins/hooks.js:86:11)
    at Object.Plugins.fireHook (/root/nodebb_es/src/plugins/hooks.js:70:5)
    at /root/nodebb_es/src/controllers/topics.js:283:11
    at /root/nodebb_es/node_modules/async/lib/async.js:52:16
    at Object._onImmediate (/root/nodebb_es/node_modules/async/lib/async.js:1201:34)
    at processImmediate [as _immediateCallback] (timers.js:354:15)
    21/12 22:38 [768] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
    21/12 22:38 [768] - info: [app] Database connection closed.
    21/12 22:38 [768] - info: [app] Web server closed to connections.
    21/12 22:38 [768] - info: [app] Shutdown complete.
    [cluster] Child Process (768) has exited (code: 1, signal: null)
    [cluster] Spinning up another process...
    21/12 22:38 [782] - info: Time: Mon Dec 21 2015 22:38:13 GMT+0000 (UTC)
    21/12 22:38 [782] - info: Initializing NodeBB v0.9.3
    Warning: Redis server does not require a password, but a password was supplied.
    Warning: Redis server does not require a password, but a password was supplied.
    Warning: Redis server does not require a password, but a password was supplied.
    Warning: Redis server does not require a password, but a password was supplied.
    Warning: Redis server does not require a password, but a password was supplied.
    21/12 22:38 [782] - warn: [plugins/nodebb-plugin-sso-twitter] Hook filter:user.delete is deprecated, please use an alternative
    21/12 22:38 [782] - warn: [plugins/nodebb-plugin-sso-google] Hook filter:user.delete is deprecated, please use an alternative
    21/12 22:38 [782] - warn: [plugins/nodebb-plugin-ns-awards] Hook filter:user.delete is deprecated, please use an alternative

    21/12 22:38 [782] - warn: [plugins/load] The following plugins may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing. In the event of an unresponsive NodeBB caused by this plugin, run ./nodebb reset -p PLUGINNAME to disable it.

    • nodebb-plugin-recent-cards
    • nodebb-plugin-sso-twitter
    • nodebb-plugin-sso-google
    • nodebb-plugin-sso-facebook
    • nodebb-plugin-custom-pages

    21/12 22:38 [782] - info: [plugins/spam-be-gone] Settings loaded
    21/12 22:38 [782] - info: NodeBB Ready
    21/12 22:38 [782] - info: Enabling 'trust proxy'
    21/12 22:38 [782] - info: NodeBB is now listening on: 0.0.0.0:4568


    And in the dev mode , same errors :


    22/12 08:13 [3358] - error: Error: listen EADDRINUSE
    at errnoException (net.js:905:11)
    at Server._listen2 (net.js:1043:14)
    at listen (net.js:1065:10)
    at Server.listen (net.js:1139:5)
    at listen (/root/nodebb_es/src/webserver.js:180:17)
    at /root/nodebb_es/src/webserver.js:57:3
    at EventEmitter.<anonymous> (/root/nodebb_es/src/emitter.js:17:5)
    at EventEmitter.emit (events.js:92:17)
    at /root/nodebb_es/src/meta/css.js💯14
    at /root/nodebb_es/node_modules/async/lib/async.js:721:13
    22/12 08:13 [3358] - error: NodeBB address in use, exiting...
    [cluster] Child Process (3358) has exited (code: 0, signal: null)
    root@euve102658:~/nodebb_es#


  • GNU/Linux

    I have run again ./nodebb setup , update the system , run in dev mode ...same problem .
    The database is crashing , not loading the topics .

    0_1450788721810_AVlOT8t.png

    I dont know ..is strange , i have update both forums , and nodebb.es , have this problem .... 😥

    @julian can you please help me with this ? i am stuck .. 😞

Suggested Topics

| |