nodebb does not work, i can not reset
-
@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. -
@atozsoft is that on
apt-get install npm
or what? -
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?
-
@atozsoft ok so what do the following commands output:
node -v
npm -v
-
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 updateINSTALL NODEJS
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt install -y nodejs
node -v
npm -vINSTALL 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 statusmongo
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: enabledsudo service mongod restart
mongo -u xxxxxx -p xxxxxx --authenticationDatabase=adminINSTALL NODEBB
sudo apt-get install -y git build-essential
cd /var
sudo git clone -b v1.5.0 https://github.com/NodeBB/NodeBB.git nodebbcd nodebb
sudo npm install --production
sudo ./nodebb setup
-
@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
, ornodebb setup
with sudo. It can mess up permissions. -
but this instruction is from https://nodebb.readthedocs.io/en/latest/installing/os/ubuntu.html
-
@atozsoft it is possible that those instructions are wrong. Regardless they don't have the apt get install nodejs.
-
@atozsoft remove sudo from the git, npm, and nodebb commands. Use sudo for the rest, but remove the
sudo su
-
@PitaJ same result. i installed succesfully nodebb but themes does not load and some buttons does not work. example save buttons, create post button etc. there is an interesting issue. i tried everything. also redis, also centos. but results same. themes does not load as above image.
root@ip-1770:/home/ubuntu/nodebb# node -v
v6.10.3
root@ip-1-70:/home/ubuntu/nodebb# npm -v
3.10.10 -
Do you get the
socket connection failed
error message in your browser? -
@PitaJ if you mean that yes.
Failed to load resource: the server responded with a status of 400 (Bad Request)
:4567/socket.io/?EIO=3&transport=polling&t=Lmsk0wn Failed to load resource: the server responded with a status of 400 (Bad Request)
:4567/socket.io/?EIO=3&transport=polling&t=Lmsk1TT Failed to load resource: the server responded with a status of 400 (Bad Request)
:4567/socket.io/?EIO=3&transport=polling&t=Lmsk2N1 Failed to load resource: the server responded with a status of 400 (Bad Request)
acp.min.js?v=l54mouudqb8:5 GET http://52.50.130.251:4567/socket.io/?EIO=3&transport=polling&t=Lmsk3cy 400 (Bad Request)
u.create @ acp.min.js?v=l54mouudqb8:5
u @ acp.min.js?v=l54mouudqb8:5
c.request @ acp.min.js?v=l54mouudqb8:5
c.doPoll @ acp.min.js?v=l54mouudqb8:5
u.poll @ acp.min.js?v=l54mouudqb8:5
u.doOpen @ acp.min.js?v=l54mouudqb8:5
o.open @ acp.min.js?v=l54mouudqb8:5
f.open @ acp.min.js?v=l54mouudqb8:4
f @ acp.min.js?v=l54mouudqb8:4
f @ acp.min.js?v=l54mouudqb8:4
d.open.d.connect @ acp.min.js?v=l54mouudqb8:4
(anonymous) @ acp.min.js?v=l54mouudqb8:4
acp.min.js?v=l54mouudqb8:5 GET http://52.50.130.251:4567/socket.io/?EIO=3&transport=polling&t=Lmsk4uN 400 (Bad Request)also there is more socket error on chrome console.
-
Then you need to make sure you have the
url
value in config.json set to the url at which you visit the forum. For example, if you access your site athttp://example.com
, then put that in your config.json