I have a SFTP repository that works from one machine without issues, but fails with an error from another , new, machine trying to use the same repository.
The error when trying to do the initial backup is
repository 725a1d24 opened (version 2, compression level auto)
no parent snapshot found, will read all files
Fatal: DecodeIndex: invalid character 'd' after object key:value pair
The machine where it is working:
freebsd-version
13.0-RELEASE-p7
restic version
restic 0.15.2 compiled with go1.20.3 on freebsd/amd64
The machine where it is not working
freebsd-version
13.1-RELEASE-p5
restic version
restic 0.15.2 compiled with go1.20.3 on freebsd/amd64
Aren’t both machines reading the same index files from the SFTP repo?
Also, doing a ls against the same repo works from the existing machine and crashes from the new machine.
Crash for ls from new machine:
blob 4f85841d7bdf8ebbfc924020cccfc0a23f219770350041ad6f2f9fb9655cef28 returned invalid hash
github.com/restic/restic/internal/repository.(*Repository).LoadBlob
github.com/restic/restic/internal/repository/repository.go:330
github.com/restic/restic/internal/restic.LoadTree
github.com/restic/restic/internal/restic/tree.go:113
github.com/restic/restic/internal/walker.walk
github.com/restic/restic/internal/walker/walker.go:102
github.com/restic/restic/internal/walker.walk
github.com/restic/restic/internal/walker/walker.go:122
github.com/restic/restic/internal/walker.walk
github.com/restic/restic/internal/walker/walker.go:122
github.com/restic/restic/internal/walker.walk
github.com/restic/restic/internal/walker/walker.go:122
github.com/restic/restic/internal/walker.walk
github.com/restic/restic/internal/walker/walker.go:122
github.com/restic/restic/internal/walker.walk
github.com/restic/restic/internal/walker/walker.go:122
github.com/restic/restic/internal/walker.Walk
github.com/restic/restic/internal/walker/walker.go:51
main.runLs
github.com/restic/restic/cmd/restic/cmd_ls.go:224
main.glob..func15
github.com/restic/restic/cmd/restic/cmd_ls.go:45
github.com/spf13/cobra.(*Command).execute
github.com/spf13/cobra@v1.6.1/command.go:916
github.com/spf13/cobra.(*Command).ExecuteC
github.com/spf13/cobra@v1.6.1/command.go:1044
github.com/spf13/cobra.(*Command).Execute
github.com/spf13/cobra@v1.6.1/command.go:968
github.com/spf13/cobra.(*Command).ExecuteContext
github.com/spf13/cobra@v1.6.1/command.go:961
main.main
github.com/restic/restic/cmd/restic/main.go:96
runtime.main
runtime/proc.go:250
runtime.goexit
runtime/asm_amd64.s:1598
From what I am seeing seems there is something different, or missing, in the new that is causing the crashes.
Any pointers or ideas what may be the issue?