简体   繁体   English

无法连接到Postgres服务器

[英]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 在过去的2天里,当我运行maven install时,构建失败

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

but, my idea client, pgadmin have no problem connecting. 但是,我的主意客户端pgadmin连接没有问题。

pg log has the following : pg日志具有以下内容:

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. Windows TCP / IP堆栈似乎有问题。

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 . 执行Windows TCP / IP堆栈重置 Exact steps depend on your Windows version, which you did not mention, so you might need to look around a bit. 确切步骤取决于您未提及的Windows版本,因此您可能需要四处看看。 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. 您应该知道自己在做什么,愿意接受可能的问题,或者从具有Windows技能的技术那里获得专业支持。

  • Check the system for possible rootkit or undetected virus activity 检查系统中可能的rootkit或未检测到的病毒活动

  • Uninstall any unnecessary drivers for 3G modems, cable providers, etc 卸载3G调制解调器,电缆提供商等不需要的驱动程序

  • If you installed any software recently, remove it 如果您最近安装了任何软件,请将其删除

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 postgres服务器拒绝连接到heroku - postgres server refuses to connect to heroku 连接SMTP服务器失败 - Failed to connect smtp server gradle 同步失败:无法连接到服务器 - gradle sync failed : Could not connect to server 无法连接到 ec2 实例上的 Tomcat 服务器 - Failed to connect to Tomcat server on ec2 instance 无法连接到python服务器(android [java]客户端) - Failed to connect to python server (android [java] client) Android Studio-无法连接到LDAP服务器 - Android studio - Failed to connect to LDAP server Docker 中的 Postgres 服务器无法连接到 spring 启动应用程序 - Postgres Server in Docker cannot connect to spring boot application portgresql服务器版本10-严重:用户“ postgres”的密码身份验证失败 - portgresql server version 10 - FATAL: password authentication failed for user “postgres” failed.org.hibernate.exception.JDBCConnectionException:使用PostGres Hibernate调用Driver#connect时出错 - failed.org.hibernate.exception.JDBCConnectionException: Error calling Driver#connect with PostGres Hibernate 无法连接到 postgres Scala slick org.postgresql.util.PSQLException:连接尝试失败 - Can't connect to postgres Scala slick org.postgresql.util.PSQLException: The connection attempt failed
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM