-
-
Notifications
You must be signed in to change notification settings - Fork 671
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
No automatic application of DB migrations on updating to 0.15.1 #7247
Comments
Well, guess what. I ran
...and of course it fixed the issue. Now, was it a one-off glitch in my specific instance, or there is something preventing migrations from running automatically on updating from 0.14(.4) to 0.15(.1), despite the respective env variable is set? Has anyone else encountered this? If not, then I guess the issue can be considered resolved/unreproducible. |
@shapirus an interesting issue. Is the background worker container up and running? When booting the server, if |
It is. I think I did watch its output during some time after updating the docker image tag (or rather tags: for server and worker), and now I think I didn't see any migrations related output. Actually I still have my old 0.14.4 db backed up, so I may try to reproduce it. Will check when I have time. |
If you can run some further tests that would be very useful! |
@shapirus is this still reproducible in the latest release 0.15.3? |
Unfortunately I've had no chance to test it yet. @matmair were there any database schema changes between 0.15.1 and 0.15.3? If there were, then testing it becomes trivial: I will simply have to update my deployment from 0.15.1 to 0.15.3 and see if the migrations will run, and in that case I can do it tomorrow. |
An important note: I have just noticed that the old 0.14.4 version of the inventree image was still specified for the worker in the docker-compose file, and I only updated the server. Facepalm! I am not sure whether that was the root cause of the issue, but it may very well be so! Either way, I am now going to upgrade both the server (from 0.15.1) and worker (from 0.14.4) images to 0.15.3 and see what happens. |
So yes:
Indeed, it's the worker that is responsible for running the migrations. No surprise that they did not run in my case. Such a silly mistake to update one image but not the other. I believe the issue can be considered resolved now. |
Glad you got it worked out |
Please verify that this bug has NOT been raised before.
Describe the bug*
After updating from 0.14.4 to 0.15.1, opening a part page results in an error 500; the django error page says the following:
I believe a traceback isn't necessary, but please let me know if it is.
It looks like a missed db migration, but I have verified that
INVENTREE_AUTO_UPDATE
is set to "true" (string value) in my deployment (specifically, via an env file included via theenv_file
docker_compose parameter).update: yes they did not run, see later comments.
Steps to Reproduce
I can't reproduce it on the demo site, so it's either fixed in 0.16.0-dev, or the necessary migration failed to run on my instance even though the auto update flag is set.
Expected behaviour
no exceptions.
Deployment Method
Version Information
Please verify if you can reproduce this bug on the demo site.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: