Ive successfully installed and started horizon 2.0 but I am having problems reingesting ledgers. Id like to reingest ledgers from [30000000, present].
Ive attempted to do so following the instruction from the Stellar team here:
Stellar Reingestion instructions
The process runs for almost 1 day and eventually fails with one of the following errors:
"error when processing [30227165, 30294876] range: error preparing range: Error fast-forwarding to 30227165: stellar core exited unexpectedly: signal: killed"
" Error creating ledger reader: error getting ledger from the backend: stellar core exited unexpectedly: signal: killed"
The command im using to run the reingest (ive tried different worker counts):
stellar-horizon db reingest range --parallel-workers=5 --network-passphrase="Public Global Stellar Network ; September 2015" --db-url="postgres://user:password@localhost:5432/horizon" --enable-captive-core-ingestion --apply-migrations --captive-core-config-append-path="/etc/default/stellar-captive-core-stub.toml" --history-archive-urls="https://s3-eu-west-1.amazonaws.com/history.stellar.org/prd/core-live/core_live_001" --stellar-core-binary-path="/usr/bin/stellar-core" 30000000 34581449
Oddly enough when the job finishes, the output says it ingestion only a small subset. I expected given the 24 hours that it would have been much larger.
INFO[2021-03-24T01:54:48.734Z] Reingestion done duration=83853.399425002 from=33477341 pid=2672 service=ingest to=33545052
INFO[2021-03-24T01:54:48.734Z] Shut down pid=2672 service=ingest
INFO[2021-03-24T01:54:48.734Z] successfully reingested range from=33477341 pid=2672 service=ingest to=33545052
The instructions on the repo say its possible the ingestion fails and a recommended range would be provided to continue. I think something else is happening here because the range provided is the original range, and again ive tried this 3-4 times now.
Appreciate any help here from the Stellar team and community.