Where to find Geoserver printing module config.yml?

12 views
Skip to first unread message

Scott Whittaker

unread,
Sep 30, 2024, 11:40:08 PM9/30/24
to GeoNode Development
We've added some externally hosted basemap layers using local_settings.py but I thnk that has broken the print functionality with the error:

Error on printing: Error while generating PDF: org.mapfish.print.InvalidJsonValueException: spec.layers[0].baseURL has an invalid value: https://tiles.maps.linz.io/nz_aerialimagery_basemap/GLOBAL_MERCATOR/ (spec.layers[0].baseURL has an invalid value

Someone else with that error suggests that the host for the tiles needs to be added to geoserver printing module config.yml:
https://gis.stackexchange.com/questions/111421/mapfish-geoserver-printing-layer-problems

The Geoserver configuration documentation outlines the structure of this file:

But it doesn't say where that file should be located on the server.


which suggests the location should perhaps be /usr/share/geoserver/data

I'm running the docker compose version of GeoNode since we couldn't get a build from source version running. So I plan to create the config.yml file and link it into the relevant docker container.

However I can't find the path /usr/share/geoserver/data on any of the docker containers.

So the questions I have are:

1. Am I correct that I need to add the tile server (tiles.maps.linz.io) to config.yml?
2. If so, what docker container should this file be written to?
3. What path on that container should the file be located?

Thanks,

Scott



Scott Whittaker

unread,
Oct 1, 2024, 12:07:12 AM10/1/24
to GeoNode Development, Scott Whittaker
Found it in the geoserver container:

/geoserver_data/data/printing/config.yaml

Thanks,

Scott
Reply all
Reply to author
Forward
0 new messages