diff --git a/cmd/influxd/backup/backup.go b/cmd/influxd/backup/backup.go index d0cc1ab9630..01562c72c37 100644 --- a/cmd/influxd/backup/backup.go +++ b/cmd/influxd/backup/backup.go @@ -541,9 +541,15 @@ func (cmd *Command) download(req *snapshotter.Request, path string) error { } // Read snapshot from the connection - if n, err := io.Copy(f, conn); err != nil || n == 0 { + n, err := io.Copy(f, conn) + if err != nil { return fmt.Errorf("copy backup to file: err=%v, n=%d", err, n) } + if n == 0 { + // Unfortunately there is no out-of-band channel to actually return errors from the snapshot service, just + // 'data' or 'no data'. + return fmt.Errorf("copy backup to file: no data returned, check server logs for snapshot errors") + } return nil }(); err == nil { break