go-crypto-wallet icon indicating copy to clipboard operation
go-crypto-wallet copied to clipboard

Error --- bitcoind on Ubuntu 20.04

Open osizadmin opened this issue 3 years ago • 28 comments

We faced this below issue. Let me know how to resolve this issue.

E: Unable to locate package bitcoind ERROR: Service 'btc-watch' failed to build

osizadmin avatar Feb 08 '22 12:02 osizadmin

I switched docker image for bitcoind to https://hub.docker.com/r/lncm/bitcoind For now, no deeds to build anymore. Thanks for telling me :)

hiromaily avatar Feb 08 '22 12:02 hiromaily

Is it possible to run this [go-crypto-wallet] without docker installation.

osizadmin avatar Feb 08 '22 13:02 osizadmin

application depends on database and blockchain node like btc, eth. But I'm thinking to develop mock node for unittest.

hiromaily avatar Feb 08 '22 13:02 hiromaily

Hi,

Thanks for your reply and support.

As I had deployed the container but unfortunately few containers are not exec and I can't able to sh into it. Over all container Container error 3 Container error 2 Container error 1

I had attached the reference screenshot.

osizadmin avatar Feb 08 '22 14:02 osizadmin

It may be timing issue because I pushed wrong code and tweaked later. Could you pull latest code and rebuild container again? Please compare latest code to your local compose file.

hiromaily avatar Feb 08 '22 15:02 hiromaily

HI,

Yeah, I have done the new build as well but still, some containers are not up. could you please let us know? Even I tried your local docker-compose.yml file it showed some errors.

  1. git source.
  2. local code. 2 local yml 1 Git source

I had attached the screenshots kindly review them and give us your feedback

osizadmin avatar Feb 09 '22 04:02 osizadmin

Could you tell me compose logs of containers which exited?

hiromaily avatar Feb 09 '22 05:02 hiromaily

try bitcoind container one by one.

rm -rf docker/nodes/btc/data1
docker compose up btc-watch

hiromaily avatar Feb 09 '22 05:02 hiromaily

I can't find any container logs since the container is not even running so it's hard to take the log of that container

I had attached the screenshot below for the container of lncm/bitcoind:v22.0

bitcoind:v22 0

I'm getting below error if I start

docker compose up btc-watch Btc-watch

osizadmin avatar Feb 09 '22 05:02 osizadmin

removing any data to initialize would be solution by rm -rf docker/nodes/btc/data1 before running.

hiromaily avatar Feb 09 '22 05:02 hiromaily

I had done it it's still same error

osizadmin avatar Feb 09 '22 05:02 osizadmin

Please remove any containers completely before running. Even if you still face error, I'm using testnet always then I don't have any problem. Copy bitcoin.conf into dataX directory according to comments of docker-compose.yml

hiromaily avatar Feb 09 '22 07:02 hiromaily

I had done the changes as you said & I had checked with your last commit as well.

But unfortunately, It's not working

FYI: I had truncated all the images and containers before I deploy the containers every time.

  1. Running container's Running-container's

  2. Container deployed Container deployed

osizadmin avatar Feb 09 '22 11:02 osizadmin

It would be environmental issue. I'm using it on

MacOS 10.15.7,
Docker version 20.10.12, build e91ed57
running on testnet

I don't know how it works on other OS or docker version

hiromaily avatar Feb 09 '22 13:02 hiromaily

But error looks permission problem to write files or directory. could you check data directory mounted?

hiromaily avatar Feb 09 '22 13:02 hiromaily

My environment I'm using

Distributor ID: Ubuntu Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focal

Docker :

Docker version 20.10.12, build e91ed57

Docker composer :

docker-compose version 1.29.2, build 5becea4c

osizadmin avatar Feb 09 '22 14:02 osizadmin

Okay I will check with docker-compose.yml file and will get back to you

osizadmin avatar Feb 09 '22 14:02 osizadmin

Hello I'm new in this will help me how i start ??

manali1903 avatar Feb 22 '23 13:02 manali1903

@manali1903 Could you read documentation?

hiromaily avatar Feb 23 '23 11:02 hiromaily

@hiromaily I read it, but nothing works and gives me errors.

manali1903 avatar Feb 24 '23 04:02 manali1903

@manali1903 Please note your environment and error

hiromaily avatar Feb 24 '23 04:02 hiromaily

the config file should be passed

Screenshot from 2023-02-24 16-15-40

manali1903 avatar Feb 24 '23 10:02 manali1903

I need to tweak configurations for ethereum The Merge. Give me some time to do that.

hiromaily avatar Feb 25 '23 06:02 hiromaily

@manali1903 result looks you didn't set any environment variables. What environment variables are .envrc

It is mentioned at number 4 in https://github.com/hiromaily/go-crypto-wallet/blob/master/docs/Installation.md#common-setup

hiromaily avatar Feb 25 '23 08:02 hiromaily

@hiromaily I already set that path i didn't change in .envrc file

manali1903 avatar Feb 28 '23 09:02 manali1903

@manali1903 Your error message occurred at https://github.com/hiromaily/go-crypto-wallet/blob/b13754532427661a76284647b248b9bfa218f549/pkg/account/toml.go#L29

This means toml config file for configuration is not found. Reasons would be

What happens by command echo $ETH_WATCH_WALLET_CONF ??

hiromaily avatar Mar 01 '23 02:03 hiromaily

@hiromaily

Hello Still give me the same error of the config file...

image

image

manali1903 avatar Mar 02 '23 05:03 manali1903

@manali1903 just add -conf argument with config path. For example keygen -conf <full_path>eth_keygen.toml

hiromaily avatar Mar 03 '23 14:03 hiromaily