NodeBB / NodeBB

Node.js based forum software built for the modern web
https://nodebb.org
GNU General Public License v3.0
14.19k stars 2.8k forks source link

0.9.4 auto restart (problem) #4264

Closed ornithes closed 8 years ago

ornithes commented 8 years ago

25/2 15:57 [8263] - error: TypeError: Cannot read property 'messageId' of undefined at /home/user/nodebb/src/messaging.js:285:54 at fn (/home/user/nodebb/node_modules/async/lib/async.js:746:34) at /home/user/nodebb/node_modules/async/lib/async.js:1213:16 at /home/user/nodebb/node_modules/async/lib/async.js:166:37 at /home/user/nodebb/node_modules/async/lib/async.js:706:43 at /home/user/nodebb/node_modules/async/lib/async.js:167:37 at Object._onImmediate (/home/user/nodebb/node_modules/async/lib/async.js:1206:34) at processImmediate as _immediateCallback TypeError: Cannot read property 'messageId' of undefined at /home/user/nodebb/src/messaging.js:285:54 at fn (/home/user/nodebb/node_modules/async/lib/async.js:746:34) at /home/user/nodebb/node_modules/async/lib/async.js:1213:16 at /home/user/nodebb/node_modules/async/lib/async.js:166:37 at /home/user/nodebb/node_modules/async/lib/async.js:706:43 at /home/user/nodebb/node_modules/async/lib/async.js:167:37 at Object._onImmediate (/home/user/nodebb/node_modules/async/lib/async.js:1206:34) at processImmediate as _immediateCallback 25/2 15:57 [8263] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised. 25/2 15:57 [8263] - info: [app] Database connection closed. 25/2 15:57 [8263] - info: [app] Web server closed to connections. 25/2 15:57 [8263] - info: [app] Shutdown complete. [cluster] Child Process (8263) has exited (code: 1, signal: null) [cluster] Spinning up another process... Thu, 25 Feb 2016 20:57:22 GMT validator deprecated you tried to validate a undefined but this library (validator.js) validates strings only. Please update your code as this will be an error soon. at src/user/data.js:97:30 25/2 15:57 [8265] - error: TypeError: Cannot read property 'messageId' of undefined at /home/user/nodebb/src/messaging.js:285:54 at fn (/home/user/nodebb/node_modules/async/lib/async.js:746:34) at /home/user/nodebb/node_modules/async/lib/async.js:1213:16 at /home/user/nodebb/node_modules/async/lib/async.js:166:37 at /home/user/nodebb/node_modules/async/lib/async.js:706:43 at /home/user/nodebb/node_modules/async/lib/async.js:167:37 at Object._onImmediate (/home/user/nodebb/node_modules/async/lib/async.js:1206:34) at processImmediate as _immediateCallback TypeError: Cannot read property 'messageId' of undefined at /home/user/nodebb/src/messaging.js:285:54 at fn (/home/user/nodebb/node_modules/async/lib/async.js:746:34) at /home/user/nodebb/node_modules/async/lib/async.js:1213:16 at /home/user/nodebb/node_modules/async/lib/async.js:166:37 at /home/user/nodebb/node_modules/async/lib/async.js:706:43 at /home/user/nodebb/node_modules/async/lib/async.js:167:37 at Object._onImmediate (/home/user/nodebb/node_modules/async/lib/async.js:1206:34) at processImmediate as _immediateCallback 25/2 15:57 [8265] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised. 25/2 15:57 [8265] - info: [app] Database connection closed. 25/2 15:57 [8265] - info: [app] Web server closed to connections. 25/2 15:57 [8265] - info: [app] Shutdown complete. [cluster] Child Process (8265) has exited (code: 1, signal: null) [cluster] Spinning up another process... 25/2 15:57 [8283] - info: Time: Thu Feb 25 2016 15:57:25 GMT-0500 (EST) 25/2 15:57 [8283] - info: Initializing NodeBB v0.9.4

25/2 15:57 [8283] - 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.

25/2 15:57 [8281] - info: [plugins/spam-be-gone] Settings loaded 25/2 15:57 [8281] - info: NodeBB Ready 25/2 15:57 [8281] - info: Enabling 'trust proxy' 25/2 15:57 [8281] - info: NodeBB is now listening on: 0.0.0.0:4568 Thu, 25 Feb 2016 20:57:34 GMT validator deprecated you tried to validate a undefined but this library (validator.js) validates strings only. Please update your code as this will be an error soon. at src/user/data.js:97:30 Thu, 25 Feb 2016 20:57:35 GMT validator deprecated you tried to validate a undefined but this library (validator.js) validates strings only. Please update your code as this will be an error soon. at src/categories/data.js:45:29 25/2 15:57 [8283] - info: [plugins/spam-be-gone] Settings loaded 25/2 15:57 [8283] - info: NodeBB Ready 25/2 15:57 [8283] - info: Enabling 'trust proxy' 25/2 15:57 [8283] - info: NodeBB is now listening on: 0.0.0.0:4567 Thu, 25 Feb 2016 20:57:45 GMT validator deprecated you tried to validate a undefined but this library (validator.js) validates strings only. Please update your code as this will be an error soon. at src/categories/data.js:45:29 Thu, 25 Feb 2016 20:57:45 GMT validator deprecated you tried to validate a object but this library (validator.js) validates strings only. Please update your code as this will be an error soon. at src/user/data.js:97:30

julianlam commented 8 years ago

Have you tried master? This might already be resolved :smile:

ornithes commented 8 years ago

