#snap #s2tbx #s1tbx
log.txt (9.7 KB)
Hello! I looked at the other posts with the “Failed to Initialize the Database” titles, and they weren’t quite like the one I’m getting. I use snap on the command line (I ssh into this system and do not have sudo permission). For context, I am trying to execute a graph (.xml): Apply-Orbit-File, Remove-GRD-Border-Noise, ThermalNoiseRemoval, Calibration, and Terrain Correction on S1 files. I tested the .xml on my local machine and it works fine. I’ve spent too much time trying to debug my issues, so I’m coming here for help.
First, here is some of my system info:
NAME="Red Hat Enterprise Linux Server"
VERSION="7.9 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.9"
PRETTY_NAME="Red Hat Enterprise Linux"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.9:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.9
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.9"
Other Info:
Java: ~/jdk-21.0.1/bin/java
which is added to path.
Conda: ~/anaconda3/bin/conda
and version conda 4.9.2
also added to path
GDAL (I think??): ~/anaconda3/envs/gee/bin/gdalinfo
Finally, attached is the log. Some things that I noticed:
- SEVERE: org.esa.snap.product.library.v2.activator.ProductLibraryActivator: Failed to initialize the database.
- org.h2.jdbc.JdbcSQLException: Database may be already in use: “Locked by another process: /home/name/.snap/product-library/products.lock.db”. Possible solutions: close all other connection(s); use the server mode [90020-197]
- INFO: org.esa.s2tbx.dataio.gdal.GDALVersion: Internal GDAL 3.2.1 set to be used by SNAP.
Native library load failed. - java.lang.UnsatisfiedLinkError: /home/6ru/.snap/auxdata/gdal/gdal-3-2-1/lib/jni/libgdalalljni.so: /lib64/libm.so.6: version `GLIBC_2.27’ not found (required by /home/6ru/.snap/auxdata/gdal/gdal-3-2-1/lib/jni/libgdal.so)
- SEVERE: org.esa.s2tbx.dataio.gdal.GDALLoader: Failed to initialize GDAL native drivers. GDAL readers and writers were disabled.java.lang.reflect.InvocationTargetException
- WARNING: org.esa.s1tbx.orbits.gpf.ApplyOrbitFileOp: No valid orbit file found for 01-JUN-2019 15:44:50.468925
- P.S. Most of my images DO have orbit files that should be found, but the ApplyOrbitFile function fails here. I assume because of one of the previous errors.
What I’ve done so far:
- I tried deleting the
.snap
folder - I tried deleting
.snap/auxdata/gdal/
- I added
s2tbx.dataio.gdal.installed=false
to s2tbx.properties and that didn’t help. - I installed Java to my home directory
- I ran the bash script executing the snap graph while in my conda environment
- And definitely other things I can’t think of