Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Linux agent installation: How to specify which user to use? #3937

HealingQuickly ·

Hello Robin

I'm trying to install a Linux agent, before running agent.sh, I have some questions about the agent properties.

How does QB determine which Linux user it is? Is it "root" by default?
How can I specify a particular user within that Linux machine, for example when I have limited licenses for certain tools, I'd like to make sure QB will utilize that Linux agent on behalf of the user I specified.

Is there a place to change such property before running agent.sh? I looked at /conf/wrapper.conf, and agent.sh itself, I couldn't find it.
(Is there a way to change it, when the agent has been installed?)

Thank you for answering all this!

  • replies 4
  • views 3313
  • stars 0
robinshen ADMIN ·
HealingQuickly ·

Hi Robin

Thanks for the reply

I followed the Unix installation guide, and I ran "agent.sh start", the terminal outputs say the agent is running, but it stops in about 3 seconds.
I modified conf/node.properties, APP_NAME, APP_LONG_NAME, because the Linux machine is also an agent for another QB server.

What could be the problem here? Did I miss anything?

Thanks

HealingQuickly ·

I tried to run bin/config.sh, and it gives the following error

java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
===========================================================
Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
        at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204)
        at java.awt.Window.<init>(Window.java:536)
        at java.awt.Frame.<init>(Frame.java:420)
        at java.awt.Frame.<init>(Frame.java:385)
        at javax.swing.SwingUtilities$SharedOwnerFrame.<init>(SwingUtilities.java:1758)
        at javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1833)
        at javax.swing.JOptionPane.getRootFrame(JOptionPane.java:1696)
        at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:863)
        at javax.swing.JOptionPane.showConfirmDialog(JOptionPane.java:795)
        at javax.swing.JOptionPane.showConfirmDialog(JOptionPane.java:757)
        at com.pmease.quickbuild.bootstrap.Config.configBuildAgent(Config.java:518)
        at com.pmease.quickbuild.bootstrap.Config.main(Config.java:69)

What seems to be the issue?

Thanks!

robinshen ADMIN ·

The config.sh needs to GUI terminal to run. But you can edit "node.properties" directly. As to why the process fails, please check logs/console.log and logs/quickbuild.log for details. Two things to note: 1. have you changed the port in node.properties? 2. does the agent process own all files recursively under the agent installation directory?