cryptoadvance / specter-desktop

A desktop GUI for Bitcoin Core optimised to work with hardware wallets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[ Liquid ] Failed to load utxos, KeyError: <TXID>

jumbledup opened this issue · comments

Describe the bug

Elements Liquid wallet will not load after receiving a UTXO.

Error message: Failed to load utxos, KeyError: <TXID> (txid is left out for privacy reasons).

The last two lines from my log:

SPECTERD: INFO in wallet_manager:   * failed_load_wallets: 1
SPECTERD: INFO in wallet_manager:     * Liquid : Failed to load utxos, KeyError: <TXID>

(Full log below)

To Reproduce

  1. Create a new Elements Core hot wallet in Specter Desktop.
  2. Send L-BTC to an address in the hot wallet.
  3. Open Specter Desktop. The aforementioned error message will display and the wallet will fail to load.

Expected behavior

The wallet should load without any errors after the UTXO is received.

Screenshots

image
image

My setup

  • I am running Elements Core (Liquid) on a remote computer on my local network (Linux)
  • I am running Specter Desktop (locally) on my laptop (Linux)
  • I am currently running Specter Desktop v2.0.2 but the issue arose while using 2.0.1. I upgraded to 2.0.2 after noticing the bug.

Additional context

I tried the Specter options of re-scanning for just the UTXOs and then re-scanning the full blockchain to see if this would resolve the issue but the error message persists.

I tried enabling transaction indexing (txindex=1) in my elements.conf to see if that would fix the issue but that didn't work either.

I am able to open the wallet.dat created by Specter in ~/.elements/liquidv1/wallets using elements-cli/elements-qt and see the L-BTC received; however, the wallet.dat is "watch-only" so I can't spend the L-BTC or dump the private key.

Unfortunately, I don't know the seed phrase or private key for this wallet (so I can't simply import it to other wallet software or use Elements Core directly to recover the funds) and there does not seems to be any way to export any kind of private key through Specter, so if this doesn't get resolved, I think the funds are probably burned.

Related questions:

  • I know that the primary intended use case for Specter is for hardware wallets (no private key on the computer running Specter) but my case involves a "hot" wallet, so the private key should be somewhere on the my computer, right? I mean, how else could a transaction be signed?
  • Is there any way to access my wallet's private key through Specter (or otherwise) so that I can import it to Elements Core or Blockstream Green?
  • I am curious as to why there seems to be no capability to export or view private keys from within the Specter UI. I think it would be useful for people who lose their seed backups so that they can make another backup. Other wallets (e.g. Sparrow) implement this feature.

Full Specter Log

I am uploading my full Specter Desktop log below (private details e.g. txid, IP addresses, etc. removed). Click to expand.

The trouble seems to begin about half way through the log. I separated it out with a bunch of newlines and a ==========TROUBLE BEGINS========== separator so that you can find it quickly.

2024-04-07T18:31:54.400Z [info] : Using version v2.0.2
2024-04-07T18:31:54.407Z [info] : Using platformName x86_64-linux-gnu
2024-04-07T18:31:54.672Z [info] : Framework ready! Starting tray icon ...
2024-04-07T18:31:54.686Z [info] : Framework Ready! Initializing Main-Window, populating Menu ...
2024-04-07T18:31:55.038Z [info] : Updated LoaderMsg: Launching Specter ...
2024-04-07T18:31:56.127Z [info] : stderr-SPECTERD: INFO in server: Configuration: cryptoadvance.specter.config.ProductionConfig

2024-04-07T18:31:56.127Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.128Z [info] : stderr-SPECTERD: INFO in server: SPECTER_DATA_FOLDER: /home/<USERNAME>/.specter
SPECTERD: INFO in specter_migrator: Initiated MigDataManager(/home/<USERNAME>/.specter/migration_data.json events:2 execs:2 )

2024-04-07T18:31:56.128Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.129Z [info] : stderr-SPECTERD: INFO in specter_migrator: Collecting possible migrations ...

2024-04-07T18:31:56.129Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.130Z [info] : stderr-SPECTERD: INFO in specter_migrator: Collecting possible migrations ...

2024-04-07T18:31:56.130Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.130Z [info] : stderr-SPECTERD: INFO in specter_migrator: Collecting possible migrations ...
SPECTERD: INFO in specter_migrator: No Migrations to execute!
SPECTERD: INFO in server: Initializing LoginManager

