Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # open container shell
- docker ps
- docker exec -it [CONTAINER ID] /bin/bash
- # stop core + horizon
- supervisorctl stop stellar-core
- supervisorctl stop horizon
- # recreate databases
- sudo -u postgres psql -c 'DROP DATABASE core' postgres
- sudo -u postgres psql -c 'DROP DATABASE horizon' postgres
- sudo -u postgres psql -c 'CREATE DATABASE core' postgres
- sudo -u postgres psql -c 'CREATE DATABASE horizon' postgres
- # remove buckets dir contents
- rm -rf /opt/stellar/core/buckets/*
- # init db schemes
- /opt/stellar/horizon/bin/horizon db init
- stellar-core --conf /opt/stellar/core/etc/stellar-core.cfg new-db
- # optional set "PREFERRED_PEERS_ONLY=true" to only connect to SDF nodes and thus mitigate stale SCP message issues
- # vi /opt/stellar/core/etc/stellar-core.cfg
- # start core + horizon
- supervisorctl start stellar-core
- supervisorctl start horizon
- # check core status
- curl localhost:11626/info
- # check horizon status
- curl localhost:8000
- # optional unset "PREFERRED_PEERS_ONLY=true" once you are synced
- # vi /opt/stellar/core/etc/stellar-core.cfg
- # supervisorctl restart stellar-core
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement