Hi everybody!
I am using the Graph Processing Tool (GPT) of SNAP on Linux to preprocess and subset Sentinel-1 images. This worked well until yesterday midnight. Suddenly there is a problem with new downloaded DEM SRTM auxdata. If the files exist from a processing job in the past for the given subset, everything works fine. If new files are required, SNAP downloads them automatically, but the downloaded ZIP-files are suddenly corrupted and GPT stays in an endless loop trying to unpack the new ZIP-file:
INFO: org.esa.snap.core.dataop.dem.ElevationFile: http retrieving http://step.esa.int/auxdata/dem/SRTMGL1/N40W080.SRTMGL1.hgt.zip
SEVERE: org.esa.snap.core.dataop.dem.ElevationFile: error in opening zip file
INFO: org.esa.snap.core.dataop.dem.ElevationFile: http retrieving http://step.esa.int/auxdata/dem/SRTMGL1/N40W080.SRTMGL1.hgt.zip
SEVERE: org.esa.snap.core.dataop.dem.ElevationFile: error in opening zip file
INFO: org.esa.snap.core.dataop.dem.ElevationFile: http retrieving http://step.esa.int/auxdata/dem/SRTMGL1/N40W080.SRTMGL1.hgt.zip
SEVERE: org.esa.snap.core.dataop.dem.ElevationFile: error in opening zip file
[...]
After killing the GPT process and testing the ZIP-file, I can see that it is corrupted:
~/.snap/auxdata/dem/SRTM 1Sec HGT$ unzip -t N40W080.SRTMGL1.hgt.zip
Archive: N40W080.SRTMGL1.hgt.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of N40W080.SRTMGL1.hgt.zip or
N40W080.SRTMGL1.hgt.zip.zip, and cannot find N40W080.SRTMGL1.hgt.zip.ZIP, period.
If I remove the corrupted ZIP-file and download it manually using wget, the ZIP-file is totally fine:
~/.snap/auxdata/dem/SRTM 1Sec HGT$ rm N40W080.SRTMGL1.hgt.zip
~/.snap/auxdata/dem/SRTM 1Sec HGT$ wget http://step.esa.int/auxdata/dem/SRTMGL1/N40W080.SRTMGL1.hgt.zip
--2020-12-05 13:05:27-- http://step.esa.int/auxdata/dem/SRTMGL1/N40W080.SRTMGL1.hgt.zip
Resolving step.esa.int (step.esa.int)... 37.252.127.80
Connecting to step.esa.int (step.esa.int)|37.252.127.80|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://step.esa.int/auxdata/dem/SRTMGL1/N40W080.SRTMGL1.hgt.zip [following]
--2020-12-05 13:05:27-- https://step.esa.int/auxdata/dem/SRTMGL1/N40W080.SRTMGL1.hgt.zip
Connecting to step.esa.int (step.esa.int)|37.252.127.80|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9572548 (9.1M) [application/zip]
Saving to: āN40W080.SRTMGL1.hgt.zipā
N40W080.SRTMGL1.hgt.zip 100%[=============================================================================>] 9.13M 6.50MB/s in 1.4s
2020-12-05 13:05:28 (6.50 MB/s) - āN40W080.SRTMGL1.hgt.zipā saved [9572548/9572548]
~/.snap/auxdata/dem/SRTM 1Sec HGT$ unzip -t N40W080.SRTMGL1.hgt.zip
Archive: N40W080.SRTMGL1.hgt.zip
testing: N40W080.hgt OK
No errors detected in compressed data of N40W080.SRTMGL1.hgt.zip.
If I start the GPT process again, no error occurs and the preprocessing and creation of the subset works fine.
I tried this on two machines:
Ubuntu 18.04 with SNAP 7
Ubuntu 20.04 with SNAP 8
The problem occurs on both systems since last night.
Does someone encounter a similar problem or knows what the problem could be?
Thanks!