From: Lisa Ruby <lbruby1@protonmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Postgres 9.3 service no longer starts on Windows 8.1
Date: Wed, 27 Jan 2021 02:51:17 +0000
Message-ID: <9208a120-caa2-7002-ee33-779fcc833a0c@protonmail.com> (raw)
In-Reply-To: <ac324c4d-7084-137a-55cb-d2e80df8a280@protonmail.com>
References: <ac324c4d-7084-137a-55cb-d2e80df8a280@protonmail.com>
Don't know why this so often happens, but it does. I'll look for hours
for a solution to a problem, finally give up and ask for help, and then
find a solution.
I just solved my problem. I started looking at permissions on the
database location folders. Saw that NETWORK SERVICE had full security
permissions for the 9.3 folder in the path
"D:\mysoftware\PostgreSQL\9.3" and also had full permissions to folders
underneath 9.3. It had no permissions for the PostgreSQL folder. For
grins I added it to the security settings for the the PostgreSQL folder
and gave it full permissions. After doing that starting Postgres as a
Windows service is working again. No idea if those permissions were
previously on the PostgreSQL folder and somehow disappeared, but adding
the permissions fixed the problem.
Lisa
On 1/26/2021 6:19 PM, Lisa Ruby wrote:
> I am using Postgres 9.3 on a Windows 8.1 computer. I've been using it
> for over 5 years on the same computer to provide a database for a local
> JIRA Server. I did a normal restart of my computer last night and ever
> since then the Postgres service fails to start. I am able to start
> Postgres from the command line using pg_ctl start -D <path to database>
> -w, and JIRA is then able to connect to the database.
>
> When I try (or the system tries) to start the Postgres Service from
> Windows Services the event log shows this error for Postgres:
>
> 2021-01-25 23:37:36 PST FATAL: data directory
> "D:/mysoftware/PostgreSQL/9.3" does not exist
>
> The database does exist in this data directory, and I use the same exact
> path for it when starting Postgres from the command line. This error
> started appearing when Postgres stopped correctly starting as a service.
>
> There are no other errors/warnings in the Event log that aren't always
> there.
>
> The latest entries in the postgresql log look like this:
>
> 2021-01-26 17:21:05 PST LOG: database system was shut down at
> 2021-01-26 17:20:31 PST
> 2021-01-26 17:21:05 PST LOG: MultiXact member wraparound protections
> are now enabled
> 2021-01-26 17:21:05 PST LOG: database system is ready to accept connections
> 2021-01-26 17:21:05 PST LOG: autovacuum launcher started
> 2021-01-26 17:25:05 PST LOG: server process (PID 2372) was terminated
> by exception 0xC000013A
> 2021-01-26 17:25:05 PST DETAIL: Failed process was running: UPDATE
> public.clusteredjob SET VERSION = $1 , NEXT_RUN = $2 WHERE JOB_ID=$3
> AND VERSION=$4
> 2021-01-26 17:25:05 PST HINT: See C include file "ntstatus.h" for a
> description of the hexadecimal value.
> 2021-01-26 17:25:05 PST LOG: terminating any other active server processes
> 2021-01-26 17:25:05 PST WARNING: terminating connection because of
> crash of another server process
> 2021-01-26 17:25:05 PST DETAIL: The postmaster has commanded this
> server process to roll back the current transaction and exit, because
> another server process exited abnormally and possibly corrupted shared
> memory.
> 2021-01-26 17:25:05 PST HINT: In a moment you should be able to
> reconnect to the database and repeat your command.
> 2021-01-26 17:25:05 PST WARNING: terminating connection because of
> crash of another server process
> 2021-01-26 17:25:05 PST DETAIL: The postmaster has commanded this
> server process to roll back the current transaction and exit, because
> another server process exited abnormally and possibly corrupted shared
> memory.
> 2021-01-26 17:25:05 PST HINT: In a moment you should be able to
> reconnect to the database and repeat your command.
> 2021-01-26 17:25:05 PST WARNING: terminating connection because of
> crash of another server process
> 2021-01-26 17:25:05 PST DETAIL: The postmaster has commanded this
> server process to roll back the current transaction and exit, because
> another server process exited abnormally and possibly corrupted shared
> memory.
> 2021-01-26 17:25:05 PST HINT: In a moment you should be able to
> reconnect to the database and repeat your command.
> 2021-01-26 17:25:05 PST WARNING: terminating connection because of
> crash of another server process
> 2021-01-26 17:25:05 PST DETAIL: The postmaster has commanded this
> server process to roll back the current transaction and exit, because
> another server process exited abnormally and possibly corrupted shared
> memory.
> 2021-01-26 17:25:05 PST HINT: In a moment you should be able to
> reconnect to the database and repeat your command.
> 2021-01-26 17:25:05 PST WARNING: terminating connection because of
> crash of another server process
> 2021-01-26 17:25:05 PST DETAIL: The postmaster has commanded this
> server process to roll back the current transaction and exit, because
> another server process exited abnormally and possibly corrupted shared
> memory.
> 2021-01-26 17:25:05 PST HINT: In a moment you should be able to
> reconnect to the database and repeat your command.
> 2021-01-26 17:25:05 PST LOG: all server processes terminated;
> reinitializing
> 2021-01-26 17:25:05 PST LOG: database system was interrupted; last
> known up at 2021-01-26 17:21:05 PST
> 2021-01-26 17:25:07 PST LOG: startup process (PID 5376) was terminated
> by exception 0xC000013A
> 2021-01-26 17:25:07 PST HINT: See C include file "ntstatus.h" for a
> description of the hexadecimal value.
> 2021-01-26 17:25:07 PST LOG: aborting startup due to startup process
> failure
>
> Can anyone help me fix this so that Postgres will again start as a
> Windows service like it has been for the last 5 years, until last night?
>
> Thank you.
>
> Lisa
>
>
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: lbruby1@protonmail.com
Subject: Re: Postgres 9.3 service no longer starts on Windows 8.1
In-Reply-To: <9208a120-caa2-7002-ee33-779fcc833a0c@protonmail.com>
References: <ac324c4d-7084-137a-55cb-d2e80df8a280@protonmail.com> <9208a120-caa2-7002-ee33-779fcc833a0c@protonmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox