When running a job that requires a CAD to be running on the compute node (eg. our Python API, or LumOpt), you will need to have a graphics environment (even if it is hidden). While having a full graphical interface on all instances is our supported solution, if this is possible to try a virtual X11 display.
https://www.x.org/releases/X11R7.6/doc/man/man1/Xvfb.1.xhtml
Notes: This is not supported on all Linux installations and is provided as is.
Using a virtual display (Xvfb)
- Install Xvfb (consult your operating systems documentation for proper instructions)
eg.
$ sudo yum install xorg-x11-server-Xvfb
- Run your application with a virtual display:
eg.
#!/bin/bash
xvfb-run --auto-servernum /opt/lumerical/2020a/bin/fdtd-solutions -run your_script.lsf
xvfb-run --auto-servernum python lumopt_example.py