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

InvalidCbor error when running cncli-sync on SanchoNet #50

Closed
happystaking opened this issue Mar 21, 2024 · 2 comments
Closed

InvalidCbor error when running cncli-sync on SanchoNet #50

happystaking opened this issue Mar 21, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@happystaking
Copy link
Contributor

Describe the bug
The cncli sync service does not fully sync when running on a SanchoNet node. Instead it fails around 86-88% with ERROR cncli::nodeclient::sync > InvalidCbor("unexpected type u8 at position 263: expected array"). The error does not always occur at the same block.

Removing the cncli db and starting from scratch yields the same result.

To Reproduce

  1. Spin up a SanchoNet node and let it sync with the SanchoNet chain
  2. Start a fresh cncli instance with an empty database
  3. Let it sync and wait for the error to show up in the journal

Expected behavior
It will sync to 100% and keep it there.

Additional context
Last lines from the journal:

INFO  cncli::nodeclient::sync > block 1016212 of 1163604:  87.33% sync'd  
INFO  cncli::nodeclient::sync > block 1032098 of 1163604:  88.69% sync'd  
ERROR cncli::nodeclient::sync > InvalidCbor("unexpected type u8 at position 263: expected array")  
cncli-sync.service: Main process exited, code=exited, status=1/FAILURE 
systemd[1]: cncli-sync.service: Failed with result 'exit-code'.

The service is started with the following command and runs as a systemd service:
cncli sync --host [redacted] --port 3004 --db /var/local/cncli/db.sqlite --network-magic 4

Tested with precompiled versions 6.0.1 and 6.1.0.

@AndrewWestberg
Copy link
Collaborator

Upstream issue -> txpipe/pallas#466

@AndrewWestberg AndrewWestberg self-assigned this Jun 1, 2024
@AndrewWestberg AndrewWestberg added the bug Something isn't working label Jun 1, 2024
@AndrewWestberg
Copy link
Collaborator

Closed by -> #52
Released in v6.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants