LedgerHQ / satstack

Bitcoin full node with Ledger Live
BSD 2-Clause "Simplified" License
159 stars 32 forks source link

Mac OS satstack ERROR err -4: importdescriptors is not available for non-descriptor wallets #78

Open frankcastro opened 1 year ago

frankcastro commented 1 year ago

macOS Monterey Version: 12.6

Satstqck runs but fails with this error:

[2022/09/13 - 19:04:41] INFO worker: #RunTheNumbers successful actualSupply=19149779.67081857 BTC expectedSupply=19149987.5 BTC height=753998 [GIN] 2022/09/13 - 19:04:41 | 200 | 28.083589ms | 127.0.0.1 | GET "/blockchain/v3/explorer/status" [2022/09/13 - 19:04:41] ERROR err -4: importdescriptors is not available for non-descriptor wallets [2022/09/13 - 19:04:41] ERROR worker: Failed while importing descriptors error=-4: importdescriptors is not available for non-descriptor wallets [2022/09/13 - 19:04:41] INFO Shutdown server: in progress
[2022/09/13 - 19:04:42] ERROR Failed to query status err=bitcoind unreachable: -18: Requested wallet does not exist or is not loaded [GIN] 2022/09/13 - 19:04:42 | 200 | 25.95278ms | 127.0.0.1 | GET "/blockchain/v3/explorer/status" [2022/09/13 - 19:04:42] INFO Unloaded wallet successfully wallet=satstack [2022/09/13 - 19:04:42] INFO Shutdown server: done

adamteale commented 1 year ago

I'm running into the same issue/error - MacOS Big Sur 11.7.

Ledger Live 2.47 satstack_0.16.0_macOS-amd64 also happens with satstack_0.12.0_macOS-amd64

@frankcastro have you had any luck resolving the issue?

frankcastro commented 1 year ago

Hi Adam,No luck at all.  Seems like Ledger isn’t officially supporting it.Frank1.305.519.3279Sent from my iPhoneOn Sep 20, 2022, at 08:27, Adam Teale @.***> wrote: I'm running into the same issue/error - MacOS Big Sur 11.7 @frankcastro have you had any luck resolving the issue?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

adrienlacombe commented 1 year ago

hi, I will try to get my hands on a macOS and try to reproduce.

frankcastro commented 1 year ago

Tried this again using Bitcoin Core version v22.0.0, with satstack_0.16.1_macOS-amd64/lss

This is the entire log:

Last login: Mon Oct 3 08:19:54 on ttys000 /Users/frankcastro/Downloads/satstack_0.16.1_macOS-amd64/lss ; exit; ➜ ~ /Users/frankcastro/Downloads/satstack_0.16.1_macOS-amd64/lss ; exit; [2022/10/03 - 08:20:07] INFO Ledger SatStack (lss) v0.16.1 arch=darwin amd64 build= commit= runtime=go1.17.13 [2022/10/03 - 08:20:07] INFO Config file detected path=/Users/frankcastro/Library/Application Support/Ledger Live/lss.json [2022/10/03 - 08:20:07] INFO Warming up...
[2022/10/03 - 08:20:10] INFO Loaded existing wallet wallet=satstack [2022/10/03 - 08:20:10] INFO RPC connection established blockFilter=true chain=main pruned=false txindex=true


/ I won't be talking about Bitcoin in 10 \ years, I can assure you that. [...] I would bet in even 5 or 6 years I'm no longer talking about Bitcoin as Treasury Secretary.
-- Steven Mnuchin (US Secretary

\ of the Treasury), 2019 /

    \   ^__^
     \  (₿₿)\_______
        (__)\       )\/\
            ||----w |
            ||     ||

