My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 3246: 'Plugins' link on website frontpage should go somewhere that describes how to install plugins
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by sss...@gmail.com, Mar 13, 2015
*****************************************************************
*****                                                       *****
***** !!!! THIS BUG TRACKER IS FOR GERRIT CODE REVIEW !!!!  *****
*****                                                       *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, CYANOGENMOD,  *****
***** INTERNAL ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.*****
*****                                                       *****
*****   THOSE ISSUES BELONG IN DIFFERENT ISSUE TRACKERS     *****
*****                                                       *****
*****************************************************************

Apologies if bugs in the Gerrit project website should go somewhere else.

I was trying to set up the 'replication' plugin. I followed the 'plugin' link on the website frontpage.

I got pretty confused because the 'plugins' page links to some plugin .jar files, but passing the URLs to `gerrit plugin install` produces a backtrace.

I ended up building the replication plugin myself from source, which was quite time consuming.

Later, while searching for a different issue, I discovered I could just have extracted replication.jar from the gerrit-2.9.4.war file.

It'd be helpful if the 'plugins' page told users how to do this, or linked to the appropriate section of the documentation, so other people don't fall into the trap that I did.

Thanks!
Sam


Mar 13, 2015
#1 sss...@gmail.com
this is the backtrace I get trying to install a plugin from the 'plugins' page in my Gerrit 2.9.4 instance:

com.google.gerrit.server.plugins.PluginInstallException: error in opening zip file
	at com.google.gerrit.server.plugins.PluginLoader.runPlugin(PluginLoader.java:442)
	at com.google.gerrit.server.plugins.PluginLoader.installPluginFromStream(PluginLoader.java:184)
	at com.google.gerrit.sshd.commands.PluginInstallCommand.run(PluginInstallCommand.java:98)
	at com.google.gerrit.sshd.SshCommand$1.run(SshCommand.java:35)
	at com.google.gerrit.sshd.BaseCommand$TaskThunk.run(BaseCommand.java:442)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
	at com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:364)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.util.zip.ZipException: error in opening zip file
	at java.util.zip.ZipFile.open(Native Method)
	at java.util.zip.ZipFile.<init>(ZipFile.java:220)
	at java.util.zip.ZipFile.<init>(ZipFile.java:150)
	at java.util.jar.JarFile.<init>(JarFile.java:166)
	at java.util.jar.JarFile.<init>(JarFile.java:130)
	at com.google.gerrit.server.plugins.PluginLoader.loadJarPlugin(PluginLoader.java:540)
	at com.google.gerrit.server.plugins.PluginLoader.loadPlugin(PluginLoader.java:528)
	at com.google.gerrit.server.plugins.PluginLoader.runPlugin(PluginLoader.java:417)
	... 12 more
fatal: Plugin failed to install. Cause: error in opening zip file

Sign in to add a comment

Powered by Google Project Hosting