dbsearch problem clearing index for reindexing



  • Hello,

    I can't clear the index and reindex in the 1.6.1 version.
    Environment :

    • mongodb 3.4.10
    • nodejs v8.9.1

    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


  • Admin

    Thanks for reporting I will take a look.


  • Admin


  • Admin



  • Hi and thanks @baris,

    Just switched to v.1.7.0 and it works like a charm 🙂


Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.