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

Data is too short (less than 16 bytes), cannot decrypt. #1401

Open
christophershirk opened this issue Jan 13, 2025 · 1 comment
Open

Data is too short (less than 16 bytes), cannot decrypt. #1401

christophershirk opened this issue Jan 13, 2025 · 1 comment
Labels
A-errors Area: error handling needs improvement

Comments

@christophershirk
Copy link

Error occurs for any backup after sending SIGINT to rustic (d1b11f9 ) process when it did not seem to resume uploading after moving WiFi networks.

Unable to rustic repair the index or snapshots.

RUST_BACKTRACE="1" rustic backup foo
[INFO] using config ./rustic.toml
[INFO] repository rclone:bar:baz: password is correct.
[INFO] using cache at /Users/zxcv/Library/Caches/rustic/{redacted}
error: `rustic_core` experienced an error related to `cryptographic operations`.

Message:
Data is too short (less than 16 bytes), cannot decrypt.


Some additional details ...

Backtrace:
   0: __mh_execute_header
   1: __mh_execute_header
   2: __mh_execute_header
   3: __mh_execute_header
   4: __mh_execute_header
   5: __mh_execute_header
   6: __mh_execute_header
   7: __mh_execute_header
   8: __mh_execute_header
   9: __mh_execute_header
  10: __mh_execute_header
  11: __mh_execute_header
  12: __mh_execute_header
  13: __mh_execute_header
  14: __mh_execute_header
  15: __mh_execute_header
  16: __mh_execute_header
  17: __mh_execute_header
  18: __mh_execute_header
  19: __pthread_deallocate
@github-actions github-actions bot added the S-triage Status: Waiting for a maintainer to triage this issue/PR label Jan 13, 2025
@aawsome
Copy link
Member

aawsome commented Jan 19, 2025

Thanks @christophershirk for the bug report!
In fact, it is very unfortunate that rustic does not show the defect file in the repository here.
You can manually search for files smaller than 16 bytes and remove them manually.

I think in rustic we should change the following things:

  • improve the error message in this case to show the defect file
  • improve the repair command to allow removing such defect files

@aawsome aawsome added A-errors Area: error handling needs improvement and removed S-triage Status: Waiting for a maintainer to triage this issue/PR labels Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-errors Area: error handling needs improvement
Projects
None yet
Development

No branches or pull requests

2 participants