Impossible to install snappy on ubuntu nogui mode SNAP 11.0.0

Dear Support team, we need again your help.
We are trying to setup snappy in an Ubuntu Server 22.04 (at the moment on a docker to be more precise).

We downloaded esa-snap_sentinel_linux-11.0.0.sh from

choosing the main download for Sentinel Toolboxes for Linux 64 bit.

We install SNAP running

./esa-snap_sentinel_linux-11.0.0.sh -q

We can find the esa-snap folder.

If we run

<snap-home>/esa-snap/bin/snappy-conf <our python exe> <target lib folder>

we receive this error:

Unrecognized option --snappy

I read something similar but the proposed solution was to install the plugin using the user interface and we cannot do it because we are on a server without user interface.

We noticed that in EsaSnappyArgsProcessor there is still the snappy parameter
But in SnapArgsProcessor instead there is a python one.

We tried also both “manual” commands:

./snap --nogui --nosplash --snappy /home/appwasdi/venv/bin/python /home/appwasdi/venv/lib/python3.10/site-packages/

./snap --nogui --nosplash --python /home/appwasdi/venv/bin/python /home/appwasdi/venv/lib/python3.10/site-packages/

The first version just return
Unrecognized option --snappy

The second version works a little bit but ends with no output.
from the logs we see that is blocking trying to open the gui.
The last exception is this one

java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
        at java.desktop/java.awt.dnd.DragSource.getDefaultDragSource(DragSource.java:222)
        at org.netbeans.core.windows.view.ui.toolbars.DnDSupport.<init>(DnDSupport.java:93)
        at org.netbeans.core.windows.view.ui.toolbars.ToolbarConfiguration.dndSupport(ToolbarConfiguration.java:107)
        at org.netbeans.core.windows.view.ui.toolbars.ToolbarConfiguration.refresh(ToolbarConfiguration.java:287)
        at org.netbeans.core.windows.view.ui.toolbars.ToolbarConfiguration$6.run(ToolbarConfiguration.java:482)
        at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
        at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
        at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
[catch] at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

How can we proceed?
Maybe there is a command to execute before to “install” the puglin?
Why --nogui is not working?
The right parameter is --snappy or --python?

We read these pages without finding a solution at the moment:

https://senbox.atlassian.net/wiki/spaces/SNAP/pages/2499051521/Configure+Python+to+use+the+new+SNAP-Python+esa_snappy+interface+SNAP+version+10

https://senbox.atlassian.net/wiki/spaces/SNAP/pages/30539785/Update+SNAP+from+the+command+line

Thank you
Paolo and WASDI Team

I have some news! It looks that the plugin must be installed before.
I executed:

./snap --nosplash --nogui --modules --install eu.esa.snap.esa.snappy

And THEN:

./snap --nogui --nosplash --snappy /home/appwasdi/venv/bin/python /home/appwasdi/venv/lib/python3.10/site-packages/

The installer of the plugin still logs:

Cannot install. No match for [eu.esa.snap.esa.snappy].

But in reality it looks that the plugin is installed, becasue we see the new python lib in our requested folder and it looks we can import it in python.

2 Likes