Skip to content
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

Update lib/pq dependency #561

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

braams
Copy link

@braams braams commented Nov 27, 2024

Sometimes, when there are no calls for several hours, the service loses its connection to the database. When calls resume, the service fails to save anything to the database and logs the following errors:

...
2024/11/27 22:04:53.975003 postgres.go:259: ERR write tcp 192.168.4.50:36174->192.168.5.25:5432: write: broken pipe
2024/11/27 22:04:54.517898 postgres.go:259: ERR write tcp 192.168.4.50:36174->192.168.5.25:5432: write: broken pipe
2024/11/27 22:04:57.975863 postgres.go:259: ERR write tcp 192.168.4.50:36174->192.168.5.25:5432: write: broken pipe
2024/11/27 22:04:58.518497 postgres.go:259: ERR write tcp 192.168.4.50:36174->192.168.5.25:5432: write: broken pipe
2024/11/27 22:05:02.519271 postgres.go:259: ERR write tcp 192.168.4.50:36174->192.168.5.25:5432: write: broken pipe
...

According to netstat, there is no TCP connection with PostgreSQL at the moment, and according to tcpdump, it is not attempting to establish the new one.

I found that there was an issue (lib/pq#870) with the same problem, which was fixed in lib/pq v1.9.0. However, heplify-server is still using v1.7.0.
Would you mind upgrading to the latest version of lib/pq?

@CLAassistant
Copy link

CLAassistant commented Nov 27, 2024

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants