<div dir="ltr"><div><div>Andreas, thank you very much for your time in the instructions,now the display of tiles worked properly for Berkeley databases. I have followed the instructions for the Apache Server. However, I'm using Nginx and change the permissions of the Group and user as follows:<br>
<br>sudo chown nginx:nginx /tmp/foo & sudo chmod - Rfv g+rwx /tmp/foo<br><br>Again many thanks for your help.<br><br>I have checked all types of caches, and seems to work faster with Berkeley databases.<br><br></div>
regards,<br>
<br></div>Samuel Mesa.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-01-28 Eichner, Andreas - SID-NLKM <span dir="ltr"><<a href="mailto:Andreas.Eichner@sid.sachsen.de" target="_blank">Andreas.Eichner@sid.sachsen.de</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">> Andreas, thanks for the explanation about the Berkeley Database.<br>
> However, I have made several changes of permissions and owner of the<br>
> files produced by mapcache_seed, and I still get the same error on<br>
> the OpenLayers demo.<br>
><br>
> I don't know if others users have had the same error with Mapcache<br>
> and Berkeley Databases in Ubuntu Server.<br>
><br>
<br>
</div>Have you build mapcache yourself or do you use a prebuild one? Today I build mapcache with BerkeleyDB support on a Debian Testing box. Basically, this is what I did:<br>
<br>
* check out latest master<br>
* apt-get install libdb5.1-dev<br>
* follow the install instructions in INSTALL, add -DWITH_BERKELEY_DB=ON to "cmake .." and make sure "* Berkeley DB: /usr/lib/..." is listed under "Optional components"<br>
* add the following config element to mapcache.xml if it does not exist yet:<br>
<cache name="bdb" type="bdb"><br>
<!-- base (required)<br>
absolute filesystem path where the berkeley db database file is to be stored.<br>
this directory must exist, and be writable<br>
--><br>
<base>/tmp/foo/</base><br>
<!-- key_template (optional)<br>
string template used to create the key for a tile entry in the database.<br>
defaults to the value below. you should include {tileset}, {grid} and {dim} here<br>
unless you know what you are doing, or you will end up with mixed tiles<br>
<key_template>{tileset}-{grid}-{dim}-{z}-{y}-{x}.{ext}</key_template><br>
--><br>
</cache><br>
* create the base directory and grant access to web server:<br>
# mkdir /tmp/foo && chgrp www-data /tmp/foo && chmod g+rwx /tmp/foo<br>
* set the <cache> element to "bdb" in a tileset<br>
* populate the cache by seeding a tileset that uses a bdb-cache<br>
* the base should look something like this:<br>
# ls -l /tmp/foo/<br>
insgesamt 11528<br>
-rw-r--r-- 1 www-data www-data 9764864 Jan 28 13:30 bdb.db<br>
-rw-r----- 1 www-data www-data 24576 Jan 28 13:35 __db.001<br>
-rw-r----- 1 www-data www-data 253952 Jan 28 13:35 __db.002<br>
-rw-r----- 1 www-data www-data 1318912 Jan 28 13:35 __db.003<br>
-rw-r----- 1 www-data www-data 811008 Jan 28 13:35 __db.004<br>
<br>
* to verify this worked use the strings command on the bdb.db and grep for the tileset name: # strings /tmp/foo/bdb.db|grep MyTilesetName<br>
* use the demo service to check if it is working<br>
<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>---<div> .~.<div> / v \</div><div> // \\</div><div> /( )\</div><div> ^`~'^</div></div>
</div>