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

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

Open
frankcastro opened this issue Sep 13, 2022 · 7 comments

Comments

@frankcastro
Copy link

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

@frankcastro frankcastro changed the title Mac OS satstack Mac OS satstack ERROR err -4: importdescriptors is not available for non-descriptor wallets Sep 14, 2022
@adamteale
Copy link

adamteale commented Sep 20, 2022

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
Copy link
Author

frankcastro commented Sep 20, 2022 via email

@adrienlacombe
Copy link
Contributor

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

@frankcastro
Copy link
Author

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.

  • 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/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
Copy link

dlq84 commented Nov 14, 2022

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
Copy link
Contributor

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

@dlq84
Copy link

dlq84 commented Dec 25, 2022

@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

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

4 participants