[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.

[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.

[GIN-debug] GET /timestamp --> github.com/ledgerhq/satstack/httpd/handlers.GetTimestamp.func1 (3 handlers) [GIN-debug] GET /control/descriptors/import --> github.com/ledgerhq/satstack/httpd/handlers.ImportAccounts.func1 (3 handlers) [GIN-debug] POST /control/descriptors/has --> github.com/ledgerhq/satstack/httpd/handlers.HasDescriptor.func1 (3 handlers) [GIN-debug] GET /blockchain/:version/explorer/_health --> github.com/ledgerhq/satstack/httpd/handlers.GetHealth.func1 (3 handlers) [GIN-debug] GET /blockchain/:version/explorer/status --> github.com/ledgerhq/satstack/httpd/handlers.GetStatus.func1 (3 handlers) [GIN-debug] GET /blockchain/:version/btc/network --> github.com/ledgerhq/satstack/httpd/handlers.GetNetwork.func1 (3 handlers) [GIN-debug] GET /blockchain/:version/btc/fees --> github.com/ledgerhq/satstack/httpd/handlers.GetFees.func1 (3 handlers) [GIN-debug] GET /blockchain/:version/btc/blocks/:block --> github.com/ledgerhq/satstack/httpd/handlers.GetBlock.func1 (3 handlers) [GIN-debug] GET /blockchain/:version/btc/transactions/:hash/hex --> github.com/ledgerhq/satstack/httpd/handlers.GetTransactionHex.func1 (3 handlers) [GIN-debug] POST /blockchain/:version/btc/transactions/send --> github.com/ledgerhq/satstack/httpd/handlers.SendTransaction.func1 (3 handlers) [GIN-debug] GET /blockchain/:version/btc/addresses/:addresses/transactions --> github.com/ledgerhq/satstack/httpd/handlers.GetAddresses.func1 (3 handlers) [2022/10/03 - 08:20:10] INFO worker: Initial Block Download complete blockHash=00000000000000000000827657498a77dd7fbc6c8f0feaabf3396805ff8f0713 blockHeight=756860 [2022/10/03 - 08:20:10] INFO worker: Computing circulating supply...
[2022/10/03 - 08:24:22] INFO worker: #RunTheNumbers successful actualSupply=19167667.16946718 BTC expectedSupply=19167875 BTC height=756860 [2022/10/03 - 08:24:22] ERROR err -4: importdescriptors is not available for non-descriptor wallets [2022/10/03 - 08:24:22] ERROR worker: Failed while importing descriptors error=-4: importdescriptors is not available for non-descriptor wallets [2022/10/03 - 08:24:22] INFO Shutdown server: in progress
[2022/10/03 - 08:24:22] INFO Unloaded wallet successfully wallet=satstack [2022/10/03 - 08:24:22] INFO Shutdown server: done

Saving session...completed.

[Process completed]

dlq84 commented 1 year ago

I'm getting this error on Linux as well:

> ./lss
[2022/11/14 - 21:11:58]  INFO Ledger SatStack (lss) v0.16.1                 arch=linux amd64 build= commit= runtime=go1.17.13
[2022/11/14 - 21:11:58]  INFO Config file detected                          path=/home/dlq/.config/Ledger Live/lss.json
[2022/11/14 - 21:11:58]  INFO Warming up...                                
[2022/11/14 - 21:11:58]  INFO Loaded existing wallet                        wallet=satstack
[2022/11/14 - 21:11:58]  INFO RPC connection established                    blockFilter=true chain=main pruned=false txindex=true
 _________________________________________
/ You could say coins are issued by the   \
| majority. They are issued in a limited, |
| predetermined amount.                   |
|                                         |
\         -- Satoshi Nakamoto, 2009       /
 -----------------------------------------
        \   ^__^
         \  (₿₿)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.

[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
 - using env:   export GIN_MODE=release
 - using code:  gin.SetMode(gin.ReleaseMode)

[GIN-debug] GET    /timestamp                --> github.com/ledgerhq/satstack/httpd/handlers.GetTimestamp.func1 (3 handlers)
[GIN-debug] GET    /control/descriptors/import --> github.com/ledgerhq/satstack/httpd/handlers.ImportAccounts.func1 (3 handlers)
[GIN-debug] POST   /control/descriptors/has  --> github.com/ledgerhq/satstack/httpd/handlers.HasDescriptor.func1 (3 handlers)
[GIN-debug] GET    /blockchain/:version/explorer/_health --> github.com/ledgerhq/satstack/httpd/handlers.GetHealth.func1 (3 handlers)
[GIN-debug] GET    /blockchain/:version/explorer/status --> github.com/ledgerhq/satstack/httpd/handlers.GetStatus.func1 (3 handlers)
[GIN-debug] GET    /blockchain/:version/btc/network --> github.com/ledgerhq/satstack/httpd/handlers.GetNetwork.func1 (3 handlers)
[GIN-debug] GET    /blockchain/:version/btc/fees --> github.com/ledgerhq/satstack/httpd/handlers.GetFees.func1 (3 handlers)
[GIN-debug] GET    /blockchain/:version/btc/blocks/:block --> github.com/ledgerhq/satstack/httpd/handlers.GetBlock.func1 (3 handlers)
[GIN-debug] GET    /blockchain/:version/btc/transactions/:hash/hex --> github.com/ledgerhq/satstack/httpd/handlers.GetTransactionHex.func1 (3 handlers)
[GIN-debug] POST   /blockchain/:version/btc/transactions/send --> github.com/ledgerhq/satstack/httpd/handlers.SendTransaction.func1 (3 handlers)
[GIN-debug] GET    /blockchain/:version/btc/addresses/:addresses/transactions --> github.com/ledgerhq/satstack/httpd/handlers.GetAddresses.func1 (3 handlers)
[2022/11/14 - 21:11:58]  INFO worker: Initial Block Download complete               blockHash=00000000000000000002c8cd15fb2beb324e025d9c684275232fb3228e18d631 blockHeight=763183
[2022/11/14 - 21:11:58]  INFO worker: Computing circulating supply...              
[GIN] 2022/11/14 - 21:11:59 | 200 |      78.769µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[GIN] 2022/11/14 - 21:11:59 | 200 |       23.69µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[GIN] 2022/11/14 - 21:12:00 | 200 |        36.9µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[GIN] 2022/11/14 - 21:12:01 | 200 |       22.69µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[GIN] 2022/11/14 - 21:12:02 | 200 |       29.62µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[GIN] 2022/11/14 - 21:12:03 | 200 |       35.89µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[GIN] 2022/11/14 - 21:12:04 | 200 |       28.15µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[GIN] 2022/11/14 - 21:12:05 | 200 |      44.219µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[GIN] 2022/11/14 - 21:12:06 | 200 |       32.49µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[GIN] 2022/11/14 - 21:12:07 | 200 |        35.1µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[GIN] 2022/11/14 - 21:12:08 | 200 |       27.51µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[GIN] 2022/11/14 - 21:12:09 | 200 |       44.16µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[GIN] 2022/11/14 - 21:12:10 | 200 |       31.91µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[GIN] 2022/11/14 - 21:12:11 | 200 |       31.52µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[GIN] 2022/11/14 - 21:12:12 | 200 |       25.72µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[GIN] 2022/11/14 - 21:12:13 | 200 |      32.849µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[GIN] 2022/11/14 - 21:12:14 | 200 |       33.43µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[GIN] 2022/11/14 - 21:12:15 | 200 |       48.66µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[GIN] 2022/11/14 - 21:12:16 | 200 |       31.67µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[GIN] 2022/11/14 - 21:12:17 | 200 |      30.429µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[GIN] 2022/11/14 - 21:12:18 | 200 |          39µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[GIN] 2022/11/14 - 21:12:19 | 200 |       28.44µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[GIN] 2022/11/14 - 21:12:20 | 200 |       31.97µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[GIN] 2022/11/14 - 21:12:21 | 200 |       33.76µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[GIN] 2022/11/14 - 21:12:22 | 200 |       23.34µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[GIN] 2022/11/14 - 21:12:23 | 200 |       26.72µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[GIN] 2022/11/14 - 21:12:24 | 200 |       32.84µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[GIN] 2022/11/14 - 21:12:25 | 200 |       45.87µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[GIN] 2022/11/14 - 21:12:26 | 200 |       26.44µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[GIN] 2022/11/14 - 21:12:27 | 200 |       27.11µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[GIN] 2022/11/14 - 21:12:28 | 200 |       33.94µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[GIN] 2022/11/14 - 21:13:09 | 200 |       40.57µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[GIN] 2022/11/14 - 21:13:10 | 200 |       37.64µs |       127.0.0.1 | GET      "/blockchain/v3/explorer/status"
[2022/11/14 - 21:13:23]  INFO worker: #RunTheNumbers successful                     actualSupply=19207185.91692884 BTC expectedSupply=19207393.75 BTC height=763183
[2022/11/14 - 21:13:25] ERROR err -4: importdescriptors is not available for non-descriptor wallets
[2022/11/14 - 21:13:25] ERROR worker: Failed while importing descriptors            error=-4: importdescriptors is not available for non-descriptor wallets
[2022/11/14 - 21:13:25]  INFO Shutdown server: in progress                 
[2022/11/14 - 21:13:25]  INFO Unloaded wallet successfully                  wallet=satstack
[2022/11/14 - 21:13:25]  INFO Shutdown server: done   
adrienlacombe commented 1 year ago

@dlq84 this is probably due to the upgrade. Can you try deleting the satstack wallet and retry? Thank you!

dlq84 commented 1 year ago

@adrienlacombe-ledger Thanks for the reply. I couldn't figure out how to delete a wallet from my node... But I changed the wallet name in the source to satstack2 and ran. Getting this error instead:

ImportDescriptors - Failed to import descriptor || Cannot import descriptor without private keys to a wallet with private keys enabled-4: Cannot import descriptor without private keys to a wallet with private keys enabled descriptor=<redacted>

I'm using Native Segwit, node is Bitcoin Core 24.0.1