2024-04-07T18:31:56.131Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.131Z [info] : stderr-SPECTERD: INFO in server: Initializing Specter with data-folder /home/<USERNAME>/.specter
SPECTERD: INFO in service_manager: ----> starting service discovery Static

2024-04-07T18:31:56.131Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.132Z [info] : stderr-SPECTERD: INFO in reflection:   Found class SwanService

2024-04-07T18:31:56.132Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.132Z [info] : stderr-SPECTERD: INFO in reflection:   Found class LiquidissuerService

2024-04-07T18:31:56.132Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.133Z [info] : stderr-SPECTERD: INFO in reflection:   Found class DevhelpService

2024-04-07T18:31:56.133Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.150Z [info] : stderr-SPECTERD: INFO in reflection:   Found class NotificationsService

2024-04-07T18:31:56.150Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.151Z [info] : stderr-SPECTERD: INFO in reflection:   Found class ExfundService
SPECTERD: INFO in reflection:   Found class FaucetService
SPECTERD: INFO in reflection:   Found class ElectrumService

2024-04-07T18:31:56.151Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.246Z [info] : stderr-SPECTERD: INFO in reflection:   Found class SpectrumService

2024-04-07T18:31:56.246Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.248Z [info] : stderr-SPECTERD: INFO in reflection:   Found class StacktrackService
SPECTERD: INFO in service_manager: ----> skipping service discovery dynamic

2024-04-07T18:31:56.248Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.248Z [info] : stderr-SPECTERD: INFO in service_manager: ----> starting service loading
SPECTERD: INFO in service_manager: Loading Extension ElectrumService from cryptoadvance.specterext.electrum.service
SPECTERD: WARNING in service_manager:   Extension electrum does not have a service Configuration! Skipping!

2024-04-07T18:31:56.249Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.249Z [info] : stderr-SPECTERD: INFO in config_manager: Config loaded from file /home/<USERNAME>/.specter/config.json

2024-04-07T18:31:56.249Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.249Z [info] : stderr-SPECTERD: INFO in service_manager:   Loading Controller cryptoadvance.specterext.electrum.controller

2024-04-07T18:31:56.249Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.251Z [info] : stderr-SPECTERD: INFO in service_manager:   Mounted <Blueprint 'electrum_endpoint'> to /svc/electrum

2024-04-07T18:31:56.251Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.251Z [info] : stderr-SPECTERD: INFO in reflection:   Found class Electrum
SPECTERD: INFO in service_manager: Extension ElectrumService activated (prod)
SPECTERD: INFO in service_manager: Loading Extension SwanService from cryptoadvance.specterext.swan.service

2024-04-07T18:31:56.251Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.251Z [info] : stderr-SPECTERD: INFO in service_manager:   Loading Extension-specific configuration from <class 'cryptoadvance.specterext.swan.config.ProductionConfig'>
SPECTERD: INFO in service_manager:   Loading Controller cryptoadvance.specterext.swan.controller

2024-04-07T18:31:56.251Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.254Z [info] : stderr-SPECTERD: INFO in service_manager:   Mounted <Blueprint 'swan_endpoint'> to /svc/swan
SPECTERD: INFO in service_manager: Extension SwanService activated (prod)

2024-04-07T18:31:56.254Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.254Z [info] : stderr-SPECTERD: INFO in service_manager: Extension StacktrackService not activated due to devstatus ( prod > alpha )
SPECTERD: INFO in service_manager: Extension DevhelpService not activated due to devstatus ( prod > alpha )
SPECTERD: INFO in service_manager: Loading Extension ExfundService from cryptoadvance.specterext.exfund.service
SPECTERD: INFO in service_manager:   Loading Extension-specific configuration from <class 'cryptoadvance.specterext.exfund.config.ProductionConfig'>
SPECTERD: INFO in service_manager:   Loading Controller cryptoadvance.specterext.exfund.controller

2024-04-07T18:31:56.254Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.255Z [info] : stderr-SPECTERD: INFO in service_manager:   Mounted <Blueprint 'exfund_endpoint'> to /ext/exfund

2024-04-07T18:31:56.255Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.255Z [info] : stderr-SPECTERD: INFO in service_manager: Extension ExfundService activated (prod)
SPECTERD: INFO in service_manager: Extension NotificationsService not activated due to devstatus ( prod > alpha )
SPECTERD: INFO in service_manager: Loading Extension SpectrumService from cryptoadvance.specterext.spectrum.service

