Backup download fails with "file not found: {UUID}" #126

Closed
opened 2026-04-05 16:15:48 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @hosternus on 2/18/2026

Environment

Databasus: latest (hub.docker.com, databasus/databasus, v3.14.0) → BROKEN
v3.12.2 (earlier version) → WORKS
Docker version 29.2.1, build a5c7197
Storage: Yandex Object Storage (S3) + Local Disk (both fail)
Target DB: MySQL 9.6.0
OS: Ubuntu 24.04 (amd64)

Steps to reproduce

1) Deploy docker-compose.yml

services:
  databasus:
    container_name: databasus
    image: databasus/databasus:latest
    ports:
      - "4005:4005"
    volumes:
      - databasus-data:/databasus-data
    restart: unless-stopped

volumes:
  databasus-data:

2) Add database: UI → Add Database → MySQL (host: mysql:3306, useHTTPS: true)
3) Create local/S3 storage → Successful
4) Proceed manual backu → Successful
5) Backups → Download → Error

Broken backups and logs

1) via Local storage

file source
{"error":"failed to get backup file: file not found: eb8394d5-dac0-41fc-ac4f-c9df2798c97b"}
logs

 [GIN] 2026/02/17 - 23:36:52 | 400 |    34.48001ms |       18.13.5.3 | GET      "/api/v1/backups/eb8394d5-dac0-41fc-ac4f-c9df2798c97b/file?token=NCJxfTx9BXkm3dSocv6dNvU68t3h01Hh0guj8lnRvEU="
time="2026/02/17 23:36:52" msg="Released download lock" userId=f6615383-ca6d-48a0-b50f-a86ff8c843f6
time="2026/02/17 23:36:52" msg="Unregistered from bandwidth manager" userId=f6615383-ca6d-48a0-b50f-a86ff8c843f6
[GIN] 2026/02/17 - 23:36:48 | 200 |    8.069885ms |       18.13.5.3 | GET      "/api/v1/backups?database_id=1076219b-1067-4b4f-bc6e-2c882c526262&limit=50&offset=0"
time="2026/02/17 23:36:52" msg="Generated download token" backupId=eb8394d5-dac0-41fc-ac4f-c9df2798c97b userId=f6615383-ca6d-48a0-b50f-a86ff8c843f6
time="2026/02/17 23:36:52" msg="Token validated and consumed" backupId=eb8394d5-dac0-41fc-ac4f-c9df2798c97b userId=f6615383-ca6d-48a0-b50f-a86ff8c843f6
[GIN] 2026/02/17 - 23:36:52 | 200 |   26.127905ms |       18.13.5.3 | POST     "/api/v1/backups/eb8394d5-dac0-41fc-ac4f-c9df2798c97b/download-token"

Real filename: /databasus-data/backups/test-db-20260217-233615-eb8394d5-dac0-41fc-ac4f-c9df2798c97b
Service tries to find backup file via UUID (like in earlier versions), not by full name

2) via S3 (YandexCloud object storage)

file source
{"error":"failed to get backup file: file does not exist in S3: The specified key does not exist."}
logs

time="2026/02/17 23:56:56" msg="Generated download token" backupId=c652b81e-c2aa-4952-b136-8e57a79f5aea userId=f6615383-ca6d-48a0-b50f-a86ff8c843f6
[GIN] 2026/02/17 - 23:56:56 | 200 |   15.873872ms |       18.13.5.3 | POST     "/api/v1/backups/c652b81e-c2aa-4952-b136-8e57a79f5aea/download-token"
time="2026/02/17 23:56:56" msg="Token validated and consumed" backupId=c652b81e-c2aa-4952-b136-8e57a79f5aea userId=f6615383-ca6d-48a0-b50f-a86ff8c843f6
time="2026/02/17 23:56:56" msg="Unregistered from bandwidth manager" userId=f6615383-ca6d-48a0-b50f-a86ff8c843f6
time="2026/02/17 23:56:56" msg="Released download lock" userId=f6615383-ca6d-48a0-b50f-a86ff8c843f6
[GIN] 2026/02/17 - 23:56:56 | 400 |  271.510985ms |       18.13.5.3 | GET      "/api/v1/backups/c652b81e-c2aa-4952-b136-8e57a79f5aea/file?token=pmNP-t_AONxkrvFt9eyqu1TNJ0W1oNFZQWn5plO_3ac="

Real object name: test-db-20260217-235619-c652b81e-c2aa-4952-b136-8e57a79f5aea
Service queried name: c652b81e-c2aa-4952-b136-8e57a79f5aea
Same problem like p.2

