pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedPg Upgrade failing as it is not able to start and stop server properly
5+ messages / 4 participants
[nested] [flat]
* Pg Upgrade failing as it is not able to start and stop server properly
@ 2017-12-21 09:33 kiran gadamsetty <kirankumar.gadamsetty@gmail.com>
0 siblings, 1 reply; 5+ messages in thread
From: kiran gadamsetty @ 2017-12-21 09:33 UTC (permalink / raw)
To: pgsql-general; +Cc: Guru Prashanth Thanakodi <tguru.ece@gmail.com>
Hi,
While upgrading the PostgreSQL database from 9.1.4 to 9.6.4 version on
windows 2012 server, Pg_upgrade is failing as postgre service start and
stop are failing because of time outs. I got the information as using -m
immediate mode with solve the problem, but we are interested to know the
root cause of this issue.
Without -m immediate, the server start and stop commands will simply wait,
till command timeouts and they fail.
There is no load on the server that could cause a performance issue.
Below is the failure snippet from pg_upgrade_internal.log file.
Checking for presence of required libraries ok
Checking database user is the install user executing:
SELECT rolsuper, oid FROM pg_catalog.pg_roles WHERE rolname = current_user
AND rolname !~ '^pg_'
executing: SELECT COUNT(*) FROM pg_catalog.pg_roles WHERE rolname !~ '^pg_'
ok
Checking for prepared transactions executing:
SELECT * FROM pg_catalog.pg_prepared_xacts
ok
If pg_upgrade fails after this point, you must re-initdb the
new cluster before continuing.
Performing Upgrade
------------------
Analyzing all rows in the new cluster
"c:\EMC\AppSync\jboss\datastore_96\engine\bin/vacuumdb" --port 50432
--username ^"apollosuperuser^" --all --analyze --verbose >>
"pg_upgrade_utility.log" 2>&1
ok
Freezing all rows on the new cluster
"c:\EMC\AppSync\jboss\datastore_96\engine\bin/vacuumdb" --port 50432
--username ^"apollosuperuser^" --all --freeze --verbose >>
"pg_upgrade_utility.log" 2>&1
*failure*
"c:\EMC\AppSync\jboss\datastore_96\engine\bin/pg_ctl" -w -D
"c:\EMC\AppSync\jboss\datastore_96\data" -o "" -m fast stop >>
"pg_upgrade_utility.log" 2>&1
Below are the pg_upgrade logs pertaining to the failure. Please suggest any
solutions to fix this issue.
Regards,
Kiran G
Attachments:
pg_upgrade_internal.log (application/octet-stream, 219.5K) download
pg_upgrade_server.log (application/octet-stream, 2.0K) download
pg_upgrade_server_start.log (application/octet-stream, 3.1K) download
pg_upgrade_utility.log (application/octet-stream, 221.1K) download
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Pg Upgrade failing as it is not able to start and stop server properly
@ 2018-01-04 08:19 kiran gadamsetty <kirankumar.gadamsetty@gmail.com>
parent: kiran gadamsetty <kirankumar.gadamsetty@gmail.com>
0 siblings, 1 reply; 5+ messages in thread
From: kiran gadamsetty @ 2018-01-04 08:19 UTC (permalink / raw)
To: pgsql-general; +Cc: Guru Prashanth Thanakodi <tguru.ece@gmail.com>
Hi All,
Any help on this issue?
Regards,
Kiran G
On Thu, Dec 21, 2017 at 3:03 PM, kiran gadamsetty <
kirankumar.gadamsetty@gmail.com> wrote:
> Hi,
>
> While upgrading the PostgreSQL database from 9.1.4 to 9.6.4 version on
> windows 2012 server, Pg_upgrade is failing as postgre service start and
> stop are failing because of time outs. I got the information as using -m
> immediate mode with solve the problem, but we are interested to know the
> root cause of this issue.
> Without -m immediate, the server start and stop commands will simply wait,
> till command timeouts and they fail.
> There is no load on the server that could cause a performance issue.
>
> Below is the failure snippet from pg_upgrade_internal.log file.
>
>
> Checking for presence of required libraries ok
> Checking database user is the install user executing:
> SELECT rolsuper, oid FROM pg_catalog.pg_roles WHERE rolname = current_user
> AND rolname !~ '^pg_'
> executing: SELECT COUNT(*) FROM pg_catalog.pg_roles WHERE rolname !~ '^pg_'
> ok
> Checking for prepared transactions executing:
> SELECT * FROM pg_catalog.pg_prepared_xacts
> ok
>
> If pg_upgrade fails after this point, you must re-initdb the
> new cluster before continuing.
>
> Performing Upgrade
> ------------------
> Analyzing all rows in the new cluster
> "c:\EMC\AppSync\jboss\datastore_96\engine\bin/vacuumdb" --port 50432
> --username ^"apollosuperuser^" --all --analyze --verbose >>
> "pg_upgrade_utility.log" 2>&1
> ok
> Freezing all rows on the new cluster
> "c:\EMC\AppSync\jboss\datastore_96\engine\bin/vacuumdb" --port 50432
> --username ^"apollosuperuser^" --all --freeze --verbose >>
> "pg_upgrade_utility.log" 2>&1
>
> *failure*
> "c:\EMC\AppSync\jboss\datastore_96\engine\bin/pg_ctl" -w -D
> "c:\EMC\AppSync\jboss\datastore_96\data" -o "" -m fast stop >>
> "pg_upgrade_utility.log" 2>&1
>
>
>
> Below are the pg_upgrade logs pertaining to the failure. Please suggest
> any solutions to fix this issue.
>
> Regards,
> Kiran G
>
>
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Pg Upgrade failing as it is not able to start and stop server properly
@ 2018-01-04 15:24 Bruce Momjian <bruce@momjian.us>
parent: kiran gadamsetty <kirankumar.gadamsetty@gmail.com>
0 siblings, 1 reply; 5+ messages in thread
From: Bruce Momjian @ 2018-01-04 15:24 UTC (permalink / raw)
To: kiran gadamsetty <kirankumar.gadamsetty@gmail.com>; +Cc: pgsql-general; Guru Prashanth Thanakodi <tguru.ece@gmail.com>
On Thu, Jan 4, 2018 at 01:49:17PM +0530, kiran gadamsetty wrote:
> While upgrading the PostgreSQL database from 9.1.4 to 9.6.4 version on
> windows 2012 server, Pg_upgrade is failing as postgre service start and
> stop are failing because of time outs. I got the information as using -m
> immediate mode with solve the problem, but we are interested to know the
> root cause of this issue.
> Without -m immediate, the server start and stop commands will simply wait,
> till command timeouts and they fail.
> There is no load on the server that could cause a performance issue.
...
> Freezing all rows on the new cluster "c:\EMC\AppSync
> \jboss\datastore_96\engine\bin/vacuumdb" --port 50432 --username ^
> "apollosuperuser^" --all --freeze --verbose >> "pg_upgrade_utility.log" 2>&
> 1
>
> *failure*
> "c:\EMC\AppSync\jboss\datastore_96\engine\bin/pg_ctl" -w -D "c:\EMC\AppSync
> \jboss\datastore_96\data" -o "" -m fast stop >> "pg_upgrade_utility.log" 2>
> &1
It appears the freeze operation is failing, and I have no idea what
would cause that.
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ As you are, so once was I. As I am, so you will be. +
+ Ancient Roman grave inscription +
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Pg Upgrade failing as it is not able to start and stop server properly
@ 2018-01-08 14:20 Guru Prashanth Thanakodi <tguru.ece@gmail.com>
parent: Bruce Momjian <bruce@momjian.us>
0 siblings, 1 reply; 5+ messages in thread
From: Guru Prashanth Thanakodi @ 2018-01-08 14:20 UTC (permalink / raw)
To: Bruce Momjian <bruce@momjian.us>; +Cc: kiran gadamsetty <kirankumar.gadamsetty@gmail.com>; pgsql-general
Hi All
pg_ctl start and stop commands are hanging in a Windows environment. Can i
enable some debug logs to understand the root cause of the issue?
Thanks
Guru
Thanks,
Guru
On Thu, Jan 4, 2018 at 8:54 PM, Bruce Momjian <bruce@momjian.us> wrote:
> On Thu, Jan 4, 2018 at 01:49:17PM +0530, kiran gadamsetty wrote:
> > While upgrading the PostgreSQL database from 9.1.4 to 9.6.4 version
> on
> > windows 2012 server, Pg_upgrade is failing as postgre service start
> and
> > stop are failing because of time outs. I got the information as
> using -m
> > immediate mode with solve the problem, but we are interested to know
> the
> > root cause of this issue.
> > Without -m immediate, the server start and stop commands will simply
> wait,
> > till command timeouts and they fail.
> > There is no load on the server that could cause a performance issue.
> ...
> > Freezing all rows on the new cluster
> "c:\EMC\AppSync
> > \jboss\datastore_96\engine\bin/vacuumdb" --port 50432 --username ^
> > "apollosuperuser^" --all --freeze --verbose >>
> "pg_upgrade_utility.log" 2>&
> > 1
> >
> > *failure*
> > "c:\EMC\AppSync\jboss\datastore_96\engine\bin/pg_ctl" -w -D
> "c:\EMC\AppSync
> > \jboss\datastore_96\data" -o "" -m fast stop >>
> "pg_upgrade_utility.log" 2>
> > &1
>
> It appears the freeze operation is failing, and I have no idea what
> would cause that.
>
> --
> Bruce Momjian <bruce@momjian.us> http://momjian.us
> EnterpriseDB http://enterprisedb.com
>
> + As you are, so once was I. As I am, so you will be. +
> + Ancient Roman grave inscription +
>
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Pg Upgrade failing as it is not able to start and stop server properly
@ 2018-01-08 16:32 Tom Lane <tgl@sss.pgh.pa.us>
parent: Guru Prashanth Thanakodi <tguru.ece@gmail.com>
0 siblings, 0 replies; 5+ messages in thread
From: Tom Lane @ 2018-01-08 16:32 UTC (permalink / raw)
To: Guru Prashanth Thanakodi <tguru.ece@gmail.com>; +Cc: Bruce Momjian <bruce@momjian.us>; kiran gadamsetty <kirankumar.gadamsetty@gmail.com>; pgsql-general
Guru Prashanth Thanakodi <tguru.ece@gmail.com> writes:
> pg_ctl start and stop commands are hanging in a Windows environment. Can i
> enable some debug logs to understand the root cause of the issue?
You could try cranking log_min_messages all the way up to "debug5" in
postgresql.conf, but I'm not really sure if that will help much.
Is anything at all appearing in the postmaster log file now?
regards, tom lane
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2018-01-08 16:32 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-12-21 09:33 Pg Upgrade failing as it is not able to start and stop server properly kiran gadamsetty <kirankumar.gadamsetty@gmail.com>
2018-01-04 08:19 ` kiran gadamsetty <kirankumar.gadamsetty@gmail.com>
2018-01-04 15:24 ` Bruce Momjian <bruce@momjian.us>
2018-01-08 14:20 ` Guru Prashanth Thanakodi <tguru.ece@gmail.com>
2018-01-08 16:32 ` Tom Lane <tgl@sss.pgh.pa.us>
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