hmm, sorry. I'll try soon :D

ornithes commented 8 years ago

Updated. but , but but.... pop does not open anything. Chats, notifications, user.

at /home/user/nodebb/src/routes/index.js:207:9 at /home/user/nodebb/src/middleware/header.js:36:13 at /home/user/nodebb/node_modules/async/lib/async.js:726:13 at /home/user/nodebb/node_modules/async/lib/async.js:52:16 at done (/home/user/nodebb/node_modules/async/lib/async.js:241:17) at /home/user/nodebb/node_modules/async/lib/async.js:44:16 at /home/user/nodebb/node_modules/async/lib/async.js:723:17 25/2 17:06 [27827] - info: NodeBB Ready 25/2 17:06 [27827] - info: Enabling 'trust proxy' 25/2 17:06 [27827] - info: NodeBB is now listening on: 0.0.0.0:4567

ornithes commented 8 years ago

I tried 2 times. I have the same problem. 0.9.3 I'm back. The record can not be. Introduction not done. Chats, notifications, user, button does not work. (I do not like clicking)

Loading, the bar does not appear. Everything is static.

nhlpl commented 8 years ago

Do you have any plugins installed? Freshly populated datastore or imported from a backup?

psychobunny commented 8 years ago

Looking at the code in latest master, there's no logical way that this error could be thrown. Then again, your last error you pasted didn't have the full stack. Can you please paste the whole log? Specifically if the messageID of undefined error still exists

psychobunny commented 8 years ago

Actually yeah, your second log is from a completely different file, so yeah - please paste the whole log. Thanks

ornithes commented 8 years ago

I try again.

25/2 23:51 [6873] - info: [plugins/spam-be-gone] Settings loaded
25/2 23:52 [6873] - info: NodeBB Ready
25/2 23:52 [6873] - info: Enabling 'trust proxy'
25/2 23:52 [6873] - info: NodeBB is now listening on: 0.0.0.0:4568
25/2 23:52 [6871] - info: NodeBB Ready
25/2 23:52 [6871] - info: Enabling 'trust proxy'
25/2 23:52 [6871] - info: NodeBB is now listening on: 0.0.0.0:4567
25/2 23:52 [6871] - info: [plugins/spam-be-gone] Settings loaded
^Cuser@timuu:~/nodebb$ ./nodebb dev

NodeBB v0.9.4 Copyright (C) 2013-2014 NodeBB Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it under certain cond                                                      itions.
For the full license, please visit: http://www.gnu.org/copyleft/gpl.html

Clustering enabled: Spinning up 2 process(es).

