Troubleshooting the HCL UnO agent
-
daemon-installaccess denied- When using the
daemon-install.shscript on a Red Hat Enterprise Linux distribution, the command might fail returning the error:Failed to enable unit: Access denied.To solve the issue, run the following commands:sudo setenforce 0sudo systemctl daemon-reload
daemon-install.shagain.
-
daemon-installpermission denied- When using the
daemon-install.shscript on a Red Hat Enterprise Linux distribution, the command might fail returning the error:Failed to create symbolic link '/etc/systemd/system/<agent_name>.service': Permission denied.To solve the issue, check if the symbolic link is already existing. If the symbolic link exists you can unlink it by running the following command:
sudo unlink /etc/systemd/system/<agent_name>.serviceOtherwise, you can delete the symbolic link.
If the error persists, run the
daemon-install.shcommand as administrator, or contact your IT support to obtain the necessary permissions.
-
- Using Command Prompt instead of Powershell
- You can run all the scripts to configure and manage the HCL UnO agent from Command Prompt using the following
syntax:
Or alternatively:powershell.exe -File scriptname.ps1
For example, to start the agent, you can run the command:powershell.exe -ExecutionPolicy Bypass -File scriptname.ps1powershell.exe -File start.ps1
-
- Stop script
- After successfully running the
stopscript, the HCL UnO agent does not always immediately stop. There are two main scenarios to consider:- Tasks still in EXEC status
- If the
stopscript runs successfully but there are still tasks in EXEC status, the agent waits for all of the tasks to finish running before actually stopping. In this situation, as thestopscript ran successfully, you cannot run anotherstopscript to forcefully stop the agent from running. If you need the agent to forcefully stop, you need to terminate the agent manually.
- Stop delay
- The workstation where the agent is running continues to show
the
LINKEDstatus for five minutes after the successful resolution of astopscript. Tasks and workflows submitted in this five minutes time frame reamain inINTROstatus. If another instance of the same agent is started at a later time, all task and workflow instances inINTROstatus are run by the new instance of the agent, following their scheduling criteria.
-
- Configure command returns with NullPointerException
- In SElinux operating system, the configure command to set up HCL UnO agent returns an error if the JAVA_HOME environment
variable is not set.
To resolve this issue, you must edit the agent.properties file to add the path to the java jdk file as the Environment parameter.
- Managing file paths while configuring HCL UnO agent using Powershell
- If you need to use a --dataDir or -d with spaces, the path should be enclosed in both single and double quotes.