在Gerrit 2.6.1服务器安装Its-Jira插件2.13时遇PluginInstallException错误
Hey there, sorry to hear you're stuck with this PluginInstallException while trying to set up the Its-Jira 2.13 plugin with your Gerrit 2.6.1 instance. Let's break down some actionable checks and fixes based on your environment details:
Your Environment
- Ubuntu: 4.6.3
- Gerrit: 2.6.1
- Its-Jira Plugin: 2.13
- Its-Base Plugin: Successfully installed
Potential Fixes & Checks
Double-Check Compatibility
Gerrit 2.6.1 is quite outdated (released back in 2013), and Its-Jira 2.13 might not be built to support it. Even if you can't access external docs right now, see if you can find internal cached release notes for the plugin—look for explicit mentions of Gerrit 2.6.x support. If there's no match, try rolling back to an older Its-Jira version that's confirmed to work with Gerrit 2.6.1.Validate Your SSH Install Command
Make sure you're using the correct syntax for Gerrit's SSH plugin install command. The standard format looks like this:ssh -p <your-ssh-port> <gerrit-admin-user>@<gerrit-server-host> gerrit plugin install -n its-jira.jar /path/to/your/its-jira-2.13.jarDouble-check the port, admin user permissions, and that you're pointing to the correct plugin JAR file path.
Dig Into Gerrit's Local Logs
Since you can't copy the error message directly, head to your Gerrit server's log directory (usually/var/gerrit/logs/or$GERRIT_SITE/logs/on Ubuntu) and check thegerrit.logorerror_logfiles around the time you tried the installation. The full stack trace in these logs will tell you exactly what's causing the exception—whether it's a missing dependency, file permission issue, or something else.Fix File Permissions
Ensure the Its-Jira plugin JAR has proper read permissions for the user running the Gerrit service (usually thegerrituser). Run this command on the JAR file:chmod 644 /path/to/its-jira-2.13.jarAlso confirm the Gerrit user has access to the directory where you're storing the plugin JAR.
Try Manual Installation
If SSH installation keeps failing, skip the command line and manually drop the Its-Jira JAR into Gerrit's plugins directory (default is$GERRIT_SITE/plugins/). After copying it, restart the Gerrit service:sudo service gerrit restartThen check the logs again to see if the plugin loads without errors.
Confirm Its-Base Version Compatibility
Even though Its-Base is installed, make sure its version pairs correctly with Its-Jira 2.13. Some plugin sets require specific version matches—if your Its-Base is too old or new, it could trigger the installation exception. See if you can find documentation linking the two versions.
Hopefully one of these steps helps you resolve the issue. If you can pull the specific error details from the Gerrit logs, that'll make narrowing things down even faster.
内容的提问来源于stack exchange,提问作者arden

