Problems launching genieacs-cwmp
Bodlaj Gasper
bodlaj at iskratel.si
Fri Mar 4 06:16:20 EST 2016
Hi,
we got same error in case of messed up database .
Those commands then fixed the issue
sudo -u mongodb mongod --repair --dbpath /var/lib/mongodb/
sudo service mongod start
BR Gašper
From: Users [mailto:users-bounces at lists.genieacs.com] On Behalf Of Sergio Fernández
Sent: Friday, March 04, 2016 10:44 AM
To: Community support for GenieACS users
Subject: Problems launching genieacs-cwmp - [SPAM] - Bayesian Filter detected spam
Good morning!
I'm trying to install GenieACS in a fresh Ubuntu 15.10.
I am, at the same time, preparing a GitHub Wiki called "Install GenieACS in Ubuntu 15.10"
At the moment, I have this done:
This is a quick guide to have GenieACS running in a clean install of an Ubuntu 15.10 Server:
1. Install Node.js
As of [here](https://github.com/nodejs/node-v0.x-archive/wiki/Installing-Node.js-via-package-manager?utm_source=%5Bdeliciuos%5D&utm_medium=twitter):
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install --yes nodejs
2. Install Redis
As of [here](http://redis.io/topics/quickstart), but with some changes:
sudo apt-get install make gcc
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable/deps
make hiredis lua jemalloc linenoise
cd ..
make
3. Install MongoDB
As of [here](https://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/):
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
sudo apt-get update
sudo apt-get install -y mongodb-org
4. Install GenieACS
sudo apt-get install python build-essential
npm install libxmljs node-gyp mongoose
npm install
npm install -g genieacs
or if you want you can do it by cloning the github development repository:
cd /opt
git clone https://github.com/zaidka/genieacs.git --branch master
cd genieacs
npm install
npm run configure
npm run compile
But after performing it, with some changes, trying other things not mentioned, I get this error when trying to run genieacs-cwmp.
4 Mar 10:33:04 - Worker 8915 died (1)
{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }
js-bson: Failed to load c++ bson extension, using pure JS version
{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }
js-bson: Failed to load c++ bson extension, using pure JS version
{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }
js-bson: Failed to load c++ bson extension, using pure JS version
{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }
js-bson: Failed to load c++ bson extension, using pure JS version
/usr/lib/node_modules/genieacs/node_modules/mongodb/lib/mongodb/mongo_client.js:409
throw err
^
Error: failed to connect to [127.0.0.1:27017]
at null.<anonymous> (/usr/lib/node_modules/genieacs/node_modules/mongodb/lib/mongodb/connection/server.js:556:25)
at emitThree (events.js:110:13)
at emit (events.js:188:7)
at null.<anonymous> (/usr/lib/node_modules/genieacs/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:156:15)
at emitTwo (events.js:100:13)
at emit (events.js:185:7)
at Socket.<anonymous> (/usr/lib/node_modules/genieacs/node_modules/mongodb/lib/mongodb/connection/connection.js:534:10)
at emitOne (events.js:90:13)
at Socket.emit (events.js:182:7)
at emitErrorNT (net.js:1250:8)
I've been searching this error across the web, pointing it to the lack of mongoose. But installing it doesn't make it work.
Also there's a recommendation to developers, so these errors doesn't show up: When importing the bson module, instead of calling it by '../build/Release/bson', it is recommended to call it simply by 'bson'
Thank you!
--
________________________________
Nombre: Sergio Fernández Rubio
Cargo: Ingeniero de Software y de Redes
Departamento: TIC
Email: sergio.fernandez at electronicamartinez.com<mailto:sergio.fernandez at electronicamartinez.com>
Oficina: 968 165 000
Página web: www.electronicamartinez.es<http://www.electronicamartinez.es>
________________________________
________________________________
________________________________
This e-mail and any attachments may contain confidential and/or privileged information and is intended solely for the addressee. Any unauthorised use, review, retransmissions, dissemination, copying or other use of this information by persons or entities other than the intended recipient is strictly prohibited.
To elektronsko sporočilo in vse morebitne priloge lahko vsebujejo informacije zaupne narave in so namenjene izključno naslovniku. Fizični ali pravni osebi, ki ni naslovnik, je kakršnakoli nepooblaščena uporaba, pregledovanje, pošiljanje, razširjanje, kopiranje ali drug način razpolaganja z vsebino sporočila strogo prepovedana.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20160304/89b922e4/attachment-0001.html>
More information about the Users
mailing list