Supervisor / supervisor

Supervisor process control system for Unix (supervisord)
http://supervisord.org
Other
8.53k stars 1.25k forks source link

WARN exited: postgresql (exit status 0; not expected) #1663

Open MasonXon opened 3 weeks ago

MasonXon commented 3 weeks ago

Below is my configuration file:

# supervisord.conf
[program:postgresql]
command=/scripts/postgresql-process-wrapper
user=postgres
priority=1
startsecs=10
autostart=true
autorestart=unexpected
startretries=10
exitcodes=0
redirect_stderr=true
stdout_logfile=/var/log/postgresql/postgresql.log
stdout_logfile_maxbytes=200MB

Below is my logs:

2024-10-30 04:42:49,149 INFO spawned: 'postgresql' with pid 1102
2024-10-30 04:42:49,192 WARN exited: postgresql (exit status 0; not expected)
2024-10-30 04:42:52,532 INFO spawned: 'postgresql' with pid 1288
2024-10-30 04:42:52,567 WARN exited: postgresql (exit status 0; not expected)
2024-10-30 04:42:56,641 INFO spawned: 'postgresql' with pid 1325
2024-10-30 04:42:56,676 WARN exited: postgresql (exit status 0; not expected)
2024-10-30 04:43:02,642 INFO spawned: 'postgresql' with pid 1330
2024-10-30 04:43:02,676 WARN exited: postgresql (exit status 0; not expected)
2024-10-30 04:43:09,642 INFO spawned: 'postgresql' with pid 1335
2024-10-30 04:43:09,677 WARN exited: postgresql (exit status 0; not expected)
2024-10-30 04:43:17,643 INFO spawned: 'postgresql' with pid 1340
2024-10-30 04:43:17,677 WARN exited: postgresql (exit status 0; not expected)
2024-10-30 04:43:26,116 INFO spawned: 'postgresql' with pid 1345
2024-10-30 04:43:26,150 WARN exited: postgresql (exit status 0; not expected)
2024-10-30 04:43:35,278 INFO spawned: 'postgresql' with pid 1350
2024-10-30 04:43:35,323 WARN exited: postgresql (exit status 0; not expected)
2024-10-30 04:43:45,646 INFO spawned: 'postgresql' with pid 1356
2024-10-30 04:43:45,681 WARN exited: postgresql (exit status 0; not expected)
2024-10-30 04:43:46,121 INFO gave up: postgresql entered FATAL state, too many start retries too quickly

I want to know what went wrong. I tested it fine before, but it suddenly went wrong. supervisord version 4.2.5.