25/2 23:52 [6909] - verbose: * using configuration stored in: /home/user/nodebb                                                      /config.json
25/2 23:52 [6908] - verbose: * using configuration stored in: /home/user/nodebb                                                      /config.json
25/2 23:52 [6908] - info: Time: Thu Feb 25 2016 23:52:38 GMT-0500 (EST)
25/2 23:52 [6908] - info: Initializing NodeBB v0.9.4
25/2 23:52 [6908] - verbose: * using redis store at 127.0.0.1:6379
25/2 23:52 [6908] - verbose: * using themes stored in: /home/user/nodebb/node_m                                                      odules
25/2 23:52 [6908] - verbose: Checking dependencies for outdated modules
25/2 23:52 [6909] - verbose: Checking dependencies for outdated modules
25/2 23:52 [6908] - verbose: [notifications.init] Registering jobs.
25/2 23:52 [6908] - info: [themes] Using theme nodebb-theme-persona
25/2 23:52 [6908] - verbose: [plugins] Initializing plugins system
25/2 23:52 [6908] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-pl                                                      ugin-composer-default
25/2 23:52 [6908] - verbose: [plugins] Found 11 js file(s) for plugin nodebb-plu                                                      gin-composer-default
25/2 23:52 [6908] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plug                                                      in-composer-default
25/2 23:52 [6908] - verbose: [plugins] Loaded plugin: nodebb-plugin-composer-def                                                      ault
25/2 23:52 [6908] - verbose: [plugins] Found 5 js file(s) for plugin nodebb-them                                                      e-persona
25/2 23:52 [6908] - verbose: [plugins] Loaded plugin: nodebb-theme-persona
25/2 23:52 [6909] - info: [themes] Using theme nodebb-theme-persona
25/2 23:52 [6909] - verbose: [plugins] Initializing plugins system
25/2 23:52 [6909] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-pl                                                      ugin-composer-default
25/2 23:52 [6909] - verbose: [plugins] Found 11 js file(s) for plugin nodebb-plu                                                      gin-composer-default
25/2 23:52 [6909] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plug                                                      in-composer-default
25/2 23:52 [6909] - verbose: [plugins] Loaded plugin: nodebb-plugin-composer-def                                                      ault
25/2 23:52 [6909] - verbose: [plugins] Found 5 js file(s) for plugin nodebb-them                                                      e-persona
25/2 23:52 [6909] - verbose: [plugins] Loaded plugin: nodebb-theme-persona
25/2 23:52 [6909] - verbose: [plugins] Loaded plugin: nodebb-plugin-dbsearch
25/2 23:52 [6909] - verbose: [plugins] Loaded plugin: nodebb-plugin-emailer-mand                                                      rill
25/2 23:52 [6908] - verbose: [plugins] Loaded plugin: nodebb-plugin-dbsearch
25/2 23:52 [6908] - verbose: [plugins] Loaded plugin: nodebb-plugin-emailer-mand                                                      rill
25/2 23:52 [6908] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-pl                                                      ugin-emoji-extended
25/2 23:52 [6908] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plug                                                      in-emoji-extended
25/2 23:52 [6908] - verbose: [plugins] Loaded plugin: nodebb-plugin-emoji-extend                                                      ed
25/2 23:52 [6908] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plug                                                      in-google-analytics
25/2 23:52 [6908] - verbose: [plugins] Loaded plugin: nodebb-plugin-google-analy                                                      tics
25/2 23:52 [6909] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-pl                                                      ugin-emoji-extended
25/2 23:52 [6909] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plug                                                      in-emoji-extended
25/2 23:52 [6909] - verbose: [plugins] Loaded plugin: nodebb-plugin-emoji-extend                                                      ed
25/2 23:52 [6909] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plug                                                      in-google-analytics
25/2 23:52 [6909] - verbose: [plugins] Loaded plugin: nodebb-plugin-google-analy                                                      tics
25/2 23:52 [6908] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-pl                                                      ugin-markdown
25/2 23:52 [6908] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plug                                                      in-markdown
25/2 23:52 [6908] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plug                                                      in-markdown
25/2 23:52 [6908] - verbose: [plugins] Loaded plugin: nodebb-plugin-markdown
25/2 23:52 [6908] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-pl                                                      ugin-mentions
25/2 23:52 [6908] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plug                                                      in-mentions
25/2 23:52 [6908] - verbose: [plugins] Loaded plugin: nodebb-plugin-mentions
25/2 23:52 [6909] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-pl                                                      ugin-markdown
25/2 23:52 [6909] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plug                                                      in-markdown
25/2 23:52 [6909] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plug                                                      in-markdown
25/2 23:52 [6909] - verbose: [plugins] Loaded plugin: nodebb-plugin-markdown
25/2 23:52 [6908] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-pl                                                      ugin-pushbullet
25/2 23:52 [6908] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plug                                                      in-pushbullet
25/2 23:52 [6908] - verbose: [plugins] Loaded plugin: nodebb-plugin-pushbullet
25/2 23:52 [6909] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-pl                                                      ugin-mentions
25/2 23:52 [6909] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plug                                                      in-mentions
25/2 23:52 [6908] - verbose: [plugins] Loaded plugin: nodebb-plugin-soundpack-de                                                      fault
25/2 23:52 [6909] - verbose: [plugins] Loaded plugin: nodebb-plugin-mentions
25/2 23:52 [6908] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-rewa                                                      rds-essentials
25/2 23:52 [6908] - verbose: [plugins] Loaded plugin: nodebb-rewards-essentials
25/2 23:52 [6908] - verbose: [plugins] Found 1 css file(s) for plugin nodebb-plu                                                      gin-youtube
25/2 23:52 [6908] - verbose: [plugins] Loaded plugin: nodebb-plugin-youtube
25/2 23:52 [6909] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-pl                                                      ugin-pushbullet
25/2 23:52 [6909] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plug                                                      in-pushbullet
25/2 23:52 [6909] - verbose: [plugins] Loaded plugin: nodebb-plugin-pushbullet
25/2 23:52 [6908] - verbose: [plugins] Found 1 css file(s) for plugin nodebb-wid                                                      get-essentials
25/2 23:52 [6908] - verbose: [plugins] Loaded plugin: nodebb-widget-essentials
25/2 23:52 [6908] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-pl                                                      ugin-desktop-notifications
25/2 23:52 [6908] - verbose: [plugins] Found 2 js file(s) for plugin nodebb-plug                                                      in-desktop-notifications
25/2 23:52 [6909] - verbose: [plugins] Loaded plugin: nodebb-plugin-soundpack-de                                                      fault
25/2 23:52 [6908] - verbose: [plugins] Loaded plugin: nodebb-plugin-desktop-noti                                                      fications
25/2 23:52 [6908] - verbose: [plugins] Loaded plugin: nodebb-plugin-catatar
25/2 23:52 [6908] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-pl                                                      ugin-recent-cards
25/2 23:52 [6908] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plug                                                      in-recent-cards
25/2 23:52 [6908] - verbose: [plugins] Loaded plugin: nodebb-plugin-recent-cards
25/2 23:52 [6909] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-rewa                                                      rds-essentials
25/2 23:52 [6909] - verbose: [plugins] Loaded plugin: nodebb-rewards-essentials
25/2 23:52 [6909] - verbose: [plugins] Found 1 css file(s) for plugin nodebb-plu                                                      gin-youtube
25/2 23:52 [6909] - verbose: [plugins] Loaded plugin: nodebb-plugin-youtube
25/2 23:52 [6909] - verbose: [plugins] Found 1 css file(s) for plugin nodebb-wid                                                      get-essentials
25/2 23:52 [6909] - verbose: [plugins] Loaded plugin: nodebb-widget-essentials
25/2 23:52 [6909] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-pl                                                      ugin-desktop-notifications
25/2 23:52 [6909] - verbose: [plugins] Found 2 js file(s) for plugin nodebb-plug                                                      in-desktop-notifications
25/2 23:52 [6909] - verbose: [plugins] Loaded plugin: nodebb-plugin-desktop-noti                                                      fications
25/2 23:52 [6909] - verbose: [plugins] Loaded plugin: nodebb-plugin-catatar
25/2 23:52 [6909] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-pl                                                      ugin-recent-cards
25/2 23:52 [6909] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plug                                                      in-recent-cards
25/2 23:52 [6909] - verbose: [plugins] Loaded plugin: nodebb-plugin-recent-cards
25/2 23:52 [6909] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-plugin-spam-be-gone
25/2 23:52 [6909] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plugin-spam-be-gone
25/2 23:52 [6909] - verbose: [plugins] Loaded plugin: nodebb-plugin-spam-be-gone
25/2 23:52 [6909] - warn: [plugins/nodebb-plugin-2factor] Hook `action:user.loggedOut` is deprecated, please use `static:user.loggedOut` instead.
25/2 23:52 [6909] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-plugin-2factor
25/2 23:52 [6909] - verbose: [plugins] Found 4 js file(s) for plugin nodebb-plugin-2factor
25/2 23:52 [6909] - verbose: [plugins] Loaded plugin: nodebb-plugin-2factor
25/2 23:52 [6909] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plugin-adsense
25/2 23:52 [6909] - verbose: [plugins] Loaded plugin: nodebb-plugin-adsense
25/2 23:52 [6909] - info: [plugins] Plugins OK
25/2 23:52 [6909] - verbose: [meta/css] Cluster worker 6909 skipping LESS/CSS compilation
25/2 23:52 [6908] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-plugin-spam-be-gone
25/2 23:52 [6908] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plugin-spam-be-gone
25/2 23:52 [6908] - verbose: [plugins] Loaded plugin: nodebb-plugin-spam-be-gone
25/2 23:52 [6908] - warn: [plugins/nodebb-plugin-2factor] Hook `action:user.loggedOut` is deprecated, please use `static:user.loggedOut` instead.
25/2 23:52 [6908] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-plugin-2factor
25/2 23:52 [6908] - verbose: [plugins] Found 4 js file(s) for plugin nodebb-plugin-2factor
25/2 23:52 [6908] - verbose: [plugins] Loaded plugin: nodebb-plugin-2factor
25/2 23:52 [6908] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plugin-adsense
25/2 23:52 [6908] - verbose: [plugins] Loaded plugin: nodebb-plugin-adsense

25/2 23:52 [6908] - 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-composer-default
  * nodebb-plugin-emoji-extended
  * nodebb-plugin-markdown
  * nodebb-plugin-pushbullet
  * nodebb-plugin-youtube
  * nodebb-plugin-desktop-notifications
  * nodebb-plugin-recent-cards

25/2 23:52 [6908] - info: [plugins] Plugins OK
25/2 23:52 [6908] - verbose: [meta/css] Minifying LESS/CSS
25/2 23:52 [6908] - verbose: [plugins] Loading templates (nodebb-plugin-composer-default)
25/2 23:52 [6908] - verbose: [sounds] Sounds OK
25/2 23:52 [6909] - info: [plugins/spam-be-gone] Settings loaded
25/2 23:52 [6909] - verbose: [hotswap] Router with id `plugins` replaced successfully
25/2 23:52 [6909] - verbose: [plugins] All plugins reloaded and rerouted
25/2 23:52 [6909] - verbose: [hotswap] Router with id `auth` replaced successfully
25/2 23:52 [6908] - verbose: [plugins] Loading templates (nodebb-theme-persona)
25/2 23:52 [6908] - verbose: [plugins] Loading templates (nodebb-plugin-dbsearch)
25/2 23:52 [6908] - verbose: [meta/js] acp.min.js minification complete
25/2 23:52 [6909] - verbose: [cluster] Client-side javascript and mapping propagated to worker 6909
25/2 23:52 [6908] - verbose: [meta/js] nodebb.min.js minification complete
25/2 23:52 [6908] - verbose: [meta/js] acp.min.js committed to disk.
25/2 23:52 [6908] - verbose: [plugins] Loading templates (nodebb-plugin-emailer-mandrill)
25/2 23:52 [6908] - verbose: [meta/js] nodebb.min.js committed to disk.
25/2 23:52 [6909] - verbose: [cluster] Client-side javascript and mapping propagated to worker 6909
25/2 23:52 [6908] - verbose: [meta/css] Running PostCSS Plugins
25/2 23:52 [6908] - verbose: [meta/css] admin.css committed to disk.
25/2 23:52 [6908] - verbose: [meta/css] Running PostCSS Plugins
25/2 23:52 [6908] - verbose: [plugins] Loading templates (nodebb-plugin-emoji-extended)
25/2 23:52 [6908] - verbose: [meta/css] stylesheet.css committed to disk.
25/2 23:52 [6908] - verbose: [plugins] Loading templates (nodebb-plugin-google-analytics)
25/2 23:52 [6908] - verbose: [plugins] Loading templates (nodebb-plugin-markdown)
25/2 23:52 [6908] - verbose: [plugins] Loading templates (nodebb-plugin-pushbullet)
25/2 23:52 [6908] - verbose: [plugins] Loading templates (nodebb-widget-essentials)
25/2 23:52 [6908] - verbose: [plugins] Loading templates (nodebb-plugin-desktop-notifications)
25/2 23:52 [6908] - verbose: [plugins] Loading templates (nodebb-plugin-recent-cards)
25/2 23:52 [6908] - verbose: [plugins] Loading templates (nodebb-plugin-spam-be-gone)
25/2 23:52 [6908] - verbose: [plugins] Loading templates (nodebb-plugin-2factor)
25/2 23:52 [6908] - verbose: [plugins] Loading templates (nodebb-plugin-adsense)
25/2 23:52 [6908] - verbose: [meta/templates] Compiling templates
25/2 23:52 [6909] - info: NodeBB Ready
25/2 23:52 [6909] - info: Enabling 'trust proxy'
25/2 23:52 [6909] - verbose: [cluster] Stylesheets propagated to worker 6909
25/2 23:52 [6909] - error:  Error: listen EADDRINUSE
    at errnoException (net.js:904:11)
    at Server._listen2 (net.js:1042:14)
    at listen (net.js:1064:10)
    at Server.listen (net.js:1138:5)
    at listen (/home/user/nodebb/src/webserver.js:181:17)
    at /home/user/nodebb/src/webserver.js:57:3
    at EventEmitter.<anonymous> (/home/user/nodebb/src/emitter.js:17:5)
    at EventEmitter.emit (events.js:92:17)
    at process.<anonymous> (/home/user/nodebb/app.js:162:13)
    at process.emit (events.js:98:17)
