SOLVED nodebb does not work, i can not reset


  • @PitaJ thanks.

    after stop. dev results

    22/5 18:08:39 [2742] - error: /admin/appearance/mousetrap.js
    Error: Cannot find module 'js'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at new View (/var/nodebb/node_modules/express/lib/view.js:80:30)
    at EventEmitter.render (/var/nodebb/node_modules/express/lib/application.js:570:12)
    at ServerResponse.render (/var/nodebb/node_modules/express/lib/response.js:971:7)
    at content (/var/nodebb/src/middleware/render.js:70:15)
    at /var/nodebb/node_modules/async/dist/async.js:3830:24
    at replenish (/var/nodebb/node_modules/async/dist/async.js:946:17)
    at /var/nodebb/node_modules/async/dist/async.js:950:9
    at eachOfLimit (/var/nodebb/node_modules/async/dist/async.js:975:24)
    at /var/nodebb/node_modules/async/dist/async.js:980:16
    at eachOf (/var/nodebb/node_modules/async/dist/async.js:1051:5)
    at _parallel (/var/nodebb/node_modules/async/dist/async.js:3829:5)
    at Object.parallelLimit [as parallel] (/var/nodebb/node_modules/async/dist/async.js:3912:5)
    22/5 18:08:44 [2742] - error: /admin/appearance/mousetrap.js
    Error: Cannot find module 'js'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at new View (/var/nodebb/node_modules/express/lib/view.js:80:30)
    at EventEmitter.render (/var/nodebb/node_modules/express/lib/application.js:570:12)
    at ServerResponse.render (/var/nodebb/node_modules/express/lib/response.js:971:7)
    at content (/var/nodebb/src/middleware/render.js:70:15)
    at /var/nodebb/node_modules/async/dist/async.js:3830:24
    at replenish (/var/nodebb/node_modules/async/dist/async.js:946:17)
    at /var/nodebb/node_modules/async/dist/async.js:950:9
    at eachOfLimit (/var/nodebb/node_modules/async/dist/async.js:975:24)
    at /var/nodebb/node_modules/async/dist/async.js:980:16
    at eachOf (/var/nodebb/node_modules/async/dist/async.js:1051:5)
    at _parallel (/var/nodebb/node_modules/async/dist/async.js:3829:5)
    at Object.parallelLimit [as parallel] (/var/nodebb/node_modules/async/dist/async.js:3912:5)

  • Global Moderator Plugin & Theme Dev

    @atozsoft have you tried disabling all plugins with ./nodebb reset -p? That's not the entire dev log, can you get it all?

    What version of Node.js are you using? Have you tried re-running npm install? What kind of vps do you have? We need as much information as you can give us because I've never seen this before.


  • i will try. node:6.10.3 . ubuntu 16.04 on aws. 1 gb ram. 8 gb ssd.

  • Global Moderator Plugin & Theme Dev

    @atozsoft try either increasing the memory or adding a fairly large swap partition (~ 2 GB). This could have been caused by the npm install failing due to it running out of memory.


  • @PitaJ thank you. i will try more ram.

    i tried ./nodebb reset -p and npm install . now i can not login, got forbidden error. 馃槩


  • @PitaJ tried with 2gb ram. same result.

  • Global Moderator Plugin & Theme Dev

    @atozsoft what did you try with 2gb ram? Does npm install complete successfully? What does your terminal look like?


  • @PitaJ fresh install. i used this tutarial for node. https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-16-04

    but, not succefful
    npm install not succesfull.

    npm : Depends: nodejs but it is not going to be installed
    Depends: node-abbrev (>= 1.0.4) but it is not going to be installed
    Depends: node-ansi (>= 0.3.0-2) but it is not going to be installed
    Depends: node-ansi-color-table but it is not going to be installed
    Depends: node-archy but it is not going to be installed
    Depends: node-block-stream but it is not going to be installed
    Depends: node-fstream (>= 0.1.22) but it is not going to be installed
    Depends: node-fstream-ignore but it is not going to be installed
    Depends: node-github-url-from-git but it is not going to be installed
    Depends: node-glob (>= 3.1.21) but it is not going to be installed
    Depends: node-graceful-fs (>= 2.0.0) but it is not going to be installed
    Depends: node-inherits but it is not going to be installed
    Depends: node-ini (>= 1.1.0) but it is not going to be installed
    Depends: node-lockfile but it is not going to be installed
    Depends: node-lru-cache (>= 2.3.0) but it is not going to be installed
    Depends: node-minimatch (>= 0.2.11) but it is not going to be installed
    Depends: node-mkdirp (>= 0.3.3) but it is not going to be installed
    Depends: node-gyp (>= 0.10.9) but it is not going to be installed
    Depends: node-nopt (>= 3.0.1) but it is not going to be installed
    Depends: node-npmlog but it is not going to be installed
    Depends: node-once but it is not going to be installed
    Depends: node-osenv but it is not going to be installed
    Depends: node-read but it is not going to be installed
    Depends: node-read-package-json (>= 1.1.0) but it is not going to be installed
    Depends: node-request (>= 2.25.0) but it is not going to be installed
    Depends: node-retry but it is not going to be installed
    Depends: node-rimraf (>= 2.2.2) but it is not going to be installed
    Depends: node-semver (>= 2.1.0) but it is not going to be installed
    Depends: node-sha but it is not going to be installed
    Depends: node-slide but it is not going to be installed
    Depends: node-tar (>= 0.1.18) but it is not going to be installed
    Depends: node-underscore but it is not going to be installed
    Depends: node-which but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.

  • Global Moderator Plugin & Theme Dev

    @atozsoft is that on apt-get install npm or what?


  • @PitaJ yes same command but it gives above error.

  • Global Moderator Plugin & Theme Dev

    In https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-16-04 there are several different possibilities given for installing node. Which did you use?


  • @PitaJ second one with PPA

    note; i have no reputation so i can not sent fast reply.

  • Global Moderator Plugin & Theme Dev

    @atozsoft ok so what do the following commands output:

    • node -v
    • npm -v

  • [email protected]:~# node -v
    v4.2.6
    [email protected]:~# npm -v
    3.5.2
    [email protected]:~#

    i tried node v6 result same.


  • i use this instruction. but no success. buttons does not work, themes does not load etc.

    ubuntu 16.04 , 1 gb ram, aws

    MAKE GENERAL UPDATE

    sudo su
    sudo apt-get update

    INSTALL NODEJS

    curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
    sudo apt install -y nodejs
    node -v
    npm -v

    INSTALL MONGO

    sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
    echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
    sudo apt update && sudo apt install -y mongodb-org
    sudo service mongod start
    sudo service mongod status

    mongo

    use admin
    db.createUser( { user: "xxxxx", pwd: "xxxxxx", roles: [ { role: "readWriteAnyDatabase", db: "admin" }, { role: "userAdminAnyDatabase", db: "admin" } ] } )

    use nodebb

    db.createUser( { user: "xxxxx", pwd: "xxxxxx", roles: [ { role: "readWrite", db: "nodebb" }, { role: "clusterMonitor", db: "admin" } ] } )

    quit()

    nano /etc/mongod.conf

    CHANGE TO...

    security:
    authorization: enabled

    sudo service mongod restart
    mongo -u xxxxxx -p xxxxxx --authenticationDatabase=admin

    INSTALL NODEBB

    sudo apt-get install -y git build-essential
    cd /var
    sudo git clone -b v1.5.0 https://github.com/NodeBB/NodeBB.git nodebb

    cd nodebb
    sudo npm install --production
    sudo ./nodebb setup
    0_1495537132573_theme settings.png

  • Global Moderator Plugin & Theme Dev

    @atozsoft ok first of all, you don't need to sudo su if you're gonna write sudo with all the other commands.

    Secondly, you don't need to apt-get install nodejs of you use curl install script way.

    Also, don't git clone, npm install, or nodebb setup with sudo. It can mess up permissions.


  • Global Moderator Plugin & Theme Dev

    @atozsoft it is possible that those instructions are wrong. Regardless they don't have the apt get install nodejs.


  • @PitaJ ok ok. i am sorry i am new. i want to understand exactly. you say that remove sudo and try again. true ?

  • Global Moderator Plugin & Theme Dev

    @atozsoft remove sudo from the git, npm, and nodebb commands. Use sudo for the rest, but remove the sudo su

Suggested Topics

  • 2
  • 18
  • 1
  • 7
  • 16
| |