We’re putting the final touches on our new badges platform. Badge issuance remains temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.

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.Â