Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Auth error when migrating from MySQL

Auth error when migrating from MySQL

Added by Hayley IT over 5 years ago

Hello,

I am struggling to migrate our OpenProject DB from MySQL to PostgreSQL (have just upgraded from v9 to v10 so am forced to do so).

I am following the guide here: https://docs.openproject.org/installation-and-operations/misc/packaged-postgresql-migration/

I have set the PSQL DB credentials correctly:

DATABASE_URL=postgresql://openproject:testpass@localhost/openproject

If I log in with the creds, it's fine:

[root@g000027 config]# psql --username=openproject --password                                                                                                                                                                                                           
Password for user openproject: 
psql (9.5.20)
Type "help" for help.

openproject=>

But, when I run the migration tool:

[root@g000027 config]# sudo openproject run ./docker/mysql-to-postgres/bin/migrate-mysql-to-postgres
Migrating database from MySQL to PostgreSQL.

Import
  MySQL database
    mysql://openproject:REDACTED@127.0.0.1:3306/openproject
  into Postgres database 
    postgresql://openproject:REDACTED@localhost/openproject
  ?
WARNING: This resets the given Postgres database.

Y/n y
Resetting target database...
psql: FATAL:  Ident authentication failed for user "openproject"
[root@g000027 config]#

How/why is the authentication failing when I've manually tested that it's correct?

Please help! My OpenProject service is shafted at the moment because of this.

Thank you!

P.S. I am rubbish with PostgreSQL


Replies (2)

RE: Auth error when migrating from MySQL - Added by Tim Ingalls over 4 years ago

Did you find a solution to this issue? I am having the same problem.

RE: Auth error when migrating from MySQL - Added by Will Griffin over 4 years ago

You could try temporarily trusting the openproject user by editing the postgresql config file pg_hba.conf.  For example, on ubuntu 20.04 runnigng postgres 12:

sudo nano /etc/postgresql/12/main/pg_hba.conf

add or edit the line to trust the local openproject user:

local all openproject trust

...then restarting postgresql:
sudo systemctl restart postgresql

  • (1 - 2/2)
Loading...