Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tonionicolazzi opened this issue Mar 15, 2015 · 4 comments
Open

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

tonionicolazzi opened this issue Mar 15, 2015 · 4 comments

Comments

@tonionicolazzi
Copy link

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
Copy link

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
Copy link

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: mapnik/mapnik#2725 which should allow a more helpful error message to show up. Can you try that and let me know what you get?

@olegueret
Copy link

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
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants