Issue
-
After running any CLI command, I get the following stack trace:
Mar 11, 2015 3:04:58 PM hudson.remoting.SynchronousCommandTransport$ReaderThread run SEVERE: I/O error in channel CLI connection to `+https://<MY_URL>+` java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) Caused by: java.io.EOFException
Resolution
jenkins-cli should match each Jenkins LTS version so be sure you are running the jenkins-cli which matches the Jenkins version you are running.
Diagnostics
You can enable more logging under https://<JENKINS_URL>/log/
-
Add New Log Recorder
-
Name the new Log
-
Add Logger
hudson.cli.*
or (specificallyhudson.cli.CLI
)
This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.