k8up icon indicating copy to clipboard operation
k8up copied to clipboard

Error "can't list mounted folders for stats" when no /data exists

Open tobru opened this issue 2 years ago • 2 comments

Description

When the directory /data doesn't exist in the backup Pod, it logs:

2021-11-22T09:25:37.092Z        ERROR   k8up.restic.restic.MountCollector       can't list mounted folders for stats    {"error": "open /data: no such file or directory"}
github.com/k8up-io/k8up/restic/cli.(*Restic).parseSummary
        /home/runner/work/k8up/k8up/restic/cli/stats.go:169
github.com/k8up-io/k8up/restic/cli.(*Restic).sendBackupStats
        /home/runner/work/k8up/k8up/restic/cli/backup.go:81
github.com/k8up-io/k8up/restic/logging.(*BackupOutputParser).out
        /home/runner/work/k8up/k8up/restic/logging/logging.go:162
github.com/k8up-io/k8up/restic/logging.writer.Write
        /home/runner/work/k8up/k8up/restic/logging/logging.go:103
io.copyBuffer
        /opt/hostedtoolcache/go/1.17.2/x64/src/io/io.go:425
io.Copy
        /opt/hostedtoolcache/go/1.17.2/x64/src/io/io.go:382
os/exec.(*Cmd).writerDescriptor.func1
        /opt/hostedtoolcache/go/1.17.2/x64/src/os/exec/exec.go:311
os/exec.(*Cmd).Start.func1
        /opt/hostedtoolcache/go/1.17.2/x64/src/os/exec/exec.go:441

Additional Context

No response

Logs

No response

Expected Behavior

Stats reporting is skipped and no error logged

Steps To Reproduce

No response

Version of K8up

v2.0.1

Version of Kubernetes

v1.21

Distribution of Kubernetes

OpenShift

tobru avatar Nov 22 '21 09:11 tobru

Does the backup generally fail or is this "just" a cosmetic error with the stack trace?

ccremer avatar Dec 03 '21 08:12 ccremer

The backup doesn't fail, but I don't know the implications of this message. Not sure for what feature "can't list mounted folders for stats" stands for.

tobru avatar Dec 03 '21 08:12 tobru