# Maintenance failed due to rewrite faild

**URL:** <https://kopia.discourse.group/t/maintenance-failed-due-to-rewrite-faild/613>\
**Category:** Support\
**Created:** [September 1, 2021, 5:22am UTC](https://kopia.discourse.group/t/maintenance-failed-due-to-rewrite-faild/613 "2021-09-01T05:22:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FrankChen](https://avatars.discourse-cdn.com/v4/letter/f/aca169/32.png) [@FrankChen](https://kopia.discourse.group/u/FrankChen)\
**Post date:** [September 1, 2021, 5:22am UTC](https://kopia.discourse.group/t/maintenance-failed-due-to-rewrite-faild/613/1 "2021-09-01T05:22:01Z")

</div>

Hi, today when I do full maintenance this error popup:

```auto
$ kopia maintenance run --full --safety=none
Running full maintenance...
Looking for active contents...
  Processed 0 contents, discovered 73...
  [SKIPPED]
  Processed 2390076 contents, discovered 2440010...
  Processed 2455204 contents, discovered 2468414...
Looking for unreferenced contents...
Found safe time to drop indexes: 2021-09-01 12:59:07.04603877 +0800 CST m=+44.493191423
Dropping contents deleted before 2021-09-01 12:59:07.04603877 +0800 CST m=+44.493191423
Rewriting contents from short packs...
unable to rewrite content "ab3ef8aedbd7b791d3fd3aca54654d3f": invalid checksum at pe6e66923bf43e7a7a7c41cac9bcaac6a-s5dd1be5df4e827dd107 offset 18042211 length 248413: decrypt: cipher: message authentication failed
Finished full maintenance.
ERROR: error rewriting contents in short packs: failed to rewrite 1 contents

```

and if I do kopia content show same error appeared:

```auto
$ kopia content show ab3ef8aedbd7b791d3fd3aca54654d3f
ERROR: error getting content ab3ef8aedbd7b791d3fd3aca54654d3f: invalid checksum at pe6e66923bf43e7a7a7c41cac9bcaac6a-s5dd1be5df4e827dd107 offset 18042211 length 248413: decrypt: cipher: message authentication failed

```

and snapshot/content verify does not return any error

```auto
$ kopia snapshot verify
Listing blobs...
  10000 blobs...
  20000 blobs...
  30000 blobs...
  40000 blobs...
  50000 blobs...
Listed 58592 blobs.
Found 73 objects, verifying 1, completed 0 objects.
Found 102123 objects, verifying 16, completed 18574 objects remaining 46m54s (ETA 2021-09-01 14:03:43 CST).
[SKIPPED]
Found 2486313 objects, verifying 15, completed 2446400 objects remaining 3825h13m22s (ETA 2022-02-07 22:31:33 CST).
Found 2486313 objects, verifying 15, completed 2485892 objects remaining 3933h0m31s (ETA 2022-02-12 10:18:43 CST).

$ echo $?
0

```

```auto
$ kopia content verify
Listing blobs...
  10000 blobs...
  20000 blobs...
  30000 blobs...
  40000 blobs...
  50000 blobs...
Listed 58592 blobs.
Verifying all contents...
  100000 contents, 0 errors...
  [SKIPPED]
  2800000 contents, 0 errors...
  2900000 contents, 0 errors...
Finished verifying 2911607 contents, found 0 errors.

$ echo $?
0

```

and my version:

```auto
$ kopia --version
0.8.4 build: 940d10dfa29e771467b5d9d45412b889053c2ed1 from: kopia/kopia

```

OS is Ubuntu 20.04  
Is is possible to get data in this content object back? Thanks.
