| From: | KK <knickknack(at)moppix(dot)de> |
|---|---|
| To: | "pgsql-novice(at)lists(dot)postgresql(dot)org" <pgsql-novice(at)lists(dot)postgresql(dot)org> |
| Subject: | Service cannot start after restart |
| Date: | 2026-09-14 13:18:01 |
| Message-ID: | 8272522a-9b4f-4293-a33a-73671f9da809@moppix.de |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-novice |
Hi everyone, I have a Debian 13.3 system with the following packages
installed.
ii postgresql 18+287.pgdg13+1 all
object-relational SQL database (supported version)
ii postgresql-15 15.15-1.pgdg13+1 amd64
The World's Most Advanced Open Source Relational Database
rc postgresql-17 17.7-3.pgdg13+1 amd64
The World's Most Advanced Open Source Relational Database
ii postgresql-18 18.1-1.pgdg13+2 amd64
The World's Most Advanced Open Source Relational Database
ii postgresql-18-jit 18.1-1.pgdg13+2 amd64
LLVM JIT support for PostgreSQL 18
ii postgresql-client-15 15.15-1.pgdg13+1 amd64
front-end programs for PostgreSQL 15
ii postgresql-client-18 18.1-1.pgdg13+2 amd64
front-end programs for PostgreSQL 18
ii postgresql-client-common 287.pgdg13+1 all
manager for multiple PostgreSQL client versions
ii postgresql-common 287.pgdg13+1 all
PostgreSQL database-cluster manager
I obtain the packages from the PGDG. Two clusters are active: v18 on
port 5432 and v15 on port 5433. Both are enabled for autostart.
Now for the problem: When I start the systemd service
`postgresql(at)18-main` using `systemctl`, I get an error message stating
that start/stop/restart operations are not possible via the unit.
Checking the service status reveals the error message. "
postgresql(at)18-main[3055270]: Cluster is already running. systemd[1]:
postgresql(at)18-main(dot)service: Can't open PID file
'/run/postgresql/18-main.pid' (yet?) after start: No such file or
directory systemd[1]: postgresql(at)18-main(dot)service: Failed with result
'protocol'. systemd[1]: Failed to start postgresql(at)18-main(dot)service -
PostgreSQL Cluster 18-main. " The twist, however, is that the service
*is* actually active and was started using `pg_ctlcluster` (which works
fine).Even though the service is active and reachable, `pg_lscluster`
displays the following: 18 main 5432 down postgres
/var/lib/postgresql/18/main /var/log/postgresql//postgresql-%d.log
Access via `psql` is possible. In any case, the v18 service fails to
start via the systemd unit upon a restart. Do you have any suggestions
for me? Thanks Michael
| From | Date | Subject | |
|---|---|---|---|
| Next Message | only-pacify-defile | 2026-09-14 14:28:55 | Re: Service cannot start after restart |
| Previous Message | KK | 2026-09-01 15:25:42 | Re: Disk layout for parallel instances |