I try to start the ControlCenter in headless mode, but I hit this error: java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it.

There is no XServer on this machine so the error does make sens. Documentation mention we can start it in command line mode: http://developer.axonivy.com/doc/latest/EngineGuideHtml/misc.html#misc-toolreference-servercontrolcenter

But I can't manage to make it work. I've try various switch and various syntax (-headless, -h) and try to display an help file somehow (-?,?... )

I've try to figure it out by looking at ControlCenter.sh content, control.conf and launcher.sh. Didn't find anything relevant. This is on our version of engine 6.0.5. I've try to run the 6.3 version as well (present on this server) and I got the same exception.

asked 01.02.2017 at 17:17

RemiMorin's gravatar image

RemiMorin
(suspended)
accept rate: 50%


How do we stop start the server properly then?
I guess I can't just kill the process.
I try to get hold on administrative tools and task. If you can't start the ControlCenter on the command line you should update your documentation accordingly: http://developer.axonivy.com/doc/latest/EngineGuideHtml/misc.html#misc-toolreference-servercontrolcenter

Platform    Console support     Launcher  
Windows     no                  bin/ControlCenter.exe  
Windows     yes                 bin/ControlCenterC.exe  
Linux       yes                 bin/ControlCenter.sh  
Table 7.7. ControlCenter Launchers
link

answered 02.02.2017 at 16:56

RemiMorin's gravatar image

RemiMorin
(suspended)
accept rate: 50%

Just use the AxonIvyEngine script. Star the engine in any shell :

bin/AxonIvyEngine -start

and stop a running engine from any other shell:

bin/AxonIvyEngine -stop

(03.02.2017 at 15:09) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image

but yes I agree. The documentation is missleading

(03.02.2017 at 15:11) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image

The control center is a Swing UI and can therefore not start in headless mode.

Anyway you can start the AxonIvyEngineConfig in headless mode in order to configure system administrators or the systemDB.

To actually start a 6.5 engine config ui headless I use a bash

export JAVA_OPT=-Djava.awt.headless=true
./AxonIvyEngineConfig -headless

an example is available here: https://github.com/dgauch/docker-axonivy-engine/blob/master/Dockerfile

link

answered 02.02.2017 at 12:36

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958
accept rate: 70%

edited 02.02.2017 at 14:28

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×32
×27

Asked: 01.02.2017 at 17:17

Seen: 2,370 times

Last updated: 03.02.2017 at 15:11