influxdata / influxdata/influxdb

Backup error - unexpected EOF

Open
#23,295 7 comments 0 reactions 2 assignees Assigned to @gwossum View on GitHub
area/2.x area/backup and restore area/client team/edge
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

__Steps to reproduce:__
List the minimal actions needed to reproduce the behavior.
```
1. $ influx backup /backup/influxdb/backup_$(date '+%Y-%m-%d_%H-%M') -t {token}
2. receive an error after a while (Error: failed to backup bucket data: failed to download snapshot of shard 103: http: unexpected EOF reading trailer)
```

__Expected behavior:__
```
finish backup without errors
```

__Actual behavior:__
```
receiving an error before backup finishes
```

__Environment info:__

* System info: Run `uname -srm` and copy the output here
```
- Linux 5.13.0-28-generic x86_64
- Ubuntu 20.04.2 LTS
```

* InfluxDB version: Run `influxd version` and copy the output here
```
- InfluxDB 2.0.8 (git: e91d41810f) build_date: 2021-08-13T18:22:30Z
- Influx CLI 2.3.0 (git: 88ba346) build_date: 2022-04-06T19:30:53Z
```
__Config:__
Copy any non-default config values here or attach the full config as a gist or file.
```
http-write-timeout = "5s"
query-concurrency = 10000
http-bind-address = ":8086"
http-read-timeout = 0
```

__Logs:__
```
Error: failed to backup bucket data: failed to download snapshot of shard 103: http: unexpected EOF reading trailer
```

__Performance:__
Generate profiles with the following commands for bugs related to performance, locking, out of memory (OOM), etc.

```sh
# Commands should be run when the bug is actively happening.
# Note: This command will run for ~30 seconds.
curl -o profiles.tar.gz "http://localhost:8
086/debug/pprof/all?cpu=30s"
- curl: (52) Empty reply from server

iostat -xd 1 30 > iostat.txt
# Attach the `profiles.tar.gz` and `iostat.txt` output files.
```
[iostat.txt](https://github.com/influxdata/influxdb/files/8548949/iostat.txt)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.