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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Shiran
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]


--
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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Michael Pailloncy
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 ?

2017-08-06 9:28 GMT+02:00 Shiran <[hidden email]>:
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]


--
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 [hidden email].
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.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPO77c2YwYCLhPKKNH%3DPqDSr3XYDHW%3DfBdvF9KMKLNYSpM2WyA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Shiran
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.


On Sunday, August 6, 2017 at 10:53:41 AM UTC+3, mpapo - Michael Pailloncy wrote:
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 ?

2017-08-06 9:28 GMT+02:00 Shiran <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="ruz3hTmvBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">shira...@...>:
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]


--
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="ruz3hTmvBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/1b65beed-2e2e-4d4d-b0ee-9c5c0ddaf125%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/1b65beed-2e2e-4d4d-b0ee-9c5c0ddaf125%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/1b65beed-2e2e-4d4d-b0ee-9c5c0ddaf125%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/1b65beed-2e2e-4d4d-b0ee-9c5c0ddaf125%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f21add86-7c1d-4e27-901c-75161cd4864c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Michael Pailloncy
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


2017-08-06 13:31 GMT+02:00 Shiran <[hidden email]>:
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.


On Sunday, August 6, 2017 at 10:53:41 AM UTC+3, mpapo - Michael Pailloncy wrote:
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 ?

2017-08-06 9:28 GMT+02:00 Shiran <[hidden email]>:
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]


--
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-use...@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.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f21add86-7c1d-4e27-901c-75161cd4864c%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPO77c0SNgV-3axFfS9vNFUmuTQtT4_WffUc1H41L-oCTmtZ9w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Shiran
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.

On Sunday, August 6, 2017 at 4:51:09 PM UTC+3, mpapo - Michael Pailloncy wrote:
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


2017-08-06 13:31 GMT+02:00 Shiran <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="YbGHRrvCBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">shira...@...>:
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.


On Sunday, August 6, 2017 at 10:53:41 AM UTC+3, mpapo - Michael Pailloncy wrote:
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 ?

2017-08-06 9:28 GMT+02:00 Shiran <[hidden email]>:
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]


--
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-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/1b65beed-2e2e-4d4d-b0ee-9c5c0ddaf125%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/1b65beed-2e2e-4d4d-b0ee-9c5c0ddaf125%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/1b65beed-2e2e-4d4d-b0ee-9c5c0ddaf125%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/1b65beed-2e2e-4d4d-b0ee-9c5c0ddaf125%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="YbGHRrvCBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/f21add86-7c1d-4e27-901c-75161cd4864c%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/f21add86-7c1d-4e27-901c-75161cd4864c%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/f21add86-7c1d-4e27-901c-75161cd4864c%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/f21add86-7c1d-4e27-901c-75161cd4864c%40googlegroups.com.

For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/cc5172d2-eb7d-4972-ba77-6b7f894fe6f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Mark Waite-2
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 

On Sun, Aug 6, 2017, 1:39 PM Shiran <[hidden email]> wrote:
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.

On Sunday, August 6, 2017 at 4:51:09 PM UTC+3, mpapo - Michael Pailloncy wrote:
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

2017-08-06 13:31 GMT+02:00 Shiran <[hidden email]>:
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.


On Sunday, August 6, 2017 at 10:53:41 AM UTC+3, mpapo - Michael Pailloncy wrote:
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 ?

2017-08-06 9:28 GMT+02:00 Shiran <[hidden email]>:
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]


--
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 [hidden email].
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.

--
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 [hidden email].

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/cc5172d2-eb7d-4972-ba77-6b7f894fe6f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGawER2agrp9fvvByhgvNpP%3DqVMYBsLOTebJJ8qODJ4xw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Shiran
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? 

On Monday, August 7, 2017 at 1:20:21 AM UTC+3, Mark Waite wrote:
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 

On Sun, Aug 6, 2017, 1:39 PM Shiran <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Gph0noTeBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">shira...@...> wrote:
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.

On Sunday, August 6, 2017 at 4:51:09 PM UTC+3, mpapo - Michael Pailloncy wrote:
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

2017-08-06 13:31 GMT+02:00 Shiran <[hidden email]>:
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.


On Sunday, August 6, 2017 at 10:53:41 AM UTC+3, mpapo - Michael Pailloncy wrote:
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 ?

2017-08-06 9:28 GMT+02:00 Shiran <[hidden email]>:
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]


--
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-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/1b65beed-2e2e-4d4d-b0ee-9c5c0ddaf125%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/1b65beed-2e2e-4d4d-b0ee-9c5c0ddaf125%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/1b65beed-2e2e-4d4d-b0ee-9c5c0ddaf125%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/1b65beed-2e2e-4d4d-b0ee-9c5c0ddaf125%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
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-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/f21add86-7c1d-4e27-901c-75161cd4864c%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/f21add86-7c1d-4e27-901c-75161cd4864c%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/f21add86-7c1d-4e27-901c-75161cd4864c%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/f21add86-7c1d-4e27-901c-75161cd4864c%40googlegroups.com.

