Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l4avg-0000xm-Cw for pgsql-general@arkaria.postgresql.org; Wed, 27 Jan 2021 02:51:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l4avc-00072P-Hk for pgsql-general@arkaria.postgresql.org; Wed, 27 Jan 2021 02:51:32 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l4avc-00072I-6m for pgsql-general@lists.postgresql.org; Wed, 27 Jan 2021 02:51:32 +0000 Received: from mail-40136.protonmail.ch ([185.70.40.136]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l4avU-0003rV-5c for pgsql-general@lists.postgresql.org; Wed, 27 Jan 2021 02:51:30 +0000 Date: Wed, 27 Jan 2021 02:51:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1611715880; bh=SantwqVTyt71RBFh2jhPKlJ0IHnjKzTjvHq0AuloLR8=; h=Date:To:From:Reply-To:Subject:In-Reply-To:References:From; b=Ptkg8hyTaf9B2Fxg2oZhx7tj/5Ke8ss7i6aDGCYwo1a18H79yChKdEk4TjxXF1PG6 rqQpPzB0Mao6BPmwQZlQXI3Ej1E9vfkD8hnUzbhHzrQOOS9wlQZ3DYvRh8dDWkn5mf N2cI98JgkAUrMFWLAz37CmyQg4GQnOEDTcDdkZNQ= To: pgsql-general@lists.postgresql.org From: Lisa Ruby Reply-To: Lisa Ruby Subject: Re: Postgres 9.3 service no longer starts on Windows 8.1 Message-ID: <9208a120-caa2-7002-ee33-779fcc833a0c@protonmail.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.7 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Don't know why this so often happens, but it does. I'll look for hours=20 for a solution to a problem, finally give up and ask for help, and then=20 find a solution. I just solved my problem. I started looking at permissions on the=20 database location folders. Saw that NETWORK SERVICE had full security=20 permissions for the 9.3 folder in the path=20 "D:\mysoftware\PostgreSQL\9.3" and also had full permissions to folders=20 underneath 9.3. It had no permissions for the PostgreSQL folder. For=20 grins I added it to the security settings for the the PostgreSQL folder=20 and gave it full permissions. After doing that starting Postgres as a=20 Windows service is working again. No idea if those permissions were=20 previously on the PostgreSQL folder and somehow disappeared, but adding=20 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 > -w,=C2=A0 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:=C2=A0 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:=C2=A0 database system was shut down at > 2021-01-26 17:20:31 PST > 2021-01-26 17:21:05 PST LOG:=C2=A0 MultiXact member wraparound protection= s > are now enabled > 2021-01-26 17:21:05 PST LOG:=C2=A0 database system is ready to accept con= nections > 2021-01-26 17:21:05 PST LOG:=C2=A0 autovacuum launcher started > 2021-01-26 17:25:05 PST LOG:=C2=A0 server process (PID 2372) was terminat= ed > by exception 0xC000013A > 2021-01-26 17:25:05 PST DETAIL:=C2=A0 Failed process was running: UPDATE > public.clusteredjob SET=C2=A0 VERSION =3D $1 ,=C2=A0 NEXT_RUN =3D $2= =C2=A0 WHERE JOB_ID=3D$3 > AND VERSION=3D$4 > 2021-01-26 17:25:05 PST HINT:=C2=A0 See C include file "ntstatus.h" for a > description of the hexadecimal value. > 2021-01-26 17:25:05 PST LOG:=C2=A0 terminating any other active server pr= ocesses > 2021-01-26 17:25:05 PST WARNING:=C2=A0 terminating connection because of > crash of another server process > 2021-01-26 17:25:05 PST DETAIL:=C2=A0 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:=C2=A0 In a moment you should be able to > reconnect to the database and repeat your command. > 2021-01-26 17:25:05 PST WARNING:=C2=A0 terminating connection because of > crash of another server process > 2021-01-26 17:25:05 PST DETAIL:=C2=A0 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:=C2=A0 In a moment you should be able to > reconnect to the database and repeat your command. > 2021-01-26 17:25:05 PST WARNING:=C2=A0 terminating connection because of > crash of another server process > 2021-01-26 17:25:05 PST DETAIL:=C2=A0 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:=C2=A0 In a moment you should be able to > reconnect to the database and repeat your command. > 2021-01-26 17:25:05 PST WARNING:=C2=A0 terminating connection because of > crash of another server process > 2021-01-26 17:25:05 PST DETAIL:=C2=A0 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:=C2=A0 In a moment you should be able to > reconnect to the database and repeat your command. > 2021-01-26 17:25:05 PST WARNING:=C2=A0 terminating connection because of > crash of another server process > 2021-01-26 17:25:05 PST DETAIL:=C2=A0 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:=C2=A0 In a moment you should be able to > reconnect to the database and repeat your command. > 2021-01-26 17:25:05 PST LOG:=C2=A0 all server processes terminated; > reinitializing > 2021-01-26 17:25:05 PST LOG:=C2=A0 database system was interrupted; last > known up at 2021-01-26 17:21:05 PST > 2021-01-26 17:25:07 PST LOG:=C2=A0 startup process (PID 5376) was termina= ted > by exception 0xC000013A > 2021-01-26 17:25:07 PST HINT:=C2=A0 See C include file "ntstatus.h" for a > description of the hexadecimal value. > 2021-01-26 17:25:07 PST LOG:=C2=A0 aborting startup due to startup proces= s > 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 > > >