Open besders opened 4 years ago
I think I found the problem: https://github.com/Overv/openstreetmap-tile-server/blob/2754592d1ceea1fb3148037b70b075ab1f7758db/openstreetmap-tiles-update-expire#L25
${OSM2PGSQL_EXTRA_ARGS}
should be before the double quote character. A small error made with commit 2754592d1ceea1fb3148037b70b075ab1f7758db.
Thank you for the fast reaction. That's exactly what I had already tested. Unfortunately without success
echo $OSM2PGSQL_EXTRA_ARGS
works and outputs the corresponding parameters
That's exactly what I had already tested. Unfortunately without success
How did you test it?
docker exec
docker run
I changed the file outside of the container and then exchanged it via docker exec
@Istador I got new fixed image. I checked environment variables and see:
OSM2PGSQL_EXTRA_ARGS=-C 4096 --flat-nodes /nodes/flat_nodes.bin
But when I'm checking osm2pgsql.log
I see
Node-cache: cache=800MB, maxblocks=12800*65536, allocation method=11
Mid: pgsql, cache=800
So, something is still broken or -С
doesn't suppose to have influence on this cache?
I noticed, that the env-Variable is only set at the root-User. when changing to renderer (with "su - renderer) the environment-variable is gone. The "openstreetmap-tiles-update-expire"-Script is running as the renderer-User and can not access the additional Options.
I noticed, that the env-Variable is only set at the root-User. when changing to renderer (with "su - renderer) the environment-variable is gone. The "openstreetmap-tiles-update-expire"-Script is running as the renderer-User and can not access the additional Options.
Good find.
I think it has less to do with the user, but the fact, that it runs as a cronjob and therefore in its own shell. If it were a root cronjob, it should have the same issue.
The -
in su - renderer
clears all environment variables except TERM
. Just a su rederer
should still have it.
Hi, many thanks for the great work. Unfortunately I have an error updating the data. When I start the container with the following command:
the Argument OSM2PGSQL_EXTRA_ARGS isn't included in the command for osm2pgsql startet from openstreetmap-tiles-update-expire