25/2 23:52 [6909] - error: NodeBB address in use, exiting...
[cluster] Child Process (6909) has exited (code: 0, signal: null)
25/2 23:52 [6908] - verbose: [meta/templates] Successfully compiled templates.
25/2 23:52 [6908] - info: NodeBB Ready
25/2 23:52 [6908] - info: Enabling 'trust proxy'
[cluster/notifyWorkers] Failed to reach pid 6908
25/2 23:52 [6908] - error:  Error: listen EADDRINUSE
    at errnoException (net.js:904:11)
    at Server._listen2 (net.js:1042:14)
    at listen (net.js:1064:10)
    at Server.listen (net.js:1138:5)
    at listen (/home/user/nodebb/src/webserver.js:181:17)
    at /home/user/nodebb/src/webserver.js:57:3
    at EventEmitter.<anonymous> (/home/user/nodebb/src/emitter.js:17:5)
    at EventEmitter.emit (events.js:92:17)
    at /home/user/nodebb/src/meta/templates.js:152:13
    at Object.oncomplete (fs.js:107:15)
25/2 23:52 [6908] - error: NodeBB address in use, exiting...
[cluster] Child Process (6908) has exited (code: 0, signal: null)
ornithes commented 8 years ago
25/2 23:55 [6947] - error:  Error: listen EADDRINUSE
    at errnoException (net.js:904:11)
    at Server._listen2 (net.js:1042:14)
    at listen (net.js:1064:10)
    at Server.listen (net.js:1138:5)
    at listen (/home/user/nodebb/src/webserver.js:181:17)
    at /home/user/nodebb/src/webserver.js:57:3
    at EventEmitter.<anonymous> (/home/user/nodebb/src/emitter.js:17:5)
    at EventEmitter.emit (events.js:92:17)
    at process.<anonymous> (/home/user/nodebb/app.js:162:13)
    at process.emit (events.js:98:17)
25/2 23:55 [6947] - error: NodeBB address in use, exiting...
[cluster] Child Process (6947) has exited (code: 0, signal: null)
25/2 23:55 [6946] - verbose: [meta/templates] Successfully compiled templates.
25/2 23:55 [6946] - info: NodeBB Ready
25/2 23:55 [6946] - info: Enabling 'trust proxy'
[cluster/notifyWorkers] Failed to reach pid 6946
25/2 23:55 [6946] - error:  Error: listen EADDRINUSE
    at errnoException (net.js:904:11)
    at Server._listen2 (net.js:1042:14)
    at listen (net.js:1064:10)
    at Server.listen (net.js:1138:5)
    at listen (/home/user/nodebb/src/webserver.js:181:17)
    at /home/user/nodebb/src/webserver.js:57:3
    at EventEmitter.<anonymous> (/home/user/nodebb/src/emitter.js:17:5)
    at EventEmitter.emit (events.js:92:17)
    at /home/user/nodebb/src/meta/templates.js:152:13
    at Object.oncomplete (fs.js:107:15)
25/2 23:55 [6946] - error: NodeBB address in use, exiting...
[cluster] Child Process (6946) has exited (code: 0, signal: null)
ornithes commented 8 years ago

Log:

20/2 03:11 [12748] - info: NodeBB Ready
20/2 03:11 [12748] - info: Enabling 'trust proxy'
20/2 03:11 [12748] - info: NodeBB is now listening on: 0.0.0.0:4568
20/2 03:11 [12750] - info: [plugins/spam-be-gone] Settings loaded
20/2 03:11 [12750] - info: NodeBB Ready
20/2 03:11 [12750] - info: Enabling 'trust proxy'
20/2 03:11 [12750] - info: NodeBB is now listening on: 0.0.0.0:4567
20/2 04:41 [12748] - error: /login
 invalid csrf token
20/2 04:42 [12748] - error: /login
 invalid csrf token
20/2 04:42 [12748] - error: /login
 invalid csrf token
20/2 04:42 [12748] - error: /login
 invalid csrf token
20/2 04:42 [12748] - error: /login
 invalid csrf token
20/2 04:43 [12750] - error: /login
 invalid csrf token
20/2 05:16 [12750] - error: /register
 invalid csrf token
20/2 17:00 [12750] - info: [user/jobs] Digest (day) scheduling completed.
20/2 18:52 [12748] - error: /register
 invalid csrf token
21/2 17:00 [12750] - info: [user/jobs] Digest (day) scheduling completed.
21/2 17:00 [12750] - info: [user/jobs] Digest (week) scheduling completed.
22/2 05:04 [12748] - error: /register
 invalid csrf token
22/2 17:00 [12750] - info: [user/jobs] Digest (day) scheduling completed.
22/2 21:14 [12748] - error: /register
 invalid csrf token
23/2 06:31 [12750] - error: /register
 invalid csrf token
23/2 11:46 [12750] - error: /register
 invalid csrf token
