Skip to content

[bug]: unable to determine if bitcoind is pruned: unable to detect bitcoind version: json: cannot unmarshal array into Go struct field GetNetworkInfoResult.warnings #9310

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

Closed
reivanen opened this issue Nov 27, 2024 · 2 comments
Labels
bug Unintended code behaviour needs triage

Comments

@reivanen
Copy link

reivanen commented Nov 27, 2024

Background

Tried to start lnd after not using it since version 0.17.4 and got this error:

#Attempting automatic RPC configuration to bitcoind
Automatically obtained bitcoind's RPC credentials
2024-11-27 02:02:37.096 [WRN] LTND: Config 'bitcoin.active' is deprecated, please remove it
2024-11-27 02:02:37.096 [INF] LTND: Version: 0.18.3-beta commit=v0.18.3-beta, build=production, logging=default, debuglevel=info
2024-11-27 02:02:37.097 [INF] LTND: Active chain: Bitcoin (network=mainnet)
2024-11-27 02:02:37.097 [INF] RPCS: RPC server listening on 127.0.0.1:10009
2024-11-27 02:02:37.101 [INF] RPCS: gRPC proxy started at 127.0.0.1:8080
2024-11-27 02:02:37.101 [INF] LTND: Opening the main database, this might take a few minutes...
2024-11-27 02:02:37.101 [INF] LTND: Opening bbolt database, sync_freelist=false, auto_compact=false
2024-11-27 02:02:37.142 [INF] LTND: Creating local graph and channel state DB instances
2024-11-27 02:02:37.205 [INF] CHDB: Checking for schema update: latest_version=31, db_version=31
2024-11-27 02:02:37.205 [INF] CHDB: Checking for optional update: prune_revocation_log=false, db_version=empty
2024-11-27 02:02:37.209 [INF] LTND: Database(s) now open (time_to_open=107.850799ms)!
2024-11-27 02:02:37.209 [INF] LTND: Attempting automatic wallet unlock with password provided in file
2024-11-27 02:02:37.806 [INF] LNWL: Opened wallet
2024-11-27 02:02:37.863 [ERR] LTND: unable to create partial chain control: unable to determine if bitcoind is pruned: unable to detect bitcoind version: json: cannot unmarshal array into Go struct field GetNetworkInfoResult.warnings of type string
2024-11-27 02:02:37.864 [ERR] LTND: Shutting down because error in main method: error creating wallet config: unable to create partial chain control: unable to determine if bitcoind is pruned: unable to detect bitcoind version: json: cannot unmarshal array into Go struct field GetNetworkInfoResult.warnings of type string
2024-11-27 02:02:37.867 [INF] LTND: Shutdown complete

error creating wallet config: unable to create partial chain control: unable to determine if bitcoind is pruned: unable to detect bitcoind version: json: cannot unmarshal array into Go struct field GetNetworkInfoResult.warnings of type string

Now i am not able to start version 0.17.4 any more because it says watchtower version is too new.

Your environment

0.18.3
Linux 6.12.1-2-MANJARO #1 SMP PREEMPT_DYNAMIC Sat, 23 Nov 2024 09:21:40 +0000 x86_64 GNU/Linux
28.0

Steps to reproduce

start lnd

@reivanen reivanen added bug Unintended code behaviour needs triage labels Nov 27, 2024
@reivanen reivanen changed the title [bug]: [bug]: unable to determine if bitcoind is pruned: unable to detect bitcoind version: json: cannot unmarshal array into Go struct field GetNetworkInfoResult.warnings Nov 27, 2024
@Roasbeef
Copy link
Member

See this issue: #9163

The first release candidate for lnd v0.18.4 (includes the fix) is out. Until the final version of that is released, you can implement this work around: #9163 (comment)

@reivanen
Copy link
Author

reivanen commented Nov 27, 2024

thanks, never would have even known about this issue if i had just grabbed the latest rc version, it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unintended code behaviour needs triage
Projects
None yet
Development

No branches or pull requests

2 participants