Skip to content

Problems connecting to peers - we would like your assistance. #34

@tdsan

Description

@tdsan

There are a number of issues in the code but they can be easily rectified.

Need to add the following to the environment section in yaml

environment: (recommended)
- POSTGRES_DB=stellar-core
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD="P@ssw0rd" # Of course this is not the password, lol

However, when I ran the gen-seed command, it worked, but it seems I cannot connect to any of the peers:
docker run --rm -it --entrypoint '' satoshipay/stellar-core stellar-core gen-seed
Secret seed: SABBNWGOQ6KDNMOOKJA67FDYB2C3SFR4Q4FLOEQC2WGOUN37E2E2ODOI (sample)
Public: GACLTVRCSWNSJTBJO3GH3IF5LR5NCZCNTLS4CEL6FRFKGNVDOOCGSLPZ (sample)

In addition, the public key has spaces in it as well, of course that was commented out

NODE_SEED=SABBNWGOQ6KDNMOOKJA67FDYB2C3SFR4Q4FLOEQC2WGOUN37E2E2ODOI

That does not seem to work.

Also, I set the NETWORK_PASSPHRASE to

  • NETWORK_PASSPHRASE='Test SDF Network ; September 2015'

Currently this is what it looks like

example docker compose file for how to run stellar core

version: '3'
services:
stellar-core-postgres:
image: postgres:9
restart: unless-stopped
environment:
- POSTGRES_DB=stellar-core
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD="P@ssw0rd"
ports:
- 5432:5432

stellar-core:
image: satoshipay/stellar-core:10.2.0
restart: unless-stopped
ports:
- 11625:11625
- 11626:11626
environment:
- DATABASE_PASSWORD="P@ssw0rd"
- DATABASE=postgresql://dbname=stellar-core user=postgres password=DATABASE_PASSWORD host=stellar-core-postgres
# WARNING: make sure to use a new NODE_SEED!
#- public_key=GBOXFAW5S4UUREXUQYO5EUT5UGGR5MLUKRMJM3HTJ2YFKUPWSLKDXEWV
#- PUBLIC_KEY=GBBLTVRCSWNSJTBJO3GH3IF5LR5NCZCNTLS4CEL6FRFKGNVDOOCGSLPZ
#- NODE_SEED=GBBLTVRCSWNSJTBJO3GH3IF5LR5NCZCNTLS4CEL6FRFKGNVDOOCGSLPZ my_stellar_node
#- NODE_SEED=SDEJ55PQ4FZBOMJB2X77ROJZUGAE2PMF7M42G5RKBZXQJEHLHNYDSQ47 atl_stellar_node
- NODE_SEED=SACKNWGOQ6KDNMOOKJA67FDYB2C3SFR4Q4FLOEQC2WGOUN37E2E2ODOI atl_crypto_node
- NODE_IS_VALIDATOR=true
- NETWORK_PASSPHRASE='Test SDF Network ; September 2015'
#- NETWORK_PASSPHRASE=Public Global Stellar Network ; September 2015
- INITIALIZE_DB=true
- CATCHUP_RECENT=60480
- "KNOWN_PEERS=
#core-live-a.stellar.org:11625,
#core-live-b.stellar.org:11625,
#core-live-c.stellar.org:11625,
au.stellar.ibm.com,
br.stellar.ibm.com,
ca.stellar.ibm.com,
no.stellar.ibm.com,
in.stellar.ibm.com,
uk.stellar.ibm.com,
us.stellar.ibm.com,
stellar-de-fra.satoshipay.io,
stellar-sg-sin.satoshipay.io,
stellar-us-iowa.satoshipay.io,
core-live-a.stellar.org,
core-live-b.stellar.org,
core-live-c.stellar.org"
- "PREFERRED_PEERS=
au.stellar.ibm.com,
br.stellar.ibm.com,
ca.stellar.ibm.com,
no.stellar.ibm.com,
in.stellar.ibm.com,
uk.stellar.ibm.com,
us.stellar.ibm.com,
stellar-de-fra.satoshipay.io,
stellar-sg-sin.satoshipay.io,
stellar-us-iowa.satoshipay.io,
core-live-a.stellar.org,
core-live-b.stellar.org,
core-live-c.stellar.org"
- "NODE_NAMES=
GCKWUQGSVO45ZV3QK7POYL7HMFWDKWJVMFVEGUJKCAEVUITUCTQWFSM6 ibm_au,
GBUJA3Z5TLAKLI5MEH4TETLXJBQVSVW74MNEKP5UUHTP3IMLNSUPOTVA ibm_br,
GB2HF2NHRKKFZYFDGD7MUENOYROOEK7SWYV2APYOODP6P7BUJTLILKIL ibm_ca,
GDRA72H7JWXAXWJKOONQOPH3JKNSH5MQ6BO5K74C3X6FO2G3OG464BPU ibm_no,
GCH3O5PTCZVR4G65W3B4XDKWI5V677HQB3QO7CW4YPVYDDFBE2GE7G6V ibm_in,
GAENPO2XRTTMAJXDWM3E3GAALNLG4HVMKJ4QF525TR25RI42YPEDULOW ibm_uk,
GARBCBH4YSHUJLYEPKEPMVYZIJ3ZSQR3QCJ245CWGY64X72JLN4A6RSG ibm_us,
GC5SXLNAM3C4NMGK2PXK4R34B5GNZ47FYQ24ZIBFDFOCU6D4KBN4POAE satoshipay-de-fra,
GBJQUIXUO4XSNPAUT6ODLZUJRV2NPXYASKUBY4G5MYP3M47PCVI55MNT satoshipay-sg-sin,
GAK6Z5UVGUVSEK6PEOCAYJISTT5EJBB34PN3NOLEQG2SUKXRVV2F6HZY satoshipay-us-iowa,
GCGB2S2KGYARPVIA37HYZXVRM2YZUEXA6S33ZU5BUDC6THSB62LZSTYH sdf_watcher1,
GCM6QMP3DLRPTAZW2UZPCPX2LF3SXWXKPMP3GKFZBDSF3QZGV2G5QSTK sdf_watcher2,
GABMKJM6I25XI4K7U6XWMULOUQIQ27BCTMLS6BYYSOWKTBUXVRJSXHYQ sdf_watcher3"
# this is just an example quorum set – you most likely want to change it
- >-
QUORUM_SET=[
{
"threshold_percent": 66,
"validators": [
"$$satoshipay-de-fra",
"$$satoshipay-sg-sin",
"$$satoshipay-us-iowa"
]
},
{
"path": "ibm",
"threshold_percent": 51,
"validators": [
"$$ibm_au",
"$$ibm_br",
"$$ibm_ca",
"$$ibm_no",
"$$ibm_in",
"$$ibm_uk",
"$$ibm_us"
]
},
{
"path": "sdf",
"threshold_percent": 51,
"validators": [
"$$sdf_watcher1",
"$$sdf_watcher2",
"$$sdf_watcher3"
]
}
]
- >-
HISTORY={
"satoshipay-de-fra": {"get": "curl -sf https://stellar-history-de-fra.satoshipay.io/{0} -o {1}"},
"satoshipay-sg-sin": {"get": "curl -sf https://stellar-history-sg-sin.satoshipay.io/{0} -o {1}"},
"satoshipay-us-iowa": {"get": "curl -sf https://stellar-history-us-iowa.satoshipay.io/{0} -o {1}"},
"sdf1": {"get": "curl -sf http://history.stellar.org/prd/core-live/core_live_001/{0} -o {1}"},
"sdf2": {"get": "curl -sf http://history.stellar.org/prd/core-live/core_live_002/{0} -o {1}"},
"sdf3": {"get": "curl -sf http://history.stellar.org/prd/core-live/core_live_003/{0} -o {1}"}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions