0

I am trying to test out some functionality with the Horizon API server. I have followed the directions listed out here

Everything seems to be working fine, but when I get to the "Connect Horizon to Stellar Core" phase, I get the following error:

root@parallels-Parallels-Virtual-Platform:/home/parallels# stellar-horizon --db-url="postgres://localhost/horizon_dev" --stellar-core-db-url="postgres://stellar:password@localhost:8002/core" --stellar-core-url="http://localhost:11626" --port 8001 --network-passphrase "Test SDF Network ; September 2015" --ingest
2021/04/29 12:06:54 Invalid config: captive core requires that either --stellar-core-binary-path or --remote-captive-core-url is set. If you are migrating from Horizon 1.x.y read the Migration Guide here: https://github.com/stellar/go/blob/master/services/horizon/internal/docs/captive_core.md

So I am guessing that I might need to replace --stellar-core-url with --remote-captive-core-url but I still get the following error:

root@parallels-Parallels-Virtual-Platform:/home/parallels# stellar-horizon --db-url="postgres://localhost/horizon_dev" --stellar-core-db-url="postgres://stellar:password@localhost:8002/core" --remote-captive-core-url="http://localhost:11626" --port 8001 --network-passphrase "Test SDF Network ; September 2015" --ingest
2021/04/29 12:12:35 Invalid config: captive core requires that both --stellar-core-binary-path and --captive-core-config-append-path are set. If you are migrating from Horizon 1.x.y read the Migration Guide here: https://github.com/stellar/go/blob/master/services/horizon/internal/docs/captive_core.md

stellar-core seems to be working fine within the Docker image, and I can even access it via my web browser:

root@6577e5563580:/opt/stellar/core/bin# supervisorctl 
horizon                          STOPPED   Apr 29 02:44 PM
postgresql                       RUNNING   pid 109, uptime 1:30:03
stellar-core                     RUNNING   pid 110, uptime 1:30:03
supervisor>

succesful http access to stellar-core

Is there something simple I'm missing here? I don't really need/want to get into the details of stellar-core, I'm primarily just looking to get an instance of Horizon up and running.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.