Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User mover fails migrating users with oauth_app_user_roles #14981

Closed
simon-contreras-deel opened this issue Jun 20, 2019 · 0 comments · Fixed by #14982
Closed

User mover fails migrating users with oauth_app_user_roles #14981

simon-contreras-deel opened this issue Jun 20, 2019 · 0 comments · Fixed by #14982
Assignees
Labels

Comments

@simon-contreras-deel
Copy link
Contributor

simon-contreras-deel commented Jun 20, 2019

After researching the case we have found the source of the problem.

In the import process we do:

  • create_db
  • create_org_oauth_app_user_roles
  • ...
  • grant_org_oauth_app_user_roles
  • ...

In create_org_oauth_app_user_roles we have the following error:

ERROR:  role "carto_oauth_app_xxx" already exists

And in the grant_org_oauth_app_user_roles:

ERROR:  role "carto_oauth_app_xxx" does not exist

The reason is: in the role creation we are using a db connection to the source database instead of the destination one.

Thanks @owayss for the help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant