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

Database timeout issues #15

Open
timkurvers opened this issue Aug 12, 2018 · 1 comment
Open

Database timeout issues #15

timkurvers opened this issue Aug 12, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@timkurvers
Copy link
Member

After a period of inactivity – at least on my dev machine locally – it seems Spelunker is unable to restore / create database connections correctly:

Error: read ETIMEDOUT
    at _errnoException (util.js:1024:11)
    at TCP.onread (net.js:615:25)
    --------------------
    at Protocol._enqueue (/Users/timkurvers/Projects/wowserhq/spelunker/packages/spelunker-api/node_modules/mysql/lib/protocol/Protocol.js:145:48)
    at Connection.query (/Users/timkurvers/Projects/wowserhq/spelunker/packages/spelunker-api/node_modules/mysql/lib/Connection.js:208:25)

This may be related to the MySQL server, how it handles idle connections and how Knex – the database client in Spelunker – handles them. Will try to debug this a bit more with DEBUG=knex:* to see what's going on.

@timkurvers
Copy link
Member Author

Worth mentioning that restarting the API process fixes the connectivity problem.

@timkurvers timkurvers added the bug Something isn't working label Aug 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant