<!DOCTYPE html>
<html><head>
    <meta charset="UTF-8">
</head><body><p>After much trying, I've gotten genieacs-cwmp to the point where it's only displaying one error (nbi and fs work fine):</p><p>/usr/local/lib/node_modules/genieacs/node_modules/libxmljs/node_modules/bindings/bindings.js:91</p><p>  throw err</p><p>        ^</p><p>Error: Could not locate the bindings file. Tried:</p><p> → /usr/local/lib/node_modules/genieacs/node_modules/libxmljs/build/xmljs.node</p><p> → /usr/local/lib/node_modules/genieacs/node_modules/libxmljs/build/Debug/xmljs.node</p><p> → /usr/local/lib/node_modules/genieacs/node_modules/libxmljs/build/Release/xmljs.node</p><p> → /usr/local/lib/node_modules/genieacs/node_modules/libxmljs/out/Debug/xmljs.node</p><p> → /usr/local/lib/node_modules/genieacs/node_modules/libxmljs/Debug/xmljs.node</p><p> → /usr/local/lib/node_modules/genieacs/node_modules/libxmljs/out/Release/xmljs.node</p><p> → /usr/local/lib/node_modules/genieacs/node_modules/libxmljs/Release/xmljs.node</p><p> → /usr/local/lib/node_modules/genieacs/node_modules/libxmljs/build/default/xmljs.node</p><p> → /usr/local/lib/node_modules/genieacs/node_modules/libxmljs/compiled/0.10.25/linux/x64/xmljs.node</p><p>    at bindings (/usr/local/lib/node_modules/genieacs/node_modules/libxmljs/node_modules/bindings/bindings.js:88:9)</p><p>    at Object.<anonymous> (/usr/local/lib/node_modules/genieacs/node_modules/libxmljs/lib/bindings.js:1:99)</p><p>    at Module._compile (module.js:456:26)</p><p>    at Object.Module._extensions..js (module.js:474:10)</p><p>    at Module.load (module.js:356:32)</p><p>    at Function.Module._load (module.js:312:12)</p><p>    at Module.require (module.js:364:17)</p><p>    at require (module.js:380:17)</p><p>    at Object.<anonymous> (/usr/local/lib/node_modules/genieacs/node_modules/libxmljs/index.js:4:16)</p><p>    at Module._compile (module.js:456:26)</p><p>14 Oct 18:06:09 - Worker 31682 died (8)</p><p>Trying to get genieacs core to work fire before I install GUI...</p><p>Kris</p><div class="io-ox-signature"></div><blockquote type="cite">On October 14, 2016 at 2:13 PM Kris Germann <kgermann@portal.net.co> wrote:<br><br><div class="ox-27ee4df308-io-ox-signature"><p> <br></p>I'm getting an error in the GUI as the /genieacs/bin/genieacs-nbi etc... aren't running:</div><div class="ox-27ee4df308-io-ox-signature"><h1>Errno::ECONNREFUSED in HomeController#index</h1><h2>Failed to open TCP connection to localhost:7557 (Connection refused - connect(2) for "localhost" port 7557)</h2><div class="ox-27ee4df308-info">Extracted source (around line <strong>#17</strong>):</div><div class="ox-27ee4df308-data"><table class="ox-27ee4df308-lines ox-27ee4df308-mce-item-table mce-item-table" style="border-collapse: collapse; line-height: 1em; margin: 0.5em auto;" border="0" cellspacing="0" cellpadding="0"><tbody><tr><td style="border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #555555; padding: 0.4em 1em; border-top-width: 1px; border-top-style: solid; border-top-color: #555555;"><pre class="ox-27ee4df308-line_numbers">15
16
17
18
19
20
              </pre></td><td style="border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #555555; padding: 0.4em 1em; border-top-width: 1px; border-top-style: solid; border-top-color: #555555;" width="100%"><div class="ox-27ee4df308-line">threads << Thread.new(slice) do |slice|</div><div class="ox-27ee4df308-line">http = create_api_conn()</div><div class="ox-27ee4df308-line ox-27ee4df308-active">res = http.head("/devices/?query=#{CGI::escape ActiveSupport::JSON.encode(slice['query'])}")</div><div class="ox-27ee4df308-line">slice['data'] = res['Total'].to_i</div><div class="ox-27ee4df308-line">slice['href'] = url_for(controller: 'devices', action: 'index', params: {query: ActiveSupport::JSON.encode(slice['query'])}, only_path: true)</div><div class="ox-27ee4df308-line">slice.delete('query')</div></td></tr></tbody></table></div></div><div class="ox-27ee4df308-io-ox-signature"><br></div><div class="ox-27ee4df308-io-ox-signature">The error when I manually try to run '/genieacs/bin/genieacs-nbi'</div><div class="ox-27ee4df308-io-ox-signature"><br></div><div class="ox-27ee4df308-io-ox-signature"><p>root@config:/genieacs-gui# /genieacs/bin/genieacs-nbi </p><p>/usr/local/lib/node_modules/genieacs/node_modules/mongodb/lib/mongodb/mongo_client.js:409</p><p>/usr/local/lib/node_modules/genieacs/node_modules/mongodb/lib/mongodb/mongo_client.js:409</p><p>          throw err</p><p>          throw err</p><p>                ^</p><p>                ^</p><p>Error: failed to connect to [127.0.0.1:27017]</p><p>    at null.<anonymous> (/usr/local/lib/node_modules/genieacs/node_modules/mongodb/lib/mongodb/connection/server.js:556:74)</p><p>    at EventEmitter.emit (events.js:106:17)</p><p>    at null.<anonymous> (/usr/local/lib/node_modules/genieacs/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:156:15)</p><p>    at EventEmitter.emit (events.js:98:17)</p><p>    at Socket.<anonymous> (/usr/local/lib/node_modules/genieacs/node_modules/mongodb/lib/mongodb/connection/connection.js:534:10)</p><p>    at Socket.EventEmitter.emit (events.js:95:17)</p><p>    at net.js:441:14</p><p>    at process._tickDomainCallback (node.js:459:13)</p><p>Error: failed to connect to [127.0.0.1:27017]</p><p>    at null.<anonymous> (/usr/local/lib/node_modules/genieacs/node_modules/mongodb/lib/mongodb/connection/server.js:556:74)</p><p>    at EventEmitter.emit (events.js:106:17)</p><p>    at null.<anonymous> (/usr/local/lib/node_modules/genieacs/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:156:15)</p><p>    at EventEmitter.emit (events.js:98:17)</p><p>    at Socket.<anonymous> (/usr/local/lib/node_modules/genieacs/node_modules/mongodb/lib/mongodb/connection/connection.js:534:10)</p><p>    at Socket.EventEmitter.emit (events.js:95:17)</p><p>    at net.js:441:14</p><p>    at process._tickDomainCallback (node.js:459:13)</p><p>14 Oct 14:11:58 - Worker 6771 died (8)</p><p>14 Oct 14:11:58 - Worker 6772 died (8)</p><p>/usr/local/lib/node_modules/genieacs/node_modules/mongodb/lib/mongodb/mongo_client.js:409</p><p>          throw err</p><p>I even get this error now after running:</p><blockquote>  cd <genieacs directory><br>  rm -r ./node_modules<br>  npm install node-gyp<br><div>  npm install</div></blockquote><p>Any help would be appreciated,</p><p>Kris</p></div><div class="ox-27ee4df308-io-ox-signature"><br></div></blockquote></body></html>