./nodebb status

Technical Support
  • wp6.PNG

    When I am trying to run my domain, internal server is coming
    So I did, ./nodebb log

  • @admin @PitaJ @GNU-Linux-User
    This error is showing in my log
    wp7.PNG

  • @Julian-H-Lam @admin @PitaJ
    Problem : nodebb is not getting started
    wp8.PNG

  • how to get rid of these errors, please help

    [email protected] install /home/aaravkr/public_html/doubt/node_modules/sharp
    (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)

    ERR! sharp Use with glibc version 2.12 requires manual installation of libvips >= 8.8.1
    info sharp Attempting to build from source via node-gyp but this may fail due to the above error
    info sharp Please see https://sharp.pixelplumbing.com/page/install for required dependencies
    gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
    gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
    gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
    make: Entering directory /home/aaravkr/public_html/doubt/node_modules/sharp/build' TOUCH Release/obj.target/libvips-cpp.stamp CXX(target) Release/obj.target/sharp/src/common.o In file included from ../src/common.cc:24: ../../nan/nan.h:50:3: error: #error This version of node/NAN/v8 requires a C++11 compiler ../src/common.cc:25:22: warning: vips/vips8: No such file or directory In file included from ../src/common.cc:27: ../src/common.h:29:2: error: #error libvips version 8.8.0+ is required - see sharp.pixelplumbing.com/page/install ../src/common.h:33:2: error: #error GCC version 4.6+ is required for C++11 features - see sharp.pixelplumbing.com/page/install#prerequisites In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/memory:83, from /root/.node-gyp/8.11.1/include/node/v8.h:21, from /root/.node-gyp/8.11.1/include/node/node.h:63, from ../src/common.cc:22: /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In member function ‘virtual void* std::_Sp_counted_deleter<_Ptr, _Deleter, _Alloc, _Lp>::_M_get_deleter(const std::type_info&)’: /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:146: error: cannot use typeid with -fno-rtti /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In member function ‘virtual void* std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_M_get_deleter(const std::type_info&)’: /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:204: error: cannot use typeid with -fno-rtti /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In constructor ‘std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_make_shared_tag, _Alloc, _Args&& ...)’: /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:861: error: cannot use typeid with -fno-rtti /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In function ‘_Del* std::get_deleter(const std::__shared_ptr<_Tp2, _Lp>&)’: /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:1005: error: cannot use typeid with -fno-rtti In file included from /root/.node-gyp/8.11.1/include/node/node.h:63, from ../src/common.cc:22: /root/.node-gyp/8.11.1/include/node/v8.h: At global scope: /root/.node-gyp/8.11.1/include/node/v8.h:334: error: expected unqualified-id before ‘using’ /root/.node-gyp/8.11.1/include/node/v8.h: In constructor ‘v8::MaybeLocal<T>::MaybeLocal()’: /root/.node-gyp/8.11.1/include/node/v8.h:351: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/8.11.1/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::IsEmpty() const’: /root/.node-gyp/8.11.1/include/node/v8.h:358: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/8.11.1/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::ToLocal(v8::Local<S>*) const’: /root/.node-gyp/8.11.1/include/node/v8.h:366: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/8.11.1/include/node/v8.h: In constructor ‘v8::Eternal<T>::Eternal()’: /root/.node-gyp/8.11.1/include/node/v8.h:395: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/8.11.1/include/node/v8.h: In constructor ‘v8::Eternal<T>::Eternal(v8::Isolate*, v8::Local<S>)’: /root/.node-gyp/8.11.1/include/node/v8.h:397: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/8.11.1/include/node/v8.h: In member function ‘bool v8::Eternal<T>::IsEmpty() const’: /root/.node-gyp/8.11.1/include/node/v8.h:402: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/8.11.1/include/node/v8.h: In member function ‘bool v8::WeakCallbackInfo<T>::IsFirstPass() const’: /root/.node-gyp/8.11.1/include/node/v8.h:442: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/8.11.1/include/node/v8.h: In constructor ‘v8::Global<T>::Global()’: /root/.node-gyp/8.11.1/include/node/v8.h:776: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/8.11.1/include/node/v8.h: In constructor ‘v8::Global<T>::Global(v8::Global<T>&&)’: /root/.node-gyp/8.11.1/include/node/v8.h:801: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/8.11.1/include/node/v8.h: In member function ‘v8::Global<T>& v8::Global<T>::operator=(v8::Global<S>&&)’: /root/.node-gyp/8.11.1/include/node/v8.h:813: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/8.11.1/include/node/v8.h: At global scope: /root/.node-gyp/8.11.1/include/node/v8.h:839: error: expected unqualified-id before ‘using’ /root/.node-gyp/8.11.1/include/node/v8.h:1188: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/8.11.1/include/node/v8.h:1194: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/8.11.1/include/node/v8.h: In constructor ‘v8::RegisterState::RegisterState()’: /root/.node-gyp/8.11.1/include/node/v8.h:1743: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/8.11.1/include/node/v8.h: At global scope: /root/.node-gyp/8.11.1/include/node/v8.h:3213: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/8.11.1/include/node/v8.h: In member function ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const’: /root/.node-gyp/8.11.1/include/node/v8.h:3854: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/8.11.1/include/node/v8.h: At global scope: /root/.node-gyp/8.11.1/include/node/v8.h:4123: error: function definition does not declare parameters /root/.node-gyp/8.11.1/include/node/v8.h:4177: error: expected unqualified-id before ‘&’ token /root/.node-gyp/8.11.1/include/node/v8.h:4177: error: expected ‘)’ before ‘&’ token /root/.node-gyp/8.11.1/include/node/v8.h:4177: error: expected ‘;’ before ‘&’ token In file included from ../../nan/nan_new.h:189, from ../../nan/nan.h:288, from ../src/common.cc:24: ../../nan/nan_implementation_12_inl.h:358: error: expected ‘;’ before end of line ../../nan/nan_implementation_12_inl.h:358: error: expected ‘}’ before end of line ../../nan/nan_implementation_12_inl.h:358: error: expected unqualified-id before end of line ../../nan/nan_implementation_12_inl.h:358: error: expected ‘}’ before end of line ../../nan/nan_implementation_12_inl.h:358: error: expected declaration before end of line /root/.node-gyp/8.11.1/include/node/v8.h:3320: warning: inline function ‘void* v8::Object::GetAlignedPointerFromInternalField(int)’ used but never defined cc1plus: warning: unrecognized command line option "-Wno-cast-function-type" make: *** [Release/obj.target/sharp/src/common.o] Error 1 make: Leaving directory /home/aaravkr/public_html/doubt/node_modules/sharp/build'
    gyp ERR! build error
    gyp ERR! stack Error: make failed with exit code: 2
    gyp ERR! stack at ChildProcess.onExit (/root/.nvm/v8.11.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
    gyp ERR! stack at emitTwo (events.js:126:13)
    gyp ERR! stack at ChildProcess.emit (events.js:214:7)
    gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
    gyp ERR! System Linux 2.6.32-754.24.3.el6.x86_64
    gyp ERR! command "/root/.nvm/v8.11.1/bin/node" "/root/.nvm/v8.11.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
    gyp ERR! cwd /home/aaravkr/public_html/doubt/node_modules/sharp
    gyp ERR! node -v v8.11.1
    gyp ERR! node-gyp -v v3.6.2
    gyp ERR! not ok
    npm WARN [email protected] requires a peer of nodebb-plugin-emoji@^2.0.0 but none is installed. You must install peer dependencies yourself.
    npm WARN [email protected] requires a peer of textcomplete@^0.14.2 but none is installed. You must install peer dependencies yourself.
    npm WARN [email protected] requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself.
    npm WARN [email protected] requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself.

    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! [email protected] install: (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the [email protected] install script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:
    npm ERR! /root/.npm/_logs/2019-12-15T11_18_27_010Z-debug.log
    Error installing dependencies!
    message: Command failed: npm install --production
    stdout: null
    stderr: null
    /home/aaravkr/public_html/doubt/src/cli/package-install.js:52
    throw e;
    ^

    Error: Command failed: npm install --production
    at checkExecSyncError (child_process.js:601:13)
    at Object.execSync (child_process.js:641:13)
    at Object.installAll (/home/aaravkr/public_html/doubt/src/cli/package-install.js:43:9)
    at Object.<anonymous> (/home/aaravkr/public_html/doubt/src/cli/index.js:60:18)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)

  • Do you know these </> Signs?

    Code, please here
    
  • @FrankM
    Actually ,

    1. This output is coming when i am doing ./nodebb log

    2. After upgrading to latest nodebb version , when i am doing ./nodebb start
      It's not getting started

  • Please stop making new topics. It's very annoying and makes us less likely to help, especially when you tag us directly.

  • The log you included shows an npm install failing to complete due to an error during the sharp module installation. I suggest checking the following site to help with that:

    Specifically, it says that you're missing a C++11 compiler. Run apt install build-essential if you're on Ubuntu.

  • How can I solve this problem ?
    IMG_20191216_045722.jpg

  • I have merged your topics together. Please stop making new topics when it's related to the same issue.

  • @Abhinov-Singh-0 try manually installing libvips>=8.8.1
    sudo apt install libvips libvips-dev

  • @oplik0
    I am running nodebb on centos 6.10
    and hostgator is not giving option to migrate to centos 7

    what should i do ?
    Because I am not able to install libvips without which i cannot install sharp
    due to which after upgrading nodebb to latest version my nodebb is not getting started

  • i dont think you can install them on 6 series centos. can somebody correct me?

  • @PitaJ

    Now this error is coming

    configure: error: cannot run C compiled programs.
    If you meant to cross compile,
    use --host. See config.log for more details

  • This post is deleted!
  • @Abhinov-Singh-0 You'll probably have to build libvips from source tarball. Look here for instructions on doing so.

  • @oplik0
    IMG_20191216_154249.jpg

    When I run circled command , above error occurred

    Now this error is coming
    configure: error: cannot run C compiled programs.
    If you meant to cross compile,
    use --host.

    See config.log for more details


Suggested Topics


  • 0 Votes
    1 Posts
    452 Views

    Hey there!

    I have a nodebb instance i've been customizing through theming and plugins.

    I recently came across an issue that has prevented me from running ./nodebb start

    Clustering enabled: Spinning up 4 process(es).

    2019-07-22T06:23:35.139Z [4567/15633] - info: Initializing NodeBB v1.12.2 https://kratomwatchdog.com 2019-07-22T06:23:35.431Z [4567/15633] - error: NodeBB could not connect to your Mongo database. Mongo returned the following errorconnect ECONNREFUSED 127.0.0.1:27017 {"name":"MongoNetworkError","errorLabels":["TransientTransactionError"],"stack":"MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017\n at Socket.err (/home/ubuntu/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connect.js:287:16)\n at Object.onceWrapper (events.js:315:30)\n at emitOne (events.js:116:13)\n at Socket.emit (events.js:211:7)\n at emitErrorNT (internal/streams/destroy.js:66:8)\n at _combinedTickCallback (internal/process/next_tick.js:139:11)\n at process._tickCallback (internal/process/next_tick.js:181:9)"} 2019-07-22T06:23:35.443Z [4567/15633] - error: connect ECONNREFUSED 127.0.0.1:27017 {"name":"MongoNetworkError","errorLabels":["TransientTransactionError"]} 2019-07-22T06:23:35.446Z [4568/15638] - error: NodeBB could not connect to your Mongo database. Mongo returned the following errorconnect ECONNREFUSED 127.0.0.1:27017 {"name":"MongoNetworkError","errorLabels":["TransientTransactionError"],"stack":"MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017\n at Socket.err (/home/ubuntu/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connect.js:287:16)\n at Object.onceWrapper (events.js:315:30)\n at emitOne (events.js:116:13)\n at Socket.emit (events.js:211:7)\n at emitErrorNT (internal/streams/destroy.js:66:8)\n at _combinedTickCallback (internal/process/next_tick.js:139:11)\n at process._tickCallback (internal/process/next_tick.js:181:9)"} 2019-07-22T06:23:35.448Z [4568/15638] - error: connect ECONNREFUSED 127.0.0.1:27017 {"name":"MongoNetworkError","errorLabels":["TransientTransactionError"]} 2019-07-22T06:23:35.449Z [4569/15640] - error: NodeBB could not connect to your Mongo database. Mongo returned the following errorconnect ECONNREFUSED 127.0.0.1:27017 {"name":"MongoNetworkError","errorLabels":["TransientTransactionError"],"stack":"MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017\n at Socket.err (/home/ubuntu/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connect.js:287:16)\n at Object.onceWrapper (events.js:315:30)\n at emitOne (events.js:116:13)\n at Socket.emit (events.js:211:7)\n at emitErrorNT (internal/streams/destroy.js:66:8)\n at _combinedTickCallback (internal/process/next_tick.js:139:11)\n at process._tickCallback (internal/process/next_tick.js:181:9)"} [cluster] Child Process (15633) has exited (code: 0, signal: null) 2019-07-22T06:23:35.454Z [4569/15640] - error: connect ECONNREFUSED 127.0.0.1:27017 {"name":"MongoNetworkError","errorLabels":["TransientTransactionError"]} [cluster] Child Process (15638) has exited (code: 0, signal: null) [cluster] Child Process (15640) has exited (code: 0, signal: null) 2019-07-22T06:23:35.462Z [4570/15645] - error: NodeBB could not connect to your Mongo database. Mongo returned the following errorconnect ECONNREFUSED 127.0.0.1:27017 {"name":"MongoNetworkError","errorLabels":["TransientTransactionError"],"stack":"MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017\n at Socket.err (/home/ubuntu/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connect.js:287:16)\n at Object.onceWrapper (events.js:315:30)\n at emitOne (events.js:116:13)\n at Socket.emit (events.js:211:7)\n at emitErrorNT (internal/streams/destroy.js:66:8)\n at _combinedTickCallback (internal/process/next_tick.js:139:11)\n at process._tickCallback (internal/process/next_tick.js:181:9)"} 2019-07-22T06:23:35.464Z [4570/15645] - error: connect ECONNREFUSED 127.0.0.1:27017 {"name":"MongoNetworkError","errorLabels":["TransientTransactionError"]} [cluster] Child Process (15645) has exited (code: 0, signal: null)

    I am able to run nodebb in dev mode, and have had to run it in a screens session to keep the forum online until i'm able to resolve the issue.

  • 0 Votes
    5 Posts
    563 Views

    @julian said in Cannot start nodebb with systemd:

    /opt/nodebb/logs/output.log

    Hi julian, sorry for my delay response.
    I changed the services as you suggested, essentially this was my first implementation.

    I removed the file output.log, then I rebooted the system and started the services, when I went in the logs folder the file output.log was empty.

    UPDATE:

    I used journalctl -fu nodebb.service to see the log of the service, and I discovered a nice thing:

    alt text

    Any idea?

    UPDATE 2 [FIXED]

    Okay, so after spending some times on this, I discovered what is the cause of the problem. Essentially, I have installed nodebb as root account (which is wrong, my bad), and the systemd service was configured to run nodebb as the user "sfarzoso", but that user was not the owner of nodebb folder, so when I started the service using systemd, a permission problem happen.

    For fix this, I chowned the "opt" folder for "sfarzoso", which is the folder that I need to install nodebb, then I cloned the repo of nodebb and launched the setup again.
    All works now.

    Thanks for the attention, king regards.

  • 0 Votes
    4 Posts
    1k Views

    @PitaJ Worked, thanks 🙂 For some reason I had the idea cd wouldn't work there

  • 0 Votes
    5 Posts
    2k Views

    Last update, this issue is closed.

    It seems that there is an issue when I was trying to use the terminal built into the ajenti panel. I was using ajenti to try and make my life easier when I am not at home, but that turned out to be a bad idea. Anyway, everything works just fine when I ssh into my server using bitvise.

  • .htaccess files and NodeBB

    Unsolved Technical Support
    1
    1 Votes
    1 Posts
    1k Views

    Please forgive my newbie question but can .htaccess files be used with NodeBB?

    I usually enable them via Apache and then place one in my project's root directory but I have no idea where that is with reference to NodeBB.