You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu上Docker部署SpringBoot应用的Postgres 14自动关闭问题求助

Postgres 14(Docker部署)每周自动关闭问题求助

我在Ubuntu系统上使用Docker部署了SpringBoot应用,配套使用Postgres 14数据库。近期发现数据库会自动关闭,导致应用停止运行,目前每周都会出现该问题。以下是关闭时的日志信息:

2022-10-13 01:05:13.168 UTC [252712] [unknown]@[unknown] FATAL:  no PostgreSQL user name specified in startup packet
2022-10-13 03:29:17.416 UTC [256037] [unknown]@[unknown] LOG:  invalid length of startup packet
2022-10-13 05:37:41.705 UTC [258867] [unknown]@[unknown] LOG:  invalid length of startup packet
2022-10-13 05:55:44.607 UTC [259013] postgres@postgres FATAL:  no pg_hba.conf entry for host "109.237.97.141", user "postgres", database "postgres", no encryption
2022-10-13 06:12:02.686 UTC [163675] LOG:  received smart shutdown request
2022-10-13 06:12:02.686 UTC [255059] admin@active_inventory_db FATAL:  terminating connection due to administrator command
2022-10-13 06:12:02.686 UTC [259031] admin@active_inventory_db FATAL:  terminating connection due to administrator command
2022-10-13 06:12:02.687 UTC [259039] admin@active_inventory_db FATAL:  terminating connection due to administrator command
2022-10-13 06:12:02.687 UTC [259046] admin@active_inventory_db FATAL:  terminating connection due to administrator command
2022-10-13 06:12:02.687 UTC [259047] admin@active_inventory_db FATAL:  terminating connection due to administrator command
2022-10-13 06:12:02.687 UTC [259062] admin@active_inventory_db FATAL:  terminating connection due to administrator command
2022-10-13 06:12:02.688 UTC [259051] admin@active_inventory_db FATAL:  terminating connection due to administrator command
2022-10-13 06:12:02.688 UTC [259034] admin@active_inventory_db FATAL:  terminating connection due to administrator command
2022-10-13 06:12:02.688 UTC [259054] admin@active_inventory_db FATAL:  terminating connection due to administrator command
2022-10-13 06:12:02.688 UTC [259065] admin@active_inventory_db FATAL:  terminating connection due to administrator command
2022-10-13 06:12:02.721 UTC [163675] LOG:  background worker "logical replication launcher" (PID 252000) exited with exit code 1
2022-10-13 06:12:02.688 UTC [254661] admin@active_inventory_db FATAL:  terminating connection due to administrator command
2022-10-13 06:12:02.688 UTC [259050] admin@active_inventory_db FATAL:  terminating connection due to administrator command
2022-10-13 06:12:02.755 UTC [251995] LOG:  shutting down
2022-10-13 06:12:02.990 UTC [163675] LOG:  database system is shut down

注:admin为数据库用户,active_inventory_db是SpringBoot应用配置使用的数据库。

有没有其他用户遇到过该问题?


内容的提问来源于stack exchange,提问作者Jayesh

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.16 17:01:05