2024-04-07T18:31:56.255Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.256Z [info] : stderr-SPECTERD: INFO in service_manager:   Loading Extension-specific configuration from <class 'cryptoadvance.specterext.spectrum.config.ProductionConfig'>
SPECTERD: INFO in service_manager:   Loading Controller cryptoadvance.specterext.spectrum.controller

2024-04-07T18:31:56.256Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.258Z [info] : stderr-SPECTERD: INFO in service_manager:   Mounted <Blueprint 'spectrum_endpoint'> to /svc/spectrum

2024-04-07T18:31:56.258Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.258Z [info] : stderr-SPECTERD: INFO in service_manager: Extension SpectrumService activated (prod)
SPECTERD: INFO in service_manager: Extension FaucetService not activated due to devstatus ( prod > beta )
SPECTERD: INFO in service_manager: Loading Extension LiquidissuerService from cryptoadvance.specterext.liquidissuer.service
SPECTERD: INFO in service_manager:   Loading Extension-specific configuration from <class 'cryptoadvance.specterext.liquidissuer.config.ProductionConfig'>

2024-04-07T18:31:56.258Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.258Z [info] : stderr-SPECTERD: INFO in service_manager:   Loading Controller cryptoadvance.specterext.liquidissuer.controller

2024-04-07T18:31:56.258Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.268Z [info] : stderr-SPECTERD: INFO in service_manager:   Mounted <Blueprint 'liquidissuer_endpoint'> to /svc/liquidissuer
SPECTERD: INFO in service_manager: Extension LiquidissuerService activated (prod)

2024-04-07T18:31:56.268Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.269Z [info] : stderr-SPECTERD: INFO in service_manager: ----> finished service processing
SPECTERD: INFO in specter: Instantiate VersionChecker

2024-04-07T18:31:56.269Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.269Z [info] : stderr-SPECTERD: INFO in specter: Instantiate ConfigManager

2024-04-07T18:31:56.269Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.271Z [info] : stderr-SPECTERD: INFO in config_manager: Config loaded from file /home/<USERNAME>/.specter/config.json

2024-04-07T18:31:56.271Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.271Z [info] : stderr-SPECTERD: INFO in specter: Instantiate NodeManager with node alias: liquid.

2024-04-07T18:31:56.272Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.272Z [info] : stderr-SPECTERD: INFO in node_manager: Loaded Node <cryptoadvance.specterext.spectrum.spectrum_node.SpectrumNode object at 0x7f8d8631e470>

2024-04-07T18:31:56.272Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.371Z [info] : stderr-SPECTERD: INFO in version: version checked, install_type app curr: v2.0.2 latest: 2.0.2 ==> upgrade: False

2024-04-07T18:31:56.372Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.468Z [info] : stderr-SPECTERD: INFO in node_manager: Loaded Node <Node name=Liquid fullpath=/home/<USERNAME>/.specter/nodes/liquid.json>

2024-04-07T18:31:56.469Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.470Z [info] : stderr-SPECTERD: INFO in config_manager: Config loaded from file /home/<USERNAME>/.specter/config.json

2024-04-07T18:31:56.470Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.659Z [info] : stderr-SPECTERD: INFO in wallet_manager: starting update of wallet_manager (threading: True , comment: )

2024-04-07T18:31:56.660Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.735Z [info] : stderr-SPECTERD: DEBUG in log: GETCONF __owningcontrollerprocess (runtime: 0.0016)
SPECTERD: INFO in checker: Checker health Checking every 600 seconds now

2024-04-07T18:31:56.736Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.737Z [info] : stderr-SPECTERD: INFO in checker: Checker health started with period 600
SPECTERD: INFO in checker: Checker price Checking every 600 seconds now

2024-04-07T18:31:56.738Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.738Z [info] : stderr-SPECTERD: INFO in specter: Instantiate ServiceEncryptedStorageManager
SPECTERD: INFO in specter: Instantiate ServiceUnencryptedStorageManager
SPECTERD: INFO in server: Executing callback specter_added_to_flask_app ...

2024-04-07T18:31:56.738Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.738Z [info] : stderr-SPECTERD: INFO in service: Intitializing Database in sqlite:////home/<USERNAME>/.specter/sqlite/db.sqlite

2024-04-07T18:31:56.738Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.753Z [info] : stderr-SPECTERD: INFO in config_manager: Config loaded from file /home/<USERNAME>/.specter/config.json

2024-04-07T18:31:56.753Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.762Z [info] : stderr-SPECTERD: INFO in spectrum: Creating ElectrumSocket <NODE_IP_ADDRESS>:50002 (ssl=True)

