Bug #11416
closed
remote execution is cut at 30 secondes
Added by Nicolas CHARLES about 7 years ago.
Updated over 6 years ago.
Category:
System techniques
Severity:
Major - prevents use of part of Rudder | no simple workaround
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Timeout manifests as "was interrupted" error from agent run:
policy_server # rudder remote run ruddernode
error Rudder agent was interrupted during execution by a fatal error
Run with -i to see log messages.
## Summary #####################################################################
0 components verified in 1 directives
execution time: 30.61s
################################################################################
- Severity set to Major - prevents use of part of Rudder | no simple workaround
- User visibility set to Operational - other Techniques | Technique editor | Rudder settings
- Priority changed from 0 to 52
- Target version changed from 4.1.8 to 4.1.9
- Priority changed from 52 to 51
- Effort required set to Small
- Priority changed from 51 to 67
- Priority changed from 67 to 66
In fact the documentation (which states it is a connection timeout) is wrong, it is applied as SO_RCVTIMEO on the socket, and hence closes the connection when we see no output for 30 seconds, which may happen in changes only mode for example.
- Target version changed from 4.1.9 to 4.1.10
- Priority changed from 66 to 65
Interestingly, it's the agent that closes the connection.
Agent side
error: SSL_read: receive timeout
rudder verbose: Connection to 192.168.42.3 is closed
then server side
rudder verbose: 192.168.42.2> MD5=918083b6dad780baf4e93367aa1cfe7f: Client is TRUSTED, public key MATCHES stored one.
rudder verbose: 192.168.42.2> Received: EXEC
rudder info: 192.168.42.2> cf-serverd executing cfruncommand: /opt/rudder/bin/rudder agent run -uR
error: 192.168.42.2> SSL_write: underlying network error (Broken pipe)
rudder info: 192.168.42.2> Sending failed, aborting EXEC (send: Broken pipe)
error: 192.168.42.2> SSL_write: (-1 SSL_ERROR_SSL) bad write retry
rudder verbose: 192.168.42.2> Unable to reply with terminator. (send: Success)
rudder verbose: 192.168.42.2> Remote peer terminated TLS session (SSL_read)
rudder info: 192.168.42.2> Closing connection, terminating thread
I configured the timeout everywhere
simply setting a -t in the command line solves the issue
- Status changed from New to In progress
- Status changed from In progress to Pending technical review
- Assignee changed from Nicolas CHARLES to Alexis Mousset
- Pull Request set to https://github.com/Normation/rudder-agent/pull/146
- Status changed from Pending technical review to Pending release
- Status changed from Pending release to Released
- Priority changed from 65 to 63
This bug has been fixed in Rudder 4.1.10 and 4.2.4 which were released today.
Also available in: Atom
PDF