1
0
Fork 0
mirror of https://github.com/maziggy/bambuddy.git synced 2026-05-09 08:25:54 +02:00

[GH-ISSUE #780] [Bug Report] Failed to print: INFO: 172.20.0.2:59012 - "GET /api/v1/queue/?status=pendin #520

Closed
opened 2026-05-07 00:11:13 +02:00 by BreizhHardware · 1 comment

Originally created by @maziggy on GitHub (Mar 22, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/780

Originally assigned to: @maziggy on GitHub.

Failed to print:

INFO: 172.20.0.2:59012 - "GET /api/v1/queue/?status=pending HTTP/1.1" 200 OK
2026-03-21 19:14:48,782 INFO [backend.app.services.bambu_ftp] FTP STOR confirmed for /unicorn-1.3mf: 226
2026-03-21 19:14:48,782 INFO [backend.app.services.bambu_ftp] FTP upload complete: /unicorn-1.3mf (39895301 bytes in 256.5s, 152 KB/s)
2026-03-21 19:14:48,782 INFO [backend.app.services.bambu_ftp] FTP mode cached for 10.95.1.21: prot_p
2026-03-21 19:14:48,793 INFO [backend.app.main] Registered expected print: printer=1, file=unicorn-1.3mf, archive=38, ams_mapping=[-1, 0]
2026-03-21 19:14:48,844 INFO [backend.app.services.printer_manager] PRINT COMMAND: printer=1, file=unicorn-1.3mf, caller=background_dispatch.py:532:_process_job
2026-03-21 19:14:48,844 ERROR [backend.app.services.bambu_mqtt] [03900D5B1110143] Cannot start print: Printer not connected (client exists but disconnected). Connection state: False, Last message: 1774145614.8809252
2026-03-21 19:14:49,689 INFO [backend.app.services.bambu_ftp] FTP connected successfully to 10.95.1.21 (model=A1, prot_c=False)
2026-03-21 19:14:49,811 ERROR [backend.app.services.background_dispatch] Background dispatch job 1 failed: Failed to start print
Traceback (most recent call last):
File "/app/backend/app/services/background_dispatch.py", line 360, in _run_active_job
await self._process_job(job)
File "/app/backend/app/services/background_dispatch.py", line 532, in _process_job
await self._run_print_library_file(job)
File "/app/backend/app/services/background_dispatch.py", line 838, in _run_print_library_file
raise RuntimeError("Failed to start print")
RuntimeError: Failed to start print
INFO: 172.20.0.2:59012 - "GET /api/v1/archives/?printer_id=1&project_id=1&limit=0&offset=0 HTTP/1.1" 200 OK

Screenshot

Bug Report Screenshot

System Information
{
  "generated_at": "2026-03-21T19:20:18.911920",
  "app": {
    "version": "0.2.2",
    "debug_mode": false
  },
  "system": {
    "platform": "Linux",
    "platform_release": "6.12.30+",
    "platform_version": "#1 SMP PREEMPT_DYNAMIC Fri Jan 16 12:14:12 UTC 2026",
    "architecture": "x86_64",
    "python_version": "3.13.12"
  },
  "environment": {
    "docker": true,
    "data_dir": "/app/data",
    "log_dir": "/app/logs",
    "timezone": "America/Los_Angeles"
  },
  "database": {
    "archives_total": 39,
    "archives_completed": 16,
    "printers_total": 1,
    "filaments_total": 0,
    "projects_total": 0,
    "smart_plugs_total": 0
  },
  "printers": [
    {
      "index": 1,
      "model": "A1",
      "nozzle_count": 1,
      "is_active": true,
      "mqtt_connected": true,
      "state": "FINISH",
      "firmware_version": "01.07.02.00",
      "wifi_signal": -59,
      "reachable": true,
      "ams_unit_count": 1,
      "ams_tray_count": 1,
      "has_vt_tray": true,
      "external_camera_configured": false,
      "plate_detection_enabled": false,
      "hms_error_count": 0,
      "developer_mode": null,
      "nozzle_rack_count": 0
    }
  ],
  "settings": {
    "auth_enabled": "true",
    "setup_completed": "true",
    "auto_archive": "true",
    "save_thumbnails": "true",
    "capture_finish_photo": "true",
    "default_filament_cost": "20.0",
    "currency": "USD",
    "energy_cost_per_kwh": "0.15",
    "energy_tracking_mode": "total",
    "check_updates": "true",
    "check_printer_firmware": "true",
    "include_beta_updates": "true",
    "notification_language": "en",
    "bed_cooled_threshold": "35.0",
    "ams_humidity_good": "40",
    "ams_humidity_fair": "60",
    "ams_temp_good": "28.0",
    "ams_temp_fair": "35.0",
    "ams_history_retention_days": "30",
    "per_printer_mapping_expanded": "false",
    "date_format": "system",
    "time_format": "system",
    "default_printer_id": "None",
    "ftp_retry_enabled": "true",
    "ftp_retry_count": "3",
    "ftp_retry_delay": "2",
    "ftp_timeout": "30",
    "mqtt_enabled": "false",
    "mqtt_broker": "",
    "mqtt_port": "1883",
    "mqtt_topic_prefix": "bambuddy",
    "mqtt_use_tls": "false",
    "ha_enabled": "false",
    "library_archive_mode": "ask",
    "library_disk_warning_gb": "5.0",
    "camera_view_mode": "window",
    "preferred_slicer": "bambu_studio",
    "prometheus_enabled": "false"
  },
  "docker": {
    "container_memory_limit_bytes": null,
    "container_memory_limit_formatted": null,
    "network_mode_hint": "host"
  },
  "virtual_printers": [],
  "integrations": {
    "notification_providers": [
      {
        "type": "ntfy",
        "enabled": true,
        "has_last_error": false
      }
    ],
    "spoolman": {
      "enabled": false,
      "reachable": false
    },
    "mqtt_relay": {
      "enabled": false,
      "connected": false,
      "broker": "",
      "port": 0,
      "topic_prefix": "bambuddy"
    },
    "homeassistant": {
      "enabled": false
    }
  },
  "database_health": {
    "journal_mode": "wal",
    "quick_check": "ok",
    "db_size_bytes": 843776,
    "wal_size_bytes": 4128272
  },
  "dependencies": {
    "fastapi": "0.135.1",
    "uvicorn": "0.42.0",
    "pydantic": "2.12.5",
    "sqlalchemy": "2.0.48",
    "paho-mqtt": "2.1.0",
    "psutil": "7.2.2",
    "httpx": "0.28.1",
    "aiofiles": "25.1.0",
    "cryptography": "46.0.5",
    "opencv-python-headless": "4.13.0.92",
    "numpy": "2.4.3"
  },
  "log_file": {
    "size_bytes": 3674663,
    "size_formatted": "3.5 MB"
  },
  "network": {
    "interface_count": 2,
    "interfaces": [
      {
        "name": "eth1",
        "subnet": "x.x.1.0/24"
      },
      {
        "name": "eth0",
        "subnet": "x.x.0.0/23"
      }
    ]
  },
  "websockets": {
    "active_connections": 2
  }
}

Logs (sanitized): bambuddy.log


Submitted via BamBuddy Bug Report

Originally created by @maziggy on GitHub (Mar 22, 2026). Original GitHub issue: https://github.com/maziggy/bambuddy/issues/780 Originally assigned to: @maziggy on GitHub. Failed to print: INFO: 172.20.0.2:59012 - "GET /api/v1/queue/?status=pending HTTP/1.1" 200 OK 2026-03-21 19:14:48,782 INFO [backend.app.services.bambu_ftp] FTP STOR confirmed for /unicorn-1.3mf: 226 2026-03-21 19:14:48,782 INFO [backend.app.services.bambu_ftp] FTP upload complete: /unicorn-1.3mf (39895301 bytes in 256.5s, 152 KB/s) 2026-03-21 19:14:48,782 INFO [backend.app.services.bambu_ftp] FTP mode cached for 10.95.1.21: prot_p 2026-03-21 19:14:48,793 INFO [backend.app.main] Registered expected print: printer=1, file=unicorn-1.3mf, archive=38, ams_mapping=[-1, 0] 2026-03-21 19:14:48,844 INFO [backend.app.services.printer_manager] PRINT COMMAND: printer=1, file=unicorn-1.3mf, caller=background_dispatch.py:532:_process_job 2026-03-21 19:14:48,844 ERROR [backend.app.services.bambu_mqtt] [03900D5B1110143] Cannot start print: Printer not connected (client exists but disconnected). Connection state: False, Last message: 1774145614.8809252 2026-03-21 19:14:49,689 INFO [backend.app.services.bambu_ftp] FTP connected successfully to 10.95.1.21 (model=A1, prot_c=False) 2026-03-21 19:14:49,811 ERROR [backend.app.services.background_dispatch] Background dispatch job 1 failed: Failed to start print Traceback (most recent call last): File "/app/backend/app/services/background_dispatch.py", line 360, in _run_active_job await self._process_job(job) File "/app/backend/app/services/background_dispatch.py", line 532, in _process_job await self._run_print_library_file(job) File "/app/backend/app/services/background_dispatch.py", line 838, in _run_print_library_file raise RuntimeError("Failed to start print") RuntimeError: Failed to start print INFO: 172.20.0.2:59012 - "GET /api/v1/archives/?printer_id=1&project_id=1&limit=0&offset=0 HTTP/1.1" 200 OK ### Screenshot ![Bug Report Screenshot](https://raw.githubusercontent.com/maziggy/bambuddy/bug-report-assets/screenshots/829e488b32bd45fbae8a49b56d65484f.png) <details> <summary>System Information</summary> ```json { "generated_at": "2026-03-21T19:20:18.911920", "app": { "version": "0.2.2", "debug_mode": false }, "system": { "platform": "Linux", "platform_release": "6.12.30+", "platform_version": "#1 SMP PREEMPT_DYNAMIC Fri Jan 16 12:14:12 UTC 2026", "architecture": "x86_64", "python_version": "3.13.12" }, "environment": { "docker": true, "data_dir": "/app/data", "log_dir": "/app/logs", "timezone": "America/Los_Angeles" }, "database": { "archives_total": 39, "archives_completed": 16, "printers_total": 1, "filaments_total": 0, "projects_total": 0, "smart_plugs_total": 0 }, "printers": [ { "index": 1, "model": "A1", "nozzle_count": 1, "is_active": true, "mqtt_connected": true, "state": "FINISH", "firmware_version": "01.07.02.00", "wifi_signal": -59, "reachable": true, "ams_unit_count": 1, "ams_tray_count": 1, "has_vt_tray": true, "external_camera_configured": false, "plate_detection_enabled": false, "hms_error_count": 0, "developer_mode": null, "nozzle_rack_count": 0 } ], "settings": { "auth_enabled": "true", "setup_completed": "true", "auto_archive": "true", "save_thumbnails": "true", "capture_finish_photo": "true", "default_filament_cost": "20.0", "currency": "USD", "energy_cost_per_kwh": "0.15", "energy_tracking_mode": "total", "check_updates": "true", "check_printer_firmware": "true", "include_beta_updates": "true", "notification_language": "en", "bed_cooled_threshold": "35.0", "ams_humidity_good": "40", "ams_humidity_fair": "60", "ams_temp_good": "28.0", "ams_temp_fair": "35.0", "ams_history_retention_days": "30", "per_printer_mapping_expanded": "false", "date_format": "system", "time_format": "system", "default_printer_id": "None", "ftp_retry_enabled": "true", "ftp_retry_count": "3", "ftp_retry_delay": "2", "ftp_timeout": "30", "mqtt_enabled": "false", "mqtt_broker": "", "mqtt_port": "1883", "mqtt_topic_prefix": "bambuddy", "mqtt_use_tls": "false", "ha_enabled": "false", "library_archive_mode": "ask", "library_disk_warning_gb": "5.0", "camera_view_mode": "window", "preferred_slicer": "bambu_studio", "prometheus_enabled": "false" }, "docker": { "container_memory_limit_bytes": null, "container_memory_limit_formatted": null, "network_mode_hint": "host" }, "virtual_printers": [], "integrations": { "notification_providers": [ { "type": "ntfy", "enabled": true, "has_last_error": false } ], "spoolman": { "enabled": false, "reachable": false }, "mqtt_relay": { "enabled": false, "connected": false, "broker": "", "port": 0, "topic_prefix": "bambuddy" }, "homeassistant": { "enabled": false } }, "database_health": { "journal_mode": "wal", "quick_check": "ok", "db_size_bytes": 843776, "wal_size_bytes": 4128272 }, "dependencies": { "fastapi": "0.135.1", "uvicorn": "0.42.0", "pydantic": "2.12.5", "sqlalchemy": "2.0.48", "paho-mqtt": "2.1.0", "psutil": "7.2.2", "httpx": "0.28.1", "aiofiles": "25.1.0", "cryptography": "46.0.5", "opencv-python-headless": "4.13.0.92", "numpy": "2.4.3" }, "log_file": { "size_bytes": 3674663, "size_formatted": "3.5 MB" }, "network": { "interface_count": 2, "interfaces": [ { "name": "eth1", "subnet": "x.x.1.0/24" }, { "name": "eth0", "subnet": "x.x.0.0/23" } ] }, "websockets": { "active_connections": 2 } } ``` </details> **Logs (sanitized):** [bambuddy.log](https://raw.githubusercontent.com/maziggy/bambuddy/bug-report-assets/logs/e199115bcf004eef854fe820cdb39027.log) --- *Submitted via BamBuddy Bug Report*
Author
Owner

@maziggy commented on GitHub (Mar 22, 2026):

Please upload a support package -> https://wiki.bambuddy.cool/features/system-info/?h=debug#enable-debug-logging

<!-- gh-comment-id:4105725581 --> @maziggy commented on GitHub (Mar 22, 2026): Please upload a support package -> https://wiki.bambuddy.cool/features/system-info/?h=debug#enable-debug-logging
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/bambuddy-maziggy-1#520
No description provided.