We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.

Ansys Learning Forum Forums Discuss Simulation Photonics Error when running a topology optimization on a cluster (Linux) Reply To: Error when running a topology optimization on a cluster (Linux)

Lito
Ansys Employee

@samupekkaojanen,

The error below, indicates that the API was not able to open/launch the Lumerical FDTD CAD/GUI, and could not find the CAD/GUI session. 

lumapi.LumApiError: 'Exception [::appOpened]: Session not found'

Are you running CAD jobs (scripts/API) on a headless cluster? You can set the environment variable below on the 2023R2 and newer releases, prior to running the API/script, if you are not using virtual display (Xvfb); 

export QT_QPA_PLATFORM=offscreen

Then set lumapi to "hide" the CAD/GUI session:

lumapi.FDTD(hide=True)

See our KB for details: > Running CAD jobs on headless Linux systems – Ansys Optics

Hope this helps.Â