23/2 13:29 [12750] - error: /register
 invalid csrf token
23/2 13:29 [12750] - error: /login
 invalid csrf token
23/2 17:00 [12750] - info: [user/jobs] Digest (day) scheduling completed.
24/2 10:03 [12748] - error: /login
 invalid csrf token
24/2 17:00 [12750] - info: [user/jobs] Digest (day) scheduling completed.
24/2 22:42 [12748] - error: unable to delete picture /tmp/oNncpvrvvwhKrfrPPiVFM-fj.jpg
24/2 22:45 [12748] - error: unable to delete picture /tmp/ueUibl5uvT61m_7lKt-68MOl.jpg
24/2 22:48 [12748] - error: unable to delete picture /tmp/XnOLmbHAriwBAuqu4u4zqVFn.jpg
24/2 22:50 [12748] - error: unable to delete picture /tmp/BB9u35O3WAy69cYZpiPbpRGF.jpg
25/2 00:20 [12748] - error: Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED
    at errnoException (net.js:904:11)
    at Object.afterConnect [as oncomplete] (net.js:895:19)
25/2 00:20 [12750] - error: Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED
    at errnoException (net.js:904:11)
    at Object.afterConnect [as oncomplete] (net.js:895:19)
[cluster] Child Process (12748) has exited (code: 1, signal: null)
[cluster] Spinning up another process...
[cluster] Child Process (12750) has exited (code: 1, signal: null)
[cluster] Spinning up another process...
25/2 00:20 [26788] - info: Time: Thu Feb 25 2016 00:20:24 GMT-0500 (EST)
25/2 00:20 [26788] - info: Initializing NodeBB v0.9.3
25/2 00:20 [26788] - error: Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED
    at errnoException (net.js:904:11)
    at Object.afterConnect [as oncomplete] (net.js:895:19)
[cluster] Child Process (26788) has exited (code: 1, signal: null)
[cluster] Spinning up another process...
25/2 00:20 [26787] - error: Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED
[cluster] Child Process (26787) has exited (code: 1, signal: null)
    at errnoException (net.js:904:11)
[cluster] Spinning up another process...
    at Object.afterConnect [as oncomplete] (net.js:895:19)
25/2 00:20 [26837] - info: Time: Thu Feb 25 2016 00:20:25 GMT-0500 (EST)
25/2 00:20 [26837] - info: Initializing NodeBB v0.9.3
25/2 00:20 [26838] - error: Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED
    at errnoException (net.js:904:11)
    at Object.afterConnect [as oncomplete] (net.js:895:19)
25/2 00:20 [26837] - error: Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED
    at errnoException (net.js:904:11)
    at Object.afterConnect [as oncomplete] (net.js:895:19)
[cluster] Child Process (26838) has exited (code: 1, signal: null)
[cluster] Spinning up another process...
[cluster] Child Process (26837) has exited (code: 1, signal: null)
[cluster] Spinning up another process...
25/2 00:20 [26860] - info: Time: Thu Feb 25 2016 00:20:27 GMT-0500 (EST)
25/2 00:20 [26860] - info: Initializing NodeBB v0.9.3
25/2 00:20 [26859] - error: Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED
    at errnoException (net.js:904:11)
    at Object.afterConnect [as oncomplete] (net.js:895:19)
25/2 00:20 [26860] - error: Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED
    at errnoException (net.js:904:11)
    at Object.afterConnect [as oncomplete] (net.js:895:19)
6 restarts in 10 seconds, most likely an error on startup. Halting.

NodeBB v0.9.3 Copyright (C) 2013-2014 NodeBB Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it under certain conditions.
For the full license, please visit: http://www.gnu.org/copyleft/gpl.html

Clustering enabled: Spinning up 2 process(es).

25/2 17:38 [1369] - info: Time: Thu Feb 25 2016 17:38:07 GMT-0500 (EST)
25/2 17:38 [1369] - info: Initializing NodeBB v0.9.3

25/2 17:38 [1369] - 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-pushbullet
  * nodebb-plugin-youtube
  * nodebb-plugin-desktop-notifications
  * nodebb-plugin-recent-cards

25/2 17:38 [1370] - info: [plugins/spam-be-gone] Settings loaded
25/2 17:38 [1369] - info: [plugins/spam-be-gone] Settings loaded
25/2 17:38 [1369] - info: NodeBB Ready
25/2 17:38 [1369] - info: Enabling 'trust proxy'
25/2 17:38 [1369] - info: NodeBB is now listening on: 0.0.0.0:4567
25/2 17:38 [1370] - info: NodeBB Ready
25/2 17:38 [1370] - info: Enabling 'trust proxy'
25/2 17:38 [1370] - info: NodeBB is now listening on: 0.0.0.0:4568
[cluster] Reloading...

25/2 17:38 [1369] - 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-pushbullet
  * nodebb-plugin-youtube
  * nodebb-plugin-desktop-notifications
  * nodebb-plugin-recent-cards

25/2 17:38 [1369] - info: [plugins/spam-be-gone] Settings loaded
25/2 17:38 [1370] - info: [plugins/spam-be-gone] Settings loaded
25/2 17:38 [1370] - error: /login
 Error: ENOENT, open '/home/yasin/nodebb/public/templates/footer.tpl'
