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

OrientDB.ConnectionError [10]: Cannot select the server #445

Open
fedor-pavlov opened this issue Mar 20, 2021 · 0 comments
Open

OrientDB.ConnectionError [10]: Cannot select the server #445

fedor-pavlov opened this issue Mar 20, 2021 · 0 comments

Comments

@fedor-pavlov
Copy link

Hi folks!
I use SAP Cloud Platform, Cloud Foundry, to host a small API server which talks to OrinetDB database (hosted somewhere else). In few minutes after the app start it loses connection to DB and any following attempt to acquire a session from session pool leads to this error: "OrientDB.ConnectionError [10]: Cannot select the server".

I saw this error before in other environments (Heroku, for instance), and as a consequence I had to implement an ugly workaround: "Keep-alive Select" query that happens every 30 minutes to keep connection up. But that workaround doesn't work in SAP Cloud Platform. Even if I do selects every 5 minutes, the connection doesn't survive. What could be a problem? I don't like an idea to re-establish connection for each and every select that my app might need. It's truly ugly workaround. Any ideas?

My env:

"node" : "^14.0"
"orientjs": "^3.0.11"
Orient DB: 3.1.9 (via docker image)

The issue is very easy to re-create. Just publish any nodejs server with orienjs client, and wait for 5-10 minutes :)
I'm happy to provide a link to this crashy orientdb-based api server, plus access to logs and whatever needed to troubleshoot. Let's fix this together. "Cannot select the server" error happens very often, many people face it (just google it) and there's no good answer for the problem. I believe, it's time to fix it.

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