I change this line in config.json
fixes my problem
"port": [4567,4568,4569]
to
"port": "4567"
why we can't use nodebb in cluster mod ?
I change this line in config.json
fixes my problem
"port": [4567,4568,4569]
to
"port": "4567"
why we can't use nodebb in cluster mod ?
@julian said in too connection lost error:
Disable all plugins except those that NodeBB requires to run (mentions, markdown, composer-default, widget-essentials)
we are on production mod not dev!!!
every thing was good about 3 month ago with this plugins that we are use:
up..............
@julian
git head:
b2c16b2ba0aa0e91b55692fb59a809d8d6c551f9
@julian
new error
28/8 02:35:04 [27587] - [31merror[39m: TypeError: Cannot read property 'toString' of null
at /home/nodeBB/forum/node_modules/nodebb-plugin-mentions/library.js:135:41
at Array.filter (native)
at /home/nodeBB/forum/node_modules/nodebb-plugin-mentions/library.js:128:83
at Array.forEach (native)
at /home/nodeBB/forum/node_modules/nodebb-plugin-mentions/library.js:127:33
at /home/nodeBB/forum/node_modules/async/dist/async.js:3838:9
at /home/nodeBB/forum/node_modules/async/dist/async.js:421:16
at iterateeCallback (/home/nodeBB/forum/node_modules/async/dist/async.js:928:24)
at /home/nodeBB/forum/node_modules/async/dist/async.js:906:16
at /home/nodeBB/forum/node_modules/async/dist/async.js:3835:13
at /home/nodeBB/forum/node_modules/nodebb-plugin-mentions/library.js:231:4
at /home/nodeBB/forum/node_modules/async/dist/async.js:1074:9
at /home/nodeBB/forum/node_modules/async/dist/async.js:421:16
at iteratorCallback (/home/nodeBB/forum/node_modules/async/dist/async.js:998:13)
at /home/nodeBB/forum/node_modules/async/dist/async.js:906:16
at /home/nodeBB/forum/node_modules/async/dist/async.js:1071:13
Up..........
@julian said in too connection lost error:
... why are you activating new plugins?
I disabled it again, we needed to nodebb-ignore-users
plugin.
@julian new error after enabling a plugin (ignore-users pluging)
26/8 01:39:19 [30335] - error: TypeError: callFn.apply is not a function
at /home/nodeBB/forum/node_modules/async/dist/async.js:421:16
at next (/home/nodeBB/forum/node_modules/async/dist/async.js:5278:29)
at /home/nodeBB/forum/node_modules/async/dist/async.js:906:16
at /home/nodeBB/forum/src/topics/unread.js:146:5
at nextTask (/home/nodeBB/forum/node_modules/async/dist/async.js:5273:14)
at next (/home/nodeBB/forum/node_modules/async/dist/async.js:5280:9)
at /home/nodeBB/forum/node_modules/async/dist/async.js:906:16
at fireFilterHook (/home/nodeBB/forum/src/plugins/hooks.js:112:11)
at Object.Plugins.fireHook (/home/nodeBB/forum/src/plugins/hooks.js:96:4)
at /home/nodeBB/forum/src/topics/unread.js:138:13
at nextTask (/home/nodeBB/forum/node_modules/async/dist/async.js:5273:14)
at next (/home/nodeBB/forum/node_modules/async/dist/async.js:5280:9)
at /home/nodeBB/forum/node_modules/async/dist/async.js:906:16
at /home/nodeBB/forum/node_modules/async/dist/async.js:421:16
at next (/home/nodeBB/forum/node_modules/async/dist/async.js:5278:29)
at /home/nodeBB/forum/node_modules/async/dist/async.js:906:16
@julian I have this warning message
26/8 01:14:51 [22766] - [33mwarn[39m: [nodebb-plugin-blog-comments] Origin (http://sanatisharif.ir) does not match hostUrls: sanatisharif.ir, orduetalaee.ir
and this error message:
26/8 01:00:00 [22765] - [31merror[39m: MongoError: WiredTigerIndex::insert: key too large to index, failing 1581 { : "errors:404", : "/A%20%20%20%20%20%20%20%DA%A9%D8%A7%D8%B1%D9%86%D8%A7%D9%85%D9%87%20%D9%87%D8%A7%DB%8C%20%D8%A7%D8%B2%D9%85%D9%88%D9%86%D9%87%D8%A7%DB%8C%20%D8%A2%D8%..." }
at Function.MongoError.create (/home/nodeBB/forum/node_modules/mongodb-core/lib/error.js:31:11)
at /home/nodeBB/forum/node_modules/mongodb-core/lib/connection/pool.js:497:72
at authenticateStragglers (/home/nodeBB/forum/node_modules/mongodb-core/lib/connection/pool.js:443:16)
at null.messageHandler (/home/nodeBB/forum/node_modules/mongodb-core/lib/connection/pool.js:477:5)
at Socket.<anonymous> (/home/nodeBB/forum/node_modules/mongodb-core/lib/connection/connection.js:321:22)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at readableAddChunk (_stream_readable.js:153:18)
at Socket.Readable.push (_stream_readable.js:111:10)
at TCP.onread (net.js:536:20)
But why only mobile users have such a problem(Connection lost) ??
a plugin for setting Minimum reputation to enable private chat
only mobile users have such problem.
@julian
AdminCP->errors:
AdminCP->log:
25/8 18:24:00 [14550] - [31merror[39m: MongoError: WiredTigerIndex::insert: key too large to index, failing 1653 { : "errors:404", : "/A%20%20%20%20%20%20%20%DA%A9%D8%A7%D8%B1%D9%86%D8%A7%D9%85%D9%87%20%D9%87%D8%A7%DB%8C%20%D8%A7%D8%B2%D9%85%D9%88%D9%86%D9%87%D8%A7%DB%8C%20%D8%A2%D8%..." }
at Function.MongoError.create (/home/nodeBB/forum/node_modules/mongodb-core/lib/error.js:31:11)
at /home/nodeBB/forum/node_modules/mongodb-core/lib/connection/pool.js:497:72
at authenticateStragglers (/home/nodeBB/forum/node_modules/mongodb-core/lib/connection/pool.js:443:16)
at null.messageHandler (/home/nodeBB/forum/node_modules/mongodb-core/lib/connection/pool.js:477:5)
at Socket.<anonymous> (/home/nodeBB/forum/node_modules/mongodb-core/lib/connection/connection.js:321:22)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at readableAddChunk (_stream_readable.js:153:18)
at Socket.Readable.push (_stream_readable.js:111:10)
at TCP.onread (net.js:536:20)
25/8 18:41:44 [14550] - [32minfo[39m: [app] Shutdown (SIGTERM/SIGINT) Initialised.
25/8 18:41:44 [15472] - [32minfo[39m: Initializing NodeBB v1.5.3 http://forum.sanatisharif.ir
[deprecated] `String.prototype.rtrim` is deprecated as of NodeBB v1.5; use `utils.rtrim` instead.
[deprecated] `String.prototype.rtrim` is deprecated as of NodeBB v1.5; use `utils.rtrim` instead.
[deprecated] `String.prototype.rtrim` is deprecated as of NodeBB v1.5; use `utils.rtrim` instead.
[deprecated] `String.prototype.rtrim` is deprecated as of NodeBB v1.5; use `utils.rtrim` instead.
25/8 18:41:46 [15472] - [32minfo[39m: [socket.io] Restricting access to origin: http://forum.sanatisharif.ir:*
25/8 18:41:46 [15479] - [32minfo[39m: [socket.io] Restricting access to origin: http://forum.sanatisharif.ir:*
25/8 18:41:46 [15494] - [32minfo[39m: [socket.io] Restricting access to origin: http://forum.sanatisharif.ir:*
25/8 18:41:47 [15484] - [32minfo[39m: [socket.io] Restricting access to origin: http://forum.sanatisharif.ir:*
25/8 18:41:48 [15494] - [33mwarn[39m: [plugins/nodebb-plugin-spam-be-gone] Hook `action:flag.create` is deprecated, please use `action:flags.create` instead.
25/8 18:41:48 [15472] - [33mwarn[39m: [plugins/nodebb-plugin-spam-be-gone] Hook `action:flag.create` is deprecated, please use `action:flags.create` instead.
25/8 18:41:48 [15479] - [33mwarn[39m: [plugins/nodebb-plugin-spam-be-gone] Hook `action:flag.create` is deprecated, please use `action:flags.create` instead.
25/8 18:41:48 [15472] - [33mwarn[39m: [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-markdown
* nodebb-plugin-sso-instagram
* nodebb-plugin-blog-comments
25/8 18:41:48 [15484] - [33mwarn[39m: [plugins/nodebb-plugin-spam-be-gone] Hook `action:flag.create` is deprecated, please use `action:flags.create` instead.
I don't have any error in client-side or server-side, but all of users send message to us that they have "connection lost error too much"
our server is debian server 8, nodebb config is:
{
"url": "http://forum.sanatisharif.ir",
"secret": "****",
"port": [4567,4568,4569],
"bind_address":"127.0.0.1",
"database": "mongo",
"mongo": {
"host": "127.0.0.1",
"port": "27017",
"username": "***",
"password": "***",
"database": "nodebb"
},
"redis": {
"host": "127.0.0.1",
"port": "6379",
"password": "****",
"database": "0"
}
}
nodebb vertion: master version
[email protected] /home/nodeBB/forum
āāā [email protected]
start nodebb using ./nodebb start
command.
we have internet connection lost error every 2s.
Our forum traffic:(screen shot)
How to fix it?
@yann151924 said in [nodebb-plugin-browsing-users] See browsing users in a topic:
We just need an update of the theme, i think it's not a prob of nodebb itself.
I'm using nodebb-theme-persona last verstion
I am using nodebb master version this plugin didn't work!
@julian said in session conflict:
Are you sharing the express session with another app?
No ,I'm not.
This is not something that can easily happen in NodeBB. You will need to provide proper reproduction steps, not just "people are logging in as other people". That is not useful for us, unfortunately.
what do you mean? what do I need exactly need to provide for you . I though naming my database and cache could be helpful enough!
Hi,
I am in need for an emergency help guys .
My forum is facing session conflicts . In the other words when users login they will be recognized as some else and they could even log-in as admin with full access! This happens a lot when the forum hit gets high(so many online users).By the way It uses Mongo db and also Redis cache.
Since I use this forum as a communication and commenting system beside my website it is really kind of you if you pay attention to my critical case.
Thanks
ADMIN CP -> Advance -> Database
nodebb version: master ( > 1.4.2 )
2/1 00:16:06 [9817] - [31merror[39m: /api/admin/advanced/database
MongoError: not authorized on nodebb to execute command { serverStatus: 1 }
at Function.MongoError.create (/home/nodeBB/forum/node_modules/mongodb-core/lib/error.js:31:11)
at /home/nodeBB/forum/node_modules/mongodb-core/lib/connection/pool.js:483:72
at authenticateStragglers (/home/nodeBB/forum/node_modules/mongodb-core/lib/connection/pool.js:429:16)
at null.messageHandler (/home/nodeBB/forum/node_modules/mongodb-core/lib/connection/pool.js:463:5)
at Socket.<anonymous> (/home/nodeBB/forum/node_modules/mongodb-core/lib/connection/connection.js:317:22)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at readableAddChunk (_stream_readable.js:153:18)
at Socket.Readable.push (_stream_readable.js:111:10)
at TCP.onread (net.js:536:20)
node version
{ nodebb: '1.4.2',
npm: '4.0.5',
ares: '1.10.1-DEV',
http_parser: '2.7.0',
icu: '56.1',
modules: '48',
node: '6.0.0',
openssl: '1.0.2g',
uv: '1.9.0',
v8: '5.0.71.35',
zlib: '1.2.8'
}