-
Notifications
You must be signed in to change notification settings - Fork 213
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
Error: Cannot obtain a lock on data directory #18
Comments
ok, I tried running it manually:
and then, inside the container:
which I find a reference to here: boot2docker/boot2docker#794 so it seems there's a problem running bitcoind on VirtualBox (which I use for running docker on OSX)... however, curiously this is not the same error I get when I just run the container... a bit at a loss here... |
Indeed, this is related to how VirtualBox handles some file system calls. I honestly don't know the specifics but there's nothing we can do on the docker image side. Have you considered using Docker for Mac? It uses a custom file driver ( |
I appreciate your writing back. I removed Boot2Docker and installed the new (beta) Docker for Mac but I'm still unable to run. if I manually log into the container and run the server like this:
it seems to work but running it from the host:
fails with:
can you spot what the issue might be? here's the directory I'm mounting:
|
I also had a look at what the original entry point does and tried running with an alternative directory but it too failed:
|
if I log into the container and run the entry point (since I replaced it in my invocation to the container), I get an error:
and curiously this fails too:
I don't get it |
so the problem seems to be that if $1 is empty it needs to be written like this:
but I see that
in my penultimate message... |
ah... I get it now. I presume the container runs under the docker host id, which wouldn't have permission to change ownership of my folder... so the question is: how do I enable the docker host to own it? |
I've created a post on the docker site for this: https://forums.docker.com/t/failure-to-chown-a-directory-on-the-host/17445 ...but in discussing this with some of the blokes on irc#docker it was suggested that the chown in the entry point should be removed... |
final note: I killed all containers running, removed all volumes, all images, and ran the command again. it worked as it should. so I guess it was some bad juju from the times I was running with boot2docker. so we're all good now. thanks a bunch! |
Sorry for the lack of feedback here @ekkis, but I'm glad you're on track again! |
yes, thank you for putting all this together. your efforts to maintain this make it child's play to put things together and saves those of us playing with this stuff a ton of work. cheers! |
I'm trying to run bitcoind from the docker image like this:
docker run --rm -it --name bitcoind -p 8332 -v ${PWD}/bitcoind:/home/bitcoin/.bitcoin seegno/bitcoind:latest -server -printtoconsole
but I'm getting the error below:
the directory I've created to host the blockchain (and presumably the wallet) looks like this:
so what am I doing wrong? the container doesn't have sufficient space in it for a sync so I need to write it to my local disk.
incidentally I'm running this on OSX using Boot2Docker, which I understand maps my
/home
folder automatically to the the docker-machine's file system. I've also verified that there is nobitcoind/.lock
file.The text was updated successfully, but these errors were encountered: