Closed cc1cc1cc1 closed 1 year ago
Thank you for your report. We could document this better but it is an issue on your end: the bitcoind
process isn't able to create a wallet within the Liana data directory (~/.liana/bitcoin
as your example for mainnet). It is most probably not writable by the user your run bitcoind
as, as suggested by the output of ls -al
you pasted.
i got that, but the .liana folder is made by liana, so the soft itself define access right, is'nt it?
Yes, the data directory is created with no permissions for the group and others: https://github.com/wizardsardine/liana/blob/80fb0ecb01f65c15782f215fdda9bc99ad6c78d2/src/lib.rs#L136-L148
Are you running bitcoind
as another user? If so there are two ways we could support this:
bitcoind
watchonly wallet from outside Liana's data directoryI think the second one makes more sense as i can imagine it to be useful in other situations as well. What do you think?
cc @edouardparis if you have any suggestion too.
I don't use Snap, but a quick search seems like it would install Core as root. Liana would be installed as the user. Might be that, but i'm absolutely not knowledgeable with Snap.
cc1@cc1:~$ ps -aux | grep bitcoin
cc1 12570 51.3 4.9 5658348 790240 ? SLl 21:28 3:21 bitcoin-qt
so i'm running bitcoin-qt (not bitcoind) by same user than liana so i think problem not from there
but when i check for bitcoind and bitcoin-cli:
cc1@cc1:~$ bitcoind --version
bitcoind: command not found
cc1@cc1:~$ bitcoin-cli --version
bitcoin-cli: command not found
then i found them here:
cc1@cc1:~$ locate bitcoind | grep snap
/snap/bitcoin-core/120/bin/bitcoind
cc1@cc1:~$ locate bitcoin-cli | grep snap
/snap/bitcoin-core/120/bin/bitcoin-cli
just try that:
sudo ln -s /snap/bitcoin-core/120/bin/bitcoin-cli /usr/bin/bitcoin-cli
sudo ln -s /snap/bitcoin-core/120/bin/bitcoind /usr/bin/bitcoind
but still have the same issue
running bitcoind instead of bitcoin-qt seems solve issue but....
new issue following:
liana log:
cc1@cc1:~/Downloads/liana-0.1-x86_64-linux-gnu$ ./liana-gui
[1673474479][winit::platform_impl::platform::x11::window][INFO] Guessed window scale factor: 1.0625
[1673474549][liana][INFO] Created a new data directory at '/home/cc1/.liana/bitcoin'
[1673474549][liana::database::sqlite][INFO] Created a fresh database at /home/cc1/.liana/bitcoin/lianad.sqlite3.
[1673474549][liana][INFO] Database initialized and checked.
relevant log from bitcoind:
2023-01-11T22:02:29Z Using SQLite Version 3.32.1
2023-01-11T22:02:29Z Using wallet /home/cc1/.liana/bitcoin/lianad_watchonly_wallet
2023-01-11T22:02:29Z init message: Loading wallet…
2023-01-11T22:02:29Z [/home/cc1/.liana/bitcoin/lianad_watchonly_wallet] Wallet File Version = 10500
2023-01-11T22:02:29Z [/home/cc1/.liana/bitcoin/lianad_watchonly_wallet] Keys: 0 plaintext, 0 encrypted, 0 w/ metadata, 0 total. Unknown wallet records: 0
2023-01-11T22:02:29Z [/home/cc1/.liana/bitcoin/lianad_watchonly_wallet] Wallet completed loading in 22ms
2023-01-11T22:02:29Z [/home/cc1/.liana/bitcoin/lianad_watchonly_wallet] setKeyPool.size() = 0
2023-01-11T22:02:29Z [/home/cc1/.liana/bitcoin/lianad_watchonly_wallet] mapWallet.size() = 0
2023-01-11T22:02:29Z [/home/cc1/.liana/bitcoin/lianad_watchonly_wallet] m_address_book.size() = 0
2023-01-11T22:03:28Z [/home/cc1/.liana/bitcoin/lianad_watchonly_wallet] Releasing wallet
2023-01-11T22:03:28Z SQLite Error. Code: 28. Message: file unlinked while open: /home/cc1/.liana/bitcoin/lianad_watchonly_wallet/wallet.dat
should i open new issue for this one or they are linked?
It's very surprising that running bitcoind
in place of bitcoin-qt
solved the issue. If the lack of RPC server (by default when running bitcoin-qt
) was the issue we'd fail earlier in the process.
should i open new issue for this one or they are linked?
I've opened #284 to track this.
yes very surprising because i can connect to rpc using python bitcoinrpc package with this setup... i'll double check with a fresh install of bitcoin-core from sources
just try with bitcoin-qt build from source, works fine then reinstall from snap, seems they update version, now it is fine, working with bitcoin-qt from snap also
Cool. Thank you for letting us know. ------- Original Message ------- Le vendredi 3 février 2023 à 4:26 PM, cc1 @.***> a écrit :
just try with bitcoin-qt build from source, works fine then reinstall from snap, seems they update version, now it is fine, working with bitcoin-qt from snap also
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
waiting 0.2 release to dig more and more into liana ;) thank you guys for your amazing work
Running under Ubuntu 22.10 with Mate 1.26.0, linux kernel 5.19.0-26 bitcoincore installed using snap
bitcoin.conf: rpcallowip=127.0.0.1 server=1
cookie path is ok
I got this output instantly after pressing "finalize installaton" buton at step 5/5:
here details about folders: