<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi Seth,<br>
<br>
I would recommend to move the mapcache folder to <span
class="pl-s">/usr/local/share/mapcache<br>
<br>
Best,<br>
Angelos<span class="pl-pds"></span></span><br>
<br>
On 7/24/19 6:04 PM, Seth G wrote:<br>
</div>
<blockquote type="cite"
cite="mid:872f963f-8ca8-4641-97de-9e515ff72306@www.fastmail.com">
<pre class="moz-quote-pre" wrap="">Hi,
I'm currently testing the latest beta from <a class="moz-txt-link-freetext" href="http://aiolos.survey.ntua.gr/gisvm/dev/osgeolive-nightly-build163-amd64-38dc97a-master.iso">http://aiolos.survey.ntua.gr/gisvm/dev/osgeolive-nightly-build163-amd64-38dc97a-master.iso</a> with MapCache.
There is a permssions issue causing tiles to return "failed to create directory /home/user/mapcache/tilecache..Permission denied"
The <a class="moz-txt-link-freetext" href="https://github.com/OSGeo/OSGeoLive/blob/master/bin/install_mapcache.sh#L44">https://github.com/OSGeo/OSGeoLive/blob/master/bin/install_mapcache.sh#L44</a> script runs the following:
# make a folder for the tilecache abd set the owner to be www-data
MAPCACHE_DIR=/home/user/mapcache
mkdir -p "$MAPCACHE_DIR/tilecache"
chown -R www-data:www-data "$MAPCACHE_DIR/tilecache"
On the latest release the owner of /home/user/mapcache/tilecache is still "user". If I run these manually (with sudo) on the latest release everything works correctly.
The Zoo installer also has a similar approach:
<a class="moz-txt-link-freetext" href="https://github.com/OSGeo/OSGeoLive/blob/master/bin/install_zoo-project.sh#L77">https://github.com/OSGeo/OSGeoLive/blob/master/bin/install_zoo-project.sh#L77</a>
It refers to ticket <a class="moz-txt-link-freetext" href="https://trac.osgeo.org/osgeolive/ticket/1850">https://trac.osgeo.org/osgeolive/ticket/1850</a> which has discussions of folder locations for a tile cache.
Should I update the install/configs to point to /var/mapcache/tilecache to keep the permssions?
I presume ownership of the folder is changed in a later script, or is not advised.
Seth
--
web:<a class="moz-txt-link-freetext" href="http://geographika.co.uk">http://geographika.co.uk</a>
twitter: @geographika
_______________________________________________
osgeolive mailing list
<a class="moz-txt-link-abbreviated" href="mailto:osgeolive@lists.osgeo.org">osgeolive@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/osgeolive">https://lists.osgeo.org/mailman/listinfo/osgeolive</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Angelos Tzotsos, PhD
Charter Member
Open Source Geospatial Foundation
<a class="moz-txt-link-freetext" href="http://users.ntua.gr/tzotsos">http://users.ntua.gr/tzotsos</a></pre>
</body>
</html>