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

Upon first run of Specify 7 with a Specify 6 database, an error occurrs #3626

Closed
grantfitzsimmons opened this issue Jun 16, 2023 · 3 comments · Fixed by #3628
Closed

Upon first run of Specify 7 with a Specify 6 database, an error occurrs #3626

grantfitzsimmons opened this issue Jun 16, 2023 · 3 comments · Fixed by #3628
Labels
1 - Request Improvements or extensions to existing behavior type:meta DevOps and workflow related

Comments

@grantfitzsimmons
Copy link
Member

{"exception": "ProgrammingError", "message": "1146", "data": "Table 'paleo.spuserpolicy' doesn't exist",

Migrations are never run the first time you run just-specify7 with a new Specify 6 database. We need to solve this so that users do not need to follow this guide each time they start using Specify 7– it gives a bad impression.

https://discourse.specifysoftware.org/t/upgrading-to-specify-7-7-http-500-error/733

@grantfitzsimmons grantfitzsimmons added 1 - Request Improvements or extensions to existing behavior pri:unknown labels Jun 16, 2023
@grantfitzsimmons
Copy link
Member Author

Oh, of course.

https://github.com/specify/specify7/#make-django_migrations

To run the django_migrations, the MASTER_USER credentials must be root temporarily. That is the real issue here.

Applies Specify schema changes to the database named in the settings. This step may fail if the master user configured in the settings does not have DDL privileges. Changing the MASTER_NAME and MASTER_PASSWORD settings to the MySQL root user will allow the changes to be applied. Afterward, the master user settings can be restored.

We need to include instructions in the docker-compose.yml file so that it's not so confusing.

@maxpatiiuk
Copy link
Member

Ben tried to fix some of these things in #1037

@grantfitzsimmons
Copy link
Member Author

Solved by #3628

@grantfitzsimmons grantfitzsimmons added the type:meta DevOps and workflow related label Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 - Request Improvements or extensions to existing behavior type:meta DevOps and workflow related
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants