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

external volume of /bitcoin don't seem to work? #34

Closed
hypergig opened this issue Aug 17, 2016 · 3 comments
Closed

external volume of /bitcoin don't seem to work? #34

hypergig opened this issue Aug 17, 2016 · 3 comments

Comments

@hypergig
Copy link

talisker:~ jordan$ docker run -v /Users/jordan/blockchains/bitcoin:/bitcoin --name=bitcoind-node3 -p 8333:8333 -p 127.0.0.1:8332:8332    kylemanna/bitcoind
+ btc_init
+ '[' '!' -e /bitcoin/.bitcoin/bitcoin.conf ']'
+ mkdir -p /bitcoin/.bitcoin
+ echo 'Creating bitcoin.conf'
+ cat
Creating bitcoin.conf
+ cat /bitcoin/.bitcoin/bitcoin.conf
disablewallet=1
printtoconsole=1
rpcuser=bitcoinrpc
rpcpassword=dd if=/dev/urandom bs=33 count=1 status=none | base64
Initialization completed successfully
+ echo 'Initialization completed successfully'
+ '[' 0 -gt 0 ']'
+ args=("-rpcallowip=::/0")
+ exec bitcoind -rpcallowip=::/0
2016-08-17 10:51:57 



















2016-08-17 10:51:57 Bitcoin version v0.12.1.0-g9779e1e (Mon, 11 Apr 2016 13:01:43 +0200)
2016-08-17 10:51:57 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1
2016-08-17 10:51:57 Using BerkeleyDB version Berkeley DB 4.8.30: (April  9, 2010)
2016-08-17 10:51:57 Default data directory /bitcoin/.bitcoin
2016-08-17 10:51:57 Using data directory /bitcoin/.bitcoin
2016-08-17 10:51:57 Using config file /bitcoin/.bitcoin/bitcoin.conf
2016-08-17 10:51:57 Using at most 125 connections (1048576 file descriptors available)
2016-08-17 10:51:57 Using 8 threads for script verification
2016-08-17 10:51:57 scheduler thread start
2016-08-17 10:51:57 Binding RPC on address 0.0.0.0 port 8332 failed.
2016-08-17 10:51:57 HTTP: creating work queue of depth 16
2016-08-17 10:51:57 Config options rpcuser and rpcpassword will soon be deprecated. Locally-run instances may remove rpcuser to use cookie-based auth, or may be replaced with rpcauth. Please see share/rpcuser for rpcauth auth generation.
2016-08-17 10:51:57 HTTP: starting 4 worker threads
2016-08-17 10:51:57 Bound to [::]:8333
2016-08-17 10:51:57 Bound to 0.0.0.0:8333
2016-08-17 10:51:57 Cache configuration:
2016-08-17 10:51:57 * Using 2.0MiB for block index database
2016-08-17 10:51:57 * Using 32.5MiB for chain state database
2016-08-17 10:51:57 * Using 65.5MiB for in-memory UTXO set
2016-08-17 10:51:57 init message: Loading block index...
2016-08-17 10:51:57 Opening LevelDB in /bitcoin/.bitcoin/blocks/index
2016-08-17 10:51:57 IO error: /bitcoin/.bitcoin/blocks/index: Invalid argument
2016-08-17 10:51:57 : Error opening block database.

Do you want to rebuild the block database now?
2016-08-17 10:51:57 Aborted block database rebuild. Exiting.
2016-08-17 10:51:57 Shutdown: In progress...
2016-08-17 10:51:57 scheduler thread interrupt
: Error opening block database.

Do you want to rebuild the block database now?
2016-08-17 10:51:57 StopNode()
2016-08-17 10:51:57 Shutdown: done
talisker:~ jordan$ 

It does seem to do some stuff though..

talisker:blockchains jordan$ 
talisker:blockchains jordan$ pwd
/Users/jordan/blockchains
talisker:blockchains jordan$ 
talisker:blockchains jordan$ tree -a bitcoin/
bitcoin/
└── .bitcoin
    ├── .lock
    ├── bitcoin.conf
    ├── blocks
    │   └── index
    │       ├── 000003.log
    │       ├── CURRENT
    │       ├── LOCK
    │       ├── LOG
    │       └── MANIFEST-000001
    └── debug.log

3 directories, 8 files
talisker:blockchains jordan$ 

I can confirm that using a docker volume (as per the instructions) does work. Wonder why it flips out with external volumes? I have plenty of disk, cpu, mem availible.

@hypergig
Copy link
Author

Looks related

boot2docker/boot2docker#794

@hypergig
Copy link
Author

works with docker for mac (removing vbox from the picture)
https://docs.docker.com/docker-for-mac/

This is totally a vbox issue.

@kylemanna
Copy link
Owner

Thanks for the update. Will close unless something is actionable here.

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

2 participants