[JIRA] (JENKINS-50009) SSH connection reports a garbage before a command execution

529 views
Skip to first unread message

wangbo.lu@intel.com (JIRA)

unread,
Mar 8, 2018, 5:25:02 AM3/8/18
to jenkinsc...@googlegroups.com
wangbo lu created an issue
 
Jenkins / Bug JENKINS-50009
SSH connection reports a garbage before a command execution
Issue Type: Bug Bug
Assignee: Oleg Nenashev
Components: ssh-slaves-plugin
Created: 2018-03-08 10:24
Priority: Critical Critical
Reporter: wangbo lu

the Jenkins node was connected before, today suddenly it was offline. Checked the log as below:

[03/08/18 17:08:03] [SSH] Opening SSH connection to 10.239.94.119:22. [03/08/18 17:08:03] [SSH] Authentication successful. SSH connection reports a garbage before a command execution. Check your .bashrc, .profile, and so on to make sure it is quiet. The received junk text is as follows: WARNING: Your password has expired. Password change required but no TTY available. hudson.AbortException at hudson.plugins.sshslaves.SSHLauncher.verifyNoHeaderJunk(SSHLauncher.java:859) at hudson.plugins.sshslaves.SSHLauncher.access$100(SSHLauncher.java:133) at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:703) at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:696) at java.util.concurrent.FutureTask.run(FutureTask.java:262) 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) [03/08/18 17:08:04] Launch failed - cleaning up connection [03/08/18 17:08:04] [SSH] Connection closed.

 

it displayed the junk test is 'WARNING: Your password has expired. Password change required but no TTY available'. But I could access this Jenkins node with the original account and password. and searched all the files in Jenkins node, couldn't find any files with this sentence.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

wangbo.lu@intel.com (JIRA)

unread,
Mar 8, 2018, 5:31:02 AM3/8/18
to jenkinsc...@googlegroups.com
wangbo lu commented on Bug JENKINS-50009
 
Re: SSH connection reports a garbage before a command execution

I tried to re-generate the ssh key, but still got the same failure.

wangbo.lu@intel.com (JIRA)

unread,
Mar 8, 2018, 5:40:02 AM3/8/18
to jenkinsc...@googlegroups.com
wangbo lu updated an issue
 
Change By: wangbo lu
the Jenkins node was connected before, today suddenly it was offline. Checked the log as below:

[03/08/18 17:08:03] [SSH] Opening SSH connection to 10.239.94.119:22. [03/08/18 17:08:03] [SSH] Authentication successful. SSH connection reports a garbage before a command execution. Check your .bashrc, .profile, and so on to make sure it is quiet. The received junk text is as follows: {color:#ff0000}WARNING: Your password has expired. Password change required but no TTY available{color}. hudson.AbortException at hudson.plugins.sshslaves.SSHLauncher.verifyNoHeaderJunk(SSHLauncher.java:859) at hudson.plugins.sshslaves.SSHLauncher.access$100(SSHLauncher.java:133) at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:703) at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:696) at java.util.concurrent.FutureTask.run(FutureTask.java:262) 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) [03/08/18 17:08:04] Launch failed - cleaning up connection [03/08/18 17:08:04] [SSH] Connection closed.


 

it displayed the junk test is 'WARNING: Your password has expired. Password change required but no TTY available'. But I could access this Jenkins node with the original account and password. and searched all the files in Jenkins node, couldn't find any files with this sentence.


Any help is appreciated.

o.v.nenashev@gmail.com (JIRA)

unread,
Mar 13, 2018, 7:46:07 AM3/13/18
to jenkinsc...@googlegroups.com
Oleg Nenashev assigned an issue to Unassigned
 

Bulk issue update: The plugin connectivity is still unstable from what I see in this and other reports. Probably the recent patches in 1.24-1.25 caused some extra instability by getting rid of interlocks between agent connection and termination logic. Apparently it impacts some reconnection scenarios due to the race conditions.

Unfortunately I do not have capacity to work on the plugin in medium-term. So for now I am unassigning issues from myself. Ivan Fernandez Calvo was very kind to take ownership of the plugin and to handle some workload in it. Probably he will have some capacity to review the backlog I was unable to triage.

Change By: Oleg Nenashev
Assignee: Oleg Nenashev

ifernandezcalvo@cloudbees.com (JIRA)

unread,
Apr 18, 2018, 1:58:02 PM4/18/18
to jenkinsc...@googlegroups.com
Authentication successful. SSH connection reports a garbage before a command execution. Check your .bashrc, .profile, and so on to make sure it is quiet.

try with clean .bashrc and .profile files, it should be some command inside then that breaks the connection

ifernandezcalvo@cloudbees.com (JIRA)

unread,
May 1, 2018, 8:07:03 AM5/1/18
to jenkinsc...@googlegroups.com
Ivan Fernandez Calvo closed an issue as Not A Defect
 
Change By: Ivan Fernandez Calvo
Status: Open Closed
Resolution: Not A Defect
Reply all
Reply to author
Forward
0 new messages