run collect from server without display

  • Asked
  • Active
  • Viewed 1317 times
0

Dear all,

I have set up collect (version 4.0.102) on a linux server. NAME="Ubuntu" VERSION="20.04.6 LTS (Focal Fossa)"

I start the executable with ./OpenForisCollect-launcher.run

It works well, but sometime I need to start collect from ssh connexion, for example after that I reboot the server. I am struggling, because Collect require a display to run and with ssh, there are no display.

I got the following message: ./OpenForisCollect-launcher.run Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it.

I tried to set a DISPLAY, with Xvfb for example, but it did not work:

Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using 'localhost:10' as the value of the DISPLAY variable.

So my question, is there a way to start collect without any display? If I understand well, the display is only required for the window that tell us that collect is running.

I thank you in advance for any help. Jonathan Lisein

1

Accepted answer

Dear Jonathan,
The solution you proposed should work.
However, if you are running Collect in a server and you need it to be accessible to multiple users at the same time, you should consider a proper server installation of Collect.
Try to follow the instructions in the user manual or in this question in the support forum: Setup Collect Desktop in a server for a multi-user environment
Thanks,
Open Foris Team

0

Accepted answer

My IT specialist found the following solution.

run with virtual X11 with xvfb:

xvfb-run ./OpenForisCollect-launcher.run &

Your answer

Markdown text. Shortcuts: Ctrl+B bold, Ctrl+I italic, Ctrl+K link, Ctrl+E code, Ctrl+Shift+V paste as plain text. Tab indents list items and code; press Escape, then Tab, to leave the text box.

Insert an image

Say what the image shows, for people who can't see it.

Keyboard shortcuts

Anywhere

?
Show this list
/
Search
g h
Go to the home page
g q
Go to the questions
g t
Go to the tags
g u
Go to the users
a
Ask a question

Lists of questions

j k
Next or previous question
Enter
Open the question

Question pages

j k
Next or previous post

Shortcuts never apply while you type in a text field. Members can turn them off in their preferences.