actinia-org / actinia-docker

Various Dockerimages and docker-compose configs for actinia (see also https://hub.docker.com/r/mundialis/actinia/tags and https://hub.docker.com/r/mundialis/actinia-core/tags)
GNU General Public License v3.0
2 stars 3 forks source link

ERROR using SNAP 10 #83

Open anikaweinmann opened 3 months ago

anikaweinmann commented 3 months ago

When trying to update to SNAP 10 (see https://github.com/mundialis/esa-snap/pull/41), the following error occurred:

i.sentinel1.pyrosargeocode -fndm input=/grassdb/....SAFE.zip output_directory=/grassdb/tmp_s1/out aoi=/grassdb/tmp_s1/aoi.geojson elevation=dem temporary_directory=/grassdb/tmp_s1/tmp/ polarizations=VV auxillary_data=layoverShadowMask nprocs=1 --v

Start geocoding scene
....SAFE.zip
ERROR: Geocoding failed with the following error: cannot read version
       information from /root/.snap/system/var/log/messages.log.
       Please restart SNAP.
       Please check the log files

In the log file the version is listed as:

  Product Version         = SNAP (Build 11.3-6b879cb782eaa4f13a731aff82eada11289a66f7)
  Operating System        = Linux version 5.15.0-83-generic running on amd64
  Java; VM; Vendor        = 11.0.23; OpenJDK 64-Bit Server VM 11.0.23+9-alpine-r0; Alpine
  Runtime                 = OpenJDK Runtime Environment 11.0.23+9-alpine-r0
  Java Home               = /usr/lib/jvm/java-11-openjdk
  System Locale; Encoding = en_gb (snap); UTF-8
  Home Directory          = /root
  Current Directory       = /
  User Directory          = /root/.snap/system
  Cache Directory         = /root/.snap/system/var/cache
  Installation            = /usr/local/snap/snap
                            /usr/local/snap/platform
                            /usr/local/snap/etc
                            /usr/local/snap/ide
                            /usr/local/snap/microwavetbx
                            /usr/local/snap/rstb
                            /usr/local/snap/smos
                            /usr/local/snap/platform

The installed pyroSAR version is too old (0.24.0), but alpine 3.18 does not install the new version (0.26.0). Only pyronSAR>=0.26.0 ist compatibe with SNAP 10.

For the new SNAP version openjdk11 has to be installed to change here.

neteler commented 3 months ago

Does @ninsbl perhaps have a suggestion here?

ninsbl commented 2 months ago

Hmm. We have not moved to SNAP 10 yet, and we actually use actinia-ubuntu because our workflows require pytorch which we could not get working in alpine... So I do not have any suggestions here, sorry... Will come back to you when we move to SNAP 10 on Ubuntu...

(BTW: Ubuntu builds are much faster and the size advantage of alpine is almost gone once heavy packages like pytorch and torchvision are installed...).

ninsbl commented 1 month ago

Is that still an issue?

I am about to move to SNAP 10 on UBUNTU as well. However, I tried to install pyrosar>=0.26 in Alpine 3.18 and it seems to work fine in this test-docker-file:

FROM alpine:3.18 as version
RUN apk add python3 py3-pip postgresql-dev gcc python3-dev musl-dev
RUN python3 -m pip install --break-system-packages pyrosar>=0.26
anikaweinmann commented 1 month ago

Yes it is still an issue. We have not tried it again. We are using now alpine:3.20 as base for actinia. Thank you then we will try if it works also on Alpine 3.20.

ninsbl commented 1 month ago
FROM alpine:3.20 as version
RUN apk add python3 py3-pip postgresql-dev gcc python3-dev musl-dev
RUN python3 -m pip install --break-system-packages pyrosar>=0.26

seems to work fine as well...