-
Notifications
You must be signed in to change notification settings - Fork 929
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sudo responder hangs #311
Comments
I'm seeing this issue on 1.4.4-1.3, we are going to try on 1.5. To repo this problem we did: |
this fix is not in 1.5 yet. fyi: a potential workaround for 1.4 is to increase use the "sudo-response-max-lines" and "sudo-response-max-timeout" to some very large values, but this will only work if you are not using sudo2-command-enabled=true |
We just found another work around for 1.4- in our xml for our node we removed "sudo-command-enabled" and now it works without delay. We don't need that because we don't need a password for sudo. Maybe this is another problem? |
my guess is since you had enabled the sudo responder mechanism but don't use a password, the delay you were seeing is the timeout looking for the password prompt. if you don't use a password for sudo then there is no need for the sudo response functionality |
There were a few additional bugs in the thread code:
|
Cleanup sudo threadpool after it is done. Fix race condition when sudo input prompt timeout happens before the SSH connection begins. for #311
I am having trouble with a rundeck 1.5 upgrade that might be related to this.... sudo-command-enabled="true" sudo-fail-on-prompt-timeout="false" which allows us to ssh in as one user and sudo to another and execute the defined rundeck command line. if the remote command produces lots of output, the session hangs. If I reduce the output to minimal, it does not hang and completes successfully. Perhaps there are additional sudo parameters that can resolve this? And if this is not related, i can file a new issue accordingly. Thanks, Chuck |
yes, the only workaround right now is to increase the "sudo-response-max-lines" and "sudo-response-max-timeout" to very large values. |
I updated my rundeck 1.5 GA rpm install with: [cscott2@centgoldrk1v ~]$ rpm -q rundeck rundeck-1.5.1-0.204.SNAPSHOT.noarch from http://build.rundeck.org/job/rundeck-development/ and was able to resolve my ssh hang issue issue. |
Another bug could cause NPE in sudo responder thread. won't stop a job that is already running, but could potentially prevent sudo password from response from working. |
With 1.5.1 GA by following the reproduce steps for this defect : #347 but doing it as sudo I have reproduced the hang. |
@andysteady I'm not sure if that comment was meant for this issue or 347? Also, what do you mean by 1.5.1 GA (it hasn't been released yet) |
Hi, Hope that makes sense. Thanks, Andy |
Ok I see, so sounds like you are confirming the fix in 1.5.1 dev branch then? |
Yes |
using secondary sudo authentication can cause a hang in the output, and the job doesn't seem to finish
The text was updated successfully, but these errors were encountered: