<div dir="auto"><div>Hi<br><br><div class="gmail_quote"><div dir="ltr">Am Sa., 10. Nov. 2018, 04:39 hat Vaclav Petras <<a href="mailto:wenzeslaus@gmail.com">wenzeslaus@gmail.com</a>> geschrieben:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Fri, Nov 9, 2018 at 6:39 PM Markus Neteler <<a href="mailto:neteler@osgeo.org" target="_blank" rel="noreferrer">neteler@osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
while we meanwhile use GRASS GIS 7.6.svn in docker for months we ran<br>
into this issue today:<br>
<br>
root@52e6935c3247:/grassdb# grass76 --text c 'EPSG:4326'<br>
/actinia_core/grassdb/latlongtest<br>
Cleaning up temporary files...<br>
Starting GRASS GIS...<br>
Creating new GRASS GIS location <latlongtest>...<br>
Traceback (most recent call last):<br>
  File "/usr/local/bin/grass76", line 2162, in <module><br>
    main()<br>
  File "/usr/local/bin/grass76", line 2075, in main<br>
    geofile=params.geofile, create_new=True)<br>
  File "/usr/local/bin/grass76", line 1005, in set_mapset<br>
    create_location(gisdbase, location_name, geofile)<br>
  File "/usr/local/bin/grass76", line 807, in create_location<br>
    epsg=epsg, datum_trans=datum_trans)<br>
  File "/usr/local/grass-7.6.svn/etc/python/grass/script/core.py",<br>
line 1538, in create_location<br>
    encoding='utf-8', mode='w')<br>
  File "/usr/lib/python2.7/codecs.py", line 898, in open<br>
    file = __builtin__.open(filename, mode, buffering)<br>
IOError: [Errno 2] No such file or directory:<br>
'/actinia_core/grassdb/latlongtest/PERMANENT/MYNAME'<br>
<br>
... why that?<br>
<br>
root@52e6935c3247:/grassdb# set | grep -i utf<br>
LANG=C.UTF-8<br>
LC_ALL=en_US.UTF-8<br>
<br>
The directory is writable (I can mkdir the entire path without issues).<br>
<br>
I wonder what I should look for here?<br></blockquote><div><br></div><div>For the open() to create MYNAME (mode is w), /actinia_core/grassdb/latlongtest/PERMANENT/ needs to exist already. </div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">I see. But I'm using -c (user point of view).</div><div dir="auto"><br></div><div dir="auto">Maybe we need this solution?</div><div dir="auto"><a href="https://stackoverflow.com/a/273227">https://stackoverflow.com/a/273227</a><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div>Without looking to the source code, I assume that create_location() is creating .../latlongtest/PERMANENT directories (I don't expect it actually tests if it was successful unless the underlying Python function checks that).</div><div><br></div><div>If /actinia_core/grassdb/ is a volume, I would try the same in a directory which is not a volume.</div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">It is a volume outside the docker and mounted inside.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div> Creating minimal reproducible example would be my next step, naive, but could help.</div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">The same docker image [1] doesn't show this behavior on a different machine.</div><div dir="auto"><br></div><div dir="auto">[1]  (ok the repo name is anticipating the near future :) ) <a href="https://hub.docker.com/r/mundialis/grass-gis-stable/">https://hub.docker.com/r/mundialis/grass-gis-stable/</a></div><div dir="auto"><br></div><div dir="auto">I'll try a bit more.</div><div dir="auto"><br></div><div dir="auto">Markus</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><br></div></div>
</blockquote></div></div></div>