Re: Service cannot start after restart

From: only-pacify-defile(at)duck(dot)com
To: KK <knickknack(at)moppix(dot)de>
Cc: "pgsql-novice(at)lists(dot)postgresql(dot)org" <pgsql-novice(at)lists(dot)postgresql(dot)org>
Subject: Re: Service cannot start after restart
Date: 2026-09-14 14:28:55
Message-ID: 49ABD7CA-CAC4-4F98-92F8-B6D2A7001FE2.1@smtp-inbound1.duck.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-novice

ask claude/deepseek/sol before annoying humans

Sep 14, 2026, 13:18 by knickknack_at_moppix(dot)de_only-pacify-defile(at)duck(dot)com:

> 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 a
> DuckDuckGo> did not detect any trackers. > > More <https://duckduckgo.com/-a7u1k0eGaukk_1J51t6d2vqytqS6BXCPL1nm4GLaC-mIyFMWwnl4gW79Twvhc74-n0_pligI7VpBlLeOEvB5HJGpvDXiiDYmc3bJdn4PkHcsjeu8BAMZ6uUL9AQU01xPu8WAcH7Ji1Y-5QeEEHRyBbnshwQm5dmxHMixZOXU0JCXPhj945RM7GR3yLFN5ja4mWIPlRa_nXQBZ99kvrCC0XNcnEkY39CNNvMT3kjAIGWWE0j-a1QuYHd9HUs_BgATJSWJRCtyQgxitctCAf836mxbTw_YKfcq9GOll4Mv79GpRQbQ_>
> Deactivate <https://duckduckgo.com/>
> 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 directorysystemd[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." <mailto:postgresql(at)18-main[3055270]:Clusterisalreadyrunning.systemd[1]:postgresql(at)18-main(dot)service:Can'topenPIDfile'/run/postgresql/18-main.pid'(yet?)afterstart:Nosuchfileordirectorysystemd[1]:postgresql(at)18-main(dot)service:Failedwithresult'protocol'.systemd[1]:Failedtostartpostgresql(at)18-main(dot)service-PostgreSQLCluster18-main(dot)>> 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.logAccess 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?ThanksMichael
>

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Laurenz Albe 2026-09-14 16:55:26 Re: Service cannot start after restart
Previous Message KK 2026-09-14 13:18:01 Service cannot start after restart