Select to view content in your preferred language

Portal 10.9.1 to 11.2 Upgrade Postgres Failure

3769
23
Jump to solution
03-05-2024 10:51 AM
Labels (1)
RandyBonds_Jr_
Frequent Contributor

We have repeatedly tried to upgrade Portal 10.9.1 to 11.2 with no luck. We've opened a support ticket with no solution as of yet. 

The process:

  1. We take a backup
  2. We run the 11.2 setup, when prompted for the Windows Service Account, it is grayed out with what is the portal is currently running at (our_domain\!arcgis). We enter the password, etc, and everything is great.
  3. When on the next upgrade step (the web based part), the PostgreSQL upgrade fails, we see two items in the logs that seem to point to the issue:
    1. Copying old pg_xact to new server *failure* 
    2. FATAL: role "!arcgis" does not exist
Checking cluster versions                                   ok
Checking database user is the install user                  ok
Checking database connection settings                       ok
Checking for prepared transactions                          ok
Checking for system-defined composite types in user tables  ok
Checking for reg* data types in user tables                 ok
Checking for contrib/isn with bigint-passing mismatch       ok
Checking for user-defined encoding conversions              ok
Checking for user-defined postfix operators                 ok
Checking for incompatible polymorphic functions             ok
Creating dump of global objects                             ok
Creating dump of database schemas
  gwdb
  postgres
  template1
                                                            ok
Checking for presence of required libraries                 ok
Checking database user is the install user                  ok
Checking for prepared transactions                          ok
Checking for new cluster tablespace directories             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                       ok
Freezing all rows in the new cluster                        ok
Deleting files from new pg_xact                             ok
Copying old pg_xact to new server                           
*failure*

Consult the last few lines of "pg_upgrade_utility.log" for
the probable cause of the failure.
Failure, exiting

It appears that the copying failure is causing the issue of the incorrect user being used. Looks like it is defaulting to using the OS user when it later tries to start the DB. 

Anyone seen this?

0 Kudos
23 Replies
RandyBonds_Jr_
Frequent Contributor

We added a portaladmin account with the exact same username as the windows user (who is an admin on that server). For us, we used gisadmin as the username. I only say this because there is another issue with special characters, so you don't want to use those.

VickyS
by
Frequent Contributor

Thank you for this @RandyBonds_Jr_,  unfortunately it didn't work for us but I am posting on this thread as the log messages were similar and it may help others battling to upgrade!

The flags in the logs were:

  • Copying old pg_multixact/offsets to new server             *failure*
  • Consult the last few lines of "C:/arcgisportal/db/pg_upgrade_output.d/20250214T125322.811/log/pg_upgrade_utility.log" for the probable cause of the failure.

    • This file did not exist/was inaccessible by the service account.
  • Failed to upgrade the PostgreSQL from 14.5 to 15.5

  • FATAL: role "!arcgis" does not exist

This fix suggested in this post fixed it for us. 

Re: Portal upgrade issue - Esri Community

0 Kudos
sahook1
Occasional Contributor

Hi Team,

Any other work around without matching the portal admin account with service account?

I have similar issue while upgrading from 10.8.1 to 10.9.1 and the services are not starting after the upgrade.

0 Kudos
RandyBonds_Jr_
Frequent Contributor

The solution was marked, we had to adjust the account

0 Kudos