Hi Team,
We want to enable https on the agent to connect from the server, so we have generated a keystore on the agent as per below documentation, and now we wanted to enable by running config.sh but unable to run since X11 display is not enabled on the server. Please see the below error. Could you please suggest a way to enable through cli.
Documentation - https://wiki.pmease.com/display/QB14/Protect+QuickBuild+using+SSL
Error -
[whplauto@nuusea1bwhplutlbst2001 ~]$ cd quickbuild/buildagent/bin/
[whplauto@nuusea1bwhplutlbst2001 bin]$ ./config.sh
openjdk version "1.8.0_422"
OpenJDK Runtime Environment (build 1.8.0_422-b05)
OpenJDK 64-Bit Server VM (build 25.422-b05, 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. (Window.java:536)
at java.awt.Frame. (Frame.java:420)
at java.awt.Frame. (Frame.java:385)
at javax.swing.SwingUtilities$SharedOwnerFrame. (SwingUtilities.java:1763)
at javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1838)
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)
Thank you!
Regards,
Maniraj SV