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

MySQL server has gone away #10

Closed
moneroexamples opened this issue Mar 8, 2017 · 2 comments
Closed

MySQL server has gone away #10

moneroexamples opened this issue Mar 8, 2017 · 2 comments

Comments

@moneroexamples
Copy link
Owner

Mysql is dead after a while. Maybe timeing out?

# ERR: SQLException in /home/mwo/openmonero/src/MySqlAccounts.cpp(select) on line 680                                     │2017-03-08 15:17:12.899 [P2P0]  INFO    global  src/cryptonote_protocol/cryptonote_protocol_handler.inl:1090  SYNCHRONIZ
# ERR: MySQL server has gone away                                                                                         │ED OK
# ERR: SQLException in /home/mwo/openmonero/src/MySqlAccounts.cpp(insert) on line 752                                     │2017-03-08 21:14:46.504 [P2P8]  INFO    global  src/cryptonote_core/blockchain.cpp:1420 ----- BLOCK ADDED AS ALTERNATIVE
# ERR: MySQL server has gone away                                                                                         │ ON HEIGHT 1261975
Error getting address:                                                                                                    │id:     <b04acb0d2921c20a838810bf9dc772d54f7eb695a22b2a81eb3d6759ac517010>
Cant parse string address:                                                                                                │PoW:    <5fff4abfb03cdb28ff92f32743c602af67e5839dd88a53749c100b6900000000>
Faild created a search thread 
@moneroexamples
Copy link
Owner Author

moneroexamples commented Mar 8, 2017

Relevant section: 3.15. Dealing with Connection Timeouts

You cannot detect this condition by calling Connection::connected(). When that returns true, it just means that either the connect-on-create constructor or the connect() call succeeded and that we haven’t observed the connection to be down since then. When the database server closes an idle connection, you won’t know it until after you try to issue a query. This is simply due to the nature of network programming.

Added this in: d873e58 and will see how it goes.

@moneroexamples
Copy link
Owner Author

moneroexamples commented Mar 9, 2017

24h and mysql connection still stending. seems as pinging keeps connection life during idle time.

denniselite referenced this issue in denniselite/x-cash-web-wallet May 18, 2019
Web wallet 1.4.1 X-CASH support - fix version
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

No branches or pull requests

1 participant