tilemill-project / tilemill

TileMill is a modern map design studio
https://tilemill-project.github.io/tilemill/
BSD 3-Clause "New" or "Revised" License
3.12k stars 528 forks source link

OSMBright tutorial only shows broken tiles #2727

Closed hmeine closed 5 years ago

hmeine commented 5 years ago

Describe the bug I want to create a poster map of my hometown. I am very new to tilemill, postgis etc., but I have spent many hours to inform myself as far as possible and to get to this setup, following the OSM Bright Ubuntu quickstart document. I have tried this multiple times, and finally think I understand (at a coarse level) what all the different components (should) do.

If I understand correctly, choosing "Project" should make tilemill fetch data from my postgis, right? (Where does the name "Project" come from?) How can I debug why this fails?

Environment: (Note: We are not setup to test on Linux or Windows so help may be slower on those OSs)

To Reproduce Steps to reproduce the behavior:

  1. Run postgis: docker run --name "postgis" -p 5432:5432 -v pg_data:/var/lib/postgresql --rm -t kartoza/postgis
  2. Run imposm: imposm -U docker -d gis -m ../mapbox-osm-bright-f1c8780/imposm-mapping.py --read --write --optimize --deploy-production-tables my-downloaded.osm.pbf
  3. Build tilemill container from this Dockerfile: git clone https://github.com/tilemill-project/tilemill.git && docker build -t tilemill .
  4. Run tilemill: docker run --rm -t --net=host --name tilemill -v ~/Documents/MapBox:/root/Documents/MapBox tilemill
  5. Ensure ~/Documents/MapBox is writeable: sudo chown -R $(whoami) ~/Documents/MapBox
  6. cd ../mapbox-osm-bright-f1c8780/ && ./make.py
  7. Open tilemill in browser, go to Projects, select "OSM Bright"
  8. Observe broken tiles (white, with broken image icon)
  9. After a while, there's a popup "Unable to reach the local TileMill Server..."

Expected behavior I would expect some kind of map to appear. My main problem is that I don't know how to debug this further. The only error message I see is the above "Client Error: TypeError: h is undefined".

hmeine commented 5 years ago

I think I understand better now: osm-bright needs to be inside the docker. I have updated the setup (see https://github.com/hmeine/tilemill_docker if you're interested) and it works much better now.

csytsma commented 5 years ago

Hans, thanks for the follow-up with your issue, glad you figured it out. I know many people are interested in a docker solution, so this is great.

On Sep 4, 2019, at 8:58 AM, Hans Meine notifications@github.com wrote:

I think I understand better now: osm-bright needs to be inside the docker. I have updated the setup (see https://github.com/hmeine/tilemill_docker https://github.com/hmeine/tilemill_docker if you're interested) and it works much better now.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tilemill-project/tilemill/issues/2727?email_source=notifications&email_token=AAA7ORG5ODRZR2SKG4FLF53QH7LJDA5CNFSM4IS74EYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD54CFWI#issuecomment-527966937, or mute the thread https://github.com/notifications/unsubscribe-auth/AAA7ORBGSVQMRYJ65PHBS63QH7LJDANCNFSM4IS74EYA.