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

[Bug]: MongoDB connection error throw randomly #561

Open
shiipou opened this issue Mar 21, 2024 · 1 comment
Open

[Bug]: MongoDB connection error throw randomly #561

shiipou opened this issue Mar 21, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@shiipou
Copy link
Contributor

shiipou commented Mar 21, 2024

What happened?

Sometimes, there a mongodb connection error that got thrown randomly when accessing Lenra server using app.lenra.io
We got that error multiple times a day, but not every days.

Mostly always thrown after this error :

auth failed for user root: Authentication failed. 18

We need to check mongo logs before going futher.

What browsers are you seeing the problem on?

No response

Version

1.5.3

Relevant log output

GenStateMachine #PID<0.3811.0> terminating
** (exit) exited in: GenServer.call(#PID<0.3727.0>, :get, 5000)
    ** (EXIT) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
    (elixir 1.13.4) lib/gen_server.ex:1030: GenServer.call/3
    (mongodb_driver 1.2.1) lib/mongo/auth.ex:34: Mongo.Auth.credentials/1
    (mongodb_driver 1.2.1) lib/mongo/auth.ex:20: Mongo.Auth.run/2
    (mongodb_driver 1.2.1) lib/mongo/mongo_db_connection.ex:114: Mongo.MongoDBConnection.connect/2
    (db_connection 2.6.0) lib/db_connection/connection.ex:92: DBConnection.Connection.handle_event/4
    (stdlib 3.17.2.4) gen_statem.erl:1205: :gen_statem.loop_state_callback/11
    (stdlib 3.17.2.4) proc_lib.erl:236: :proc_lib.wake_up/3
State: Mongo.MongoDBConnection
Callback mode: :handle_event_function
Postponed events: []
Last event: {:internal, {:connect, :disconnect}}
Queued events: []
State: Mongo.MongoDBConnection
@shiipou shiipou added the bug Something isn't working label Mar 21, 2024
@shiipou shiipou added this to Lenra Mar 22, 2024
@github-project-automation github-project-automation bot moved this to 🟣 Need triage in Lenra Mar 22, 2024
@taorepoara
Copy link
Member

Might be a connection pool configuration problem.

@taorepoara taorepoara moved this from 🟣 Need triage to ⚪ Todo in Lenra Mar 29, 2024
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
Status: Todo
Development

No branches or pull requests

2 participants