Open todkap opened 5 years ago
How did you provided password for connection to Horizon? From where it takes password? I installed postgres on local Linux and disabled both dockers that run db for core and for horizon. Instead of that I point both of them to my local db. The core is connecting to db and Horizon screams that connection failed due to password auth failed.
This is how the end of my .yml file looks like. So it is not clear from where Horizon takes password for its db.
stellar-horizon: image: satoshipay/stellar-horizon:0.17.2 restart: on-failure ports:
This is log i'm getting
root@virtualserver01:~# docker-compose -f /mnt/xvdc/github/docker-stellar-horizon/conf_horizon_docker-compose_extdb.yml up
Starting docker-stellar-horizon_stellar-core_1 ... done
Starting docker-stellar-horizon_stellar-horizon_1 ... done
Attaching to docker-stellar-horizon_stellar-horizon_1, docker-stellar-horizon_stellar-core_1
stellar-horizon_1 | Initializing Horizon database...
stellar-horizon_1 | 2019/09/17 00:03:39 connect failed: pq: password authentication failed for user "postgres"
stellar-horizon_1 | Horizon database initialization failed (possibly because it has been done before)
stellar-horizon_1 | 2019/09/17 00:03:39 pq: password authentication failed for user "postgres"
stellar-core_1 | Core db has already been initialized.
stellar-core_1 | Not initializing history archives (set INITIALIZE_HISTORY_ARCHIVES=true if you want to initialize them).
stellar-core_1 | Using DEPRECATED command-line syntax.
stellar-core_1 | Please refer to documentation for new syntax.
stellar-core_1 |
stellar-core_1 | 2019-09-17T00:03:41.160
When trying to start docker compose, I was seeing the following in the logs...
If I add
- NETWORK_PASSPHRASE=Public Global Stellar Network ; September 2015
to the horizon ENV...and now I can access the server on http://localhost:8000/