Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. # open container shell
  2. docker ps
  3. docker exec -it [CONTAINER ID] /bin/bash
  4.  
  5. # stop core + horizon
  6. supervisorctl stop stellar-core
  7. supervisorctl stop horizon
  8.  
  9. # recreate databases
  10. sudo -u postgres psql -c 'DROP DATABASE core' postgres
  11. sudo -u postgres psql -c 'DROP DATABASE horizon' postgres
  12. sudo -u postgres psql -c 'CREATE DATABASE core' postgres
  13. sudo -u postgres psql -c 'CREATE DATABASE horizon' postgres
  14.  
  15. # remove buckets dir contents
  16. rm -rf /opt/stellar/core/buckets/*
  17.  
  18. # init db schemes
  19. /opt/stellar/horizon/bin/horizon db init
  20. stellar-core --conf /opt/stellar/core/etc/stellar-core.cfg new-db
  21.  
  22. # optional set "PREFERRED_PEERS_ONLY=true" to only connect to SDF nodes and thus mitigate stale SCP message issues
  23. # vi /opt/stellar/core/etc/stellar-core.cfg
  24.  
  25. # start core + horizon
  26. supervisorctl start stellar-core
  27. supervisorctl start horizon
  28.  
  29. # check core status
  30. curl localhost:11626/info
  31. # check horizon status
  32. curl localhost:8000
  33.  
  34. # optional unset "PREFERRED_PEERS_ONLY=true" once you are synced
  35. # vi /opt/stellar/core/etc/stellar-core.cfg
  36. # supervisorctl restart stellar-core
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement