postgresql 关闭连接:无法从客户端接收数据:连接由对等方重置
postgresql closed connection : could not receive data from client: Connection reset by peer
我有 3 个 odoos 运行 在 aws 中使用 ubuntu16 和 postgresql 9.5 正常进入 ec2,但是几天前 1 odoo 实例死了,在我的日志 odoo 中我看到:
2018-01-11 06:15:56,343 28311 ERROR ? openerp.addons.bus.bus: Bus.loop error, sleep and retry
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/openerp/addons/bus/bus.py", line 136, in run
self.loop()
File "/usr/lib/python2.7/dist-packages/openerp/addons/bus/bus.py", line 122, in loop
conn.poll()
OperationalError: SSL connection has been closed unexpectedly
2018-01-11 06:15:58,283 28311 INFO ? openerp.service.server: Initiating shutdown
在我的 postgresql 日志中,我得到:
2018-01-11 01:07:52 -05 LOG: could not receive data from client: Connection reset by peer
2018-01-11 01:15:56 -05 LOG: could not receive data from client: Connection reset by peer
2018-01-11 01:15:56 -05 LOG: received fast shutdown request
2018-01-11 01:15:56 -05 LOG: aborting any active transactions
2018-01-11 01:15:56 -05 FATAL: terminating connection due to administrator command
2018-01-11 01:15:56 -05 FATAL: terminating connection due to administrator command
2018-01-11 01:15:56 -05 LOG: autovacuum launcher shutting down
2018-01-11 01:15:56 -05 FATAL: terminating connection due to administrator command
2018-01-11 01:15:56 -05 FATAL: terminating connection due to administrator command
2018-01-11 01:15:56 -05 FATAL: terminating connection due to administrator command
2018-01-11 01:15:56 -05 FATAL: terminating connection due to administrator command
2018-01-11 01:15:56 -05 LOG: shutting down
2018-01-11 01:15:56 -05 LOG: database system is shut down
2018-01-11 01:16:53 -05 LOG: database system was shut down at 2018-01-11 01:15:56 -05
2018-01-11 01:16:53 -05 LOG: incomplete startup packet
2018-01-11 01:16:53 -05 LOG: MultiXact member wraparound protections are now enabled
2018-01-11 01:16:53 -05 LOG: database system is ready to accept connections
2018-01-11 01:16:53 -05 LOG: autovacuum launcher started
我有另外两个 odoo 的 运行 进入这个服务器,其他的继续 运行 没有问题,然后大约 10 a.m。我重新启动 odoo,这个死掉的 odoo 开始了。我不知道 odoo 是否关闭了连接而不告诉 postgres 或 postgres 关闭了连接
留言
could not receive data from client: Connection reset by peer
在 PostgreSQL 日志中表示连接的客户端在没有正确关闭数据库会话的情况下消失了。
从 PostgreSQL 方面来看,这与 PostgreSQL 关闭无关。
我有 3 个 odoos 运行 在 aws 中使用 ubuntu16 和 postgresql 9.5 正常进入 ec2,但是几天前 1 odoo 实例死了,在我的日志 odoo 中我看到:
2018-01-11 06:15:56,343 28311 ERROR ? openerp.addons.bus.bus: Bus.loop error, sleep and retry
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/openerp/addons/bus/bus.py", line 136, in run
self.loop()
File "/usr/lib/python2.7/dist-packages/openerp/addons/bus/bus.py", line 122, in loop
conn.poll()
OperationalError: SSL connection has been closed unexpectedly
2018-01-11 06:15:58,283 28311 INFO ? openerp.service.server: Initiating shutdown
在我的 postgresql 日志中,我得到:
2018-01-11 01:07:52 -05 LOG: could not receive data from client: Connection reset by peer
2018-01-11 01:15:56 -05 LOG: could not receive data from client: Connection reset by peer
2018-01-11 01:15:56 -05 LOG: received fast shutdown request
2018-01-11 01:15:56 -05 LOG: aborting any active transactions
2018-01-11 01:15:56 -05 FATAL: terminating connection due to administrator command
2018-01-11 01:15:56 -05 FATAL: terminating connection due to administrator command
2018-01-11 01:15:56 -05 LOG: autovacuum launcher shutting down
2018-01-11 01:15:56 -05 FATAL: terminating connection due to administrator command
2018-01-11 01:15:56 -05 FATAL: terminating connection due to administrator command
2018-01-11 01:15:56 -05 FATAL: terminating connection due to administrator command
2018-01-11 01:15:56 -05 FATAL: terminating connection due to administrator command
2018-01-11 01:15:56 -05 LOG: shutting down
2018-01-11 01:15:56 -05 LOG: database system is shut down
2018-01-11 01:16:53 -05 LOG: database system was shut down at 2018-01-11 01:15:56 -05
2018-01-11 01:16:53 -05 LOG: incomplete startup packet
2018-01-11 01:16:53 -05 LOG: MultiXact member wraparound protections are now enabled
2018-01-11 01:16:53 -05 LOG: database system is ready to accept connections
2018-01-11 01:16:53 -05 LOG: autovacuum launcher started
我有另外两个 odoo 的 运行 进入这个服务器,其他的继续 运行 没有问题,然后大约 10 a.m。我重新启动 odoo,这个死掉的 odoo 开始了。我不知道 odoo 是否关闭了连接而不告诉 postgres 或 postgres 关闭了连接
留言
could not receive data from client: Connection reset by peer
在 PostgreSQL 日志中表示连接的客户端在没有正确关闭数据库会话的情况下消失了。
从 PostgreSQL 方面来看,这与 PostgreSQL 关闭无关。