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

Fluffy shouldn't allow running multiple instances from the same data directory #2157

Open
web3-developer opened this issue Apr 30, 2024 · 0 comments
Labels
bug Something isn't working Fluffy good first issue Good for newcomers

Comments

@web3-developer
Copy link
Contributor

Fluffy doesn't fail or show any error message when starting a second Fluffy instance pointing to the same data directory. The --data-dir parameter is also not a required parameter and will use the default directory if not specified therefore it is rather easy for a user to not supply it and mistakenly run multiple instances pointing to the same location.

We should create a lock file on startup in the data directory so that if a second instance is started pointing to the same location it can read the lock file and shutdown with a error message to let the user know the root cause.

@web3-developer web3-developer added bug Something isn't working Fluffy labels Apr 30, 2024
@kdeme kdeme added the good first issue Good for newcomers label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Fluffy good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants