You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 22, 2020. It is now read-only.
It will likely complain about an empty database, but it makes sure that horizon has your postgresql database path. Not sure why setting the environment variable doesn't automatically do this as it should. Just quit horizon at that point then run your command.
./horizon db init
I'm not sure this solves the problem, so please let me know. I just ran into this and these are the steps that worked for me.
I have set the DATABASE_URL, STELLAR_CORE_DATABASE_URL and STELLAR_CORE_URL variable.
I have created a blank database for horizon named as horizon_db.
When I execute echo $DATABASE_URL it prints proper url:
When I try to execute ./horizon db init it is giving following error:
ERRO[0000] exec failed: pq: relation "gorp_migrations" already exists pid=6845
When I login to psql and check the horizon_db database, no relation exists.
postgres=# \c horizon_db You are now connected to database "horizon_db" as user "postgres". horizon_db=# \d+ No relations found. horizon_db=#
Is there any problem in latest release. I am using "horizon-snapshot-linux-amd64.tar.gz" from https://github.com/stellar/go/releases
The text was updated successfully, but these errors were encountered: