6

I want to cache a layer from Geoserver. I use Geoserver 2.5.1 on Ubuntu 13.10.

  • In the web.xml file under tomcat7/webapps/geoserver/WEB-INF I added the following part: <context-param> <param-name>GEOWEBCACHE_CACHE_DIR</param-name> <param-value>/opt/gwc</param-value> </context-param>
  • I enabled Enable direct integration with GeoServer WMS under Caching defaults.
  • I use the sample data tiger:giant_polygon where Create a cached layer for this layer is enabled

After opening the tile preview with EPSG:4326 /jpeg for the layer, the folder where my tiles are supposed to be saved is still empty. Also the DISK USED colum shows N/A. enter image description here

What is missing?

8
  • 2
    Have you given ownership of /home/uli/Downloads/tiles to Tomcat7? Commented Jun 23, 2014 at 11:22
  • 2
    also, check you Tomcat7 Logs as per here Commented Jun 23, 2014 at 11:24
  • 2
    Ok, you changed the directory, have you given tomcat7 ownership of /opt/gwc Commented Jun 23, 2014 at 11:28
  • 1
    If I try to change the ownership to Tomcat7 I get: chown: invalid user: ‘Tomcat7’
    – ustroetz
    Commented Jun 23, 2014 at 11:29
  • 1
    Also in the Geoserver Beginner's Guide book the owner of the folder is root. Are you sure the ownership needs to change?
    – ustroetz
    Commented Jun 23, 2014 at 11:34

1 Answer 1

5

Tomcat and Geoserver need write permissions. You need to give tomcat7 ownership of /opt/gwc

3
  • The tiles are now saved inside /opt/gwc. Though the column Disk Used still shows N/A. What is the reason for that?
    – ustroetz
    Commented Jun 23, 2014 at 12:07
  • You need to ask a new question on that issue .. but possible you do not have enough tiles in there yet .. I have never paid much attention to that, I look at the directories to see how the caching is populating .. Commented Jun 23, 2014 at 12:26
  • 5
    you have to turn quota on for the disk used to update
    – Ian Turton
    Commented Jun 23, 2014 at 12:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.