-
Notifications
You must be signed in to change notification settings - Fork 8k
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
[CAL-2986] After migration appears error connecting to engine PostgreSQL #11911
Comments
Thank you for opening your first issue, one of our team members will review it as soon as it possible. ❤️🎉 |
it looks like it cant connect to the database. did something change? |
Seeing this, too, after upgrading to 3.3.7 (docker). The only (conscious) change was this upgrade. |
Same here! I keep seeing this logged in the console, on the latest version (the app does seem to work?) |
Thanks rtpa25 But in my case, I did and do not see the errors in the database container log you are showing in your second screenshot. The logs of my database container do not contain anything suspicious at all. So yours might be a different issue than mine :( |
Second container ss is all good first one is the actual issue that is being discussed, for which I shot a PR |
Sorry, I meant the first screenshot (the of your database container). |
Sorry for the late reply @gitwittidbit can you share your container logs, and further can you try the changes in #12010 in your local system to test if it solves the problem? |
same here with @gitwittidbit im not getting the same errors as your first image. but i am getting @calcom/web:start: error connecting to engine: sql, type: postgres db: Error: connect ECONNREFUSED 127.0.0.1:5432 about 5 times per second. however, my DB is on a different IP, so im not sure why it's trying to connect to 127.0.0.1? |
Well, I just pulled the current docker images and - what can I say? The error is gone. My logs are not flooded anymore with the error connecting to engine. Guess your fix did the trick. Thanks! |
I am getting these errors as well. Settings are saving, but it looks like things are trying to connect on localhost ipv6? Very strange. |
I'm getting this error as well. Connection is fine to the db and it's retrieving and saving data okay, but it still shows this error about once every two seconds: @calcom/web:start: error connecting to engine: sql, type: postgres db: Error: connect ECONNREFUSED ::1:5432 I'm not running in a docker container. |
The only thing I can see that references local host and 5432 (postgres port) is this
|
I notice this happens after a user logs in. If they are already in a session, the error doesn't display until next time they logout/login. |
I found another issue thread with the same issue and came across this fix -- it seems to work for me and resolved this issue: |
Also having this issue after upgrading... waiting for an official fix 👍 |
I'm also getting the flood of ECONNREFUSED when trying to log in. If I don't navigate to /auth/login page, it doesn't show up. I think it's related to the NEXTAUTH_URL variable. If I use http://serverIP:PORT/api/auth, then I get these errors. If I change to https://my.domain.com/api/auth, no issues logging and or getting any ECONNREFUSED errors. However, the client fetch error eventually surfaces which is only resolved by switching back to http://serverIP:PORT/api/auth. Any advice or is this just me? |
I am getting the same error too. Although I am using supabase cloud db instead of docker container. |
Issue Summary
We have recently upgraded from version 3.1.9 to version 3.3.9 and since the upgrade we are seeing many errors in the console that are flooding the service and appears randomly some seconds/minutes after start.
Apparently it appears to be connecting to a database on localhost (::1) when we are using an external postgresql outside of even the kubernetes service where it is running.
This has been running for the past months without problem at all.
Could it be that some change has been made that I missed in the changelog and is producing this error? There's not much detail either and even increasing the debug level doesn't show any errors other than these lines.
Steps to Reproduce
It also appears that the update migrations have been successful (or so we believe) and we are not able to reproduce the error as such, it just appears.
Actual Results
Expected Results
Technical details
Current environment variables are like this:
Evidence
The error is this one:
Attached the log of the application running.
calcom-calcom-app-6bcfd55fc5-m4r66-1697453038413861000.log
CAL-2986
The text was updated successfully, but these errors were encountered: