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

SQL IntegrityError #41

Open
bernt-matthias opened this issue Feb 28, 2017 · 1 comment
Open

SQL IntegrityError #41

bernt-matthias opened this issue Feb 28, 2017 · 1 comment

Comments

@bernt-matthias
Copy link

bernt-matthias commented Feb 28, 2017

Installation using the bootstrap user fails when the role is executed multiple times (when boostrap user creation and deletion is yes).

During the task Create Galaxy bootstrap user with the following exception is raised:

sqlalchemy.exc.IntegrityError: (psycopg2.IntegrityError) duplicate key value violates unique constraint "ix_role_name"\n [SQL: 'INSERT INTO role (create_time, update_time, name, description, type, deleted) VALUES (%(create_time)s, %(update_time)s, %(name)s, %(description)s, %(type)s, %(deleted)s) RETURNING role.id'

The problem is that manage_bootstrap_user.py (but I guess the problem is deeper) does not delete the role which is created with the user.

@bernt-matthias
Copy link
Author

I have now a workaround:

galaxy_tools_create_bootstrap_user: yes
galaxy_tools_delete_bootstrap_user: no

and have modified the task that is managing the bootstrap user such that the admin_user variable is reseted always (even if galaxy_tools_delete_bootstrap_user is no).

If wanted I could create a pull request.

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

No branches or pull requests

1 participant