Closed pplmx closed 2 years ago
copy oauth.jar to /opt/gerrit/plugins
Where is the oauth.jar is coming from? Is it corrupt? Where is the source? Show me the content?
Can you take Docker out of the picture and try it locally? Does it work?
Have you tried this jar: [1] or this jar: [2]?
[1] https://github.com/davido/gerrit-oauth-provider/releases/tag/v3.5.1 [2] https://gerrit-ci.gerritforge.com/view/Plugins-stable-3.5/job/plugin-oauth-bazel-master-stable-3.5/lastSuccessfulBuild/artifact/bazel-bin/plugins/oauth/oauth.jar
oauth.jar
is v3.5.1 (release), which is just be renamedHi, @davido Thanks for your help :) I have found the root cause: GERRIT_SITE isn't be set rightly. Right way:
docker container exec -it gerrit-gerrit-1 bash
export GERRIT_SITE=/var/gerrit
java -jar /var/gerrit/bin/gerrit*.war init -d $GERRIT_SITE
Thanks for confirming, that the root cause was not related to this plugin.
/opt/gerrit/plugins:/var/gerrit/plugins
oauth.jar
to/opt/gerrit/plugins
/var/gerrit/bin/
java -jar gerrit.war init -d gerrit
It doesn't show the information you showed in the doc
Here is my operation log