If you are running steps that require access to the Linux interactive desktop, run the agent in an interactive session rather than as a service/daemon (which may result in an error similar to “Error: unable to open display localhost:10.0”).
- log in to the agent machine
- modify the file “runAgent.sh” (default in folder “/opt/electriccloud/electriccommander/bin/”) as following:
- comment out the line “unset DISPLAY” (it’s close to the end of the file)
- remove “–daemon” in the last line
- restart the agent
It’s also important to check if relevant parts (for example, a server process which helps the UI test tool called by the agent) are running by the user which runs the CloudBees CD (CloudBees Flow) agent.