← Back to team overview

credativ team mailing list archive

[Bug 1265463] Re: Can not upgrade database with password only with ident authentication

 

Thanks, that's indeed not covered at the moment.

As this is only the cloning part, you still should be able to run the
migration(s) with the -I switch. But then of course you'll have to take
care of making the copy yourself, as you certainly don't want to run the
migration on the original database.

-- 
You received this bug notification because you are a member of
OpenUpgrade Committers, which is subscribed to OpenUpgrade Addons.
https://bugs.launchpad.net/bugs/1265463

Title:
  Can not upgrade database with password only with ident authentication

Status in OpenUpgrade Addons:
  New

Bug description:
  When trying to upgrade a server configuration where the postgress
  database is secured by a password (not approached through ident/peer
  authentication) an exception occurs:

  openeyedev@laptop01:~/var/oe_repo/checkouts/openupgrade-server-7.0/openupgrade-server-7.0/scripts$ ./migrate.py -C ~/var/projects/oe_dapper/project.cfg -D oe_dapper_dev -R "7.0"
  No handlers could be found for logger "bzr"
  getting lp:openerp-web/7.0
  getting lp:openupgrade-addons/7.0
  getting lp:openupgrade-server/7.0
  copying database oe_dapper_dev to oe_dapper_dev_migrated...
  Traceback (most recent call last):
    File "./migrate.py", line 188, in <module>
      conn=psycopg2.connect(database=db_name, user=db_user)
    File "/usr/lib/python2.7/dist-packages/psycopg2/__init__.py", line 179, in connect
      connection_factory=connection_factory, async=async)
  psycopg2.OperationalError: FATAL:  Peer authentication failed for user "oe_dapper_dev"

To manage notifications about this bug go to:
https://bugs.launchpad.net/openupgrade-addons/+bug/1265463/+subscriptions


References