KBEC-00426 - Running Linux Agent in Interactive mode

Article ID:360033183911
1 minute readKnowledge base

Description

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").

Solution

  1. log in to the agent machine

  2. modify the file "runAgent.sh" (default in folder "/opt/electriccloud/electriccommander/bin/") as following:

    1. comment out the line "unset DISPLAY" (it’s close to the end of the file)

    2. remove "--daemon" in the last line

  3. restart the agent

Note

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.