Error: Failed to lookup view "500" in views directory "/home/yasin/nodebb/public/templates"
    at EventEmitter.render (/home/yasin/nodebb/node_modules/express/lib/application.js:579:17)
    at ServerResponse.render (/home/yasin/nodebb/node_modules/express/lib/response.js:961:7)
    at ServerResponse.res.render (/home/yasin/nodebb/src/middleware/render.js:52:11)
    at /home/yasin/nodebb/src/routes/index.js:199:9
    at /home/yasin/nodebb/src/middleware/header.js:36:13
    at /home/yasin/nodebb/node_modules/async/lib/async.js:726:13
    at /home/yasin/nodebb/node_modules/async/lib/async.js:52:16
    at done (/home/yasin/nodebb/node_modules/async/lib/async.js:241:17)
    at /home/yasin/nodebb/node_modules/async/lib/async.js:44:16
    at /home/yasin/nodebb/node_modules/async/lib/async.js:723:17
25/2 21:06 [1369] - error: /register
 invalid csrf token
25/2 21:06 [1369] - error: /login
 invalid csrf token
25/2 21:06 [1369] - error: /register
 invalid csrf token
25/2 21:06 [1369] - error: /login
 invalid csrf token
25/2 21:13 [1369] - error: /register
 invalid csrf token
25/2 21:13 [1369] - error: /login
 invalid csrf token
25/2 21:21 [1369] - error: /register
 invalid csrf token
25/2 21:21 [1369] - error: /login
 invalid csrf token
25/2 21:21 [1369] - error: /register
 invalid csrf token
25/2 21:21 [1369] - error: /login
 invalid csrf token
25/2 21:28 [1369] - error: /register
 invalid csrf token
25/2 21:28 [1369] - error: /login
 invalid csrf token
25/2 23:47 [1369] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
25/2 23:47 [1370] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
25/2 23:47 [1369] - info: [app] Database connection closed.
25/2 23:47 [1369] - info: [app] Web server closed to connections.
25/2 23:47 [1369] - info: [app] Shutdown complete.
25/2 23:47 [1370] - info: [app] Database connection closed.
25/2 23:47 [1370] - info: [app] Web server closed to connections.
25/2 23:47 [1370] - info: [app] Shutdown complete.
[cluster] Child Process (1369) has exited (code: 0, signal: null)
[cluster] Child Process (1370) has exited (code: 0, signal: null)

NodeBB v0.9.4 Copyright (C) 2013-2014 NodeBB Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it under certain conditions.
For the full license, please visit: http://www.gnu.org/copyleft/gpl.html

Clustering enabled: Spinning up 2 process(es).

25/2 23:51 [6871] - info: Time: Thu Feb 25 2016 23:51:49 GMT-0500 (EST)
25/2 23:51 [6871] - info: Initializing NodeBB v0.9.4
25/2 23:51 [6873] - warn: [plugins/nodebb-plugin-2factor] Hook `action:user.loggedOut` is deprecated, please use `static:user.loggedOut` instead.
25/2 23:51 [6871] - warn: [plugins/nodebb-plugin-2factor] Hook `action:user.loggedOut` is deprecated, please use `static:user.loggedOut` instead.

25/2 23:51 [6871] - 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-composer-default
  * nodebb-plugin-emoji-extended
  * nodebb-plugin-markdown
  * nodebb-plugin-pushbullet
  * nodebb-plugin-youtube
  * nodebb-plugin-desktop-notifications
  * nodebb-plugin-recent-cards

25/2 23:51 [6873] - info: [plugins/spam-be-gone] Settings loaded
25/2 23:52 [6873] - info: NodeBB Ready
25/2 23:52 [6873] - info: Enabling 'trust proxy'
25/2 23:52 [6873] - info: NodeBB is now listening on: 0.0.0.0:4568
25/2 23:52 [6871] - info: NodeBB Ready
25/2 23:52 [6871] - info: Enabling 'trust proxy'
25/2 23:52 [6871] - info: NodeBB is now listening on: 0.0.0.0:4567
25/2 23:52 [6871] - info: [plugins/spam-be-gone] Settings loaded
25/2 23:57 [6873] - warn: [plugins/nodebb-plugin-2factor] Hook `action:user.loggedOut` is deprecated, please use `static:user.loggedOut` instead.
25/2 23:57 [6873] - info: [plugins/spam-be-gone] Settings loaded
25/2 23:57 [6871] - warn: [plugins/nodebb-plugin-2factor] Hook `action:user.loggedOut` is deprecated, please use `static:user.loggedOut` instead.

25/2 23:57 [6871] - 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-composer-default
  * nodebb-plugin-emoji-extended
  * nodebb-plugin-markdown
  * nodebb-plugin-pushbullet
  * nodebb-plugin-youtube
  * nodebb-plugin-desktop-notifications
  * nodebb-plugin-recent-cards

25/2 23:57 [6871] - info: [plugins/spam-be-gone] Settings loaded
pichalite commented 8 years ago

@pikshub that's a different error. That's not what he wanted. Looks like NodeBB is already running or something else is using the port. Stop NodeBB using ./nodebb stop

Then run ./nodebb dev to run in dev mode and post the log when the messageId thing happens

ornithes commented 8 years ago

@pichalite dev

