maxdemarzi / neography

A thin Ruby wrapper to the Neo4j Rest API
MIT License
602 stars 135 forks source link

Getting random SocketError: Connection refused when creating relationships on large import #208

Open dam13n opened 9 years ago

dam13n commented 9 years ago

Excon::Errors::SocketError: Connection refused - connect(2) for [fe80::1%lo0]:7474 (Errno::ECONNREFUSED)

I am creating lots of nodes and then relationships between them. Around a 1000 nodes generated (but always at a different number), I get this above error when creating a relationship or setting relationship properties.

Could it just be going too fast?? ANd if so, any suggestion on a good way to govern speed?

maxdemarzi commented 9 years ago

Are you batching your writes?

dam13n commented 9 years ago

I'm not. I'll give that a try!

dam13n commented 9 years ago

I guess what kinda confused me was I was running the same code a year back, and there were no issues. But that was on an Ubuntu VM on Windows, and now I'm on a Mac.

andycamp commented 9 years ago

I'm getting these errors in production after upgrading neography. I've set persistent connections to false, but at least once a day, I get a small flood of the Excon::Errors::SocketError: Connection refused. It causes the app to go down, what can I do differently?