./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