rustic-rs / rustic

rustic - fast, encrypted, and deduplicated backups powered by Rust
https://rustic.cli.rs
Apache License 2.0
1.76k stars 66 forks source link

serde_json couldn't deserialize tree while pruning #1190

Closed bjo81 closed 4 weeks ago

bjo81 commented 1 month ago

rustic was build from git. rustic snapshots runs fine. repo was created with restic.

rustic prune    
[INFO] using config /etc/rustic/rustic.toml
[INFO] repository opendal:home-schafweide-org: password is correct.
[INFO] using cache at /root/.cache/rustic/c27e74820324407a483109cc23f5b917fa8a8a98ab688718a6d310fae3c11330
[00:00:02] reading index...               ████████████████████████████████████████         62/62                                                                                              
[00:00:00] reading snapshots...           ████████████████████████████████████████         24/24        

error: serde_json couldn't deserialize tree from bytes of JSON text: Error("invalid type: null, expected a base64 encoded string", line: 1, column: 15141)
aawsome commented 1 month ago

Thanks @bjo81 for reporting. Seems this is some xattr which is set to null by restic..

I think this should be fixed once https://github.com/rustic-rs/rustic_core/pull/235 is in rustic_core.