Please don't judge me too harshly, this is my first issue:)

*Originally created by @hosternus on 2/18/2026* ### Environment **Databasus**: latest (hub.docker.com, databasus/databasus, v3.14.0) → BROKEN v3.12.2 (earlier version) → WORKS **Docker** version 29.2.1, build a5c7197 **Storage**: Yandex Object Storage (S3) + Local Disk (both fail) **Target DB**: MySQL 9.6.0 **OS**: Ubuntu 24.04 (amd64) ### Steps to reproduce **1) Deploy docker-compose.yml** ``` services: databasus: container_name: databasus image: databasus/databasus:latest ports: - "4005:4005" volumes: - databasus-data:/databasus-data restart: unless-stopped volumes: databasus-data: ``` **2) Add database: UI → Add Database → MySQL (host: mysql:3306, useHTTPS: true) 3) Create local/S3 storage → Successful 4) Proceed manual backu → Successful 5) Backups → Download → Error** ### Broken backups and logs **1) via Local storage** file source `{"error":"failed to get backup file: file not found: eb8394d5-dac0-41fc-ac4f-c9df2798c97b"}` logs ``` [GIN] 2026/02/17 - 23:36:52 | 400 | 34.48001ms | 18.13.5.3 | GET "/api/v1/backups/eb8394d5-dac0-41fc-ac4f-c9df2798c97b/file?token=NCJxfTx9BXkm3dSocv6dNvU68t3h01Hh0guj8lnRvEU=" time="2026/02/17 23:36:52" msg="Released download lock" userId=f6615383-ca6d-48a0-b50f-a86ff8c843f6 time="2026/02/17 23:36:52" msg="Unregistered from bandwidth manager" userId=f6615383-ca6d-48a0-b50f-a86ff8c843f6 [GIN] 2026/02/17 - 23:36:48 | 200 | 8.069885ms | 18.13.5.3 | GET "/api/v1/backups?database_id=1076219b-1067-4b4f-bc6e-2c882c526262&limit=50&offset=0" time="2026/02/17 23:36:52" msg="Generated download token" backupId=eb8394d5-dac0-41fc-ac4f-c9df2798c97b userId=f6615383-ca6d-48a0-b50f-a86ff8c843f6 time="2026/02/17 23:36:52" msg="Token validated and consumed" backupId=eb8394d5-dac0-41fc-ac4f-c9df2798c97b userId=f6615383-ca6d-48a0-b50f-a86ff8c843f6 [GIN] 2026/02/17 - 23:36:52 | 200 | 26.127905ms | 18.13.5.3 | POST "/api/v1/backups/eb8394d5-dac0-41fc-ac4f-c9df2798c97b/download-token" ``` Real filename: `/databasus-data/backups/test-db-20260217-233615-eb8394d5-dac0-41fc-ac4f-c9df2798c97b` Service tries to find backup file via UUID (like in earlier versions), not by full name **2) via S3 (YandexCloud object storage)** file source `{"error":"failed to get backup file: file does not exist in S3: The specified key does not exist."}` logs ``` time="2026/02/17 23:56:56" msg="Generated download token" backupId=c652b81e-c2aa-4952-b136-8e57a79f5aea userId=f6615383-ca6d-48a0-b50f-a86ff8c843f6 [GIN] 2026/02/17 - 23:56:56 | 200 | 15.873872ms | 18.13.5.3 | POST "/api/v1/backups/c652b81e-c2aa-4952-b136-8e57a79f5aea/download-token" time="2026/02/17 23:56:56" msg="Token validated and consumed" backupId=c652b81e-c2aa-4952-b136-8e57a79f5aea userId=f6615383-ca6d-48a0-b50f-a86ff8c843f6 time="2026/02/17 23:56:56" msg="Unregistered from bandwidth manager" userId=f6615383-ca6d-48a0-b50f-a86ff8c843f6 time="2026/02/17 23:56:56" msg="Released download lock" userId=f6615383-ca6d-48a0-b50f-a86ff8c843f6 [GIN] 2026/02/17 - 23:56:56 | 400 | 271.510985ms | 18.13.5.3 | GET "/api/v1/backups/c652b81e-c2aa-4952-b136-8e57a79f5aea/file?token=pmNP-t_AONxkrvFt9eyqu1TNJ0W1oNFZQWn5plO_3ac=" ``` Real object name: `test-db-20260217-235619-c652b81e-c2aa-4952-b136-8e57a79f5aea` Service queried name: `c652b81e-c2aa-4952-b136-8e57a79f5aea` _Same problem like p.2_ Please don't judge me too harshly, this is my first issue:)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/databasus#126