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

Node Crashes if Bitcoin Core txindex not Complete #2868

Open
adamkrellenstein opened this issue Dec 18, 2024 · 0 comments
Open

Node Crashes if Bitcoin Core txindex not Complete #2868

adamkrellenstein opened this issue Dec 18, 2024 · 0 comments

Comments

@adamkrellenstein
Copy link
Member

2024-12-18T20:50:21Z Syncing txindex with block chain from height 781228
2024-12-18T20:50:51Z Syncing txindex with block chain from height 781567
2024-12-18T20:51:21Z Syncing txindex with block chain from height 781903
2024-12-18T20:51:51Z Syncing txindex with block chain from height 782199
2024-12-18T20:52:21Z Syncing txindex with block chain from height 782506
2024-12-18T20:52:51Z Syncing txindex with block chain from height 782908
2024-12-18T20:53:21Z Syncing txindex with block chain from height 783314
2024-12-18T20:53:52Z Syncing txindex with block chain from height 783744
2024-12-18T20:54:22Z Syncing txindex with block chain from height 784137
2024-12-18T20:54:45Z New block-relay-only v2 peer connected: version: 70016, blocks=875345, peer=71
2024-12-18T20:54:52Z Syncing txindex with block chain from height 784541
2024-12-18T20:55:22Z Syncing txindex with block chain from height 784927
2024-12-18T20:55:52Z Syncing txindex with block chain from height 785318
2024-12-18T20:56:22Z Syncing txindex with block chain from height 785731
2024-12-18T20:56:52Z Syncing txindex with block chain from height 786147
2024-12-18T20:57:22Z Syncing txindex with block chain from height 786569
2024-12-18T20:57:52Z Syncing txindex with block chain from height 787027
{
  "insertId": "vuc7v4zunlfhimsv",
  "jsonPayload": {
    "funcName": "start_all",
    "block_index": null,
    "processName": "MainProcess",
    "pathname": "/usr/local/lib/python3.10/dist-packages/counterpartycore/server.py",
    "module": "server",
    "levelName": "ERROR",
    "lineno": 792,
    "message": "Exception caught!",
    "process": 1,
    "thread": 134195994394624,
    "exc_info": "Traceback (most recent call last):\n  File \"/usr/local/lib/python3.10/dist-packages/counterpartycore/server.py\", line 781, in start_all\n    blocks.catch_up(db)\n  File \"/usr/local/lib/python3.10/dist-packages/counterpartycore/lib/blocks.py\", line 1465, in catch_up\n    tx_index, parsed_block_index = parse_new_block(db, decoded_block, tx_index=tx_index)\n  File \"/usr/local/lib/python3.10/dist-packages/counterpartycore/lib/blocks.py\", line 1325, in parse_new_block\n    tx_index = list_tx(\n  File \"/usr/local/lib/python3.10/dist-packages/counterpartycore/lib/blocks.py\", line 1020, in list_tx\n    source, destination, btc_amount, fee, data, dispensers_outs, utxos_info = get_tx_info(\n  File \"/usr/local/lib/python3.10/dist-packages/counterpartycore/lib/gettxinfo.py\", line 788, in get_tx_info\n    source, destination, btc_amount, fee, data, dispensers_outs = _get_tx_info(\n  File \"/usr/local/lib/python3.10/dist-packages/counterpartycore/lib/gettxinfo.py\", line 677, in _get_tx_info\n    return get_tx_info_new(\n  File \"/usr/local/lib/python3.10/dist-packages/counterpartycore/lib/gettxinfo.py\", line 541, in get_tx_info_new\n    sources, outputs_value = get_transaction_sources(decoded_tx)\n  File \"/usr/local/lib/python3.10/dist-packages/counterpartycore/lib/gettxinfo.py\", line 305, in get_transaction_sources\n    vout_value, script_pubkey, _is_segwit = get_vin_info(vin)\n  File \"/usr/local/lib/python3.10/dist-packages/counterpartycore/lib/gettxinfo.py\", line 152, in get_vin_info\n    vin_ctx = backend.bitcoind.get_decoded_transaction(vin[\"hash\"])\n  File \"/usr/local/lib/python3.10/dist-packages/counterpartycore/lib/backend/bitcoind.py\", line 322, in get_decoded_transaction\n    raw_tx = getrawtransaction(tx_hash)\n  File \"/usr/local/lib/python3.10/dist-packages/counterpartycore/lib/backend/bitcoind.py\", line 151, in getrawtransaction\n    return rpc(\"getrawtransaction\", [tx_hash, 1 if verbose else 0])\n  File \"/usr/local/lib/python3.10/dist-packages/counterpartycore/lib/backend/bitcoind.py\", line 125, in rpc\n    return rpc_call(payload)\n  File \"/usr/local/lib/python3.10/dist-packages/counterpartycore/lib/backend/bitcoind.py\", line 87, in rpc_call\n    raise exceptions.BitcoindRPCError(\ncounterpartycore.lib.exceptions.BitcoindRPCError: {'code': -5, 'message': 'No such mempool transaction. Blockchain transactions are still in the process of being indexed. Use gettransaction for wallet transactions.'} Is `txindex` enabled in Bitcoin Core?",
    "name": "counterparty",
    "stack_info": null,
    "filename": "server.py",
    "threadName": "MainThread"
  },
  "resource": {
    "type": "k8s_container",
    "labels": {
      "pod_name": "counterparty-1",
      "container_name": "counterparty",
      "project_id": "noted-extension-407918",
      "cluster_name": "dev-mainnet",
      "namespace_name": "default",
      "location": "us-east4"
    }
  },
  "timestamp": "2024-12-18T20:56:48.749505Z",
  "severity": "ERROR",
  "labels": {
    "k8s-pod/statefulset_kubernetes_io/pod-name": "counterparty-1",
    "k8s-pod/network": "mainnet",
    "compute.googleapis.com/resource_name": "gk3-dev-mainnet-nap-1rgbn8v3-880b8449-4z2c",
    "k8s-pod/apps_kubernetes_io/pod-index": "1",
    "k8s-pod/app": "counterparty",
    "k8s-pod/controller-revision-hash": "counterparty-7d6f468cb4",
    "k8s-pod/env": "development"
  },
  "logName": "projects/noted-extension-407918/logs/stderr",
  "receiveTimestamp": "2024-12-18T20:56:51.256763551Z"
}
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

1 participant