mapbox / osm-bright

A Carto template for OpenStreetMap data
BSD 3-Clause "New" or "Revised" License
698 stars 225 forks source link

Postgis Plugin: Bad connection ... 'landuse_gen0' in Layer #98

Open tonionicolazzi opened 9 years ago

tonionicolazzi commented 9 years ago

Hi, I'm trying to use OSM Bright in TileMill using this tutorial. https://www.mapbox.com/tilemill/docs/guides/osm-bright-mac-quickstart/

At the end of Step 3, when I open my project in TileMill, I have this message :

Postgis Plugin: Bad connection Connection string: ' dbname=osm connect_timeout=4' encountered during parsing of layer 'landuse_gen0' in Layer

And I'm unable to find what's going wrong... Thank you for your help Tonio

(TileMill Version 0.10.1 (v0.10.1-312-gfaf6910) / Mac OSX Yosemite 10.10.2).

olegueret commented 9 years ago

Same problem, same version of TileMill (the developer build that works with OS X Yosemite, as suggested in this issue).

captura de pantalla 2015-03-26 a les 1 45 58

springmeyer commented 9 years ago

If you are familiar with npm/node I recommend installing TileMill from source like this: https://github.com/mapbox/tilemill#installation. That will pull in this fix: https://github.com/mapnik/mapnik/issues/2725 which should allow a more helpful error message to show up. Can you try that and let me know what you get?

olegueret commented 9 years ago

Hi @springmeyer, I've checked with latest TileMill version at mapbox/tilemill@9619cca6f222cd248020f59494de80013e4e4098 as you suggested and it works without errors there (tested with node 0.10). Thank you!

I noticed that TileMill is slow loading tiles when run this way, but I guess that it may be related to the fact it was running inside a browser (Chrome).

springmeyer commented 9 years ago

@olegueret - that is great that the error is gone. I was just hoping that you would see a better, more helpful error :).

I noticed that TileMill is slow loading tiles when run this way, but I guess that it may be related to the fact it was running inside a browser (Chrome).

No, TileMill should not be slower if accessed via your web browser - it is the same code running. If you are seeing something being slower than in previous TileMill versions then we should investigate to try to figure out what exactly is slower. The first step would be to try profiling while TileMill is doing work and seeming slow. See https://github.com/springmeyer/profiling-guide for some tips on how to profile on different operating systems.