| Issue 3391: | -n option to ssh 'plugin install' expects a filename instead of the plugin name | |
| 3 people starred this issue and may be notified of changes. | Back to list |
***************************************************************** ***** ***** ***** !!!! 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 ***** ***** ***** ***************************************************************** Affected Version: What steps will reproduce the problem? 1. Install Gerrit 2.11 2. ssh -p 29418 <server> gerrit plugin install -n delete-project https://storage.cloud.google.com/gerritcodereview-plugins/plugins/master/delete-project/delete-project.jar 3. What is the expected output? What do you see instead? I expect the plugin to install. Instead I get the following errors: com.google.gerrit.server.plugins.PluginInstallException: Unsupported plugin type: delete-project at com.google.gerrit.server.plugins.PluginLoader.runPlugin(PluginLoader.java:478) at com.google.gerrit.server.plugins.PluginLoader.installPluginFromStream(PluginLoader.java:185) 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:445) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) at com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:379) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: com.google.gerrit.server.plugins.InvalidPluginException: Unsupported plugin type: delete-project at com.google.gerrit.server.plugins.PluginLoader.loadPlugin(PluginLoader.java:556) at com.google.gerrit.server.plugins.PluginLoader.runPlugin(PluginLoader.java:444) ... 12 more fatal: Plugin failed to install. Cause: Unsupported plugin type: delete-project Please provide any additional information below. If I pass 'delete-project.jar' to -n, I get a different exception: com.google.gerrit.server.plugins.PluginInstallException: Invalid plugin file /var/lib/gerrit2/plugins/delete-project.jar: cannot get plugin name at com.google.gerrit.server.plugins.PluginLoader.runPlugin(PluginLoader.java:478) at com.google.gerrit.server.plugins.PluginLoader.installPluginFromStream(PluginLoader.java:185) 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:445) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) at com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:379) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.IllegalArgumentException: Invalid plugin file /var/lib/gerrit2/plugins/delete-project.jar: cannot get plugin name at com.google.gerrit.server.plugins.JarPluginProvider.getPluginName(JarPluginProvider.java:66) at com.google.gerrit.server.plugins.UniversalServerPluginProvider.getPluginName(UniversalServerPluginProvider.java:48) at com.google.gerrit.server.plugins.PluginLoader.loadServerPlugin(PluginLoader.java:578) at com.google.gerrit.server.plugins.PluginLoader.loadPlugin(PluginLoader.java:554) at com.google.gerrit.server.plugins.PluginLoader.runPlugin(PluginLoader.java:444) ... 12 more 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:215) at java.util.zip.ZipFile.<init>(ZipFile.java:145) at java.util.jar.JarFile.<init>(JarFile.java:154) at java.util.jar.JarFile.<init>(JarFile.java:118) at com.google.gerrit.server.plugins.JarPluginProvider.getJarPluginName(JarPluginProvider.java:72) at com.google.gerrit.server.plugins.JarPluginProvider.getPluginName(JarPluginProvider.java:63) ... 16 more fatal: Plugin failed to install. Cause: Invalid plugin file /var/lib/gerrit2/plugins/delete-project.jar: cannot get plugin name I've tried installing by using the -/redirect method as well as staging the plugin on the server and trying a local filesystem copy. Basically all forms of 'plugin install' fail with errors similar to the above.
May 27, 2015
#1
eng...@gmail.com
May 27, 2015
That doesn't work, it generates the exceptions reported in the 'additional details' section.
May 28, 2015
You must use plugin built from stable-2.11 branch, not from master. It's incompatible.
May 28, 2015
OK, I missed that I was pulling plugins from master. Thanks. |
|
| ► Sign in to add a comment |