cancel
Showing results for 
Search instead for 
Did you mean: 

Command Line Error: Unable to init server

sagarzong
Associate

- Environment: Gitlab CI Runner, Running a debian:bullseye-slim  image with the stm32cubeide installed on /opt/st/stm32cubeide_1.15.0/

- Command Running: $  /opt/st/stm32cubeide_1.15.0/stm32cubeide -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data $WORKSPACE -cleanBuild $APP/Release

Where $WORKSPACE is the path where the project is located and $APP the name of the app

- Error: 

Unable to init server: Could not connect: Connection refused
122Stm32cubeide: Cannot open display:
123Stm32cubeide:
124JVM terminated. Exit code=1
 
- Expected Behaviour: Compilation successfull
1 REPLY 1
Pavel A.
Evangelist III

If headless-build.sh is provided in the CubeIDE binary dir, please run it.

Else try to add option --launcher.suppressErrors