这是我经常遇到的问题。
随机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
答案 0 :(得分:1)
我看到它在Windows 10上发生了3次以上,所以... 在我的Windows 10中,我遇到了这个问题,并删除了文件“ postmaster.pid”。一个工作的兄弟告诉我去做,我不知道为什么,但是解决了。 服务无法启动的另一个原因是“华沙”安全模块(银行使用),如果您已经安装了安全模块或类似的东西,请尝试卸载并重新启动系统。 我希望它可以帮助某人