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

Issue installing/ using EPS with bitcoind v28.0 on rpi4 #305

Open
yellyfish1 opened this issue Dec 20, 2024 · 2 comments
Open

Issue installing/ using EPS with bitcoind v28.0 on rpi4 #305

yellyfish1 opened this issue Dec 20, 2024 · 2 comments

Comments

@yellyfish1
Copy link

yellyfish1 commented Dec 20, 2024

I run a bitcoin fullnode v28.0 on a raspberry pi4 and tried to make EPS work.

I experienced several issues during installation and execution. Any help is very much appriciated. And maybe any one else can use any of the knowledge I gathered.

I ran into these issues:

  • First it was not possible to install setuptools, I had to use 'sudo apt install python3-setuptools' instead of 'sudo pip3 install setuptools'
  • Also it was not possible to run 'pip3 install wheel' and ' pip3 install use .' I had first to create a python virtual environment. I did this with 'sudo apt install python3-venv', 'python3 -m venv foobar’, 'source foobar/bin/activate'. Finaly installed with 'pip install wheel' and 'pip install.' instead of 'pip install --user .' then 'deactivate' to exit virtual environment
  • I compiled bitcoind v28.0 first without wallet. This doesn't work . To win time I downloaded a precompiled version of v28.0.
  • I created a wallet with ' bitcoin-cli createwallet "default" "true" "true" "" "true" ' instead of ' bitcoin-cli createwallet electrumpersonalserver true true "" false false true ' because the last gave an error "BDB wallet creation is deprecated and will be removed in a future release. In this release it can be re-enabled temporarily with the -deprecatedrpc=create_bdb setting."
  • I ran ' electrum-personal-server --rescan ~/.eps/electrum-personal-server/config.cfg ' this went well.
  • When I finally run ' electrum-personal-server ~/.eps/electrum-personal-server/config.cfg ' I get the error below:

INFO:2024-12-20 08:12:27,398: Starting Electrum Personal Server 0.2.4
INFO:2024-12-20 08:12:27,398: Logging to /tmp/electrumpersonalserver.log
INFO:2024-12-20 08:12:29,089: Displaying first 3 addresses of each master public key:
INFO:2024-12-20 08:12:29,089: Obtaining bitcoin addresses to monitor . . .
INFO:2024-12-20 08:12:29,100: Importing 0 wallets and 2 watch-only addresses into the Bitcoin node
Traceback (most recent call last):
File "/home/bitcoin/.eps/electrum-personal-server/electrum-personal-server-eps-v0.2.4/foobar/bin/electrum-personal-server", line 8, in
sys.exit(main())
^^^^^^
File "/mnt/sda2/electrum-personal-server/electrum-personal-server-eps-v0.2.4/foobar/lib/python3.11/site-packages/electrumpersonalserver/server/common.py", line 481, in main
deterministicwallet.import_addresses(rpc, relevant_spks_addrs,
File "/mnt/sda2/electrum-personal-server/electrum-personal-server-eps-v0.2.4/foobar/lib/python3.11/site-packages/electrumpersonalserver/server/deterministicwallet.py", line 29, in import_addresses
rpc.call("importmulti", [watchonly_addr_param, {"rescan": False}])
File "/mnt/sda2/electrum-personal-server/electrum-personal-server-eps-v0.2.4/foobar/lib/python3.11/site-packages/electrumpersonalserver/server/jsonrpc.py", line 122, in call
raise JsonRpcError(response["error"])

What can I do?

@yellyfish1
Copy link
Author

yellyfish1 commented Dec 20, 2024

That's strange, because I posted this issue on #305, not on https://github.com/blockscout/blockscout/issues. Is this the same?

Using the link you send, I can't figure out were to leave the ticket ID. The chat agent also doesn't give usefull feedback on the ticketnumer or the question above.

@yellyfish1
Copy link
Author

Finallly solved it myself, the clue was in the last error message. A legacy wallet was required. I stopped bitcond and restarted it using with the option -deprecatedrpc=create_bdb. Now a legacy wallet could be created with: bitcoin-cli createwallet electrumpersonalserver true true "" false false true.
After starting EPS with rescan option EPS was up and runing and listening. However Electrum couldn't still connect. This was because out-of-the-box the certifcate is expired. After creating new certifcate Electrum could connect.

@yellyfish1 yellyfish1 changed the title Deterministicwallet.import_addresses issue ? Issue installing/ using EPS with bitcoind v28.0 on rpi4 Dec 20, 2024
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
@yellyfish1 and others