2024-04-07T18:31:56.762Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.763Z [info] : stderr-SPECTERD: INFO in elsock: Initializing ElectrumSocket with <NODE_IP_ADDRESS>:50002 (ssl: <module 'ssl' from '/tmp/_MEIBNp1wO/ssl.pyc'>) (proxy: socks5h://localhost:9050)
SPECTERD: INFO in elsock: ElectrumSocket Status changed from unknown to creating_socket

2024-04-07T18:31:56.763Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.763Z [info] : stderr-SPECTERD: INFO in elsock: Started bg thread for _monitor_loop

2024-04-07T18:31:56.763Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.877Z [info] : stderr-SPECTERD: INFO in tx_fetcher: Those addresses got used recently: []

2024-04-07T18:31:56.877Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.900Z [info] : stderr-SPECTERD: WARNING in txlist: this can probably be ignored: Failed to rewind the proof

2024-04-07T18:31:56.900Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.985Z [info] : stderr-SPECTERD: INFO in wallet_manager: starting update of wallet_manager (threading: True , comment: via user)
SPECTERD: INFO in checker: Checker health executed within 0.248 seconds. This message won't show again until stopped and started.

2024-04-07T18:31:56.985Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:56.989Z [info] : stderr-SPECTERD: INFO in tx_fetcher: Those addresses got used recently: []

2024-04-07T18:31:56.989Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:57.011Z [info] : stderr-SPECTERD: WARNING in txlist: this can probably be ignored: Failed to rewind the proof





==========TROUBLE BEGINS==========

2024-04-07T18:31:57.012Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:57.016Z [info] : stderr-SPECTERD: ERROR in wallet: '<TXID>'
Traceback (most recent call last):
  File "cryptoadvance/specter/wallet/wallet.py", line 699, in check_utxo
KeyError: '<TXID>'
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "cryptoadvance/specter/wallet/wallet.py", line 705, in check_utxo
KeyError: '<TXID>'

2024-04-07T18:31:57.016Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:57.017Z [info] : stderr-SPECTERD: ERROR in wallet_manager: Failed to load utxos, KeyError: '<TXID>'
Traceback (most recent call last):
  File "cryptoadvance/specter/wallet/wallet.py", line 699, in check_utxo
KeyError: '<TXID>'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "cryptoadvance/specter/wallet/wallet.py", line 705, in check_utxo
KeyError: '<TXID>'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "cryptoadvance/specter/managers/wallet_manager.py", line 226, in _update
  File "cryptoadvance/specter/wallet/wallet.py", line 589, in from_json
  File "cryptoadvance/specter/wallet/wallet.py", line 175, in __init__
  File "cryptoadvance/specter/wallet/wallet.py", line 497, in update
  File "cryptoadvance/specter/liquid/wallet.py", line 82, in getdata
  File "cryptoadvance/specter/wallet/wallet.py", line 741, in check_utxo
cryptoadvance.specter.specter_error.SpecterError: Failed to load utxos, KeyError: '<TXID>'

2024-04-07T18:31:57.017Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:57.072Z [info] : stderr-SPECTERD: INFO in tx_fetcher: Those addresses got used recently: []

2024-04-07T18:31:57.072Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:57.072Z [info] : stderr-SPECTERD: INFO in txlist: Cleared the Cache for /home/<USERNAME>/.specter/wallets/liquidv1/test_liquid_wallet_mainnet_segwit_txs.csv (and rawdir)

2024-04-07T18:31:57.072Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:57.093Z [info] : stderr-SPECTERD: INFO in tx_fetcher: Those addresses got used recently: []

2024-04-07T18:31:57.094Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:57.094Z [info] : stderr-SPECTERD: INFO in txlist: Cleared the Cache for /home/<USERNAME>/.specter/wallets/liquidv1/test_liquid_wallet_mainnet_segwit_txs.csv (and rawdir)

2024-04-07T18:31:57.094Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:57.125Z [info] : stderr-SPECTERD: INFO in tx_fetcher: Those addresses got used recently: []

2024-04-07T18:31:57.125Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:57.125Z [info] : stderr-SPECTERD: INFO in txlist: Cleared the Cache for /home/<USERNAME>/.specter/wallets/liquidv1/liquid_hot_txs.csv (and rawdir)

2024-04-07T18:31:57.126Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:57.142Z [info] : stderr-SPECTERD: INFO in tx_fetcher: Those addresses got used recently: []

2024-04-07T18:31:57.142Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:57.143Z [info] : stderr-SPECTERD: INFO in txlist: Cleared the Cache for /home/<USERNAME>/.specter/wallets/liquidv1/liquid_hot_txs.csv (and rawdir)

2024-04-07T18:31:57.143Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:57.145Z [info] : stderr-SPECTERD: INFO in wallet_manager: Updating wallet manager done in   437ms. Result:

2024-04-07T18:31:57.145Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:57.145Z [info] : stderr-SPECTERD: INFO in wallet_manager:   * loaded_wallets: 2
SPECTERD: INFO in wallet_manager:   * failed_load_wallets: 1
SPECTERD: INFO in wallet_manager:     * Liquid : Failed to load utxos, KeyError: <TXID>

2024-04-07T18:31:57.145Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:57.765Z [info] : stderr-SPECTERD: INFO in elsock: (re-)creating socket ...

2024-04-07T18:31:57.765Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:57.766Z [info] : stderr-SPECTERD: INFO in elsock: Connecting to <NODE_IP_ADDRESS>:50002

2024-04-07T18:31:57.766Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:57.786Z [info] : stderr-SPECTERD: INFO in elsock: Successfully created Socket <ssl.SSLSocket fd=24, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('<LAPTOP_IP_ADDRESS>', 55330), raddr=('<NODE_IP_ADDRESS>', 50002)> (ssl=True/tor=True)
SPECTERD: INFO in elsock: ElectrumSocket Status changed from creating_socket to creating_threads
SPECTERD: INFO in elsock: (re-)creating threads ...

2024-04-07T18:31:57.787Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:57.788Z [info] : stderr-SPECTERD: INFO in elsock: Started bg thread for recv_loop
SPECTERD: INFO in elsock: Started bg thread for _write_loop

2024-04-07T18:31:57.788Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:57.788Z [info] : stderr-SPECTERD: INFO in elsock: Started bg thread for _ping_loop
SPECTERD: INFO in elsock: Started bg thread for _notify_loop
SPECTERD: INFO in elsock: ElectrumSocket Status changed from creating_threads to execute_recreation_callback
SPECTERD: INFO in elsock: ElectrumSocket Status changed from execute_recreation_callback to ok

2024-04-07T18:31:57.788Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:57.976Z [info] : stderr-SPECTERD: INFO in spectrum: Pinged electrum in 0.010140419006347656 
SPECTERD: INFO in spectrum: subscribe to block headers

2024-04-07T18:31:57.976Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:57.986Z [info] : stderr-SPECTERD: INFO in spectrum: detect chain from header

2024-04-07T18:31:57.986Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:57.996Z [info] : stderr-SPECTERD: INFO in spectrum: Set roothash 

2024-04-07T18:31:57.996Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:58.002Z [info] : stderr-SPECTERD: INFO in server: Login disabled
SPECTERD: INFO in server: Initializing Controller ...

2024-04-07T18:31:58.002Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:58.026Z [info] : stderr-SPECTERD: INFO in spectrum: Syncprocess starting (0 needs subscriptions)...

2024-04-07T18:31:58.027Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:58.027Z [info] : stderr-SPECTERD: ERROR in spectrum: 'Spectrum' object has no attribute 'sync_speed'
Traceback (most recent call last):
  File "cryptoadvance/spectrum/spectrum.py", line 229, in _sync
AttributeError: 'Spectrum' object has no attribute 'sync_speed'

2024-04-07T18:31:58.028Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:58.105Z [info] : stderr-SPECTERD: INFO in server: ----> starting service callback_after_serverpy_init_app 

2024-04-07T18:31:58.105Z [info] : Updated LoaderMsg: Still waiting for Specter to start ...
2024-04-07T18:31:58.105Z [info] : stdout-
 * Serving Flask app 'cryptoadvance.specter.server' (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: off

2024-04-07T18:31:58.106Z [info] : Specter server seems to run ...
2024-04-07T18:31:58.106Z [info] : Normal startup of Specter.
2024-04-07T18:31:58.127Z [info] : stderr-SPECTERD: INFO in controller: GET, /mode=remote                            , 302, took,    0, ms

2024-04-07T18:31:58.130Z [info] : stderr-SPECTERD: INFO in controller: GET, /welcome/                               , 302, took,    0, ms

2024-04-07T18:31:58.309Z [info] : stderr-SPECTERD: INFO in controller: GET, /wallets/wallets_overview/              , 200, took,  176, ms

2024-04-07T18:31:58.403Z [info] : stderr-SPECTERD: INFO in controller: POST, /wallets/wallets_overview/txlist        , 200, took,    4, ms

2024-04-07T18:31:58.476Z [info] : stderr-SPECTERD: INFO in controller: GET, /nodes/sync_status/                     , 200, took,   49, ms

2024-04-07T18:31:58.988Z [info] : stderr-SPECTERD: INFO in config_manager: Config loaded from file /home/<USERNAME>/.specter/config.json

2024-04-07T18:31:59.183Z [info] : stderr-SPECTERD: INFO in wallet_manager: starting update of wallet_manager (threading: True , comment: via user)

2024-04-07T18:31:59.301Z [info] : stderr-SPECTERD: INFO in tx_fetcher: Those addresses got used recently: []

2024-04-07T18:31:59.311Z [info] : stderr-SPECTERD: WARNING in txlist: this can probably be ignored: Failed to rewind the proof

2024-04-07T18:31:59.327Z [info] : stderr-SPECTERD: INFO in tx_fetcher: Those addresses got used recently: []

2024-04-07T18:31:59.336Z [info] : stderr-SPECTERD: WARNING in txlist: this can probably be ignored: Failed to rewind the proof

2024-04-07T18:31:59.339Z [info] : stderr-SPECTERD: ERROR in wallet: '<TXID>'
Traceback (most recent call last):
  File "cryptoadvance/specter/wallet/wallet.py", line 699, in check_utxo
KeyError: '<TXID>'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "cryptoadvance/specter/wallet/wallet.py", line 705, in check_utxo
KeyError: '<TXID>'

2024-04-07T18:31:59.339Z [info] : stderr-SPECTERD: ERROR in wallet_manager: Failed to load utxos, KeyError: '<TXID>'
Traceback (most recent call last):
  File "cryptoadvance/specter/wallet/wallet.py", line 699, in check_utxo
KeyError: '<TXID>'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "cryptoadvance/specter/wallet/wallet.py", line 705, in check_utxo
KeyError: '<TXID>'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "cryptoadvance/specter/managers/wallet_manager.py", line 226, in _update
  File "cryptoadvance/specter/wallet/wallet.py", line 589, in from_json
  File "cryptoadvance/specter/wallet/wallet.py", line 175, in __init__
  File "cryptoadvance/specter/wallet/wallet.py", line 497, in update
  File "cryptoadvance/specter/liquid/wallet.py", line 82, in getdata
  File "cryptoadvance/specter/wallet/wallet.py", line 741, in check_utxo
cryptoadvance.specter.specter_error.SpecterError: Failed to load utxos, KeyError: '<TXID>'

2024-04-07T18:31:59.344Z [info] : stderr-SPECTERD: INFO in tx_fetcher: Those addresses got used recently: []

2024-04-07T18:31:59.344Z [info] : stderr-SPECTERD: INFO in txlist: Cleared the Cache for /home/<USERNAME>/.specter/wallets/liquidv1/test_liquid_wallet_mainnet_segwit_txs.csv (and rawdir)

2024-04-07T18:31:59.362Z [info] : stderr-SPECTERD: INFO in tx_fetcher: Those addresses got used recently: []

2024-04-07T18:31:59.362Z [info] : stderr-SPECTERD: INFO in txlist: Cleared the Cache for /home/<USERNAME>/.specter/wallets/liquidv1/liquid_hot_txs.csv (and rawdir)

2024-04-07T18:31:59.374Z [info] : stderr-SPECTERD: INFO in wallet_manager: Updating wallet manager done in   142ms. Result:
SPECTERD: INFO in wallet_manager:   * loaded_wallets: 2
SPECTERD: INFO in wallet_manager:   * failed_load_wallets: 1
SPECTERD: INFO in wallet_manager:     * Liquid : Failed to load utxos, KeyError: <TXID>

Thanks

Thanks in advance to anyone willing to help out with my issue and questions surrounding it. I am more than glad to answer any and all questions and to fill in any other information that I might not have thought to share here.

Can confirm this. My setup is:

  • Specter Desktop v2.0.4
  • Elements Core version v23.2.1

Can create a new wallet and import existing seed, but running into the Failed to load utxos, KeyError: <TXID> error on rescan.

Also rescanning the UTXO set (scantxoutset) does not work due to bad descriptors given to elements.