-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
opp_neddoc does not work in headless mode #1043
Comments
Running Example: |
Thanks for your response.
There is probably some way to get it running in docker, but I myself wasn't able to do it. |
That was unexpected, thanks for the info.
We'll try to fix it in the IDE Java code, but we'll be unable to pull it off if it requires changes in the Eclipse platform libs such as SWT... |
Running with
I have not tried in a docker container though. |
Yes, interestingly this works perfectly well for me even on a headless server:
However if i run the official omnetpp-gui docker container: And execute the following script in it:
and then
nothing happens until cancelling (I waited for multiple minutes, on the same machine outside the docker container the first dots appeared after a few seconds). Interestingly in the second case there is an additional new line before canceling. Or summarized: |
I tried to set up a Gitlab pipeline which automatically generates my NED documentation.
opp_neddoc
however, does not seem to work without a connected display (which seems weird, as it is supposed to be a command line tool)What I've tried:
1: Use the omnetpp docker container:
Docker Container: ghcr.io/omnetpp/omnetpp:u22.04-6.0.1
Running opp_neddoc fails with "The IDE is not installed, but it is required by opp_neddoc!"
Docker Container: ghcr.io/omnetpp/omnetpp-gui:u22.05-6.0.1
Running opp_neddoc fails with
So i changed
omnetpp/src/utils/opp_neddoc
Line 48 in 350e679
to
$LAUNCHER "$@" $WORKSPACE_ARGS 2>&1
to actually see some logs and then it fails withSo the problem seems to be that opp_neddoc is only able to run on a machine with a display which feels quite weird as it is supposed to be a command line tool.
Additional testing:
I install OMNeT++ on a headless Ubuntu-Server and connected via SSH to it.
opp_neddoc
command fails with the error messages aboveThese is no other difference between the two tests, so for some reason the
opp_neddoc
command is unable to execute on a headless server even though it does never create a GUI window.Is there any way to work around this?
The text was updated successfully, but these errors were encountered: