Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUCKET_DIR_PATH should be overwritten to stellarCoreRunner.storagePath #3699

Closed
bartekn opened this issue Jun 16, 2021 · 2 comments
Closed
Assignees
Milestone

Comments

@bartekn
Copy link
Contributor

bartekn commented Jun 16, 2021

What version are you using?

2.4.1

What did you do?

If --captive-core-config-append-path file contains BUCKET_DIR_PATH it gets propagated to generated stellar-core.cfg file used by Captive-Core.

What did you expect to see?

BUCKET_DIR_PATH is ignored and the final BUCKET_DIR_PATH is set to stellarCoreRunner.storagePath+/buckets (generated using --captive-core-storage-path). Or BUCKET_DIR_PATH is removed from the final config file completely (then defaults to buckets in working dir).

What did you see instead?

When running multiple Stellar-Cores (ex. parallel reingestion) BUCKET_DIR_PATH is reused causing:

Got an exception: unable to flock file: /BUCKET_DIR_PATH/stellar-core.lock (Resource temporarily unavailable). This can be caused by access rights issues or another stellar-core process already running
@bartekn bartekn added this to the Horizon 2.5.0 milestone Jun 16, 2021
@2opremio 2opremio self-assigned this Jun 17, 2021
@2opremio
Copy link
Contributor

2opremio commented Jun 17, 2021

I think we should error (or warn) if BUCKET_DIR_PATH is included, not just silently ignore it or replace it.

@bartekn
Copy link
Contributor Author

bartekn commented Jun 18, 2021

Closed in #3707.

@bartekn bartekn closed this as completed Jun 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants