Backup failed get error message.

General discussions around KeyHelp.
Post Reply
KeyHelp Translator
Posts: 38
Joined: Mon 2. Aug 2021, 07:39

Backup failed get error message.

Post by akong77 »

I backup keyhelp and set keep seven days.But it's fail third day.It' has error message.
Failed to create backup: Fatal: Unmarshal: invalid character 'w' after top-level value

How to fix it?
User avatar
Keyweb AG
Posts: 3420
Joined: Wed 20. Jan 2016, 02:23

Re: Backup failed get error message.

Post by Alexander »

You can have a look into <path-to-repository>/keys/ and view the file inside (do not post it here, it contains sensible data). It should contain a valid JSON string. It may got corrupted on your system.

Easy fix, just add a new repository and remove the corrupt one.

Also Restic offers various commands to repair a corrupt repository, you can try that too. More information can be found at or their forums:
Mit freundlichen Grüßen / Best regards
Alexander Mahr

Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany -
Post Reply