vivo-project / VIVO

VIVO is an extensible semantic web application for research discovery and showcasing scholarly work
http://vivoweb.org
BSD 3-Clause "New" or "Revised" License
211 stars 131 forks source link

Dockerized VIVO update doesn't lead to update of home/rdf directory #3997

Open litvinovg opened 3 months ago

litvinovg commented 3 months ago

Describe the bug home/rdf directory contains serialized triples to load into graphs on startup. It has to be updated on VIVO deployment, but if VIVO_HOME volume is already exists it will not be updated, which could lead to issues. In VIVO 1.15.0 migration from previous authorization mechanisms was created, which occurs on first startup after update. To run properly it requires authorization policies and predefined datasets (loaded from home/rdf directory) to be present. Otherwise VIVO might not work properly.

To Reproduce Steps to reproduce the behavior:

  1. Install dockerized VIVO 1.14.3, check that VIVO works and home volume has been created.
  2. Update dockerized VIVO image to 1.15.0
  3. Check that updated VIVO doesn't work properly anymore.

Expected behavior Updated VIVO should work properly.

Potential solutions Potential workaround could be to create multiple volumes instead of one HOME volume. That volumes could be: config tdbModels tdbContentModels

Environment (please complete the following information):

Additional context Add any other context about the problem here.

litvinovg commented 2 months ago

To properly update dockerized VIVO one would need to copy contents of home/rdf directory before the first start after update of the docker image.

litvinovg commented 2 months ago

In case you have already updated to 1.15 and don't have backups you can fix it this way: