New issue
Advanced search Search tips

Issue 10143 link

Starred by 1 user

Issue metadata

Status: Submitted
Owner: ----
Closed: Dec 6



Sign in to add a comment

gerrit 2.16 ssh -p 29418 ${USER}@${IP} kill ${ID} NOT work

Reported by probea...@gmail.com, Dec 6

Issue description

*****************************************************************
*****                                                       *****
***** !!!! 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. start a repo sync command
2. use "ssh -p 29418 ${USER}@${IP} gerrit show-connections" find ID what I want ot kill
3. use "ssh -p 29418 ${USER}@${IP} kill ${ID}", but fail

What is the expected output?
Can run ssh -p 29418 ${USER}@${IP} kill ${ID} command

What do you see instead?
fatal: Internal server error 

Please provide any additional information below.
error message:
[2018-12-06 09:28:22,129] [SSH kill f99ba5db (jimmy.sung)] ERROR com.google.gerrit.sshd.BaseCommand : Internal server error (user jimmy.sung account 715) during kill f99ba5db
java.lang.IllegalStateException: Cannot set value to a final field 'com.google.gerrit.sshd.commands.KillCommand.taskIds'.
        at org.kohsuke.args4j.spi.Setters.create(Setters.java:32)
        at org.kohsuke.args4j.ClassParser.parse(ClassParser.java:38)
        at org.kohsuke.args4j.CmdLineParser.<init>(CmdLineParser.java:96)
        at com.google.gerrit.util.cli.CmdLineParser$MyParser.<init>(CmdLineParser.java:414)
        at com.google.gerrit.util.cli.CmdLineParser.<init>(CmdLineParser.java:107)
        at com.google.gerrit.util.cli.CmdLineParser$$FastClassByGuice$$3138fc50.newInstance(<generated>)
        at com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:89)
        at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:114)
        at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91)
        at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:306)
        at com.google.inject.internal.InjectorImpl$1.get(InjectorImpl.java:1050)
        at com.google.inject.assistedinject.FactoryProvider2.invoke(FactoryProvider2.java:836)
        at com.sun.proxy.$Proxy52.create(Unknown Source)
        at com.google.gerrit.sshd.BaseCommand.newCmdLineParser(BaseCommand.java:261)
        at com.google.gerrit.sshd.BaseCommand.parseCommandLine(BaseCommand.java:233)
        at com.google.gerrit.sshd.BaseCommand.parseCommandLine(BaseCommand.java:218)
        at com.google.gerrit.sshd.SshCommand$1.run(SshCommand.java:40)
        at com.google.gerrit.sshd.BaseCommand$TaskThunk.run(BaseCommand.java:463)
        at java.lang.Thread.run(Thread.java:748)


 
error_console_log.txt
7.3 KB View Download
Status: Accepted (was: New)
This seems to only affect 2.16.  It works as expected on 2.14 and 2.15.
Status: ChangeUnderReview (was: Accepted)
https://gerrit-review.googlesource.com/c/gerrit/+/206610
Hi, David,
Does the fix include in next gerrit 2.16 release?
Thank you.
Labels: FixedIn-2.16.1
Status: Submitted (was: ChangeUnderReview)
Yes, it will be in 2.16.1.

Thank you.

Sign in to add a comment