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

/entrypoint.sh: 26: exec: bitcoin-cli: not found error #86

Closed
abhyankar-amey opened this issue Nov 18, 2019 · 2 comments
Closed

/entrypoint.sh: 26: exec: bitcoin-cli: not found error #86

abhyankar-amey opened this issue Nov 18, 2019 · 2 comments

Comments

@abhyankar-amey
Copy link

Hello,

When I execute the docker run to get balance, I am getting following error =

`docker run -it --rm btc-18nov \ bitcoin-cli \ -rpcconnect=bitcoin-server -rpcuser=amey\ -regtest=1 \ -stdinrpcpass \ getbalance
/entrypoint.sh: 4: [: =: unexpected operator
/entrypoint.sh: 10: [: =: unexpected operator

/entrypoint.sh: 26: exec: bitcoin-cli: not found
`
Pls suggest how to fix this issue thanks.

@ruimarinho
Copy link
Owner

@abhyankar-amey it looks like you're not running the image produced by this project?

@abhyankar-amey
Copy link
Author

@ruimarinho

I am trying from last couple of weeks with the default image,customisation and lot other stuff.
Errors & errors.

I am using =

Docker version 19.03.4, build 9013bf583a
Base machine: Ubuntu 18.04.3 LTS

If I start the container using default values & then if I try to send RPC call as per the readme.md, it says make sure server is listening on respective port.
I generate the password using the .py file you mentioned in the readme.

Same error if I am using regtest or prod network.
I ensured that bitcoind is running inside the container.
I tried to telnet on the port but it doesnt work.
For other containers, I am able to telnet without any issues.

I also notice, that 'rpcallowip' option is no more allowed in 0.18.x onwards = https://bitcoin.org/en/release/v0.18.0#notable-changes

If I try to get output by doing docker exec, it works.
It's the RPC call which doesn't work even if I supply custom bitcoin.conf file.

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