When using the following simple graph, I get some errors which I find quite hard to explain. I am running gpt inside of a docker container.
<graph id="SentinelProc">
<version>1.0</version>
<node id="SentinelReader">
<operator>Read</operator>
<parameters>
<file>${input}</file>
</parameters>
</node>
<node id="Write">
<operator>Write</operator>
<sources>
<sourceProduct refid="SentinelReader"/>
</sources>
<parameters class="com.bc.ceres.binding.dom.XppDomElement">
<file>${output}</file>
<formatName>GDAL-GTiff-WRITER</formatName>
</parameters>
</node>
</graph>
I get two different kinds of errors:
- org.esa.snap.lib.openjpeg.activator.OpenJPEGInstaller: Can’t set execution permissions for executable /working-dir/.snap/auxdata/openjpeg/10.0.0/openjpeg-2.1.0-linux64/bin/opj_compress
- DiskCache2 failed to create directory /home//.unidata/cache/
/home//.unidata/cache/working-dir/.snap/var/cache/s2tbx/l1c-reader/10.0.0/46d82f939549639427c2d669e8abaf56/aux_camsfo
The first one seems to suggest wrong permissions in my .snap folder, even though all files and subdirectories have rwxrwxrwx.
The second issue is much stranger, snap seems to try to create a cache folder in my home directory, which does not exist inside of the docker container.
My HOME env is set to /working-dir and snap.userdir=/working-dir/.snap/. Does anyone know what is causing these errors?