Consecutive actions running with impersonation fails intermittently

Document ID : KB000115325
Last Modified Date : 19/09/2018
Show Technical Document Details
Issue:
Consecutive actions running with impersonation hangs and fails intermittently.

Sample simulation steps

i) Set the entry in sudoer file as no password, also do the configuration in agent as per the details mentioned in the CA Documentation.
ii) Then in action, under set credentials give the user name.
iii) Now execute the action, it will work. Which is as expected because in the sudoer we set as no Password, even if we give incorrect password, sudo wont consider this, which is correct
iv) Create a complex process with some more actions and most of them run with impersonation.
v) The actions start hanging and failing intermittently when the agent is restarted the process resume finex.

Some common error been observed during above scenario in agents logs are listed below.
  • <<user>> will now span a new process with the user id=<another  user> Sorry, user <another  user> is not allowed to execute '/usr/bin/sh -c /CARA/LISAReleaseAutomationAgent/ActionsRunner.sh 41441 35026 <another  user>' as <another  user>on <server-name>.
  • SLF4J: Class path contains multiple SLF4J bindings.SLF4J: Found binding in [jar:file:/CARA/LISAReleaseAutomationAgent/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]SLF4J: Found binding in [jar:file:/CARA/LISAReleaseAutomationAgent/actionslib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]NolioSocketAppender is not ready yet!17:07:47,571 [main] WARN (ProcessesConfig.java:114) - cannot load remote process execution properties. use defaults...java.io.FileNotFoundException: conf/processes.properties (Permission denied) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileReader.<init>(Unknown Source) at com.nolio.platform.shared.datamodel.execution.conf.ProcessesConfig.<clinit>(ProcessesConfig.java:88)
Environment:
CA Release Automation 6.4,6.5,6.6 and higher
Cause:
In process.properties configuration the configuration "max.idle.time.in.seconds=300" ii.e. 300 seconds equivalent to 5 minutes, which implies that even though the action is finished the session waits for 5 minutes even being idle before closing the connection.
Resolution:
Suggested change in the configuration to set “max.idle.time.in.seconds to 5” from earlier of 300 seconds in /conf/process.properties.