DigitalSlideArchive / digital_slide_archive

The official deployment of the Digital Slide Archive and HistomicsTK.
https://digitalslidearchive.github.io
Apache License 2.0
110 stars 50 forks source link

Asssetstore migration #188

Closed ds2268 closed 2 years ago

ds2268 commented 2 years ago

I have an existing DSA employment (.dsa/) on HDD and would like to move deployment to another filesystem location on SSD. I have copied .dsa/ folder alltogether to the new location and re-deployed DSA with new --asssetstore value, but it didn't work -collections with samples were empty. I suspect that that are some absolute paths to the actual data in MongoDB which prevent from directly moving the images/assetstore around? How can I achieve that?

manthey commented 2 years ago

Assuming you are using the deploy_docker.py script, there are three different things mounted to the ~/.dsa directory -- assetstore, db, and logs. If you moved the entire ~/.dsa directory, You need to override all three: --assetstore=<new dir>/assetstore --db=<new dir>/db --logs=<new dir>/logs. There shouldn't be anything inside the database or docker images with the external paths; they are just mounted as docker volumes.

ds2268 commented 2 years ago

Thanks! Tried again and the issue is solved. Maybe I have used relative paths before. Thanks!