For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="Gph0noTeBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/cc5172d2-eb7d-4972-ba77-6b7f894fe6f8%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/cc5172d2-eb7d-4972-ba77-6b7f894fe6f8%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/cc5172d2-eb7d-4972-ba77-6b7f894fe6f8%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/cc5172d2-eb7d-4972-ba77-6b7f894fe6f8%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f6de3382-5782-40f1-a870-29b1dbac0bfb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Mark Waite-2
If it works ok with setsid, then isn't that the solution to your issue?

On Mon, Aug 7, 2017 at 6:05 AM Shiran <[hidden email]> wrote:
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? 

On Monday, August 7, 2017 at 1:20:21 AM UTC+3, Mark Waite wrote:
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 

On Sun, Aug 6, 2017, 1:39 PM Shiran <[hidden email]> wrote:
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.

On Sunday, August 6, 2017 at 4:51:09 PM UTC+3, mpapo - Michael Pailloncy wrote:
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

2017-08-06 13:31 GMT+02:00 Shiran <[hidden email]>:
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.


On Sunday, August 6, 2017 at 10:53:41 AM UTC+3, mpapo - Michael Pailloncy wrote:
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 ?

2017-08-06 9:28 GMT+02:00 Shiran <[hidden email]>:
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]


--
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 [hidden email].
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.

--
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 [hidden email].

--
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 [hidden email].

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f6de3382-5782-40f1-a870-29b1dbac0bfb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtHiPJ%3DB%3DpSHsK%2BKptk9LVXCPXXvWo5N3N5Mos%2BTTq9RDA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Shiran
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...

On Monday, August 7, 2017 at 4:28:24 PM UTC+3, Mark Waite wrote:
If it works ok with setsid, then isn't that the solution to your issue?

On Mon, Aug 7, 2017 at 6:05 AM Shiran <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="85gC2hEQBwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">shira...@...> wrote:
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? 

On Monday, August 7, 2017 at 1:20:21 AM UTC+3, Mark Waite wrote:
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 

On Sun, Aug 6, 2017, 1:39 PM Shiran <[hidden email]> wrote:
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.

On Sunday, August 6, 2017 at 4:51:09 PM UTC+3, mpapo - Michael Pailloncy wrote:
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

2017-08-06 13:31 GMT+02:00 Shiran <[hidden email]>:
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.


On Sunday, August 6, 2017 at 10:53:41 AM UTC+3, mpapo - Michael Pailloncy wrote:
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 ?

2017-08-06 9:28 GMT+02:00 Shiran <[hidden email]>:
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]


--
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-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/1b65beed-2e2e-4d4d-b0ee-9c5c0ddaf125%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/1b65beed-2e2e-4d4d-b0ee-9c5c0ddaf125%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/1b65beed-2e2e-4d4d-b0ee-9c5c0ddaf125%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/1b65beed-2e2e-4d4d-b0ee-9c5c0ddaf125%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
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-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/f21add86-7c1d-4e27-901c-75161cd4864c%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/f21add86-7c1d-4e27-901c-75161cd4864c%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/f21add86-7c1d-4e27-901c-75161cd4864c%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/f21add86-7c1d-4e27-901c-75161cd4864c%40googlegroups.com.

For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
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-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/cc5172d2-eb7d-4972-ba77-6b7f894fe6f8%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/cc5172d2-eb7d-4972-ba77-6b7f894fe6f8%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/cc5172d2-eb7d-4972-ba77-6b7f894fe6f8%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/cc5172d2-eb7d-4972-ba77-6b7f894fe6f8%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="85gC2hEQBwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/f6de3382-5782-40f1-a870-29b1dbac0bfb%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/f6de3382-5782-40f1-a870-29b1dbac0bfb%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/f6de3382-5782-40f1-a870-29b1dbac0bfb%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/f6de3382-5782-40f1-a870-29b1dbac0bfb%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1c449f81-336e-4b87-9ba1-5676b0b77f4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Mark Waite-2
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.

On Tue, Aug 8, 2017 at 12:47 AM Shiran <[hidden email]> wrote:
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...

On Monday, August 7, 2017 at 4:28:24 PM UTC+3, Mark Waite wrote:
If it works ok with setsid, then isn't that the solution to your issue?

On Mon, Aug 7, 2017 at 6:05 AM Shiran <[hidden email]> wrote:
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? 

On Monday, August 7, 2017 at 1:20:21 AM UTC+3, Mark Waite wrote:
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 

On Sun, Aug 6, 2017, 1:39 PM Shiran <[hidden email]> wrote:
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.

On Sunday, August 6, 2017 at 4:51:09 PM UTC+3, mpapo - Michael Pailloncy wrote:
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

2017-08-06 13:31 GMT+02:00 Shiran <[hidden email]>:
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.


On Sunday, August 6, 2017 at 10:53:41 AM UTC+3, mpapo - Michael Pailloncy wrote:
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 ?

2017-08-06 9:28 GMT+02:00 Shiran <[hidden email]>:
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]


--
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 [hidden email].
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.

--
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 [hidden email].

--
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 [hidden email].

--
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 [hidden email].

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1c449f81-336e-4b87-9ba1-5676b0b77f4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtFzA%2BKf07ogt6Od-0UuHP91c5ax3DgiwsYYM09cQsdmrw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...