Open JonasHelming opened 2 years ago
Java version is the same on all machines: openjdk 11.0.11 2021-04-20 OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.18.04) OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.18.04, mixed mode, sharing)
@JonasHelming, I believe you can find the exit codes of that trace-server implementation here: https://github.com/tracecompass/tracecompass-incubator/blob/master/trace-server/org.eclipse.tracecompass.incubator.trace.server.jersey.rest.core/src/org/eclipse/tracecompass/incubator/internal/trace/server/jersey/rest/core/application/Application.java
Looks like value 4 (ERROR_RUNNING_TRACE_SERVER) is returned when a general Exception is caught, so you'll need to look in the log to find what caused it.
Thank you that helped. The issue was actually that the port 8080 was already taken by another service. MAYBE, you want to either: Log the port binding issue directly on the console (many tools do that) or Log a hint that more information is in the log and its location when quitting
But these two things are just suggestions, feel absolutly free to close this issue without doing anything and than you again for the help.
Used https://download.eclipse.org/tracecompass.incubator/trace-server/rcp/trace-compass-server-latest-linux.gtk.x86_64.tar.gz when launching it, it directly quits: Tracecompass-server: JVM terminated. Exit code=4
Interestingly, we do observe this only on specific machines, so this is not a general issue, but might be related to the set-up. However, any hints what Exit code 4 means in this context are highly appreciated!