A user reported a potential bug with ControlUp version 9.0.5 where a trigger that executes a custom script on boot was failing. The error message states that the environment block could not be retrieved, suggesting that the user may already be logged into the target machine. After some troubleshooting, it was discovered that the issue was caused by the service account being logged into the monitor. Once this was resolved, the script ran successfully. The user updated to the latest version (9.0.5.423) and the issue was resolved.
Read the entire ‘Troubleshooting ControlUp Version 9.0.5 Bug with Triggered Scripts’ thread below:
not sure if this is a bug with 9.0.5 but we have a trigger that executes a custom script on boot and it is failing to run. I can run it directly in the RT console without issue, but if I let the monitor execute it via trigger or if I execute it via DEX it fails. Here is the error I receive in DEX
Failed to get environment block typically happens if the user set in the execution context, is already logged on to the target machine
hmm no users logged in currently
fresh boot of the machine
here is the script
again, it works directly in the RT console, but not via dex
I see there was a new release, 9.0.5.423
I am on 9.0.5.413
I guess I can try updating
Where the script runs is different for the console though. monitor/console, when running from the console, would be inside your user session. When the DEX runs it, it runs on a monitor. Pretty much picked at random
I am running the script from the console, on the monitor for what its worth
I can try to run as a different user for the script
Is that service account logged in to the monitor?
yes it is
That’s your problem
ohhhh
Because you’re asking:
• Run the script on the monitor/console that initiated the request (NOT on the target machine)
• Run the script as
ahhh
that makes sense
thank you!
WORKING! thank you!!!
Continue reading and comment on the thread ‘Troubleshooting ControlUp Version 9.0.5 Bug with Triggered Scripts’. Not a member? Join Here!
Categories: All Archives, ControlUp Scripts & Triggers