26/2 00:06 [7083] - info: [plugins] Plugins OK
26/2 00:06 [7083] - verbose: [meta/css] Minifying LESS/CSS
26/2 00:06 [7083] - verbose: [plugins] Loading templates (nodebb-plugin-composer-default)
26/2 00:06 [7084] - info: [plugins/spam-be-gone] Settings loaded
26/2 00:06 [7084] - verbose: [hotswap] Router with id `plugins` replaced successfully
26/2 00:06 [7084] - verbose: [plugins] All plugins reloaded and rerouted
26/2 00:06 [7084] - verbose: [hotswap] Router with id `auth` replaced successfully
26/2 00:06 [7083] - verbose: [sounds] Sounds OK
26/2 00:06 [7083] - verbose: [plugins] Loading templates (nodebb-theme-persona)
26/2 00:06 [7083] - verbose: [plugins] Loading templates (nodebb-plugin-dbsearch)
26/2 00:06 [7083] - verbose: [meta/js] acp.min.js minification complete
26/2 00:06 [7084] - verbose: [cluster] Client-side javascript and mapping propagated to worker 7084
26/2 00:06 [7083] - verbose: [meta/js] nodebb.min.js minification complete
26/2 00:06 [7083] - verbose: [plugins] Loading templates (nodebb-plugin-emailer-mandrill)
26/2 00:06 [7083] - verbose: [meta/js] acp.min.js committed to disk.
26/2 00:06 [7083] - verbose: [meta/js] nodebb.min.js committed to disk.
26/2 00:06 [7084] - verbose: [cluster] Client-side javascript and mapping propagated to worker 7084
26/2 00:06 [7083] - verbose: [meta/css] Running PostCSS Plugins
26/2 00:06 [7083] - verbose: [meta/css] admin.css committed to disk.
26/2 00:06 [7083] - verbose: [plugins] Loading templates (nodebb-plugin-emoji-extended)
26/2 00:06 [7083] - verbose: [meta/css] Running PostCSS Plugins
26/2 00:06 [7083] - verbose: [meta/css] stylesheet.css committed to disk.
26/2 00:06 [7083] - verbose: [plugins] Loading templates (nodebb-plugin-google-analytics)
26/2 00:06 [7083] - verbose: [plugins] Loading templates (nodebb-plugin-markdown)
26/2 00:06 [7083] - verbose: [plugins] Loading templates (nodebb-plugin-pushbullet)
26/2 00:06 [7083] - verbose: [plugins] Loading templates (nodebb-widget-essentials)
26/2 00:06 [7083] - verbose: [plugins] Loading templates (nodebb-plugin-desktop-notifications)
26/2 00:06 [7083] - verbose: [plugins] Loading templates (nodebb-plugin-recent-cards)
26/2 00:06 [7083] - verbose: [plugins] Loading templates (nodebb-plugin-spam-be-gone)
26/2 00:06 [7083] - verbose: [plugins] Loading templates (nodebb-plugin-2factor)
26/2 00:06 [7083] - verbose: [plugins] Loading templates (nodebb-plugin-adsense)
26/2 00:06 [7083] - verbose: [meta/templates] Compiling templates
26/2 00:06 [7084] - info: NodeBB Ready
26/2 00:06 [7084] - info: Enabling 'trust proxy'
26/2 00:06 [7084] - verbose: [cluster] Stylesheets propagated to worker 7084
26/2 00:06 [7084] - error:  Error: listen EADDRINUSE
    at errnoException (net.js:904:11)
    at Server._listen2 (net.js:1042:14)
    at listen (net.js:1064:10)
    at Server.listen (net.js:1138:5)
    at listen (/home/yasin/nodebb/src/webserver.js:181:17)
    at /home/yasin/nodebb/src/webserver.js:57:3
    at EventEmitter.<anonymous> (/home/yasin/nodebb/src/emitter.js:17:5)
    at EventEmitter.emit (events.js:92:17)
    at process.<anonymous> (/home/yasin/nodebb/app.js:162:13)
    at process.emit (events.js:98:17)
26/2 00:06 [7084] - error: NodeBB address in use, exiting...
[cluster] Child Process (7084) has exited (code: 0, signal: null)
26/2 00:06 [7083] - verbose: [meta/templates] Successfully compiled templates.
26/2 00:06 [7083] - info: NodeBB Ready
26/2 00:06 [7083] - info: Enabling 'trust proxy'
[cluster/notifyWorkers] Failed to reach pid 7083
26/2 00:06 [7083] - error:  Error: listen EADDRINUSE
    at errnoException (net.js:904:11)
    at Server._listen2 (net.js:1042:14)
    at listen (net.js:1064:10)
    at Server.listen (net.js:1138:5)
    at listen (/home/yasin/nodebb/src/webserver.js:181:17)
    at /home/yasin/nodebb/src/webserver.js:57:3
    at EventEmitter.<anonymous> (/home/yasin/nodebb/src/emitter.js:17:5)
    at EventEmitter.emit (events.js:92:17)
    at /home/yasin/nodebb/src/meta/templates.js:152:13
    at Object.oncomplete (fs.js:107:15)
26/2 00:06 [7083] - error: NodeBB address in use, exiting...
[cluster] Child Process (7083) has exited (code: 0, signal: null)
psychobunny commented 8 years ago

Same problem again :p you have an instance of NodeBB running already

ornithes commented 8 years ago

timuu(.)com

I delirice.What I do to fix this?

pichalite commented 8 years ago

check my previous comment on what to do

ornithes commented 8 years ago

they have only :( https://github.com/NodeBB/NodeBB/issues/4264#issuecomment-189115067

psychobunny commented 8 years ago

There's an app (likely nodebb) running on your server already. Kill it, if you don't know how to, restart server I guess. Then give me the actual log. Thanks

ornithes commented 8 years ago

image

This time no error code but the problem continues. lol.

ornithes commented 8 years ago

Fix one problem. I did not do anything. I could not find the cause.

julianlam commented 8 years ago

This looks to be an implementation and config problem now, please continue discussion on our support forum. Thanks!