Version mismatch between core and plugins

Hi there!

Not quite sure if this is the right place to bring this up, but I’ve noticed in our openbis installation that there seems to be a version mismatch between the core plugin xls-import and the openbis installation. I’ve noticed this because every time we tried to use the xlsx upload after the update from 20.10.8 to 20.10.11, it fails with the message: TypeError: ch.ethz.sis.openbis.generic.server.xls.importer.XLSImport(): expected 6 args; got 7. After some digging I found that this function was updated in 20.10.9 and while the correspoding python code in the core plugin seems to have been updated in the master branch of the git repository, that change doesn’t seem to have made it to the versions (compare openbis_standard_technologies/dist/core-plugins/xls-import/2/as/services/xls-import-api/entrypoint.py · 20.10.11 · sispub / openbis · GitLab with core-plugin-openbis/dist/core-plugins/xls-import/2/as/services/xls-import-api/entrypoint.py · master · sispub / openbis · GitLab).

I then first tried to manually update the code of the plugin in openbis-app-etc/core-plugins (which is mounted into the docker container to /etc/openbis), however, that change seemed to have been ignored by openbis, also after a restart of the container (I’ve confirmed that the change makes it into the container).

I’m using the docker compose setup from the documentation, but switched the image version to 20.10.11

Cheers!
Georg

Dear @glangebrake,
it is indeed the place in our design where core-plugins and their configuration is still problematic. We rather do not have the final solution.

Our current approach is copying the current release core plugins with an update.
It works in most cases.

## Copy all core-plugins files, symlinks and folders that do not exist yet at the destination
cp -a -u ${OPENBIS_HOME}/servers/core-plugins.default/* ${OPENBIS_HOME}/servers/core-plugins

In your case it didn’t so I suggest to stop the container, delete the openbis-app-etc/core-plugins as starting container will execute the command above and bring them from correct release. If core plugins are modified or they have configuration applied directly into the files in the openbis-app-etc/core-plugins then you have to apply it once again as part of configuration management.