Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#76841 - [bitcoin-daemon] db version conflict

Attached to Project: Community Packages
Opened by Steve M (smmalis37) - Friday, 16 December 2022, 01:30 GMT
Last edited by Toolybird (Toolybird) - Monday, 19 December 2022, 01:43 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To freswa (frederik)
kpcyrd (kpcyrd)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 5
Private No

Details

Description:
After updating my system and rebooting I get the following error message in my logs:
bitcoind[1148]: Error: A version conflict was detected between the run-time BerkeleyDB library and the one used during compilation.

Additional info:
[steve@smalis-nuc ~]$ pacman -Qi bitcoin-daemon
Name : bitcoin-daemon
Version : 24.0-2
Description : Bitcoin is a peer-to-peer network based digital currency - daemon
Architecture : x86_64
URL : https://bitcoin.org/en/wallets/desktop/linux/bitcoincore/
Licenses : MIT
Groups : None
Provides : None
Depends On : boost-libs db libevent miniupnpc libminiupnpc.so=17-64 sqlite zeromq
Optional Deps : None
Required By : None
Optional For : electrumx
Conflicts With : None
Replaces : None
Installed Size : 8.66 MiB
Packager : Frederik Schwan <freswa@archlinux.org>
Build Date : Thu 15 Dec 2022 01:24:41 PM EST
Install Date : Thu 15 Dec 2022 08:10:43 PM EST
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature

[steve@smalis-nuc ~]$ pacman -Qi db
Name : db
Version : 6.2.32-1
Description : The Berkeley DB embedded database system
Architecture : x86_64
URL : https://www.oracle.com/technology/software/products/berkeley-db/index.html
Licenses : AGPL3
Groups : None
Provides : None
Depends On : gcc-libs sh
Optional Deps : None
Required By : bitcoin-daemon
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 7.16 MiB
Packager : Frederik Schwan <freswa@archlinux.org>
Build Date : Sat 10 Dec 2022 01:39:34 PM EST
Install Date : Thu 15 Dec 2022 08:23:53 PM EST
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature
This task depends upon

Closed by  Toolybird (Toolybird)
Monday, 19 December 2022, 01:43 GMT
Reason for closing:  Fixed
Additional comments about closing:  bitcoin-daemon 24.0.1-4
Comment by kpcyrd (kpcyrd) - Friday, 16 December 2022, 12:47 GMT
Workaround until the new package is ready, install the db5.3 package and run:

LD_PRELOAD=/usr/lib/libdb_cxx-5.3.so /usr/bin/bitcoin-qt
Comment by kpcyrd (kpcyrd) - Friday, 16 December 2022, 13:18 GMT
The 24.0.1-2 update should fix this for /usr/bin/bitcoind but a fix for bitcoin-qt is still pending
Comment by Steve M (smmalis37) - Sunday, 18 December 2022, 00:19 GMT
  • Field changed: Percent Complete (100% → 0%)
Bug was gone for me on 24.0.1-2, has returned with 24.0.1-3.
Comment by Toolybird (Toolybird) - Sunday, 18 December 2022, 00:24 GMT
Dupe  FS#76865 
Comment by freswa (frederik) - Sunday, 18 December 2022, 11:51 GMT
Have you initialized you bitcoin wallet in the past days?

The linking looks fine, anything that links against db is linked against 5.3. I guess you initialized the wallet with db 6 and that's not compatible with the older version.
Comment by Nick (yonson) - Sunday, 18 December 2022, 16:09 GMT
I have not initialized a wallet in the past few days, but am seeing the error.
Comment by Steve M (smmalis37) - Sunday, 18 December 2022, 17:53 GMT
I run my node with disablewallet=1 in my bitcoin.conf, so there's no wallet to initialize. I have not made any configuration changes to my node nor run any commands beyond reading its status in months. All I have done is updated packages and rebooted.
Comment by Toolybird (Toolybird) - Sunday, 18 December 2022, 22:30 GMT
@freswa, the linking is fine, but the includes are wrong. It appears a stray '$' snuck in to your last commit. You can see it clearly if you compile with `make V=1':

-Iusr/include/db5.3

Credits - @Earnestly commented here [1]

[1] https://github.com/archlinux/svntogit-community/commit/bba14a8c14c7cbd44a6f1949bfe920bdaece2dab
Comment by freswa (frederik) - Sunday, 18 December 2022, 22:48 GMT
Thanks for the hint @Toolybird.

Please check 24.0.1-4
Comment by Steve M (smmalis37) - Sunday, 18 December 2022, 23:17 GMT
24.0.1-4 starts up just fine!

Loading...