Changing URL for Updates on a headless system

My organization blocks all http:// addresses which of course is how all the updates are stored in SNAP. On our desktops, it’s easy to change the update addresses with https:// using the GUI; however, the system I’m trying to update to 8.0.3 is a headless Linux server without X11 or any graphical capabilities. I’ve searched through all config and xml files in the SNAP directories but haven’t come across anywhere I can edit the update repository address prefix.

Anyone have a suggestion how to overcome this. We focus on SAR in arctic regions and I have been mighty impressed with the new Copernicus 30m Global DEM and would like to transition our automated workflows to use that DEM but I cannot until I can upgrade to 8.0.3

Thanks,
Shawn

The URLs for the updates are not easy to find.
The configuration is stored within a jar file.
If snap is the installation directory it is located in snap/snap/modules
There you need to look for the file org-esa-snap-snap-rcp.jar.
Within this file you need to navigate to org/esa/snap/rcp.
Open the file layer.xml in an text editor.
There you will find the following lines:


Change http to https. Store the changes in the jar file.
You need to do these changes after an update again.

But I have updated the URLs in the source code, so it will be included in the coming updates.
[SNAP-1434] URLs to the updatecenter to use HTTPS - JIRA (atlassian.net)

2 Likes

Thank you so much!

Actually, a little ahead of myself. I edited /org/esa/snap/rcp/layer.xml in org-esa-snap-snap-rcp.jar. To ensure the update took, I exported it from the .jar again and double checked the addresses and they were correct. My update process was unchanged.

image

It returned to the command prompt after the last line in that screen grab.

2 Likes

Glad that we activated HTTPS for all content on the STEP Portal recently… :blush:

Hi @shawnmcarter, sorry to come back to this issue but I am running into the same problem as you. Did you manage to find a workaround?

Also you mentioned changing this in the GUI works fairly easy, however, when I try locally the updates keep failing. What I did is change the addresses to https in the Plugins/Settings menu. Is there something I am missing? Nevermind this question it works now on SNAP Desktop by changing all URLs on the Plugin Settings.

@marpet you mentioned the updated URLs will come in the next updates:

But I have updated the URLs in the source code, so it will be included in the coming updates.
[SNAP-1434] URLs to the updatecenter to use HTTPS - JIRA (atlassian.net)

Does this mean it will only come with SNAP-9? If yes, is there any time frame of the release of that version?

Thank you both for any help!

The URLs use https sind SNAP 8.0.4.
If you have updated the modules https should be already used.

SNAP 9 will include this fix too. It will be released in the next weeks.

SNAP 9 will include this fix too. It will be released in the next weeks.

Thank you @marpet, this is really great to hear!

The URLs use https sind SNAP 8.0.4.
If you have updated the modules https should be already used.

This is exactly my problem, I cannot update modules because the current version uses HTTP, so I cannot take advantage of this. But if, as you say, SNAP 9 will be released in the next weeks then I can wait for that release to work with. Thank you again.