<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Good morning!<br>
<br>
I'm trying to install GenieACS in a fresh Ubuntu 15.10.<br>
I am, at the same time, preparing a GitHub Wiki called "Install
GenieACS in Ubuntu 15.10"<br>
<br>
At the moment, I have this done:<br>
<br>
<i>This is a quick guide to have GenieACS running in a clean install
of an Ubuntu 15.10 Server:</i><i><br>
</i><i><br>
</i><i>1. Install Node.js</i><i><br>
</i><i><br>
</i><i>As of
[here](<a class="moz-txt-link-freetext" href="https://github.com/nodejs/node-v0.x-archive/wiki/Installing-Node.js-via-package-manager?utm_source=%5Bdeliciuos%5D&utm_medium=twitter">https://github.com/nodejs/node-v0.x-archive/wiki/Installing-Node.js-via-package-manager?utm_source=%5Bdeliciuos%5D&utm_medium=twitter</a>):</i><i><br>
</i><i><br>
</i><i> curl -sL <a class="moz-txt-link-freetext" href="https://deb.nodesource.com/setup_5.x">https://deb.nodesource.com/setup_5.x</a> | sudo -E
bash -</i><i><br>
</i><i> sudo apt-get install --yes nodejs</i><i><br>
</i><i><br>
</i><i>2. Install Redis</i><i><br>
</i><i><br>
</i><i>As of [here](<a class="moz-txt-link-freetext" href="http://redis.io/topics/quickstart">http://redis.io/topics/quickstart</a>), but with
some changes:</i><i><br>
</i><i><br>
</i><i> sudo apt-get install make gcc</i><i><br>
</i><i> wget <a class="moz-txt-link-freetext" href="http://download.redis.io/redis-stable.tar.gz">http://download.redis.io/redis-stable.tar.gz</a></i><i><br>
</i><i> tar xvzf redis-stable.tar.gz</i><i><br>
</i><i> cd redis-stable/deps</i><i><br>
</i><i> make hiredis lua jemalloc linenoise</i><i><br>
</i><i> cd ..</i><i><br>
</i><i> make</i><i><br>
</i><i><br>
</i><i>3. Install MongoDB</i><i><br>
</i><i><br>
</i><i>As of
[here](<a class="moz-txt-link-freetext" href="https://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/">https://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/</a>):</i><i><br>
</i><i><br>
</i><i> sudo apt-key adv --keyserver
hkp://keyserver.ubuntu.com:80 --recv EA312927</i><i><br>
</i><i> echo "deb <a class="moz-txt-link-freetext" href="http://repo.mongodb.org/apt/ubuntu">http://repo.mongodb.org/apt/ubuntu</a>
trusty/mongodb-org/3.2 multiverse" | sudo tee
/etc/apt/sources.list.d/mongodb-org-3.2.list</i><i><br>
</i><i> sudo apt-get update</i><i><br>
</i><i> sudo apt-get install -y mongodb-org</i><i><br>
</i><i><br>
</i><i>4. Install GenieACS</i><i><br>
</i><i><br>
</i><i> sudo apt-get install python build-essential</i><i><br>
</i><i> npm install libxmljs node-gyp mongoose</i><i><br>
</i><i> npm install</i><i><br>
</i><i> npm install -g genieacs</i><i><br>
</i><i><br>
</i><i>or if you want you can do it by cloning the github
development repository:</i><i><br>
</i><i><br>
</i><i> cd /opt</i><i><br>
</i><i> git clone <a class="moz-txt-link-freetext" href="https://github.com/zaidka/genieacs.git">https://github.com/zaidka/genieacs.git</a> --branch
master</i><i><br>
</i><i> cd genieacs</i><i><br>
</i><i> npm install</i><i><br>
</i><i> npm run configure</i><i><br>
</i><i> npm run compile</i><br>
<br>
<br>
But after performing it, with some changes, trying other things not
mentioned, I get this error when trying to run <i>genieacs-cwmp</i>.<br>
<br>
<i>4 Mar 10:33:04 - Worker 8915 died (1)</i><i><br>
</i><i>{ [Error: Cannot find module '../build/Release/bson'] code:
'MODULE_NOT_FOUND' }</i><i><br>
</i><i>js-bson: Failed to load c++ bson extension, using pure JS
version</i><i><br>
</i><i>{ [Error: Cannot find module '../build/Release/bson'] code:
'MODULE_NOT_FOUND' }</i><i><br>
</i><i>js-bson: Failed to load c++ bson extension, using pure JS
version</i><i><br>
</i><i>{ [Error: Cannot find module '../build/Release/bson'] code:
'MODULE_NOT_FOUND' }</i><i><br>
</i><i>js-bson: Failed to load c++ bson extension, using pure JS
version</i><i><br>
</i><i>{ [Error: Cannot find module '../build/Release/bson'] code:
'MODULE_NOT_FOUND' }</i><i><br>
</i><i>js-bson: Failed to load c++ bson extension, using pure JS
version</i><i><br>
</i><i>/usr/lib/node_modules/genieacs/node_modules/mongodb/lib/mongodb/mongo_client.js:409</i><i><br>
</i><i> throw err</i><i><br>
</i><i> ^</i><i><br>
</i><i><br>
</i><i>Error: failed to connect to [127.0.0.1:27017]</i><i><br>
</i><i> at null.<anonymous>
(/usr/lib/node_modules/genieacs/node_modules/mongodb/lib/mongodb/connection/server.js:556:25)</i><i><br>
</i><i> at emitThree (events.js:110:13)</i><i><br>
</i><i> at emit (events.js:188:7)</i><i><br>
</i><i> at null.<anonymous>
(/usr/lib/node_modules/genieacs/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:156:15)</i><i><br>
</i><i> at emitTwo (events.js:100:13)</i><i><br>
</i><i> at emit (events.js:185:7)</i><i><br>
</i><i> at Socket.<anonymous>
(/usr/lib/node_modules/genieacs/node_modules/mongodb/lib/mongodb/connection/connection.js:534:10)</i><i><br>
</i><i> at emitOne (events.js:90:13)</i><i><br>
</i><i> at Socket.emit (events.js:182:7)</i><i><br>
</i><i> at emitErrorNT (net.js:1250:8)</i><br>
<br>
I've been searching this error across the web, pointing it to the
lack of mongoose. But installing it doesn't make it work.<br>
Also there's a recommendation to developers, so these errors doesn't
show up: When importing the bson module, instead of calling it by <i>'../build/Release/bson',
</i>it is recommended to call it simply by <i>'bson'<br>
<br>
</i>Thank you!<br>
<br>
<div class="moz-signature">-- <br>
<meta charset="UTF-8">
<style>
#contenedor {
position: relative;
height:220px;
padding:10px;
}
#left {
float:left;
}
.divider{
position:absolute;
left:250px;
top:5px;
bottom:5px;
border-left:1px solid grey;
}
#right {
position:absolute;
left:270px;
width:390px;
height:200px;
float:right;
}
p {
font-family: "Trebuchet MS", Helvetica, sans-serif;
}
</style>
<hr style="width:670px;" align="left">
<div id="contenedor">
<div id="left"> <br>
</div>
<div id="right">
<p> <b>Nombre:</b> Sergio Fernández Rubio<br>
<b>Cargo:</b> Ingeniero de Software y de Redes<br>
<b>Departamento:</b> TIC<br>
<b>Email:</b> <a class="moz-txt-link-abbreviated" href="mailto:sergio.fernandez@electronicamartinez.com">sergio.fernandez@electronicamartinez.com</a><br>
<b>Oficina:</b> 968 165 000<br>
<b>Página web:</b> <a
href="http://www.electronicamartinez.es" target="_blank"><a class="moz-txt-link-abbreviated" href="http://www.electronicamartinez.es">www.electronicamartinez.es</a></a>
</p>
<hr> <a href="https://www.linkedin.com/company/10271615"
target="_blank"> </a><a
href="https://twitter.com/EMartinez_SL" target="_blank"
style="margin-left:10px;"></a> <a
href="https://www.facebook.com/electronicamartinez0"
target="_blank" style="margin-left:10px;"></a> <a
href="https://plus.google.com/b/114382878353884084293/114382878353884084293"
target="_blank" style="margin-left:10px;"></a> </div>
</div>
<hr style="width:670px;" align="left"></div>
</body>
</html>