简体   繁体   中英

failed to connect to postgres server

I have a strange issue. Until 2 days back, my setup has been working for almost 2 years. the setup that always worked :

1. I use postgress 9.3 for development on my laptop. 
2. I use intellij idea database tools to browse data
3. sometimes I use pgadmin
4. I run maven build of our application

for the past 2 days, when I run maven install , build fails with

[main] ERROR SqlExceptionHelper.logExceptions(146) | Cannot create PoolableConnectionFactory (The connection attempt failed.)

but, my idea client, pgadmin have no problem connecting.

pg log has the following :

2015-11-06 11:08:02 CST LOG:  could not receive data from client: An operation was attempted on something that is not a socket.


2015-11-06 11:08:02 CST LOG:  incomplete startup packet
2015-11-06 11:08:17 CST LOG:  could not receive data from client: An operation was attempted on something that is not a socket.


2015-11-06 11:08:17 CST LOG:  incomplete startup packet
2015-11-06 11:08:35 CST WARNING:  pgstat wait timeout
2015-11-06 11:08:46 CST WARNING:  pgstat wait timeout
2015-11-06 11:09:35 CST WARNING:  pgstat wait timeout
2015-11-06 11:09:45 CST WARNING:  pgstat wait timeout

I also disabled firewall and tried. It still fails.

any hints on what could be happening ?

It looks like something's wrong with the windows TCP/IP stack.

See:

Possible actions include:

  • Completely uninstall your antivirus product or (worse) "internet security" suite if you have one. Disabling it is not likely to be enough. You can reinstall or install a better one once you've confirmed it's the cause.

  • Do a windows TCP/IP stack reset . Exact steps depend on your Windows version, which you did not mention, so you might need to look around a bit. This might have side effects like clearing settings that break other applications. You should know what you're doing, be willing to accept possible problems, or get professional support from a tech with Windows skills.

  • Check the system for possible rootkit or undetected virus activity

  • Uninstall any unnecessary drivers for 3G modems, cable providers, etc

  • If you installed any software recently, remove it

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM