question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Wallet does not sync "to many SQL variables"

See original GitHub issue

Describe the bug My wallet does not sync, it stay at height 0. The Debug log shows every 5 min this.

2021-06-05T10:39:46.930 full_node full_node_server        : ERROR    Exception: too many SQL variables, {'host': '127.0.0.1', 'port': 8449}. Traceback (most recent call last):
  File "chia\server\server.py", line 526, in wrapped_coroutine
  File "chia\full_node\full_node_api.py", line 244, in request_proof_of_weight
  File "chia\full_node\weight_proof.py", line 77, in get_proof_of_weight
  File "chia\full_node\weight_proof.py", line 119, in _create_proof_of_weight
  File "chia\consensus\blockchain.py", line 695, in get_block_records_at
  File "chia\full_node\block_store.py", line 181, in get_block_records_by_hash
  File "aiosqlite\core.py", line 184, in execute
  File "aiosqlite\core.py", line 129, in _execute
  File "aiosqlite\core.py", line 102, in run
sqlite3.OperationalError: too many SQL variables

2021-06-05T10:39:46.934 full_node full_node_server        : ERROR    Exception: too many SQL variables <class 'sqlite3.OperationalError'>, closing connection {'host': '127.0.0.1', 'port': 8449}. Traceback (most recent call last):
  File "chia\server\server.py", line 536, in api_call
  File "asyncio\tasks.py", line 442, in wait_for
  File "chia\server\server.py", line 533, in wrapped_coroutine
  File "chia\server\server.py", line 526, in wrapped_coroutine
  File "chia\full_node\full_node_api.py", line 244, in request_proof_of_weight
  File "chia\full_node\weight_proof.py", line 77, in get_proof_of_weight
  File "chia\full_node\weight_proof.py", line 119, in _create_proof_of_weight
  File "chia\consensus\blockchain.py", line 695, in get_block_records_at
  File "chia\full_node\block_store.py", line 181, in get_block_records_by_hash
  File "aiosqlite\core.py", line 184, in execute
  File "aiosqlite\core.py", line 129, in _execute
  File "aiosqlite\core.py", line 102, in run
sqlite3.OperationalError: too many SQL variables

2021-06-05T10:39:46.937 full_node full_node_server        : WARNING  Trying to ban localhost for 10, but will not ban
2021-06-05T10:39:46.940 full_node full_node_server        : INFO     Connection closed: 127.0.0.1, node id: 8426f374460c99b360faf921085c2e8811b3260c0ed367c023ec598567eccd00
2021-06-05T10:39:46.942 full_node chia.full_node.full_node: INFO     peer disconnected {'host': '127.0.0.1', 'port': 8449}
2021-06-05T10:39:46.945 full_node asyncio                 : ERROR    Task exception was never retrieved
future: <Task finished coro=<ChiaServer.incoming_api_task.<locals>.api_call() done, defined at chia\server\server.py:487> exception=CancelledError()>
concurrent.futures._base.CancelledError
2021-06-05T10:39:46.948 full_node full_node_server        : ERROR    Exception:  <class 'concurrent.futures._base.CancelledError'>, closing connection {'host': '127.0.0.1', 'port': 8449}. Traceback (most recent call last):
  File "chia\server\server.py", line 536, in api_call
  File "asyncio\tasks.py", line 435, in wait_for
concurrent.futures._base.CancelledError

2021-06-05T10:39:46.938 wallet wallet_server              : INFO     Connection closed: 127.0.0.1, node id: 80a9d89faaa5b446daaba4b508411ef8cd35f01a39fce3f4098a23c6d2d97bd0
2021-06-05T10:39:49.604 wallet wallet                     : INFO     Reconnecting to peer {'host': '127.0.0.1', 'port': 8444}
2021-06-05T10:39:49.618 wallet wallet_server              : INFO     Connected with full_node {'host': '127.0.0.1', 'port': 8444}
2021-06-05T10:39:49.640 full_node chia.full_node.weight_proof: INFO     create weight proof peak bae6ece6aa29bc1ffb75766aed2b92734a65ba6de59ed4318d84ca93901714a2 386888
2021-06-05T10:39:49.806 full_node chia.full_node.weight_proof: INFO     recent chain, start: 386322 end:  386888 
2021-06-05T10:39:49.934 full_node full_node_server        : ERROR    Exception: too many SQL variables, {'host': '127.0.0.1', 'port': 8449}. Traceback (most recent call last):
  File "chia\server\server.py", line 526, in wrapped_coroutine
  File "chia\full_node\full_node_api.py", line 244, in request_proof_of_weight
  File "chia\full_node\weight_proof.py", line 77, in get_proof_of_weight
  File "chia\full_node\weight_proof.py", line 119, in _create_proof_of_weight
  File "chia\consensus\blockchain.py", line 695, in get_block_records_at
  File "chia\full_node\block_store.py", line 181, in get_block_records_by_hash
  File "aiosqlite\core.py", line 184, in execute
  File "aiosqlite\core.py", line 129, in _execute
  File "aiosqlite\core.py", line 102, in run
sqlite3.OperationalError: too many SQL variables

2021-06-05T10:39:49.939 full_node full_node_server        : ERROR    Exception: too many SQL variables <class 'sqlite3.OperationalError'>, closing connection {'host': '127.0.0.1', 'port': 8449}. Traceback (most recent call last):
  File "chia\server\server.py", line 536, in api_call
  File "asyncio\tasks.py", line 442, in wait_for
  File "chia\server\server.py", line 533, in wrapped_coroutine
  File "chia\server\server.py", line 526, in wrapped_coroutine
  File "chia\full_node\full_node_api.py", line 244, in request_proof_of_weight
  File "chia\full_node\weight_proof.py", line 77, in get_proof_of_weight
  File "chia\full_node\weight_proof.py", line 119, in _create_proof_of_weight
  File "chia\consensus\blockchain.py", line 695, in get_block_records_at
  File "chia\full_node\block_store.py", line 181, in get_block_records_by_hash
  File "aiosqlite\core.py", line 184, in execute
  File "aiosqlite\core.py", line 129, in _execute
  File "aiosqlite\core.py", line 102, in run
sqlite3.OperationalError: too many SQL variables

2021-06-05T10:39:49.942 full_node full_node_server        : WARNING  Trying to ban localhost for 10, but will not ban
2021-06-05T10:39:49.944 full_node full_node_server        : INFO     Connection closed: 127.0.0.1, node id: 8426f374460c99b360faf921085c2e8811b3260c0ed367c023ec598567eccd00
2021-06-05T10:39:49.947 full_node chia.full_node.full_node: INFO     peer disconnected {'host': '127.0.0.1', 'port': 8449}
2021-06-05T10:39:50.028 full_node asyncio                 : ERROR    Task exception was never retrieved
future: <Task finished coro=<ChiaServer.incoming_api_task.<locals>.api_call() done, defined at chia\server\server.py:487> exception=CancelledError()>
concurrent.futures._base.CancelledError
2021-06-05T10:39:49.942 wallet wallet_server              : INFO     Connection closed: 127.0.0.1, node id: 80a9d89faaa5b446daaba4b508411ef8cd35f01a39fce3f4098a23c6d2d97bd0
2021-06-05T10:39:52.621 wallet wallet                     : INFO     Reconnecting to peer {'host': '127.0.0.1', 'port': 8444}
2021-06-05T10:39:52.635 wallet wallet_server              : INFO     Connected with full_node {'host': '127.0.0.1', 'port': 8444}

Desktop (please complete the following information):

  • OS: Windows 10
  • Chia version 1.1.6

Anyone knows this problem and can help to fix this? I tried to stop everything and delete the wallet db, but after a restart the same error happens again.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

2reactions
DocFragglecommented, Jun 5, 2021

Both on Windows and Linux, deleting the wallet blockchain files and restarting afterwards doesn’t help

1reaction
MarcusB2105commented, Jun 6, 2021

The ChiaSetup 1.1.7 is now available on the official chia.net download section. This should solve the problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG] Exception: too many SQL variables <class 'sqlite3 ...
I'm running 1.1.7, and have the same issue described by the OP. Wallet does not sync (even though the Full Node is synced)....
Read more >
Anyone seeing this error? : r/chia - Reddit
OperationalError : too many SQL variables Any chance what it means? ... directory and reinstalled chia 1.1.6 and the wallet is syncing again....
Read more >
Error executing SQLite command: 'too many SQL variables ...
In my xamarin form application i have 40 azure tables to sync with remote. Whenever the particular request(_abcTable.PullAsync) has the more ...
Read more >
SQL on Ethereum: How to Work With All the Data from a ...
The first key line here is crowdfundProxy = address(contract_to_be_created) , which is what deploys the new contract and creates an internal ...
Read more >
6 Using Oracle Wallet Manager - Database
Oracle Wallet Manager lets you store multiple Oracle wallets in a Windows file ... If an SSL certificate is not present in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found