Giter VIP home page Giter VIP logo

Comments (4)

Istador avatar Istador commented on May 18, 2024 1

The error message indicates, that the postgres directory (/var/lib/postgresql/10/main) is owned by the renderer user (uid 1000) instead of the postgres user (uid 102).

This might happen if the volume for the tiles is mounted on the postgres directory instead of /var/lib/mod_tile.

I can reproduce it, if I mix up the volume mounts:

$ data="openstreetmap-data"
$ tiles="openstreetmap-rendered-tiles"
$ pgdir="/var/lib/postgresql/10/main"
$ tiledir="/var/lib/mod_tile"
$ img="overv/openstreetmap-tile-server"

$ docker  volume  create  $data
$ docker  volume  create  $tiles

$ docker  run  -v $data:$pgdir  $img  import
 * Starting PostgreSQL 10 database server
   ...done.
[...]

# run with correct volume order:
$ docker  run  --name osm  -p 80:80  -v $data:$pgdir  -v $tiles:$tiledir  -d  $img  run

# request to fill tiledir with data
$ wget -qO /dev/null http://localhost/tile/0/0/0.png

$ docker  rm  -f  osm

# run with wrong volume order:
$ docker  run  --name osm  -p 80:80  -v $tiles:$pgdir  -v $data:$tiledir  -d  $img  run 

$ docker logs osm
 * Starting PostgreSQL 10 database server
 * Error: Config owner (postgres:102) and data owner (renderer:1000) do  not match, and config owner is not root
   ...fail!
[...]

Proposed actions to resolve the problem:

$ docker  volume  rm  openstreetmap-data
$ docker  volume  rm  openstreetmap-rendered-tiles

and then starting from scratch.

from openstreetmap-tile-server.

Overv avatar Overv commented on May 18, 2024

I will investigate this.

from openstreetmap-tile-server.

Overv avatar Overv commented on May 18, 2024

I cannot reproduce this with the commands from the README. Can you specify exactly which commands you used?

from openstreetmap-tile-server.

Overv avatar Overv commented on May 18, 2024

Thanks @Istador, I consider this resolved as user error.

from openstreetmap-tile-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.