[Geoserver-users] geowebcache seeding with plugin

I am currently using the geowebcache plugin with geoserver, and I would like
to start seeding the cache.

I am using geoserver 1.7 RC1, which comes with the geowebcache 1.0 snapshot
jar. I found what I believe are the relevant seeding instructions at
http://geowebcache.org/trac/wiki/Version1.0a0.

Can I do seeding using the plugin, or would I need to install geowebcache as
a separate webapp?

If I can use the plugin, what would the url be? (I tried different
variations of http://user:password@anonymised.com:8080/geowebcache/rest/seed/).

Thanks in advance,
Craig
--
View this message in context: http://www.nabble.com/geowebcache-seeding-with-plugin-tp19209341p19209341.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi,

Unfortunately I started my day late today and my internet connection has been misbehaving, so I haven't had a chance to build and verify the steps. Tentative answers below, I'll get back to you tomorrow or over the weekend with details.

geoman wrote:

I am currently using the geowebcache plugin with geoserver, and I would like
to start seeding the cache.

I am using geoserver 1.7 RC1, which comes with the geowebcache 1.0 snapshot
jar. I found what I believe are the relevant seeding instructions at
http://geowebcache.org/trac/wiki/Version1.0a0.
  

Good job :slight_smile:

Can I do seeding using the plugin, or would I need to install geowebcache as
a separate webapp?
  

You should be able to use it as a plugin. The main limitation of the plugin is that you can't easily override the default configuration, so only EPSG:4326 and EPSG:900913.

Note that RC1 contained something close to alpha0, RC2 (out tomorrow?) will have a plugin that corresponds to alpha1. This is important because the XML format (used for seed requests) has changed slightly (zoomstart -> zoomStart etc).

If I can use the plugin, what would the url be? (I tried different
variations of http://user:password@anonymised.com:8080/geowebcache/rest/seed/).
  

http://user:password@anonymised.com:8080/geoserver/gwc/rest/seed

Ok, more to come, possibly a bug fix or two too, and then docs.
-Arne

Arne Kepp-2 wrote:

geoman wrote:

If I can use the plugin [for seeding], what would the url be? (I tried
different
variations of
http://user:password@anonymised.com:8080/geowebcache/rest/seed/).
  

http://user:password@anonymised.com:8080/geoserver/gwc/rest/seed

I downloaded GeoServer 1.7.0 RC2, but that isn't working for me either.

The first problem I see when I try that url is a dialog that says the
website does not require authentication. If it did, and I was foolish enough
to leave the default login info, would admin:geoserver be the right login
for seeding?

The second issue I'm encountering is a 404 response with the text "Unknow
path: rest" in the body. Here is the header detail:

  http://admin:geoserver@anonymised.com:9305/geoserver/gwc/rest/seed

  GET /geoserver/gwc/rest/seed HTTP/1.1
  Host: localhost:9305
  User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1)
Gecko/2008070208 Firefox/3.0.1
  Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  Accept-Language: en-us,en;q=0.5
  Accept-Encoding: gzip,deflate
  Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
  Keep-Alive: 300
  Connection: keep-alive
  Cookie:
ACEGI_SECURITY_HASHED_REMEMBER_ME_COOKIE=YWRtaW46MTIyMDU1NjEwMjI4MTphYTNlNzA5M2ViNWVkMDc4ZDNmNjNkZTFkMTU0ZWE1OQ==;JSESSIONID=k2j0y6k0zu1q

  HTTP/1.x 404 Not Found
  Content-Type: text/plain
  Content-Length: 37
  Content-Encoding: gzip
  Server: Jetty(6.1.8)

Thanks for your help.

-Craig
--
View this message in context: http://www.nabble.com/geowebcache-seeding-with-plugin-tp19209341p19225080.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi,

I've fixed the issue you probably ran into, please download RC2a from the extension page on SourceForge.

Logging is configured in the data directory, so if it's an existing one you'll have to
- Edit <your data directory>/logs/DEFAULT_LOGGING.properties (or whatever you are using)
- Add log4j.category.org.geowebcache=INFO at the bottom of this file and restart GeoServer

The catch is that seeding won't be protected until the final release. If you're running GeoServer through Apache or another server you can move this out one level, shouldn't matter too much either way.

-Arne

geoman wrote:

Arne Kepp-2 wrote:
  

geoman wrote:
    

If I can use the plugin [for seeding], what would the url be? (I tried
different
variations of
http://user:password@anonymised.com:8080/geowebcache/rest/seed/).
  

http://user:password@anonymised.com:8080/geoserver/gwc/rest/seed

I downloaded GeoServer 1.7.0 RC2, but that isn't working for me either.

The first problem I see when I try that url is a dialog that says the
website does not require authentication. If it did, and I was foolish enough
to leave the default login info, would admin:geoserver be the right login
for seeding?

The second issue I'm encountering is a 404 response with the text "Unknow
path: rest" in the body. Here is the header detail:

  http://admin:geoserver@anonymised.com:9305/geoserver/gwc/rest/seed

  GET /geoserver/gwc/rest/seed HTTP/1.1
  Host: localhost:9305
  User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1)
Gecko/2008070208 Firefox/3.0.1
  Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  Accept-Language: en-us,en;q=0.5
  Accept-Encoding: gzip,deflate
  Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
  Keep-Alive: 300
  Connection: keep-alive
  Cookie:
ACEGI_SECURITY_HASHED_REMEMBER_ME_COOKIE=YWRtaW46MTIyMDU1NjEwMjI4MTphYTNlNzA5M2ViNWVkMDc4ZDNmNjNkZTFkMTU0ZWE1OQ==;JSESSIONID=k2j0y6k0zu1q

  HTTP/1.x 404 Not Found
  Content-Type: text/plain
  Content-Length: 37
  Content-Encoding: gzip
  Server: Jetty(6.1.8)

Thanks for your help.

-Craig