[Tile-serving] [openstreetmap/osm2pgsql] Error in updating process... (#874)

mbutler-79 notifications at github.com
Wed Oct 10 12:16:34 UTC 2018


Hi,
when I want to update my gis db with this command:
```bash
cd  ~/openstreetmap-carto 

osmosis --read-replication-interval workingDirectory="${WORKOSM_DIR}" --simplify-change --write-xml-change - | \
    osm2pgsql --append -s -C 300 -G --hstore --style openstreetmap-carto.style --tag-transform-script openstreetmap-carto.lua -d gis -H localhost -U renderaccount -
```
I get this error : 
```bash
osm2pgsql version 0.96.0 (64 bit id space)

Using lua based tag processing pipeline with script openstreetmap-carto.lua
Using projection SRS 3857 (Spherical Mercator)
Osm2pgsql failed due to ERROR: Connection to database failed: fe_sendauth: no password supplied
```

my settings in these two files includes:
/etc/postgresql/10/main/pg_hba.conf 
```bash
# TYPE  DATABASE        USER            ADDRESS                 METHOD
local              all             postgres                                              peer
# "local" is for Unix domain socket connections only
local              all             all                                     trust
# IPv4 local connections:
host               all             all             127.0.0.1/32            md5
# IPv6 local connections:
host               all             all             ::1/128                 md5
# Allow replication connections from localhost, by a user with the
# replication privilege.
local   replication     all                                     peer
host    replication     all             127.0.0.1/32            md5
host    replication     all             ::1/128                 md5
```
and /etc/postgresql/10/main/postgresql.conf : 
```bash
listen_addresses = 'localhost'
```

on the other hand, I changed peer in pg_hba.conf  file to trust and then reloaded postgresql, but the problem was not solved!!!

please let me know how to fix this issue?

Thanks in Advance


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/874
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20181010/526a53ea/attachment.html>


More information about the Tile-serving mailing list