You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the error below when trying to make a simple request to my es index. The elasticsearch-js library works perfect on my localhost but once I push it to a ubuntu server I get the error below.
Elasticsearch ERROR: 2014-02-14T12:59:47Z
Error: Request error, retrying -- connect ENOENT
at Log.error (/var/www/omgtransitapp/releases/20140214125838/api/node_modules/elasticsearch/src/lib/log.js:213:60)
at checkRespForFailure (/var/www/omgtransitapp/releases/20140214125838/api/node_modules/elasticsearch/src/lib/transport.js:185:18)
at HttpConnector.<anonymous> (/var/www/omgtransitapp/releases/20140214125838/api/node_modules/elasticsearch/src/lib/connectors/http.js:137:7)
at ClientRequest.bound (/var/www/omgtransitapp/releases/20140214125838/api/node_modules/elasticsearch/node_modules/lodash-node/modern/internals/baseBind.js:52:17)
at ClientRequest.EventEmitter.emit (events.js:101:17)
at Socket.socketErrorListener (_http_client.js:239:9)
at Socket.EventEmitter.emit (events.js:101:17)
at net.js:434:14
at process._tickCallback (node.js:599:11)
Though a lot of trial and error I was able to the client to connect if I commented the agent parameter in the reqParams hash in http.js. Does anyone know if this is a legitimate bug or if I have something configured incorrectly? It looks like agent is derived from another module "ForeverAgent".
It looks like connect ENOENT errors come from sockets when they encounter a DNS lookup error. My hunch is that there was some underlying networking error which may have gone away, or that using disposable sockets is hiding.
Can you verify that re-enabling the agent causes the error to return? While doing that could you also set the logging level to trace and share the output along with your config?
I looked through the ForeverAgent code and confirmed that all it does is handle socket availability. Node's HttpAgent takes care of all the network logic, which is still the case when you remove ForeverAgent from the mix. With that, I'm inclined to think ForeverAgent is not to blame.
I get the error below when trying to make a simple request to my es index. The elasticsearch-js library works perfect on my localhost but once I push it to a ubuntu server I get the error below.
Though a lot of trial and error I was able to the client to connect if I commented the agent parameter in the reqParams hash in http.js. Does anyone know if this is a legitimate bug or if I have something configured incorrectly? It looks like agent is derived from another module "ForeverAgent".
The text was updated successfully, but these errors were encountered: