mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-05-09 00:08:34 +02:00
[GH-ISSUE #1224] [Bug]: Errors backing up to Gitea #890
Labels
No labels
A1
automated
automated
bug
bug
Closed due to inactivity
contrib
dependencies
dependencies
duplicate
enhancement
feedback
hold
invalid
Notes
P1S
pull-request
security
ThumbsUp
user-report
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/bambuddy-maziggy-1#890
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rtadams89 on GitHub (May 6, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/1224
Component
Bambuddy
Bug Description
I am running v0.2.4b2 which includes the changes from https://github.com/maziggy/bambuddy/pull/1160 to enable backing up to a local Gitea server.
Following the documentation (https://wiki.bambuddy.cool/features/backup/#setup), I have created a repository in Gitea.
After configuring this repository as a backup location in Bambuddy, the "test" button reports "Connection successful". However, trying to run a backup reports "Backup failed: Failed to create tree".
Expected Behavior
Upon starting an initial backup, Bambuddy should create the files in the Gitea repository as described in https://wiki.bambuddy.cool/features/backup/#schedule-options
Steps to Reproduce
Running Bambuddy v0.2.4b2,
Printer Model
None
Bambuddy Version
0.2.4b2
SpoolBuddy Version
No response
Printer Firmware Version
No response
Installation Method
Docker
Operating System
Linux (Ubuntu/Debian)
Relevant Logs / Support Package
Bambuddy doesn't log anything other than the initial call to run the backup:
2026-05-06 14:55:07,057 INFO [backend.app.api.routes.support] [8b9a5697] Log level changed to DEBUG
2026-05-06 14:55:07,057 INFO [uvicorn.access] [-] [IP]:17556 - "POST /api/v1/support/debug-logging HTTP/1.1" 200
2026-05-06 14:55:10,433 DEBUG [backend.app.api.routes.printers] [888f3292] API returning ams_mapping: [], ams_extruder_map: {}
2026-05-06 14:55:10,433 DEBUG [backend.app.api.routes.printers] [888f3292] Using tray_now directly as global ID: 254
2026-05-06 14:55:10,674 DEBUG [backend.app.services.bambu_mqtt] [-] SERIAL Received command response: push_status
2026-05-06 14:55:10,674 DEBUG [backend.app.services.bambu_mqtt] [-] SERIAL wifi_signal received: -48dBm
2026-05-06 14:55:11,751 INFO [uvicorn.access] [-] [IP]:17560 - "POST /api/v1/github-backup/test-stored HTTP/1.1" 200
2026-05-06 14:55:12,236 DEBUG [backend.app.services.virtual_printer.ssdp_server] [-] Sent SSDP NOTIFY for Bambuddy (Location=[IP], USN=[SERIAL], bind=[IP])
2026-05-06 14:55:12,680 DEBUG [backend.app.services.bambu_mqtt] [-] SERIAL Received command response: push_status
2026-05-06 14:55:12,681 DEBUG [backend.app.services.bambu_mqtt] [-] SERIAL wifi_signal received: -47dBm
2026-05-06 14:55:13,415 INFO [backend.app.services.bambu_mqtt] [d3e25fa0] SERIAL Requesting K-profiles for nozzle_diameter=0.2 (attempt 1/3)
2026-05-06 14:55:13,415 DEBUG [backend.app.services.bambu_mqtt] [d3e25fa0] SERIAL K-profile request JSON: {"print": {"command": "extrusion_cali_get", "filament_id": "", "nozzle_diameter": "0.2", "sequence_id": "87"}}
2026-05-06 14:55:13,430 DEBUG [backend.app.services.bambu_mqtt] [-] SERIAL Received command response: extrusion_cali_get
2026-05-06 14:55:13,430 INFO [backend.app.services.bambu_mqtt] [-] SERIAL K-profile response: nozzle=0.2, seq_id=87, 0 profiles, expected=0.2
2026-05-06 14:55:13,430 INFO [backend.app.services.bambu_mqtt] [-] SERIAL Got 0 K-profiles for nozzle=0.2
2026-05-06 14:55:13,430 INFO [backend.app.services.bambu_mqtt] [d3e25fa0] SERIAL Got 0 K-profiles for nozzle=0.2 on attempt 1
2026-05-06 14:55:13,430 INFO [backend.app.services.bambu_mqtt] [d3e25fa0] SERIAL Requesting K-profiles for nozzle_diameter=0.4 (attempt 1/3)
2026-05-06 14:55:13,431 DEBUG [backend.app.services.bambu_mqtt] [d3e25fa0] SERIAL K-profile request JSON: {"print": {"command": "extrusion_cali_get", "filament_id": "", "nozzle_diameter": "0.4", "sequence_id": "88"}}
2026-05-06 14:55:13,458 DEBUG [backend.app.services.bambu_mqtt] [-] SERIAL Received command response: extrusion_cali_get
2026-05-06 14:55:13,458 INFO [backend.app.services.bambu_mqtt] [-] SERIAL K-profile response: nozzle=0.4, seq_id=88, 0 profiles, expected=0.4
2026-05-06 14:55:13,458 INFO [backend.app.services.bambu_mqtt] [-] SERIAL Got 0 K-profiles for nozzle=0.4
2026-05-06 14:55:13,459 INFO [backend.app.services.bambu_mqtt] [d3e25fa0] SERIAL Got 0 K-profiles for nozzle=0.4 on attempt 1
2026-05-06 14:55:13,459 INFO [backend.app.services.bambu_mqtt] [d3e25fa0] SERIAL Requesting K-profiles for nozzle_diameter=0.6 (attempt 1/3)
2026-05-06 14:55:13,459 DEBUG [backend.app.services.bambu_mqtt] [d3e25fa0] SERIAL K-profile request JSON: {"print": {"command": "extrusion_cali_get", "filament_id": "", "nozzle_diameter": "0.6", "sequence_id": "89"}}
2026-05-06 14:55:13,476 DEBUG [backend.app.services.bambu_mqtt] [-] SERIAL Received command response: extrusion_cali_get
2026-05-06 14:55:13,476 INFO [backend.app.services.bambu_mqtt] [-] SERIAL K-profile response: nozzle=0.6, seq_id=89, 0 profiles, expected=0.6
2026-05-06 14:55:13,476 INFO [backend.app.services.bambu_mqtt] [-] SERIAL Got 0 K-profiles for nozzle=0.6
2026-05-06 14:55:13,477 INFO [backend.app.services.bambu_mqtt] [d3e25fa0] SERIAL Got 0 K-profiles for nozzle=0.6 on attempt 1
2026-05-06 14:55:13,477 INFO [backend.app.services.bambu_mqtt] [d3e25fa0] SERIAL Requesting K-profiles for nozzle_diameter=0.8 (attempt 1/3)
2026-05-06 14:55:13,477 DEBUG [backend.app.services.bambu_mqtt] [d3e25fa0] SERIAL K-profile request JSON: {"print": {"command": "extrusion_cali_get", "filament_id": "", "nozzle_diameter": "0.8", "sequence_id": "90"}}
2026-05-06 14:55:13,496 DEBUG [backend.app.services.bambu_mqtt] [-] SERIAL Received command response: extrusion_cali_get
2026-05-06 14:55:13,497 INFO [backend.app.services.bambu_mqtt] [-] SERIAL K-profile response: nozzle=0.8, seq_id=90, 0 profiles, expected=0.8
2026-05-06 14:55:13,497 INFO [backend.app.services.bambu_mqtt] [-] SERIAL Got 0 K-profiles for nozzle=0.8
2026-05-06 14:55:13,497 INFO [backend.app.services.bambu_mqtt] [d3e25fa0] SERIAL Got 0 K-profiles for nozzle=0.8 on attempt 1
2026-05-06 14:55:13,646 INFO [backend.app.services.github_backup] [d3e25fa0] Collected cloud profiles: 0 filament, 0 printer, 0 process
2026-05-06 14:55:13,649 INFO [backend.app.services.github_backup] [d3e25fa0] Collected 1 print archives
2026-05-06 14:55:13,809 INFO [uvicorn.access] [-] [IP]:17560 - "POST /api/v1/github-backup/run HTTP/1.1" 200
Gitea logs a few 404 responses to requests coming in from Bambuddy:
2026-05-06T14:55:13-07:00 gitea gitea[54444]: 2026/05/06 14:55:13 HTTPRequest [I] router: completed POST /api/v1/repos/bambuddy-backup/bambuddy-backup/git/trees for 10.10.20.27:60808, 404 Not Found in 0.0ms @ http/server.go:2322(GlobalNotFound)
2026-05-06T14:55:13-07:00 gitea gitea[54444]: 2026/05/06 14:55:13 HTTPRequest [I] router: completed POST /api/v1/repos/bambuddy-backup/bambuddy-backup/git/blobs for 10.10.20.27:60808, 404 Not Found in 0.0ms @ http/server.go:2322(GlobalNotFound)
2026-05-06T14:55:13-07:00 gitea gitea[54444]: 2026/05/06 14:55:13 HTTPRequest [I] router: completed POST /api/v1/repos/bambuddy-backup/bambuddy-backup/git/blobs for 10.10.20.27:60808, 404 Not Found in 0.0ms @ http/server.go:2322(GlobalNotFound)
2026-05-06T14:55:13-07:00 gitea gitea[54444]: 2026/05/06 14:55:13 HTTPRequest [I] router: completed POST /api/v1/repos/bambuddy-backup/bambuddy-backup/git/blobs for 10.10.20.27:60808, 404 Not Found in 0.0ms @ http/server.go:2322(GlobalNotFound)
2026-05-06T14:55:13-07:00 gitea gitea[54444]: 2026/05/06 14:55:13 HTTPRequest [I] router: completed GET /api/v1/repos/bambuddy-backup/bambuddy-backup/git/refs/heads/main for 10.10.20.27:60808, 404 Not Found in 45.5ms @ repo/git_ref.go:46(repo.GetGitRefs)
2026-05-06T14:55:13-07:00 gitea gitea[54444]: 2026/05/06 14:55:13 HTTPRequest [I] router: completed GET /api/v1/repos/bambuddy-backup/bambuddy-backup for 10.10.20.27:60808, 200 OK in 44.0ms @ repo/repo.go:510(repo.Get)
2026-05-06T14:55:13-07:00 gitea gitea[54444]: 2026/05/06 14:55:13 HTTPRequest [I] router: completed GET /api/v1/repos/bambuddy-backup/bambuddy-backup/git/refs/heads/main for 10.10.20.27:60808, 404 Not Found in 53.7ms @ repo/git_ref.go:46(repo.GetGitRefs)
2026-05-06T14:55:11-07:00 gitea gitea[54444]: 2026/05/06 14:55:11 HTTPRequest [I] router: completed GET /api/v1/repos/bambuddy-backup/bambuddy-backup for 10.10.20.27:60808, 200 OK in 43.2ms @ repo/repo.go:510(repo.Get)
Screenshots
No response
Additional Context
In the logs, Gitea is at 10.10.20.16 and Bambuddy is at 10.10.20.27. The Gitea user is "bambuddy-backup" and the repository is named "bambuddy-backup".
Checklist