<!DOCTYPE html>
<html><head>
<meta charset="UTF-8">
</head><body><div class="io-ox-signature"><p></p>I'm getting an error in the GUI as the /genieacs/bin/genieacs-nbi etc... aren't running:</div><div class="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="info">Extracted source (around line <strong>#17</strong>):</div><div class="data"><table class="lines mce-item-table" style="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="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="line"> threads << Thread.new(slice) do |slice|
</div><div class="line"> http = create_api_conn()
</div><div class="line active"> res = http.head("/devices/?query=#{CGI::escape ActiveSupport::JSON.encode(slice['query'])}")
</div><div class="line"> slice['data'] = res['Total'].to_i
</div><div class="line"> slice['href'] = url_for(controller: 'devices', action: 'index', params: {query: ActiveSupport::JSON.encode(slice['query'])}, only_path: true)
</div><div class="line"> slice.delete('query')
</div></td></tr></tbody></table></div></div><div class="io-ox-signature"><br></div><div class="io-ox-signature">The error when I manually try to run '/genieacs/bin/genieacs-nbi'</div><div class="io-ox-signature"><br></div><div class="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="io-ox-signature"><br></div></body></html>