Help!



  • I deleted the directory of nodebb Inadvertently,so I try to re-install it.
    But I got a problem and I can`t deal with it.
    I need your help,please.

    root@nclgclub:~/nodebb# ./nodebb start
    2019-05-22T05:31:08.821Z [1352] - info: Launching web installer on port 4567
    2019-05-22T05:31:10.523Z [1352] - info: Web installer listening on http://0.0.0.0:4567
    
    
    
    2019-05-22T05:31:37.718Z [1352] - info: Starting setup process
    2019-05-22T05:31:37.718Z [1352] - info: [object Object]
    2019-05-22T05:31:38.412Z [1365] - info: NodeBB Setup Triggered via Command Line
    
    Welcome to NodeBB v1.12.2!
    
    This looks like a new installation, so you'll have to answer a few questions about your environment before we can proceed.
    Press enter to accept the default setting (shown in brackets).
    2019-05-22T05:31:38.470Z [1365] - info: 
    Now configuring mongo database:
    
    2019-05-22T05:33:08.671Z [1365] - error: uncaughtException: Cannot read property 'message' of undefined
    TypeError: Cannot read property 'message' of undefined
        at new MongoError (/root/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/error.js:22:23)
        at new MongoNetworkError (/root/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/error.js:60:5)
        at Socket.err (/root/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connect.js:287:16)
        at Object.onceWrapper (events.js:277:13)
        at Socket.emit (events.js:189:13)
        at Socket._onTimeout (net.js:443:8)
        at ontimeout (timers.js:436:11)
        at tryOnTimeout (timers.js:300:5)
        at listOnTimeout (timers.js:263:5)
        at Timer.processTimers (timers.js:223:10) {"error":{},"stack":"TypeError: Cannot read property 'message' of undefined\n    at new MongoError (/root/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/error.js:22:23)\n    at new MongoNetworkError (/root/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/error.js:60:5)\n    at Socket.err (/root/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connect.js:287:16)\n    at Object.onceWrapper (events.js:277:13)\n    at Socket.emit (events.js:189:13)\n    at Socket._onTimeout (net.js:443:8)\n    at ontimeout (timers.js:436:11)\n    at tryOnTimeout (timers.js:300:5)\n    at listOnTimeout (timers.js:263:5)\n    at Timer.processTimers (timers.js:223:10)","exception":true,"date":"Wed May 22 2019 13:33:08 GMT+0800 (China Standard Time)","process":{"pid":1365,"uid":0,"gid":0,"cwd":"/root/nodebb","execPath":"/usr/bin/node","version":"v10.15.2","argv":["/usr/bin/node","/root/nodebb/app","--setup"],"memoryUsage":{"rss":63631360,"heapTotal":31875072,"heapUsed":25552696,"external":18295358}},"os":{"loadavg":[0,0.02734375,0],"uptime":706},"trace":[{"column":23,"file":"/root/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/error.js","function":"new MongoError","line":22,"method":null,"native":false},{"column":5,"file":"/root/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/error.js","function":"new MongoNetworkError","line":60,"method":null,"native":false},{"column":16,"file":"/root/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connect.js","function":"Socket.err","line":287,"method":"err","native":false},{"column":13,"file":"events.js","function":"Object.onceWrapper","line":277,"method":"onceWrapper","native":false},{"column":13,"file":"events.js","function":"Socket.emit","line":189,"method":"emit","native":false},{"column":8,"file":"net.js","function":"Socket._onTimeout","line":443,"method":"_onTimeout","native":false},{"column":11,"file":"timers.js","function":"ontimeout","line":436,"method":null,"native":false},{"column":5,"file":"timers.js","function":"tryOnTimeout","line":300,"method":null,"native":false},{"column":5,"file":"timers.js","function":"listOnTimeout","line":263,"method":null,"native":false},{"column":10,"file":"timers.js","function":"Timer.processTimers","line":223,"method":"processTimers","native":false}]}
    2019-05-22T05:33:08.673Z [1365] - error: uncaughtException: Cannot read property 'message' of undefined
    TypeError: Cannot read property 'message' of undefined
        at new MongoError (/root/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/error.js:22:23)
        at new MongoNetworkError (/root/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/error.js:60:5)
        at Socket.err (/root/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connect.js:287:16)
        at Object.onceWrapper (events.js:277:13)
        at Socket.emit (events.js:189:13)
        at Socket._onTimeout (net.js:443:8)
        at ontimeout (timers.js:436:11)
        at tryOnTimeout (timers.js:300:5)
        at listOnTimeout (timers.js:263:5)
        at Timer.processTimers (timers.js:223:10) {"error":{},"stack":"TypeError: Cannot read property 'message' of undefined\n    at new MongoError (/root/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/error.js:22:23)\n    at new MongoNetworkError (/root/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/error.js:60:5)\n    at Socket.err (/root/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connect.js:287:16)\n    at Object.onceWrapper (events.js:277:13)\n    at Socket.emit (events.js:189:13)\n    at Socket._onTimeout (net.js:443:8)\n    at ontimeout (timers.js:436:11)\n    at tryOnTimeout (timers.js:300:5)\n    at listOnTimeout (timers.js:263:5)\n    at Timer.processTimers (timers.js:223:10)","exception":true,"date":"Wed May 22 2019 13:33:08 GMT+0800 (China Standard Time)","process":{"pid":1365,"uid":0,"gid":0,"cwd":"/root/nodebb","execPath":"/usr/bin/node","version":"v10.15.2","argv":["/usr/bin/node","/root/nodebb/app","--setup"],"memoryUsage":{"rss":63631360,"heapTotal":31875072,"heapUsed":25653792,"external":18303550}},"os":{"loadavg":[0,0.02734375,0],"uptime":706},"trace":[{"column":23,"file":"/root/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/error.js","function":"new MongoError","line":22,"method":null,"native":false},{"column":5,"file":"/root/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/error.js","function":"new MongoNetworkError","line":60,"method":null,"native":false},{"column":16,"file":"/root/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connect.js","function":"Socket.err","line":287,"method":"err","native":false},{"column":13,"file":"events.js","function":"Object.onceWrapper","line":277,"method":"onceWrapper","native":false},{"column":13,"file":"events.js","function":"Socket.emit","line":189,"method":"emit","native":false},{"column":8,"file":"net.js","function":"Socket._onTimeout","line":443,"method":"_onTimeout","native":false},{"column":11,"file":"timers.js","function":"ontimeout","line":436,"method":null,"native":false},{"column":5,"file":"timers.js","function":"tryOnTimeout","line":300,"method":null,"native":false},{"column":5,"file":"timers.js","function":"listOnTimeout","line":263,"method":null,"native":false},{"column":10,"file":"timers.js","function":"Timer.processTimers","line":223,"method":"processTimers","native":false}]}
    
    


  • I tried to update mongodb & mongodb-core,it doesn't work.



  • Finally, I got it.

    But the whole images all are gone.


  • GNU/Linux Admin

    The issue seems to be that you were missing the main config.json file. You'll want to run ./nodebb setup to regenerate it.



  • @julian I guess so, I Manually edit the configuration file finally, and it works.

    Thanks a million!


Log in to reply
 

Suggested Topics

  • 5
  • 64
  • 1
  • 2
  • 3
| |