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

[solved] renderd error: postgis plugin: could not connect to server

0

My tileserver worked perfectly fine but my disk space went full. So I gave my VM more capacity, rebooted it and after I did everything I usually do I got that renderd error:

An error occurred while loading the map layer 'default': Postgis Plugin: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? Connection string: ' dbname=gis connect_timeout=4' encountered during parsing of layer 'landcover-low-zoom' in Layer at line 755 of '/home/betrieb /src/openstreetmap-carto/mapnik.xml'

How can I fix this that my tileserver runs fine again?
Thanks in advance :)

(correct my tags if they are wrong)

asked 01 Jul '19, 09:12

N3x's gravatar image

N3x
51346
accept rate: 33%

edited 01 Jul '19, 10:22

A bit more info would help:

So I gave my VM more capacity,

What exactly did you do?

rebooted it

Have you rebooted it successfully before?

and after I did everything I usually do I got that renderd error ...

Also, while people here may be able to help, it doesn't look like your problem is really an OSM specific one, so one of https://stackoverflow.com/questions 's family of sites might get more responses.

(01 Jul '19, 09:49) SomeoneElse ♦

Capacity: shutdown -> 140G to 160G -> start -> expand /dev/sda1
Yes, reboot worked fine before.
Asked it there. Still waiting

(01 Jul '19, 09:51) N3x

2 Answers:

1

Fixed. Answer: Running sudo dpkg-reconfigure postgresql and sudo systemctl restart renderd.

answered 01 Jul '19, 10:12

N3x's gravatar image

N3x
51346
accept rate: 33%

0

Start your postgresql server - sudo /etc/init.d/postgresql start

Enable starting the server at startup - sudo systemctl enable postgresql

answered 10 Dec '19, 11:22

Luisa's gravatar image

Luisa
1
accept rate: 0%

Source code available on GitHub .