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

Running cluster with the wrong configuration path gives misleading error #343

Closed
hsanjuan opened this issue Mar 12, 2018 · 2 comments
Closed
Assignees
Labels
exp/novice Someone with a little familiarity can pick up help wanted Seeking public contribution on this issue kind/bug A bug in existing code (including security flaws) P2 Medium: Good to have, but can wait until someone steps up status/ready Ready to be worked

Comments

@hsanjuan
Copy link
Collaborator

[16:22:47] ~ $ ipfs-cluster-service -c c2
16:23:09.941 ERROR    service: could not obtain execution lock.  If no other process
is running, remove /home/hector/c2/cluster.lock, or make sure that the config folder is
writable for the user running ipfs-cluster.  Run with -d for more information
about the error lock.go:37
error acquiring execution lock: could not obtain execution lock

The locking attempt should probably say something like the "folder does not exist" and ask the user to check that the cluster is correctly initialized in the given location.

@hsanjuan hsanjuan added kind/bug A bug in existing code (including security flaws) help wanted Seeking public contribution on this issue exp/novice Someone with a little familiarity can pick up status/ready Ready to be worked P2 Medium: Good to have, but can wait until someone steps up labels Mar 12, 2018
@lanzafame
Copy link
Contributor

@hsanjuan Just to clarify, what was the correct resolution to the problem?

@hsanjuan
Copy link
Collaborator Author

@lanzafame the locking code should realize that the folder does not exist and just inform about that, rather than suggesting that there is other cluster process running.

@lanzafame lanzafame self-assigned this Apr 3, 2018
@ghost ghost added the status/in-progress In progress label Apr 3, 2018
@ghost ghost removed the status/in-progress In progress label Apr 5, 2018
@hsanjuan hsanjuan mentioned this issue Apr 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exp/novice Someone with a little familiarity can pick up help wanted Seeking public contribution on this issue kind/bug A bug in existing code (including security flaws) P2 Medium: Good to have, but can wait until someone steps up status/ready Ready to be worked
Projects
None yet
Development

No branches or pull requests

2 participants