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

chore: store node loses connection if database restarts #2989

Closed
Ivansete-status opened this issue Aug 20, 2024 · 1 comment · Fixed by #3010
Closed

chore: store node loses connection if database restarts #2989

Ivansete-status opened this issue Aug 20, 2024 · 1 comment · Fixed by #3010
Labels
effort/hours Estimated to be completed in a few hours

Comments

@Ivansete-status
Copy link
Collaborator

Background

After restarting the database, the store node doesn't connect again. Instead, it shows the following message until manually restarting the nwaku node:

nim-waku-store | ERR 2024-08-20 14:41:15.857+00:00 failed to insert message topics="waku archive" tid=1 file=archive.nim:108 error="could not put msg in messages table: error in runStmt: error in dbConnQueryPrepared calling sendQuery: failed pqsendQueryPrepared: no connection to the server\n"

@Ivansete-status Ivansete-status added the effort/hours Estimated to be completed in a few hours label Aug 20, 2024
@Ivansete-status Ivansete-status moved this to To Do in Waku Aug 20, 2024
@Ivansete-status Ivansete-status changed the title chore: store node looses connection if database restarts chore: store node loses connection if database restarts Aug 21, 2024
@jakubgs
Copy link
Contributor

jakubgs commented Aug 21, 2024

Indeed, it appears only the insert code shows this behavior as we can see on this graph:

image

Because the query path continued to send statements the DB:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort/hours Estimated to be completed in a few hours
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants