Problems launching genieacs-cwmp

Sergio Fernández sergio.fernandez at electronicamartinez.com
Fri Mar 4 04:43:50 EST 2016


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
*Oficina:* 968 165 000
*Página web:* www.electronicamartinez.es 
<http://www.electronicamartinez.es>

------------------------------------------------------------------------
<https://www.linkedin.com/company/10271615><https://twitter.com/EMartinez_SL> 
<https://www.facebook.com/electronicamartinez0> 
<https://plus.google.com/b/114382878353884084293/114382878353884084293>
------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20160304/e1399bbf/attachment.html>


More information about the Users mailing list