Issue with {%pip_install_plugins_gitlab%} on self-hosted GitLab
Hi!
We are trying to set up hermes with our GitLab instance, and we encountered several issues during hermes init
In step 5: Warning: CI File Parameter {%pip_install_plugins_gitlab%} was not set.
We went to gitlab/hermes-ci.yml and commented out the line containing this parameter. Other problems arose later during the process, and we suspect it has to do with this parameter.
For example in step 7:
1753256044.229944: hermes.init: INFO | -- Step 7 of 7: Connect with git project --
50 1753256044.230192: hermes.init: INFO | Unfortunately HERMES does not support automatic authorization with your GitLab installment.
51 1753256044.230335: hermes.init: INFO | Go to your project's access tokens (https://gitlab.mpcdf.mpg.de/fnico/test-hermes/-/settings/access_tokens) and create a new token.
52 1753256044.230471: hermes.init: INFO | It needs to have the 'developer' role and 'api' + 'write_repository' scope.
53 1753256065.860824: hermes.init: INFO | Could not get project id for https://gitlab.mpcdf.mpg.de/fnico/test-hermes.
54 1753256065.861523: hermes.init: WARNING | Something went wrong while setting up GitLab automatically.
55 1753256065.861648: hermes.init: WARNING | You will have to do it manually instead.
Later on, another error arises during the deposit:
163 1753260877.094064: hermes.cli: ERROR | An error occurred during execution of deposit (Find details in './hermes.log')
164 1753260877.094219: hermes.cli: DEBUG | Original exception was: No valid auth token given for deposition platform
What are we missing here?
Thanks, @fabas-mpcdf, for opening this issue. @nheeb, could you look into this, please?
This should be fixed on the development branch. Can you please try to reinstall hermes? pip install git+https://github.com/softwarepub/hermes.git
I can confirm the stray {%pip_install_plugins_gitlab%} doesn't appear in hermes-ci.yml anymore when generated via HERMES installed from develop.
I'm guessing the other error is unrelated to that.