This is a static archive of our old OSM Help Site. Please post any new questions and answers at community.openstreetmap.org.

Building a tile server

1

Hi forum,

I tried to follow the interesting tutorial ( switch2osm.org/manually-building-a-tile-server-16-04-2-lts) for building an independent tile server for Ubuntu 16.04.

I started with a new Ubuntu server in a virtualbox machine. Unfortunately it does not work and I can not understand why.

On the browser the requested URL /hot/0/0/0.png was not found on this server (err 404). On the server side, we can read Received request for map mayer 'ajt' which failed to load.

When I launch the renderd, an error occurs which is

"An error occured while loading the map layer 'ajt' : Postgis Plugin : ERROR relation     "planet_osm_polygon" does not exist.

I had to make a mistake somewhere.

Does anyone have a suggestion to help me ?

Thanks a lot & sorry for that newbie issue.

Sincerely,

David.

asked 11 Apr '18, 09:22

draimond's gravatar image

draimond
36113
accept rate: 0%

edited 12 Apr '18, 00:41

FredrikLindseth's gravatar image

FredrikLindseth
815132435

1

I'd suggest that you restart "renderd" and post the errors that you see there in a github gist or similar, and then post a link to that here.

(11 Apr '18, 11:40) SomeoneElse ♦

One Answer:

4

If "planet_osm_polygon" does not exist, then something has gone wrong at the osm2pgsql step.

answered 12 Apr '18, 19:49

yvecai's gravatar image

yvecai
1.5k1226
accept rate: 9%

Hi, Thanks a lot. You are right. I had a problem at this stage. I did the whole procedure again and it works now. Regards. David.

(14 Apr '18, 06:44) draimond