My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 3598: Received 97 on unknown channel 0
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 Leo.Wang812, Oct 11, 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     *****
*****                                                       *****
*****************************************************************

Affected Version:
2.10.5
What steps will reproduce the problem?
1.gerrit.config change the ssh.backend=NIO2&&ssh.idleTimeout=1h
2.download code through ssh protocal
3.

What is the expected output? What do you see instead?

The gerrit error log is like this:

WARN  com.google.gerrit.sshd.GerritServerSession : Exception caught
org.apache.sshd.common.SshException: Received 97 on unknown channel 0
        at org.apache.sshd.common.session.AbstractConnectionService.getChannel(AbstractConnectionService.java:301)
        at org.apache.sshd.common.session.AbstractConnectionService.channelClose(AbstractConnectionService.java:262)
        at org.apache.sshd.common.session.AbstractConnectionService.process(AbstractConnectionService.java:171)
        at org.apache.sshd.common.session.AbstractSession.doHandleMessage(AbstractSession.java:431)
        at org.apache.sshd.common.session.AbstractSession.handleMessage(AbstractSession.java:326)
        at org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:780)
        at org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:308)
        at org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:54)
        at org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:184)
        at org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:170)
        at org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)
        at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
        at sun.nio.ch.Invoker$2.run(Invoker.java:218)
        at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
        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)


Please provide any additional information below.

When I execute cmd ssh -p 29418 IP gerrit show-connections, there are 50000+ idle sessions.

e9d27c2b 08:00:00 02:58:56                   
c9a0d808 08:00:00 02:58:56                   
a99a4417 08:00:00 02:58:56                   
d6e1b5dd 08:00:00 02:58:56                   
1f3622e6 08:00:00 02:58:56                   
f085af50 08:00:00 02:58:56                   
106c03dd 08:00:00 02:58:56                   
90623337 08:00:00 02:58:56                   
55802d6c 08:00:00 02:58:56                   
1534f53a 08:00:00 02:58:56                   
d27193c3 08:00:00 02:58:56                   
3f98f821 08:00:00 02:58:56                   
9c4812af 08:00:00 02:58:56                   
c829e5e0 08:00:00 02:58:56                   
0d82afdb 08:00:00 02:58:56                   
62bc9a84 08:00:00 02:58:56                   
e7773c8c 08:00:00 02:58:56                   
dc420f30 08:00:00 02:58:56

Oct 11, 2015
#1 Leo.Wang812
ssh -p 29418 IP kill dc420f30

Then output is 
"kill: dc420f30: No such task"
Sign in to add a comment

Powered by Google Project Hosting