@abhinov-singh is the notification in relation to the same thing? e.g. all referring to the same topic?
In that case the notifications will be marked read as they're related...
Hello,
I can't clear the index and reindex in the 1.6.1 version.
Environment :
Thanks for your help, tried to add --stack_size option in nodejs start options but not seems to work
Here are the display logs ===>
Nov 15 11:37:25 web nodebb[1248]: 15/11 11:37:25 [1623] - #033[31merror#033[39m: RangeError: Maximum call stack size exceeded
Nov 15 11:37:25 web nodebb[1248]: at isAsync (/opt/nodebb/node_modules/async/dist/async.js:174:17)
Nov 15 11:37:25 web nodebb[1248]: at wrapAsync (/opt/nodebb/node_modules/async/dist/async.js:179:12)
Nov 15 11:37:25 web nodebb[1248]: at nextTask (/opt/nodebb/node_modules/async/dist/async.js:5295:20)
Nov 15 11:37:25 web nodebb[1248]: at Object.waterfall (/opt/nodebb/node_modules/async/dist/async.js:5307:5)
Nov 15 11:37:25 web nodebb[1248]: at /opt/nodebb/src/database/mongo/sorted.js:483:11
Nov 15 11:37:25 web nodebb[1248]: at next (/opt/nodebb/node_modules/async/dist/async.js:5196:28)
Nov 15 11:37:25 web nodebb[1248]: at async.waterfall.ids (/opt/nodebb/src/database/mongo/sorted.js:495:15)
Nov 15 11:37:25 web nodebb[1248]: at nextTask (/opt/nodebb/node_modules/async/dist/async.js:5297:14)
Nov 15 11:37:25 web nodebb[1248]: at next (/opt/nodebb/node_modules/async/dist/async.js:5304:9)
Nov 15 11:37:25 web nodebb[1248]: at /opt/nodebb/node_modules/async/dist/async.js:906:16
Nov 15 11:37:25 web nodebb[1248]: at handleCallback (/opt/nodebb/node_modules/mongodb/lib/utils.js:120:56)
Nov 15 11:37:25 web nodebb[1248]: at /opt/nodebb/node_modules/mongodb/lib/cursor.js:682:5
Nov 15 11:37:25 web nodebb[1248]: at handleCallback (/opt/nodebb/node_modules/mongodb-core/lib/cursor.js:171:5)
Nov 15 11:37:25 web nodebb[1248]: at nextFunction (/opt/nodebb/node_modules/mongodb-core/lib/cursor.js:682:5)
Nov 15 11:37:25 web nodebb[1248]: at Cursor.next [as _next] (/opt/nodebb/node_modules/mongodb-core/lib/cursor.js:692:3)
Nov 15 11:37:25 web nodebb[1248]: at nextObject (/opt/nodebb/node_modules/mongodb/lib/cursor.js:679:8)
Nov 15 11:37:25 web nodebb[1248]: 15/11 11:37:25 [1623] - #033[32minfo#033[39m: [app] Shutdown (SIGTERM/SIGINT) Initialised.
Nov 15 11:37:25 web nodebb[1248]: 15/11 11:37:25 [1623] - #033[32minfo#033[39m: [app] Database connection closed.
Nov 15 11:37:25 web nodebb[1248]: 15/11 11:37:25 [1623] - #033[32minfo#033[39m: [app] Web server closed to connections.
Nov 15 11:37:25 web nodebb[1248]: 15/11 11:37:25 [1623] - #033[32minfo#033[39m: [app] Shutdown complete.
Found a workaround :
nohup /usr/bin/node --stack-size=1361 loader.js --no-daemon --no-silent &
But doesn't work if i set stack-size in the nodebb.service like this :
[Unit]
Description=NodeBB forum for Node.js
Documentation=http://nodebb.readthedocs.io/en/latest/
After=system.slice multi-user.target
[Service]
Type=simple
User=nodebb
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=nodebb
Environment=NODE_ENV=production
WorkingDirectory=/opt/nodebb
ExecStart=/usr/bin/node --stack-size=1361 loader.js --no-daemon --no-silent
Restart=always
[Install]
WantedBy=multi-user.target
Thanks for reporting I will take a look.
@arnaudw can you give it a try with https://github.com/NodeBB/NodeBB/commit/12546cb9adbce97f64a3472783856ef6693eae00, remove the stack-size argument as well.
Hi and thanks @baris,
Just switched to v.1.7.0 and it works like a charm