<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Trebuchet MS";
        panose-1:2 11 6 3 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Trebuchet MS","sans-serif";
        color:black;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="SL" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">we got same error in case of messed up database .<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Those commands then fixed the issue<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">sudo -u mongodb mongod --repair --dbpath /var/lib/mongodb/<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">sudo service mongod start<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">BR Gašper<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> Users [mailto:users-bounces@lists.genieacs.com]
<b>On Behalf Of </b>Sergio Fernández<br>
<b>Sent:</b> Friday, March 04, 2016 10:44 AM<br>
<b>To:</b> Community support for GenieACS users<br>
<b>Subject:</b> Problems launching genieacs-cwmp - [SPAM] - Bayesian Filter detected spam<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">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:<br>
<br>
1. Install Node.js<br>
<br>
As of [here](<a 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>):<br>
<br>
    curl -sL <a href="https://deb.nodesource.com/setup_5.x">https://deb.nodesource.com/setup_5.x</a> | sudo -E bash -<br>
    sudo apt-get install --yes nodejs<br>
<br>
2. Install Redis<br>
<br>
As of [here](<a href="http://redis.io/topics/quickstart">http://redis.io/topics/quickstart</a>), but with some changes:<br>
<br>
    sudo apt-get install make gcc<br>
    wget <a href="http://download.redis.io/redis-stable.tar.gz">http://download.redis.io/redis-stable.tar.gz</a><br>
    tar xvzf redis-stable.tar.gz<br>
    cd redis-stable/deps<br>
    make hiredis lua jemalloc linenoise<br>
    cd ..<br>
    make<br>
<br>
3. Install MongoDB<br>
<br>
As of [here](<a href="https://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/">https://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/</a>):<br>
<br>
    sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927<br>
    echo "deb <a 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<br>
    sudo apt-get update<br>
    sudo apt-get install -y mongodb-org<br>
<br>
4. Install GenieACS<br>
<br>
    sudo apt-get install python build-essential<br>
    npm install libxmljs node-gyp mongoose<br>
    npm install<br>
    npm install -g genieacs<br>
<br>
or if you want you can do it by cloning the github development repository:<br>
<br>
    cd /opt<br>
    git clone <a href="https://github.com/zaidka/genieacs.git">https://github.com/zaidka/genieacs.git</a> --branch master<br>
    cd genieacs<br>
    npm install<br>
    npm run configure<br>
    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)<br>
{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }<br>
js-bson: Failed to load c++ bson extension, using pure JS version<br>
{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }<br>
js-bson: Failed to load c++ bson extension, using pure JS version<br>
{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }<br>
js-bson: Failed to load c++ bson extension, using pure JS version<br>
{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }<br>
js-bson: Failed to load c++ bson extension, using pure JS version<br>
/usr/lib/node_modules/genieacs/node_modules/mongodb/lib/mongodb/mongo_client.js:409<br>
          throw err<br>
          ^<br>
<br>
Error: failed to connect to [127.0.0.1:27017]<br>
    at null.<anonymous> (/usr/lib/node_modules/genieacs/node_modules/mongodb/lib/mongodb/connection/server.js:556:25)<br>
    at emitThree (events.js:110:13)<br>
    at emit (events.js:188:7)<br>
    at null.<anonymous> (/usr/lib/node_modules/genieacs/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:156:15)<br>
    at emitTwo (events.js:100:13)<br>
    at emit (events.js:185:7)<br>
    at Socket.<anonymous> (/usr/lib/node_modules/genieacs/node_modules/mongodb/lib/mongodb/connection/connection.js:534:10)<br>
    at emitOne (events.js:90:13)<br>
    at Socket.emit (events.js:182:7)<br>
    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!<o:p></o:p></p>
<div>
<p class="MsoNormal">-- <br>
<br>
<o:p></o:p></p>
<div class="MsoNormal">
<hr size="2" width="670" style="width:502.5pt" align="left">
</div>
<div id="contenedor">
<div id="left">
<p class="MsoNormal"><o:p> </o:p></p>
</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 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">www.electronicamartinez.es</a>
<o:p></o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<p class="MsoNormal">     <o:p></o:p></p>
</div>
</div>
<div class="MsoNormal">
<hr size="2" width="670" style="width:502.5pt" align="left">
</div>
</div>
</div>
<br>
<hr>
<font face="Verdana" color="Gray" size="1">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.<br>
<br>
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.<br>
</font>
</body>
</html>