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

Specter infinite loop during start...

Ciugam opened this issue · comments

commented

Hello, Specter doesn't start on my PC, until yesterday it worked without problem.
I've noticed that while starting Specter, it does an infinite loop and does not serve flask app.
The problem is present running AppImpage or starting from python command, so it does not matter which method.
All requirements in python are installed, also Flask is installed, through pip (and pip3).

To Reproduce
Executing Specter.AppImage or starting with command "python3 -m cryptoadvance.specter server"

Desktop info:

  • OS: Fedora 38
  • Browser: Firefox, or using AppImage
  • Specter Version: 2.0.1

Debug Info: PC with error
Here it is the debug for error in Fedora:
"...
[2023-06-07 13:27:42,178] INFO in hwi_rpc: Initializing HWI...
[2023-06-07 13:27:42,178] INFO in config_manager: Config loaded from file /home/user/.specter/config.json
[2023-06-07 13:27:42,181] INFO in checker: Checker health Checking every 20 seconds now
[2023-06-07 13:27:42,181] INFO in specter: Changing checker frequency: Every 20 seconds due to (rpc is None: True or initialblockdownload: True )
[2023-06-07 13:27:42,181] INFO in wallet_manager: starting update of wallet_manager (threading: True , comment: via user)
[2023-06-07 13:27:42,181] INFO in wallet_manager: Skipping further update because self.working_folder is None (and data_folder = /home/user/.specter/wallets)
[2023-06-07 13:27:42,181] WARNING in wallet_manager: Specter seems to be disconnected from Bitcoin Core. Skipping wallets update.
[2023-06-07 13:27:42,181] INFO in checker: Checker health executed within 0.004 seconds. This message won't show again until stopped and started.
[2023-06-07 13:27:43,226] INFO in version: version checked, install_type pip curr: v2.0.1 latest: 2.0.1 ==> upgrade: False
[2023-06-07 13:28:02,187] INFO in config_manager: Config loaded from file /home/user/.specter/config.json
[2023-06-07 13:28:02,188] INFO in wallet_manager: starting update of wallet_manager (threading: True , comment: via user)
[2023-06-07 13:28:02,188] INFO in wallet_manager: Skipping further update because self.working_folder is None (and data_folder = /home/user/.specter/wallets)
[2023-06-07 13:28:02,188] WARNING in wallet_manager: Specter seems to be disconnected from Bitcoin Core. Skipping wallets update.
[2023-06-07 13:28:22,196] INFO in config_manager: Config loaded from file /home/user/.specter/config.json
[2023-06-07 13:28:22,198] INFO in wallet_manager: starting update of wallet_manager (threading: True , comment: via user)
[2023-06-07 13:28:22,198] INFO in wallet_manager: Skipping further update because self.working_folder is None (and data_folder = /home/user/.specter/wallets)
[2023-06-07 13:28:22,198] WARNING in wallet_manager: Specter seems to be disconnected from Bitcoin Core. Skipping wallets update.
[2023-06-07 13:28:42,206] INFO in config_manager: Config loaded from file /home/user/.specter/config.json
[2023-06-07 13:28:42,207] INFO in wallet_manager: starting update of wallet_manager (threading: True , comment: via user)
[2023-06-07 13:28:42,208] INFO in wallet_manager: Skipping further update because self.working_folder is None (and data_folder = /home/user/.specter/wallets)
[2023-06-07 13:28:42,208] WARNING in wallet_manager: Specter seems to be disconnected from Bitcoin Core. Skipping wallets update.
^C[2023-06-07 13:29:00,621] INFO in specter: Closing Specter after cleanup
"

Debug Info: 2nd PC to do comparison (PopOS! 22.10)
I'll leave also debug there for 2nd PC running Specter at same configs, but here it worked.
"...
[2023-06-07 13:22:39,073] INFO in hwi_rpc: Initializing HWI...
[2023-06-07 13:22:39,073] INFO in config_manager: Config loaded from file /home/user/.specter/config.json
[2023-06-07 13:22:39,075] INFO in checker: Checker health Checking every 20 seconds now
[2023-06-07 13:22:39,075] INFO in specter: Changing checker frequency: Every 20 seconds due to (rpc is None: True or initialblockdownload: True )
[2023-06-07 13:22:39,075] INFO in wallet_manager: starting update of wallet_manager (threading: True , comment: via user)
[2023-06-07 13:22:39,075] INFO in wallet_manager: Skipping further update because self.working_folder is None (and data_folder = /home/user/.specter/wallets)
[2023-06-07 13:22:39,075] WARNING in wallet_manager: Specter seems to be disconnected from Bitcoin Core. Skipping wallets update.
[2023-06-07 13:22:39,075] INFO in checker: Checker health executed within 0.003 seconds. This message won't show again until stopped and started.
[2023-06-07 13:22:39,114] INFO in server: Executing callback specter_added_to_flask_app ...
[2023-06-07 13:22:39,114] INFO in service: Intitializing Database in sqlite:////home/user/.specter/sqlite/db.sqlite
[2023-06-07 13:22:39,125] INFO in server: Login disabled
[2023-06-07 13:22:39,125] INFO in server: Initializing Controller ...
[2023-06-07 13:22:39,200] INFO in server: ----> starting service callback_after_serverpy_init_app

  • 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
    [2023-06-07 13:22:39,257] INFO in version: version checked, install_type pip curr: v2.0.1 latest: 2.0.1 ==> upgrade: False
    [2023-06-07 13:22:40,081] INFO in config_manager: Config loaded from file /home/user/.specter/config.json
    [2023-06-07 13:22:40,082] INFO in wallet_manager: starting update of wallet_manager (threading: True , comment: via user)
    [2023-06-07 13:22:40,082] INFO in wallet_manager: Skipping further update because self.working_folder is None (and data_folder = /home/user/.specter/wallets)
    [2023-06-07 13:22:40,082] WARNING in wallet_manager: Specter seems to be disconnected from Bitcoin Core. Skipping wallets update.
    [2023-06-07 13:23:00,181] INFO in config_manager: Config loaded from file /home/user/.specter/config.json
    [2023-06-07 13:23:00,183] INFO in wallet_manager: starting update of wallet_manager (threading: True , comment: via user)
    [2023-06-07 13:23:00,184] INFO in wallet_manager: Skipping further update because self.working_folder is None (and data_folder = /home/user/.specter/wallets)
    [2023-06-07 13:23:00,184] WARNING in wallet_manager: Specter seems to be disconnected from Bitcoin Core. Skipping wallets update.
    [2023-06-07 13:23:20,279] INFO in config_manager: Config loaded from file /home/user/.specter/config.json
    [2023-06-07 13:23:20,280] INFO in wallet_manager: starting update of wallet_manager (threading: True , comment: via user)
    [2023-06-07 13:23:20,281] INFO in wallet_manager: Skipping further update because self.working_folder is None (and data_folder = /home/user/.specter/wallets)
    [2023-06-07 13:23:20,281] WARNING in wallet_manager: Specter seems to be disconnected from Bitcoin Core. Skipping wallets update.
    ^C[2023-06-07 13:23:23,243] INFO in specter: Closing Specter after cleanup
    "
commented

Update: I've found that I've set up a systemd service that runs python http, so I discovered that python couldn't serve multiple servers at same time.
Shutting down the other server, Specter opens without issues.
I'll close this issue.