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

How to fix Postgres error - "connection timeout expired" #6959

Closed
Suspect128482 opened this issue Nov 10, 2023 · 42 comments
Closed

How to fix Postgres error - "connection timeout expired" #6959

Suspect128482 opened this issue Nov 10, 2023 · 42 comments
Labels

Comments

@Suspect128482
Copy link

Screenshot from 2023-11-11 10-02-57
If you are getting said "connection timeout expired" error when trying to connect to your PostGreSQL server
Simply;
-Go to Windows Run (windows + R)
-Type in "services.msc"
-Go to the Postgresql service and manually start it
Screenshot from 2023-11-11 10-03-40
Voila problem solved, unsure why even though the Startup Type is automatic I had to manually turn it on
Had this problem for ages and solved it myself couldn't find anything helpful online, so hopefully this will help :)

@Suspect128482
Copy link
Author

Also restarting the service might help if it is going already :)

@Suspect128482
Copy link
Author

Also within C:\program files\postgresql\16\data\postgresql.conf make sure the listening address it set to "*" not a loopback address for ipv4 or 6 (127.0.0.1::1), this should enable you to start the service manually

@pravesh-sharma pravesh-sharma closed this as not planned Won't fix, can't repro, duplicate, stale Nov 17, 2023
@Pabl0l
Copy link

Pabl0l commented Dec 2, 2023

THANK U SO MUCH <3

20 similar comments
@Pabl0l
Copy link

Pabl0l commented Dec 2, 2023

THANK U SO MUCH <3

@Pabl0l
Copy link

Pabl0l commented Dec 2, 2023

THANK U SO MUCH <3

@Pabl0l
Copy link

Pabl0l commented Dec 2, 2023

THANK U SO MUCH <3

@Pabl0l
Copy link

Pabl0l commented Dec 2, 2023

THANK U SO MUCH <3

@Pabl0l
Copy link

Pabl0l commented Dec 2, 2023

THANK U SO MUCH <3

@Pabl0l
Copy link

Pabl0l commented Dec 2, 2023

THANK U SO MUCH <3

@Pabl0l
Copy link

Pabl0l commented Dec 2, 2023

THANK U SO MUCH <3

@Pabl0l
Copy link

Pabl0l commented Dec 2, 2023

THANK U SO MUCH <3

@Pabl0l
Copy link

Pabl0l commented Dec 2, 2023

THANK U SO MUCH <3

@Pabl0l
Copy link

Pabl0l commented Dec 2, 2023

THANK U SO MUCH <3

@Pabl0l
Copy link

Pabl0l commented Dec 2, 2023

THANK U SO MUCH <3

@Pabl0l
Copy link

Pabl0l commented Dec 2, 2023

THANK U SO MUCH <3

@Pabl0l
Copy link

Pabl0l commented Dec 2, 2023

THANK U SO MUCH <3

@Pabl0l
Copy link

Pabl0l commented Dec 2, 2023

THANK U SO MUCH <3

@Pabl0l
Copy link

Pabl0l commented Dec 2, 2023

THANK U SO MUCH <3

@Pabl0l
Copy link

Pabl0l commented Dec 2, 2023

THANK U SO MUCH <3

@Pabl0l
Copy link

Pabl0l commented Dec 2, 2023

THANK U SO MUCH <3

@Pabl0l
Copy link

Pabl0l commented Dec 2, 2023

THANK U SO MUCH <3

@Pabl0l
Copy link

Pabl0l commented Dec 2, 2023

THANK U SO MUCH <3

@Pabl0l
Copy link

Pabl0l commented Dec 2, 2023

THANK U SO MUCH <3

@Vini0100
Copy link

Vini0100 commented Dec 3, 2023

THANK

@Bang28
Copy link

Bang28 commented Dec 23, 2023

Not work for me sir, please help

@Mognatti
Copy link

Mognatti commented Jan 5, 2024

Thanks, you are a life saver!

@Arthur-Peixoto
Copy link

Not work for me sir, please help

look into your postgresql logs in /var/log/postgresql/postgresql-{version}-main.log

@MthetheleliMbuyisa
Copy link

Thank you champ

@deepsalternate
Copy link

Thanks man I was searching for solution for hours finally found it . Thanks

@muhammadshahms
Copy link

Thank you

@myatsoekaung
Copy link

It works for me, thank u for your solution. I appreciate it.

@sushanth91
Copy link

postgres SQl

Subject: Persistent "Connection Timeout Expired" Issue with PostgreSQL Installation on Windows

Description:
Unable to resolve "Connection Timeout Expired" error despite attempting various troubleshooting steps. This includes multiple reinstallation and uninstallation attempts of PostgreSQL on the Windows system.

Details:
Issue: Connection Timeout Expired
Platform: Windows
Database: PostgreSQL

Steps Taken:

Attempted multiple reinstalls of PostgreSQL.
Followed recommended troubleshooting steps.
Ensured system compatibility and requirements.
Request:
Seeking immediate assistance to resolve the persistent "Connection Timeout Expired" issue with PostgreSQL installation on Windows.

Additional Information:
Any further guidance or insights to effectively resolve this issue would be greatly appreciated.

Thank you.

@osipov-slava
Copy link

Check contex menu - Properties/Connection/Port
try 5432 or 5433 or which you use. I had 5433 in this field. May be from previous installation
Additionally your brandmayer/antivirus app can block access
image

@chrajeshdagur
Copy link

Thanks!

@akhilpraghav407
Copy link

thanks!!!

@emrucar
Copy link

emrucar commented Mar 13, 2024

Not work for me sir, please help

Delete all PostgreSQL files, then download 15.6 Version https://www.enterprisedb.com/downloads/postgres-postgresql-downloads

@GW-Der
Copy link

GW-Der commented Mar 29, 2024

Thanks fam, it worked.

@techiemithlesh
Copy link

Also within C:\program files\postgresql\16\data\postgresql.conf make sure the listening address it set to "*" not a loopback address for ipv4 or 6 (127.0.0.1::1), this should enable you to start the service manually

Already applied this but still the same issue facing

@mjDanny
Copy link

mjDanny commented Apr 21, 2024

THANKS

@G3ntleM4n
Copy link

G3ntleM4n commented Apr 23, 2024

You can try open "Reload configuration" as Administrator, but i guess it erases all stuff to defaults. It is in the postgreSQL folder at windows start menu. It helped me when i had that issue on just installed postgre

@omar-medhat2
Copy link

worked

@Endeathia
Copy link

Thank you this helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests