-
Notifications
You must be signed in to change notification settings - Fork 133
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
Docker images later than 19.09 fail to initialize/migrate database without modification (with workaround(s)) #575
Comments
I tried also -e "UWSGI_MASTER=true" and it worked the first time, but not any more (don't even know if that is a recognized variable). This could be an intermittent problem... |
I am having the same issue. Starting the docker with defaults and the startup script fails.. |
I spent a little bit of time debugging this, too, in a different context. It has to do with the recent full migrate changes (so, instead of incremental migrations, on a fresh database we just go 0->~160 at once). I'll try to see if I can build a test case and fix this upstream. |
Once upon a time I was able to circumvent this issue by initializing with docker-galaxy-stable 19.09, then upgrading to 20.05 but no more; |
Ditto. I'm trying to launch 20.09. Not only did it not start migrating the DB automatically, but when I try to run the upgrade manually, I get:
|
@dannon Any progress on this? |
@chambm It looks like it didn't get xref'd here, but I think the root issue was resolved -- I will try to look for it (so we can make sure that fix is included in the appropriate branches for this). |
@chambm galaxyproject/galaxy#11753 is what I was thinking of; when starting up |
Is |
@chambm Yeah, should be an easy tweak and I would guess it's worth a try to get these older releases working correctly. Regarding relevance, I did see that the ansible-galaxy roles were updated to drop the create_db.sh usage, here: galaxyproject/galaxy#9787, so I assume the intended path forward is towards ultimately dropping it. |
I have not been able to do clean installs of 20+ versions of the galaxy docker as the initial setup invariably fails when setting up or upgrading the database. It works for upgrading already running 19+ versions, with manual upgrade of the db.
The problem may be related to the migration to python3 (compatibility issues with sqlalchemy / -migrate?), as the previously clean db upgrade process is now strewn with complaints of duplicate tables, columns, keys, etc.
The duplication complaints made me suspect of competing concurrent processes, and I found that starting with:
-e "GALAXY_HANDLER_NUMPROCS=1" will "cure" the problem. However, even with this workaround, the database migration apparently restarts several times and errors are logged, so this looks more like a band-aid than a solution. I'm afraid it is as far as I can go. Suggestions?
screengrab of failed install log
screengrab of successful install log
PS: tests done on a xen virtual machine with plenty of memory and cores, ubuntu 20.04 + docker 19.3
The text was updated successfully, but these errors were encountered: