Good Day. This is my first post and I’m completely new to Galaxy (2 weeks) so please be gentle. I’ve been given the task to migrate a multiuser 3-year old Galaxy installed in 2016 to the latest Galaxy version and move from sqlite to PostgreSQL. It will run on Ubuntu and is about 1T in size after cleaning up old histories. The current Galaxy server hardware must be retired so we are investigating a virtual cloning environment as a long term archive solution for FDA reproducability (definitely open to other suggestions/approaches too).
In lieu of a virtual clone, I tried pgloader, SEQUEL, and even did a manual migration (painful) without success for the universe.sqlite file. A tool called “ESF Database Migration Toolkit” plus some manual fixes worked enough to get Galaxy to come up and appear functional for new analysis runs. However, when users login they can see their histories but get errors downloading historical datasets(see below). I see two options: build a fresh empty Galaxy install and have the users migrate their histories using the Galaxy app or I can try to fix the current errors. User confidence is low that the installation will be 100% working after observing the errors with historical data and given FDA dependencies I can understand this completely. Before I abandon the migration process I hope someone may have some high level guidance on the best route to take or notice something stupid I did like not copy something over.
The errors encountered are:
1) when trying to download their historical data on the newly migrated Galaxy they get: "could not display BAM file, error was: [Errno 2] could not open alignment file “:No such file or directory”. I checked the galaxy.log and it says something similar:
OSError: [Errno 2] No such file or directory: ‘’
[pid: 106775|app: 0|req: 70/84] 10.10.10.87 () {40 vars in 812 bytes} [Wed Jan 15 09:20:26 2020] GET /datasets/005c58e6d9301fed/display?to_ext=bam => generated 0 bytes in 26 msecs (HTTP/1.1 500) 1 headers in 63 bytes (0 switches on core 3)
To fix this I tried copying over the old ../galaxy/tool-data directory to the new instance at ../galaxy_app/tool-data. I was hoping this would bring with it all the data not stored in the DB that I migrated... but no go.
Do I need to migrate any other data/directories other than the universe.sqlite file?
2) While running manage_db.sh after postgres migration, the table "library_dataset_dataset_association_tag_association" failed to create so I manually created it as an empty table. If it was supposed to be populated during the manage_db.sh script, that may be a problem as well.
Sorry for the length.
Sincerely Derek