I'm getting an error in the GUI as the /genieacs/bin/genieacs-nbi etc... aren't running:

Errno::ECONNREFUSED in HomeController#index

Failed to open TCP connection to localhost:7557 (Connection refused - connect(2) for "localhost" port 7557)

Extracted source (around line #17):
15
16
17
18
19
20
              
threads << Thread.new(slice) do |slice|
http = create_api_conn()
res = http.head("/devices/?query=#{CGI::escape ActiveSupport::JSON.encode(slice['query'])}")
slice['data'] = res['Total'].to_i
slice['href'] = url_for(controller: 'devices', action: 'index', params: {query: ActiveSupport::JSON.encode(slice['query'])}, only_path: true)
slice.delete('query')

The error when I manually try to run '/genieacs/bin/genieacs-nbi'

root@config:/genieacs-gui# /genieacs/bin/genieacs-nbi 

/usr/local/lib/node_modules/genieacs/node_modules/mongodb/lib/mongodb/mongo_client.js:409

/usr/local/lib/node_modules/genieacs/node_modules/mongodb/lib/mongodb/mongo_client.js:409

          throw err

          throw err

                ^

                ^

Error: failed to connect to [127.0.0.1:27017]

    at null.<anonymous> (/usr/local/lib/node_modules/genieacs/node_modules/mongodb/lib/mongodb/connection/server.js:556:74)

    at EventEmitter.emit (events.js:106:17)

    at null.<anonymous> (/usr/local/lib/node_modules/genieacs/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:156:15)

    at EventEmitter.emit (events.js:98:17)

    at Socket.<anonymous> (/usr/local/lib/node_modules/genieacs/node_modules/mongodb/lib/mongodb/connection/connection.js:534:10)

    at Socket.EventEmitter.emit (events.js:95:17)

    at net.js:441:14

    at process._tickDomainCallback (node.js:459:13)

Error: failed to connect to [127.0.0.1:27017]

    at null.<anonymous> (/usr/local/lib/node_modules/genieacs/node_modules/mongodb/lib/mongodb/connection/server.js:556:74)

    at EventEmitter.emit (events.js:106:17)

    at null.<anonymous> (/usr/local/lib/node_modules/genieacs/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:156:15)

    at EventEmitter.emit (events.js:98:17)

    at Socket.<anonymous> (/usr/local/lib/node_modules/genieacs/node_modules/mongodb/lib/mongodb/connection/connection.js:534:10)

    at Socket.EventEmitter.emit (events.js:95:17)

    at net.js:441:14

    at process._tickDomainCallback (node.js:459:13)

14 Oct 14:11:58 - Worker 6771 died (8)

14 Oct 14:11:58 - Worker 6772 died (8)

/usr/local/lib/node_modules/genieacs/node_modules/mongodb/lib/mongodb/mongo_client.js:409

          throw err

I even get this error now after running:

  cd <genieacs directory>
  rm -r ./node_modules
  npm install node-gyp
  npm install

Any help would be appreciated,

Kris


_______________________________________________
Users mailing list
Users@lists.genieacs.com
http://lists.genieacs.com/mailman/listinfo/users

Reply via email to