rsync failed: ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory

2,343 views
Skip to first unread message

Shiran

unread,
Aug 6, 2017, 3:28:23 AM8/6/17
to Jenkins Users
Hi,

I'm copying files from one machine to another (to cg-sv-h118 in the log below) using rsync command.
Important to say that this command is working as expected in other machines I use (all have the same setup)
Can you help me understand the yellow errors below?
Thanks!

Log:

22:22:15 Building remotely on cg-sv-h118 in workspace /local/jenkins_ws/workspace/open_val
22:22:15 [open_val] $ /bin/bash /tmp/hudson8936548899971970339.sh
22:22:15 Starting to rsync files from parent workspace: icsl7024:/tmp/jenkins_ws/workspace/post_trigger 22:22:15 ************************************************ 22:22:15 Use of this system by unauthorized persons or 22:22:15 in an unauthorized manner is strictly prohibited 22:22:15 ************************************************ 22:22:15 ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory 22:22:16 ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory 22:22:17 ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory 22:22:17 Permission denied (gssapi-with-mic,publickey). 22:22:17 rsync: connection unexpectedly closed (0 bytes received so far) [Receiver] 22:22:17 rsync error: unexplained error (code 255) at io.c(226) [Receiver=3.1.1]


Michael Pailloncy

unread,
Aug 6, 2017, 3:53:41 AM8/6/17
to jenkins...@googlegroups.com
ssh is asking for the password or a passphrase if the key is invalid. Is-there a passphrase configured for this key ? Have you tried to connect directly using ssh from this machine to the target one ?
BTW, how do you provide credentials ?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1b65beed-2e2e-4d4d-b0ee-9c5c0ddaf125%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Shiran

unread,
Aug 6, 2017, 7:31:45 AM8/6/17
to Jenkins Users
Hi,

I'm connecting to this node via ssh , and I have the host and credentials configured in the node's configuration in Jenkins.
The same rsync command is working just fine when I'm doing it outside Jenkins.

To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.

Michael Pailloncy

unread,
Aug 6, 2017, 9:51:09 AM8/6/17
to jenkins...@googlegroups.com
Ok, if I refer to logs above, you want to copy files from icsl7024 machine to cg-sv-h118 workspace. Right ?
My question was not very clear, but I would like to know how do you provide credentials between cg-sv-h118 and icsl7024 machines ? 

Can you please also confirm that outside of Jenkins, you are able to connect from cg-sv-h118 to icsl7024 through SSH (without password) ?
Can you also check if /home/${USER}/.ssh/ directory and /home/${USER}/.ssh/authorized_keys file have the correct file permissions (respectively 700 and 644) on both machines ?

Michaël


To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f21add86-7c1d-4e27-901c-75161cd4864c%40googlegroups.com.

Shiran

unread,
Aug 6, 2017, 3:38:54 PM8/6/17
to Jenkins Users
Hi,
  • Yes- I'm trying to copy files from icsl7024 to cg-sv-h118.
  • I am not, explicitly, providing credentials between cg-sv-h118 and icsl7024. What is happening is that when the build starts, I am already connected to cg-sv-h118 (with the correct username and password), and then I'm just doing rsync between the machines.
  • Outside of Jenkins I am able to connect from cg-sv-h118 to icsl7024 (they both use the same username...)
  • I checked the permission of  ~/.ssh and ~/.ssh/authorized_keys and they are as expected (700 and 644), on both machines.

Mark Waite

unread,
Aug 6, 2017, 6:20:21 PM8/6/17
to Jenkins Users
I wonder if rsync has a similar behavior to command line git.

Command line git prompts for credentials if there is a controlling terminal attached to the process.

You could check that by running the rsync command prefixed with the setsid command so that the controlling terminal is disconnected. 

Mark Waite 

Shiran

unread,
Aug 7, 2017, 8:05:01 AM8/7/17
to Jenkins Users
I can tell you this- I have more machines that supposed to be configured just like cg-sv-h118  (I guess there is something different that I didn't find yet). Only cg-sv-h118 is giving me the errors I mentioned.
but, I did saw the "ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory Permission denied (gssapi-with-mic,publickey)."  error before, in other machines similar to cg-sv-118 but it happened sporadically (not in every build, while coping files from different machines similar to icsl7024)

I tried running rsync with setsid prefix - both in Jenkins and locally and it works ok. What behavior was I suppose to expect? 

Mark Waite

unread,
Aug 7, 2017, 9:28:24 AM8/7/17
to Jenkins Users
If it works ok with setsid, then isn't that the solution to your issue?

Shiran

unread,
Aug 8, 2017, 2:47:25 AM8/8/17
to Jenkins Users
Hi again,
I let it run all night in Jenkins (with setsid), and in 5 out of 18 I got the error of  "ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory Permission denied (gssapi-with-mic,publickey)."
So I guess it didn't solve the problem...

Mark Waite

unread,
Aug 8, 2017, 5:55:16 PM8/8/17
to Jenkins Users
You might check to see if there is a pattern which ties the failures to a specific node, or a specific time of day, or a specific set of log entries on the Jenkins agent.  I can't explain why it would find it one time and not find it the next, unless something changed in the execution environment between the passing and the failing cases.

Reply all
Reply to author
Forward
0 new messages