<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hello,</div><div dir="ltr"><br></div><div dir="ltr">I am using the instructions found at <a href="https://switch2osm.org/manually-building-a-tile-server-18-04-lts/">https://switch2osm.org/manually-building-a-tile-server-18-04-lts/</a> to setup a OSM mapping server. If the ubuntu user matches the postgresql user ( i.e. renderaccount) everything works without any problems.<br><br>However, I would like to get stuff to work where the ubuntu user is XXX and the postgresql user remains renderaccount. <br><br>I can get past most issues by:<div><br></div><div>1. changing pg_hba.conf so:<br><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">local   all             all                                     peer </blockquote></div><div><br></div><div><br></div><div>looks like:</div><div><br></div><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">local   all             all                                     md5</blockquote></div></blockquote><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><br></blockquote>2. Setting the PGUSER environment variable to renderaccount</div><div><br></div><div>3. adding *:*:gis:renderaccount:<password> to ~/.pgpass</div><div><br></div><div>However, when I am ready to startup the renderer by doing:</div><div><br></div></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div dir="ltr"><div dir="ltr"><div>renderd -f -c /usr/local/etc/renderd.conf</div></div></div></blockquote><div dir="ltr"><div dir="ltr"><div><br></div><div>I am presented with the errors:</div><div><br></div></div></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div><div><div><div>renderd[47532]: An error occurred while loading the map layer 'ajt': Postgis Plugin: fe_sendauth: no password supplied</div></div></div></div></div><div><div><div><div><div>Connection string: ' dbname=gis connect_timeout=4'</div></div></div></div></div><div><div><div><div><div>  encountered during parsing of layer 'landcover-low-zoom' in Layer at line 765 of '/home/lander/src/openstreetmap-carto-de/osm.xml'</div></div></div></div></div><div><div><div><div><div>renderd[47532]: An error occurred while loading the map layer 'ajt': Postgis Plugin: fe_sendauth: no password supplied</div></div></div></div></div><div><div><div><div><div>Connection string: ' dbname=gis connect_timeout=4'</div></div></div></div></div><div><div><div><div><div>  encountered during parsing of layer 'landcover-low-zoom' in Layer at line 765 of '/home/lander/src/openstreetmap-carto-de/osm.xml'</div></div></div></div></div><div><div><div><div><div>renderd[47532]: An error occurred while loading the map layer 'ajt': Postgis Plugin: fe_sendauth: no password supplied</div></div></div></div></div><div><div><div><div><div>Connection string: ' dbname=gis connect_timeout=4'</div></div></div></div></div><div><div><div><div><div>  encountered during parsing of layer 'landcover-low-zoom' in Layer at line 765 of '/home/lander/src/openstreetmap-carto-de/osm.xml'</div></div></div></div></div><div><div><div><div><div>renderd[47532]: An error occurred while loading the map layer 'ajt': Postgis Plugin: fe_sendauth: no password supplied</div></div></div></div></div><div><div><div><div><div>Connection string: ' dbname=gis connect_timeout=4'</div></div></div></div></div><div><div><div><div><div>  encountered during parsing of layer 'landcover-low-zoom' in Layer at line 765 of '/home/lander/src/openstreetmap-carto-de/osm.xml'</div></div></div></div></div></blockquote><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div><div>I am assuming what is going on is that it is trying to talk to the database using the renderaccount user, but because there is a password, it cannot and does not try to look at the .pgpass file.</div><div><br></div><div>This seems to be an issue with postgis...is there some way to configure postgis to get past this problem? </div><div><br></div><div>Regards,</div><div>Willie</div><div><br></div></div></div></div></div>