【问题标题】:Postgres doesn't start (windows)Postgres 无法启动(Windows)
【发布时间】:2019-04-08 10:44:38
【问题描述】:

这是我经常遇到的问题。

Postgresql 随机停止并且不接收新连接(例如,pgAdmin、SQuirrel)。 我必须重新启动计算机几次,直到服务成功启动。 当服务启动时,我有以下日志:

2017-08-27 19:52:17 -03 FATAL:  the database system is starting up
2017-08-27 19:52:17 -03 LOG:  database system was interrupted; last known up at 2017-08-27 18:17:21 -03
2017-08-27 19:52:19 -03 FATAL:  the database system is starting up
2017-08-27 19:52:19 -03 LOG:  database system was not properly shut down; automatic recovery in progress
2017-08-27 19:52:19 -03 LOG:  invalid record length at 0/1CD7CE8: wanted 24, got 0
2017-08-27 19:52:19 -03 LOG:  redo is not required
2017-08-27 19:52:19 -03 LOG:  MultiXact member wraparound protections are now enabled
2017-08-27 19:52:19 -03 LOG:  sistema de banco de dados está pronto para aceitar conexões
2017-08-27 19:52:19 -03 LOG:  autovacuum launcher started

我有 i7、8GB 和 Windows 10。今天我使用 Postgresql 9.6

我已经安装了不同版本的Postgresql(9.4、9.5),但是我无法解决。

有人有解决问题的想法吗?

错误前的日志:

2017-08-27 18:16:52 -03 LOG:  could not receive data from client: unrecognized winsock error 10054
2017-08-27 18:16:52 -03 LOG:  could not receive data from client: unrecognized winsock error 10054
2017-08-27 18:16:52 -03 LOG:  could not receive data from client: unrecognized winsock error 10054
2017-08-27 18:17:24 -03 LOG:  could not receive data from client: unrecognized winsock error 10054
2017-08-27 18:17:24 -03 LOG:  unexpected EOF on client connection with an open transaction
2017-08-27 18:17:24 -03 LOG:  could not receive data from client: unrecognized winsock error 10054
2017-08-27 18:17:24 -03 LOG:  could not receive data from client: unrecognized winsock error 10054
2017-08-27 18:17:24 -03 LOG:  could not receive data from client: unrecognized winsock error 10054
2017-08-27 18:17:24 -03 LOG:  could not receive data from client: unrecognized winsock error 10054
2017-08-27 18:26:53 -03 WARNING:  worker took too long to start; canceled
2017-08-27 18:27:53 -03 WARNING:  worker took too long to start; canceled
2017-08-27 18:28:53 -03 WARNING:  worker took too long to start; canceled
...
2017-08-27 19:51:48 -03 ERROR:  canceling statement due to user request

【问题讨论】:

  • 您可能想查看同级站点 dba.StackExchange.com。
  • 您的确切 Postgres 版本是什么? (包括第三个数字)。
  • 当前版本为“PostgreSQL 9.6.3, Visual C++ build 1800, 64-bit编译”。我检查了这个问题@a_horse_with_no_name,但即使没有执行任何查询也会出现问题。

标签: postgresql


【解决方案1】:

我看到它在 Windows 10 上发生超过 3 次,所以... 在我的 Windows 10 中,我遇到了这个问题,我删除了文件“postmaster.pid”。一个工作的兄弟告诉我这样做,我不知道为什么但它解决了。 服务无法启动的另一个原因是“Warsaw”安全模块(由银行使用),如果您已在计算机上安装它或类似的东西,请尝试卸载并重新启动系统。 希望对大家有所帮助?

【讨论】:

猜你喜欢
  • 2023-02-09
  • 1970-01-01
  • 2014-05-18
  • 2014-06-21
  • 2016-11-12
  • 2019-01-18
  • 1970-01-01
  • 2020-10-04
  • 2015-12-27
相关资源
最近更新 更多