Discussion:
[GENERAL] My Postgresql is inaccessible in Windows 8.1
(too old to reply)
Edson F. Lidorio
2016-08-03 11:40:26 UTC
Permalink
Good Morning,

Constantly my Postgresql is inaccessible, recording the following
message in the log.
I'm using Windows 8.1 and PostgreSQL 9.5


2016-08-02 17:05:59 BRT FATAL: the database system is starting up
2016-08-02 17:05:59 BRT LOG: database system was not properly shut
down; automatic recovery in progress
2016-08-02 17:05:59 BRT LOG: invalid record length at 0/42C0148
2016-08-02 17:05:59 BRT LOG: redo is not required
2016-08-02 17:05:59 BRT LOG: MultiXact member wraparound protections
are now enabled
2016-08-02 17:05:59 BRT LOG: database system is ready to accept
connections
2016-08-02 17:06:00 BRT LOG: autovacuum launcher started

2016-08-03 08:18:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:19:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:20:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:21:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:22:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:23:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:24:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:26:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:28:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:30:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:31:45 BRT WARNING: worker took too long to start;
canceled


What can be wrong?
--
Sent via pgsql-general mailing list (pgsql-***@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
Adrian Klaver
2016-08-03 12:56:45 UTC
Permalink
Post by Edson F. Lidorio
Good Morning,
Constantly my Postgresql is inaccessible, recording the following
message in the log.
I'm using Windows 8.1 and PostgreSQL 9.5
2016-08-02 17:05:59 BRT FATAL: the database system is starting up
2016-08-02 17:05:59 BRT LOG: database system was not properly shut
down; automatic recovery in progress
2016-08-02 17:05:59 BRT LOG: invalid record length at 0/42C0148
2016-08-02 17:05:59 BRT LOG: redo is not required
2016-08-02 17:05:59 BRT LOG: MultiXact member wraparound protections
are now enabled
2016-08-02 17:05:59 BRT LOG: database system is ready to accept
connections
2016-08-02 17:06:00 BRT LOG: autovacuum launcher started
2016-08-03 08:18:44 BRT WARNING: worker took too long to start; canceled
2016-08-03 08:19:44 BRT WARNING: worker took too long to start; canceled
2016-08-03 08:20:44 BRT WARNING: worker took too long to start; canceled
2016-08-03 08:21:44 BRT WARNING: worker took too long to start; canceled
2016-08-03 08:22:44 BRT WARNING: worker took too long to start; canceled
2016-08-03 08:23:44 BRT WARNING: worker took too long to start; canceled
2016-08-03 08:24:44 BRT WARNING: worker took too long to start; canceled
2016-08-03 08:26:44 BRT WARNING: worker took too long to start; canceled
2016-08-03 08:28:44 BRT WARNING: worker took too long to start; canceled
2016-08-03 08:30:44 BRT WARNING: worker took too long to start; canceled
2016-08-03 08:31:45 BRT WARNING: worker took too long to start; canceled
What can be wrong?
There is some sort of resource constraint preventing Postgres from
handling all its requests.

So:

Do you have any additional extensions/modules installed in Postgres?

What are the hardware specifications for the machine, memory, CPU,
storage,etc?

What is the work load on the Postgres server?

What does the system show for load during this time?

What do the system logs show?
--
Adrian Klaver
***@aklaver.com
--
Sent via pgsql-general mailing list (pgsql-***@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
Kenneth Marshall
2016-08-03 13:06:39 UTC
Permalink
Post by Edson F. Lidorio
Good Morning,
Constantly my Postgresql is inaccessible, recording the following
message in the log.
I'm using Windows 8.1 and PostgreSQL 9.5
2016-08-02 17:05:59 BRT FATAL: the database system is starting up
2016-08-02 17:05:59 BRT LOG: database system was not properly shut
down; automatic recovery in progress
2016-08-02 17:05:59 BRT LOG: invalid record length at 0/42C0148
2016-08-02 17:05:59 BRT LOG: redo is not required
2016-08-02 17:05:59 BRT LOG: MultiXact member wraparound
protections are now enabled
2016-08-02 17:05:59 BRT LOG: database system is ready to accept
connections
2016-08-02 17:06:00 BRT LOG: autovacuum launcher started
2016-08-03 08:18:44 BRT WARNING: worker took too long to start;
canceled
...
What can be wrong?
Hi Edson,

Since it is Windows, have you checked your anti-virus engine setup.
They seem to like to insert themselves into everything by default.

Regards,
Ken
--
Sent via pgsql-general mailing list (pgsql-***@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
Edson F. Lidorio
2016-08-03 14:40:54 UTC
Permalink
Post by Adrian Klaver
Post by Edson F. Lidorio
Good Morning,
Constantly my Postgresql is inaccessible, recording the following
message in the log.
I'm using Windows 8.1 and PostgreSQL 9.5
2016-08-02 17:05:59 BRT FATAL: the database system is starting up
2016-08-02 17:05:59 BRT LOG: database system was not properly shut
down; automatic recovery in progress
2016-08-02 17:05:59 BRT LOG: invalid record length at 0/42C0148
2016-08-02 17:05:59 BRT LOG: redo is not required
2016-08-02 17:05:59 BRT LOG: MultiXact member wraparound protections
are now enabled
2016-08-02 17:05:59 BRT LOG: database system is ready to accept
connections
2016-08-02 17:06:00 BRT LOG: autovacuum launcher started
2016-08-03 08:18:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:19:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:20:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:21:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:22:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:23:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:24:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:26:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:28:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:30:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:31:45 BRT WARNING: worker took too long to start;
canceled
What can be wrong?
There is some sort of resource constraint preventing Postgres from
handling all its requests.
Do you have any additional extensions/modules installed in Postgres?
What are the hardware specifications for the machine, memory, CPU,
storage,etc?
What is the work load on the Postgres server?
What does the system show for load during this time?
What do the system logs show?
There is some sort of resource constraint preventing Postgres from
handling all its requests.
I did not find anything strange. This problem also occurs with Windows 7
64

So: Windows 8.1 Pro

Do you have any additional extensions/modules installed in Postgres?
I have, Default Installation

What are the hardware specifications for the machine, memory, CPU,
storage,etc?
Intel Core I5 CPU 3.00 GHZ 8GB memory

What is the work load on the Postgres server?
The workload for this server is small, only a web application with few
users.

What does the system show for load during this time?
Waiting time out to start the server

What do the system logs show?
2016-08-03 08:42:39 BRT FATAL: lock file "postmaster.pid" already
exists
2016-08-03 08:42:39 BRT TIP: Another postmaster (PID 2968) is running
under the data directory "C: / Program Files / PostgreSQL / 9.5 / data"?
--
Sent via pgsql-general mailing list (pgsql-***@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
Adrian Klaver
2016-08-03 15:23:11 UTC
Permalink
Post by Adrian Klaver
Post by Adrian Klaver
Post by Edson F. Lidorio
Good Morning,
Constantly my Postgresql is inaccessible, recording the following
message in the log.
I'm using Windows 8.1 and PostgreSQL 9.5
2016-08-02 17:05:59 BRT FATAL: the database system is starting up
2016-08-02 17:05:59 BRT LOG: database system was not properly shut
down; automatic recovery in progress
2016-08-02 17:05:59 BRT LOG: invalid record length at 0/42C0148
2016-08-02 17:05:59 BRT LOG: redo is not required
2016-08-02 17:05:59 BRT LOG: MultiXact member wraparound protections
are now enabled
2016-08-02 17:05:59 BRT LOG: database system is ready to accept
connections
2016-08-02 17:06:00 BRT LOG: autovacuum launcher started
2016-08-03 08:18:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:19:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:20:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:21:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:22:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:23:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:24:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:26:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:28:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:30:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:31:45 BRT WARNING: worker took too long to start;
canceled
What can be wrong?
There is some sort of resource constraint preventing Postgres from
handling all its requests.
Do you have any additional extensions/modules installed in Postgres?
What are the hardware specifications for the machine, memory, CPU,
storage,etc?
What is the work load on the Postgres server?
What does the system show for load during this time?
What do the system logs show?
There is some sort of resource constraint preventing Postgres from
handling all its requests.
I did not find anything strange. This problem also occurs with Windows 7 64
So: Windows 8.1 Pro
Do you have any additional extensions/modules installed in Postgres?
I have, Default Installation
What are the hardware specifications for the machine, memory, CPU,
storage,etc?
Intel Core I5 CPU 3.00 GHZ 8GB memory
What is the work load on the Postgres server?
The workload for this server is small, only a web application with few
users.
What does the system show for load during this time?
Waiting time out to start the server
What do the system logs show?
2016-08-03 08:42:39 BRT FATAL: lock file "postmaster.pid" already exists
2016-08-03 08:42:39 BRT TIP: Another postmaster (PID 2968) is running
under the data directory "C: / Program Files / PostgreSQL / 9.5 / data"?
Well this looks like the Postgres log and it is showing that you are
trying to start Postgres when there is already another instance of
Postgres running.

What does the Task Manager show is running?

When I was talking about system logs I meant the OS logs, I was not
clear on that point.
--
Adrian Klaver
***@aklaver.com
--
Sent via pgsql-general mailing list (pgsql-***@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
Melvin Davidson
2016-08-03 15:47:26 UTC
Permalink
Post by Adrian Klaver
Post by Adrian Klaver
Post by Adrian Klaver
Post by Edson F. Lidorio
Good Morning,
Constantly my Postgresql is inaccessible, recording the following
message in the log.
I'm using Windows 8.1 and PostgreSQL 9.5
2016-08-02 17:05:59 BRT FATAL: the database system is starting up
2016-08-02 17:05:59 BRT LOG: database system was not properly shut
down; automatic recovery in progress
2016-08-02 17:05:59 BRT LOG: invalid record length at 0/42C0148
2016-08-02 17:05:59 BRT LOG: redo is not required
2016-08-02 17:05:59 BRT LOG: MultiXact member wraparound protections
are now enabled
2016-08-02 17:05:59 BRT LOG: database system is ready to accept
connections
2016-08-02 17:06:00 BRT LOG: autovacuum launcher started
2016-08-03 08:18:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:19:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:20:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:21:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:22:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:23:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:24:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:26:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:28:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:30:44 BRT WARNING: worker took too long to start;
canceled
2016-08-03 08:31:45 BRT WARNING: worker took too long to start;
canceled
What can be wrong?
There is some sort of resource constraint preventing Postgres from
handling all its requests.
Do you have any additional extensions/modules installed in Postgres?
What are the hardware specifications for the machine, memory, CPU,
storage,etc?
What is the work load on the Postgres server?
What does the system show for load during this time?
What do the system logs show?
Post by Edson F. Lidorio
There is some sort of resource constraint preventing Postgres from
handling all its requests.
I did not find anything strange. This problem also occurs with Windows 7
64
So: Windows 8.1 Pro
Do you have any additional extensions/modules installed in Postgres?
I have, Default Installation
What are the hardware specifications for the machine, memory, CPU,
storage,etc?
Intel Core I5 CPU 3.00 GHZ 8GB memory
What is the work load on the Postgres server?
The workload for this server is small, only a web application with few
users.
What does the system show for load during this time?
Waiting time out to start the server
What do the system logs show?
2016-08-03 08:42:39 BRT FATAL: lock file "postmaster.pid" already exists
2016-08-03 08:42:39 BRT TIP: Another postmaster (PID 2968) is running
under the data directory "C: / Program Files / PostgreSQL / 9.5 / data"?
Well this looks like the Postgres log and it is showing that you are
trying to start Postgres when there is already another instance of Postgres
running.
What does the Task Manager show is running?
When I was talking about system logs I meant the OS logs, I was not clear
on that point.
--
Adrian Klaver
--
http://www.postgresql.org/mailpref/pgsql-general
*> 2016-08-02 17:05:59 BRT LOG: database system was not properly shut>
down; automatic recovery in progress<2016-08-03 08:42:39 BRT FATAL: lock
file "postmaster.pid" already exists>2016-08-03 08:42:39 BRT TIP: Another
postmaster (PID 2968) is running under the data directory "C: / Program
Post by Adrian Klaver
Files / PostgreSQL / 9.5 / data"?These errors point to the source of your
problem. When the database is shutdown imporperly(as in pulling the plug or
manual power down), you often get left with the postmaster.pid file not
beeing deleted.So just go ahead and delete
/PostgreSQL/9.5/data/postmaster.pid and you can then restart the PostgreSQL
service.*
--
*Melvin Davidson*
I reserve the right to fantasize. Whether or not you
wish to share my fantasy is entirely up to you.
Adrian Klaver
2016-08-03 17:01:59 UTC
Permalink
Post by Adrian Klaver
Well this looks like the Postgres log and it is showing that you are
trying to start Postgres when there is already another instance of
Postgres running.
What does the Task Manager show is running?
When I was talking about system logs I meant the OS logs, I was not
clear on that point.
--
Adrian Klaver
--
http://www.postgresql.org/mailpref/pgsql-general
*> 2016-08-02 17:05:59 BRT LOG: database system was not properly shut
Post by Edson F. Lidorio
down; automatic recovery in progress
<2016-08-03 08:42:39 BRT FATAL: lock file "postmaster.pid" already exists
Post by Edson F. Lidorio
2016-08-03 08:42:39 BRT TIP: Another postmaster (PID 2968) is running
under the data directory "C: / Program >Files / PostgreSQL / 9.5 / data"?
These errors point to the source of your problem. When the database is
shutdown imporperly
(as in pulling the plug or manual power down), you often get left with
the postmaster.pid file not beeing deleted.
Or Postgres is actually running and doing the below would not be good.
Post by Adrian Klaver
So just go ahead and delete /PostgreSQL/9.5/data/postmaster.pid and you
can then restart the PostgreSQL service.
It is a good idea to verify before deleting.
Post by Adrian Klaver
*
--
*Melvin Davidson*
I reserve the right to fantasize. Whether or not you
wish to share my fantasy is entirely up to you.
--
Adrian Klaver
***@aklaver.com
--
Sent via pgsql-general mailing list (pgsql-***@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
melvin6925
2016-08-03 17:15:10 UTC
Permalink
If Postgresql were running, then he would have not had the problem. Would he?


Sent via the Samsung Galaxy S® 6, an AT&T 4G LTE smartphone
     Well this looks like the Postgres log and it is showing that you are
     trying to start Postgres when there is already another instance of
     Postgres running.
     What does the Task Manager show is running?
     When I was talking about system logs I meant the OS logs, I was not
     clear on that point.
     --
     Adrian Klaver
     --
     http://www.postgresql.org/mailpref/pgsql-general
*> 2016-08-02 17:05:59 BRT LOG:  database system was not properly shut
Post by Edson F. Lidorio
down; automatic recovery in progress
<2016-08-03 08:42:39 BRT FATAL:  lock file "postmaster.pid" already exists
Post by Edson F. Lidorio
2016-08-03 08:42:39 BRT TIP: Another postmaster (PID 2968) is running
under the data directory "C: / Program >Files / PostgreSQL / 9.5 / data"?
These errors point to the source of your problem. When the database is
shutdown imporperly
(as in pulling the plug or manual power down), you often get left with
the postmaster.pid file not beeing deleted.
Or Postgres is actually running and doing the below would not be good.
So just go ahead and delete /PostgreSQL/9.5/data/postmaster.pid and you
can then restart the PostgreSQL service.
It is a good idea to verify before deleting.
*
--
*Melvin Davidson*
I reserve the right to fantasize.  Whether or not you
wish to share my fantasy is entirely up to you.
--
Adrian Klaver
***@aklaver.com
Adrian Klaver
2016-08-03 17:23:09 UTC
Permalink
Post by melvin6925
If Postgresql were running, then he would have not had the problem.
Would he?
Except the original post was about Postgres running, but having periods
of slow down/inaccessibility. There was a later log entry showing the
pid conflict. Since I am not sure how we got from A to B and what the
current status is I would be hesitant to suggest just pulling a lock
file out from under what could be a running service. The effort to check
is negligible in relation to the benefits that accrue.
Post by melvin6925
Sent via the Samsung Galaxy S® 6, an AT&T 4G LTE smartphone
-------- Original message --------
Date: 8/3/16 13:01 (GMT-05:00)
Subject: Re: [GENERAL] My Postgresql is inaccessible in Windows 8.1
Post by Adrian Klaver
Well this looks like the Postgres log and it is showing that you are
trying to start Postgres when there is already another instance of
Postgres running.
What does the Task Manager show is running?
When I was talking about system logs I meant the OS logs, I was not
clear on that point.
--
Adrian Klaver
--
http://www.postgresql.org/mailpref/pgsql-general
*> 2016-08-02 17:05:59 BRT LOG: database system was not properly shut
Post by Edson F. Lidorio
down; automatic recovery in progress
<2016-08-03 08:42:39 BRT FATAL: lock file "postmaster.pid" already exists
Post by Edson F. Lidorio
2016-08-03 08:42:39 BRT TIP: Another postmaster (PID 2968) is running
under the data directory "C: / Program >Files / PostgreSQL / 9.5 / data"?
These errors point to the source of your problem. When the database is
shutdown imporperly
(as in pulling the plug or manual power down), you often get left with
the postmaster.pid file not beeing deleted.
Or Postgres is actually running and doing the below would not be good.
Post by Adrian Klaver
So just go ahead and delete /PostgreSQL/9.5/data/postmaster.pid and you
can then restart the PostgreSQL service.
It is a good idea to verify before deleting.
Post by Adrian Klaver
*
--
*Melvin Davidson*
I reserve the right to fantasize. Whether or not you
wish to share my fantasy is entirely up to you.
--
Adrian Klaver
--
Adrian Klaver
***@aklaver.com
--
Sent via pgsql-general mailing list (pgsql-***@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
Loading...