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

leveldb store open: resource temporarily unavailable #5

Closed
prologic opened this issue Jun 7, 2021 · 1 comment
Closed

leveldb store open: resource temporarily unavailable #5

prologic opened this issue Jun 7, 2021 · 1 comment

Comments

@prologic
Copy link

prologic commented Jun 7, 2021

Using the upgrade_finn_uhaha branch of bitraft I noticed the following problems that seem to have to do with leveldb you're using behind the scenes?

How do I fix/resolve this? Can I control what is being used here?

Running the leader:

james@Jamess-MacBook-Pro
Mon Jun 07 10:26:04
~/tmp/bitraft
 (upgrade_finn_uhaha) 130
$ ./bitraft -d ./data1
INFO[0000] 61466:S 07 Jun 2021 10:26:13.767 # starting bitraft version 0.0.1@HEAD
INFO[0000] 61466:S 07 Jun 2021 10:26:14.056 * synchronized time
INFO[0000] 61466:S 07 Jun 2021 10:26:14.057 * server listening at [::]:4920
INFO[0000] 61466:S 07 Jun 2021 10:26:14.057 * server advertising as :5920
INFO[0000] 61466:S 07 Jun 2021 10:26:14.156 * initial configuration: index=0 servers=[]
INFO[0000] 61466:S 07 Jun 2021 10:26:14.156 * bootstrapping new cluster
INFO[0000] 61466:F 07 Jun 2021 10:26:14.156 * entering follower state: follower="Node at [::]:4920 [Follower]" leader=
INFO[0001] 61466:F 07 Jun 2021 10:26:15.657 # heartbeat timeout reached, starting election: last-leader=
INFO[0001] 61466:C 07 Jun 2021 10:26:15.657 * entering candidate state: node="Node at [::]:4920 [Candidate]" term=2
INFO[0001] 61466:C 07 Jun 2021 10:26:15.728 * election won: tally=1
INFO[0001] 61466:L 07 Jun 2021 10:26:15.728 * entering leader state: leader="Node at [::]:4920 [Leader]"
INFO[0002] 61466:L 07 Jun 2021 10:26:16.223 * logs loaded: ready for commands

Adding another instance:

james@Jamess-MacBook-Pro
Mon Jun 07 10:23:06
~/tmp/bitraft
 (master) 130
$ ./bitraft -b 0.0.0.0:4921 -j 127.0.0.1:4920 -d ./data2
INFO[0000] 61470:S 07 Jun 2021 10:26:28.259 # starting bitraft version 0.0.1@HEAD
INFO[0000] 61470:S 07 Jun 2021 10:26:28.538 * synchronized time
INFO[0000] 61470:S 07 Jun 2021 10:26:28.538 * server listening at [::]:4921
INFO[0000] 61470:S 07 Jun 2021 10:26:28.538 * server advertising as :5920
INFO[0000] 61470:S 07 Jun 2021 10:26:28.538 # leveldb store open: resource temporarily unavailable
@prologic
Copy link
Author

prologic commented Jun 7, 2021

PEBKAC.

Problem was config.DataDir was the same across multiple instances. My bitraft CLI has a -p/--path option that affects this, but I didn't use it properly 🤣

Side-question: Will you accept a Bitcask Backend?

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

No branches or pull requests

1 participant