Restore failures

I am using InfluxDB v2.5.1 on a Raspberry Pi 4 with Ubuntu 22.04 (aarch64). Database files are store on a mounted USB flash drive.

While testing backup/restore of a bucket with infinite retention I ran into some errors. The target bucket is created but empty. The source bucket name is “never”.

Backup (as root via CLI):

influx backup -b never neverbucketbackup
2023/02/20 12:45:53 INFO: Downloading metadata snapshot
2023/02/20 12:45:53 INFO: Backing up TSM for shard 405

(…)

2023/02/20 12:45:53 INFO: Backing up TSM for shard 423
2023/02/20 12:45:53 WARN: Shard 423 removed during backup

Restore:

influx restore neverbucketbackup  --bucket never --new-bucket neverrestoretest
2023/02/20 12:49:05 INFO: Restoring bucket "d507a7c4256efe7f" as "neverrestoretest"
Error: failed to restore bucket "neverrestoretest": Post "http://localhost:8086/api/v2/restore/bucketMetadata": EOF

The log show these entries (time stamps removed for legibility):

msg="Reindexing TSM data" log_id=0g7daQ~0000 service=storage-engine engine=tsm1 db_shard_id=840
msg="Reindexing WAL data" log_id=0g7daQ~0000 service=storage-engine engine=tsm1 db_shard_id=840
msg="index opened with 8 partitions" log_id=0g7daQ~0000 service=storage-engine index=tsi
msg="failed loading changes (start)" log_id=0g7daQ~0000 service=storage-engine engine=tsm1 op_name="field indices" op_event=start
msg="failed loading changes (end)" log_id=0g7daQ~0000 service=storage-engine engine=tsm1 op_name="field indices" op_event=end op_elapsed=0.202ms

How can I create and restore backups properly and reliably?