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

Failing Bootstrap #2865

Closed
adamkrellenstein opened this issue Dec 18, 2024 · 2 comments
Closed

Failing Bootstrap #2865

adamkrellenstein opened this issue Dec 18, 2024 · 2 comments

Comments

@adamkrellenstein
Copy link
Member

adamkrellenstein commented Dec 18, 2024

> counterparty-server start --catch-up=bootstrap-always

Counterparty Core v10.8.0
Verbosity: 0
Quiet: False
Network: mainnet
Configuration File: /Users/adam/Library/Application Support/counterparty/server.conf
Counterparty Database: /Users/adam/Library/Application Support/counterparty/counterparty.db
Counterparty State Database: /Users/adam/Library/Application Support/counterparty/state.db
Rust Fetcher Database: /Users/adam/Library/Caches/counterparty/fetcherdb
Server Log: /Users/adam/Library/Logs/counterparty/server.log
API Access Log: /Users/adam/Library/Logs/counterparty/server.access.log

------------------------------ START ------------------------------

2024-12-18T08:06:49.208-05:00 - [   ERROR] - Ledger.Main - Exception caught!
Traceback (most recent call last):
  File "/opt/homebrew/lib/python3.10/site-packages/counterpartycore/server.py", line 760, in start_all
    bootstrap(no_confirm=True, snapshot_url=args.bootstrap_url)
TypeError: 'module' object is not callable
2024-12-18T08:06:49.208-05:00 - [    INFO] - Ledger.Main - Stopping AddrIndexRs thread...
2024-12-18T08:06:49.208-05:00 - [    INFO] - Ledger.Main - Shutting down logging...
2024-12-18T08:06:49.209-05:00 - [    INFO] - Ledger.Main - Shutdown complete.
➜  ~ counterparty-server start
➜  ~ source $HOME/repos/counterparty-core/venv/bin/activate
(venv) ➜  ~ counterparty-server start --catch-up=bootstrap-always

Counterparty Core v10.8.0
Verbosity: 0
Quiet: False
Network: mainnet
Configuration File: /Users/evan/Library/Application Support/counterparty/server.conf
Counterparty Database: /Users/evan/Library/Application Support/counterparty/counterparty.db
Counterparty State Database: /Users/evan/Library/Application Support/counterparty/state.db
Rust Fetcher Database: /Users/evan/Library/Caches/counterparty/fetcherdb
Server Log: /Users/evan/Library/Logs/counterparty/server.log
API Access Log: /Users/evan/Library/Logs/counterparty/server.access.log

------------------------------ START ------------------------------

WARNING: `counterparty-server bootstrap` downloads a recent snapshot of a Counterparty database
from a centralized server maintained by the Counterparty Core development team.
Because this method does not involve verifying the history of Counterparty transactions yourself,
the `bootstrap` command should not be used for mission-critical, commercial or public-facing nodes.
        
2024-12-18T08:13:24.427-05:00 - [    INFO] - Ledger.Main - Downloading database from https://bootstrap.counterparty.io/counterparty.latest.tar.gz...
2024-12-18T08:24:33.539-05:00 - [    INFO] - Ledger.Main - Verifying signature...
2024-12-18T08:24:45.700-05:00 - [    INFO] - Ledger.Main - Extracting database to /Users/evan/Library/Application Support/counterparty...
2024-12-18T08:25:46.374-05:00 - [   ERROR] - Ledger.Main - Exception caught!
Traceback (most recent call last):
  File "/Users/evan/repos/counterparty-core/counterparty-core/counterpartycore/server.py", line 759, in start_all
    bootstrap(no_confirm=True, snapshot_url=args.bootstrap_url)
  File "/Users/evan/repos/counterparty-core/counterparty-core/counterpartycore/server.py", line 1040, in bootstrap
    assert os.path.exists(api_database_path)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError
2024-12-18T08:25:46.380-05:00 - [    INFO] - Ledger.Main - Stopping AddrIndexRs thread...
2024-12-18T08:25:46.380-05:00 - [    INFO] - Ledger.Main - Shutting down logging...
2024-12-18T08:25:46.381-05:00 - [    INFO] - Ledger.Main - Shutdown complete.
@adamkrellenstein
Copy link
Member Author

{"filename": "server.py", "funcName": "start_all", "levelname": "ERROR", "lineno": 792, "module": "server", "name": "counterparty", "pathname": "/usr/local/lib/python3.10/dist-packages/counterpartycore/server.py", "process": 1, "processName": "MainProcess", "stack_info": null, "thread": 136957953310720, "threadName": "MainThread", "block_index": null, "message": "Exception caught!", "time": "2024-12-18T17:35:58.575829+00:00", "exc_info": "Traceback (most recent call last):\n  File \"/usr/local/lib/python3.10/dist-packages/counterpartycore/server.py\", line 736, in start_all\n    bootstrap(no_confirm=True, snapshot_url=args.bootstrap_url)\nTypeError: 'module' object is not callable"}
{"filename": "log.py", "funcName": "shutdown", "levelname": "INFO", "lineno": 370, "module": "log", "name": "counterparty", "pathname": "/usr/local/lib/python3.10/dist-packages/counterpartycore/lib/log.py", "process": 1, "processName": "MainProcess", "stack_info": null, "thread": 136957953310720, "threadName": "MainThread", "block_index": null, "message": "Shutting down logging...", "time": "2024-12-18T17:35:58.576074+00:00"}
{"filename": "server.py", "funcName": "start_all", "levelname": "INFO", "lineno": 826, "module": "server", "name": "counterparty", "pathname": "/usr/local/lib/python3.10/dist-packages/counterpartycore/server.py", "process": 1, "processName": "MainProcess", "stack_info": null, "thread": 136957953310720, "threadName": "MainThread", "block_index": null, "message": "Shutdown complete.", "time": "2024-12-18T17:35:58.576500+00:00"}

this time with docker tag db0fcb4bf376af68fb6acbbe5e9d7eba2389ce8d

with these params:
          - "--data-dir=/data"
          - "--backend-connect=bitcoin-service"
          - "--rpc-host=0.0.0.0"
          - "--api-host=0.0.0.0"
          - "--json-log"
          - "--wsgi-server=waitress"
          - "--waitress-threads=20"
          - "-vvv"
          - "start"
          - "--catch-up=bootstrap-always"

@adamkrellenstein
Copy link
Member Author

#2867

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant