-
Notifications
You must be signed in to change notification settings - Fork 197
Failed to write data to connection IPv4Address ... #706
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello and thanks for reaching out. I'll have a closer look at this tomorrow, but until then, could you please enable debug logging and post the logs up until the failure here? When you redact IP addresses, could you please replace them with a unique identifier (e.g., only remove the first two bytes or something)? |
Hello, thanks for your fast answer. I just enabled the logging debug on our test server, I'm currently not able to reproduce the error, it already happens once today before enabling the debug logging. I will let you know and will transmit the logs ASAP when it will occur again, probably tomorrow morning. |
Hello, the error occured this night at 04:21:44.737134761, here are the logs: 2022-04-08 04:20:33.616489640 +0200 CEST [web-1] 2022-04-08 02:20:33.616174 (+ 290.128911 sec) refresh_nb_matching_for_all_missions started! Thanks in advance |
Thanks for the logs and sorry for the late reply, I was at a conference last week. After reading through the logs here is what happens:
So what I recommend doing really, is not looking all too much into the driver logs. If there is a condition the driver can't handle, its not the logs that will notify you about it, but an exception that is being raised. Since this is not a bug, I will close this issue. But please feel free to keep commenting if you have further questions. |
Hello, thanks for your help and your answer ! It's now really clear, have a nice day. |
Hello guys,
I encounter the following problem since a few weeks, each morning this error occurs:
Failed to write data to connection IPv4Address(('X', X)) (IPv4Address(('X', X)))
Neo4j version: Community 4.3.9
Neo4j Mode: Single instance
Driver version: python 3.8 - neo4j-driver 4.4.1 - flask 1.1.2 - gunicorn 20.0.4
Operating system: Server are hosted on Scalingo with Ubuntu 20.04
Steps to reproduce: Do a call to our Flask API to write in the DB.
Expected behavior: Call succeeds without any error
Actual behavior: Call succeeds but with a previous "Failed to write data" error
Additional info:
This error appeared after updating our Database from Neo4j 3.5.2 to Neo4j 4.3.9, and our neo4j-driver from 1.7.2 to 4.4.1
This errors occurs each day for the very first writing call in the database.
This error is currently non blocking, the connection seems simply lost and the Gunicorn app executes the code correctly after raising this error, here is an example of the logs:
`2022-04-06 10:20:36.186129103 +0200 CEST[web-1] Failed to write data to connection IPv4Address(('X', X)) (IPv4Address(('X', X)))
2022-04-06 10:20:36.183971778 +0200 CEST[web-1] 10.0.0.48 - - [06/Apr/2022:08:20:36 +0000] "POST /similarity/profile-async HTTP/1.1" 200 89 "-" "-"
2022-04-06 10:20:36.649252548 +0200 CEST[web-1] 2022-04-06 08:20:36.648783 (+ 1225.547708 sec) refresh_nb_matching_for_all_missions started!
2022-04-06 10:20:41.710179194 +0200 CEST[web-1] 2022-04-06 08:20:41.709843 (+ 5.06106 sec) refresh_nb_matching_for_all_missions done!
2022-04-06 10:20:41.711310984 +0200 CEST[web-1] Matching Profile Done`
Checking if there is no trouble on the GrapheneDB side
Closing each session at the end of each transaction in our API
Checking if there is no multi processing on our APP (seems to not be the case)
Changing the default max_connection_lifetime to 10 minutes
Changing the connection protocol, previous was "bolt", we currently are using "bolt+s"
I tried to be as clear as possible but don't hesitate if you need any additional info !
Thanks in advance for your help, have a nice day :)
The text was updated successfully, but these errors were encountered: