[GH-ISSUE #616] [Bug]: Printer stuck in IDLE and plate not cleared #398

Closed
opened 2026-05-06 12:29:04 +02:00 by BreizhHardware · 8 comments

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

Originally assigned to: @maziggy on GitHub.

Bug Description

The printer is in IDLE and there is no 'clear plate' button. An API call to clear the plate results in an error indicating the state is not FINISH or FAILED.

Expected Behavior

The next print to be picked up

Steps to Reproduce

  1. Go to dashboard
  2. nothing

Printer Model

P1S

Bambuddy Version

0.2.2b1

Printer Firmware Version

01.09.01.00

Installation Method

Docker

Operating System

Linux (Ubuntu/Debian)

Relevant Logs / Support Package

{
  "id": 1,
  "name": "P1S 001",
  "connected": true,
  "state": "IDLE",
  "current_print": "",
  "subtask_name": "",
  "gcode_file": "",
  "progress": 0,
  "remaining_time": 0,
  "layer_num": 0,
  "total_layers": 0,
  "temperatures": {
    "bed": 23.125,
    "bed_target": 0,
    "nozzle": 24.46875,
    "nozzle_target": 0,
    "nozzle_heating": false
  },
  "cover_url": null,
  "hms_errors": [],
  "ams": [
    {
      "id": 0,
      "humidity": 38,
      "temp": 26,
      "is_ams_ht": false,
      "tray": [
        {
          "id": 0,
          "tray_color": "AE835BFF",
          "tray_type": "PLA",
          "tray_sub_brands": "PLA Matte",
          "tray_id_name": "A01-N3",
          "tray_info_idx": "GFA01",
          "remain": 92,
          "k": 0.019999999552965164,
          "cali_idx": -1,
          "tag_uid": "15772C2500000100",
          "tray_uuid": "3F98511944DC4DF6B89BC126F5EE51D9",
          "nozzle_temp_min": 190,
          "nozzle_temp_max": 230
        },
        {
          "id": 1,
          "tray_color": "CBC6B8FF",
          "tray_type": "PLA",
          "tray_sub_brands": "PLA Matte",
          "tray_id_name": "A01-W3",
          "tray_info_idx": "GFA01",
          "remain": 64,
          "k": 0.019999999552965164,
          "cali_idx": -1,
          "tag_uid": "A7332C7900000100",
          "tray_uuid": "6502E97309A5475285BEFA5E2CD41803",
          "nozzle_temp_min": 190,
          "nozzle_temp_max": 230
        },
        {
          "id": 2,
          "tray_color": "F7D959FF",
          "tray_type": "PLA",
          "tray_sub_brands": "PLA Matte",
          "tray_id_name": "A01-Y2",
          "tray_info_idx": "GFA01",
          "remain": 100,
          "k": 0.019999999552965164,
          "cali_idx": -1,
          "tag_uid": "777FEB2900000100",
          "tray_uuid": "56CCDFED218740429B73B75134A9ED40",
          "nozzle_temp_min": 190,
          "nozzle_temp_max": 230
        },
        {
          "id": 3,
          "tray_color": "00AE42FF",
          "tray_type": "PLA",
          "tray_sub_brands": "PLA Basic",
          "tray_id_name": "A00-G6",
          "tray_info_idx": "GFA00",
          "remain": 100,
          "k": 0.019999999552965164,
          "cali_idx": -1,
          "tag_uid": "359D340E00000100",
          "tray_uuid": "8E4A2E564EA842E8A77BBB966FD6DA78",
          "nozzle_temp_min": 190,
          "nozzle_temp_max": 230
        }
      ]
    }
  ],
  "ams_exists": true,
  "vt_tray": [
    {
      "id": 254,
      "tray_color": "00000000",
      "tray_type": "",
      "tray_sub_brands": "",
      "tray_id_name": "",
      "tray_info_idx": "",
      "remain": 0,
      "k": 0.019999999552965164,
      "cali_idx": -1,
      "tag_uid": null,
      "tray_uuid": null,
      "nozzle_temp_min": 0,
      "nozzle_temp_max": 0
    }
  ],
  "sdcard": true,
  "store_to_sdcard": false,
  "timelapse": false,
  "ipcam": true,
  "wifi_signal": -47,
  "wired_network": false,
  "nozzles": [
    {
      "nozzle_type": "stainless_steel",
      "nozzle_diameter": "0.2"
    },
    {
      "nozzle_type": "",
      "nozzle_diameter": ""
    }
  ],
  "nozzle_rack": [],
  "print_options": {
    "spaghetti_detector": false,
    "print_halt": false,
    "halt_print_sensitivity": "medium",
    "first_layer_inspector": false,
    "printing_monitor": false,
    "buildplate_marker_detector": false,
    "allow_skip_parts": false,
    "nozzle_clumping_detector": true,
    "nozzle_clumping_sensitivity": "medium",
    "pileup_detector": true,
    "pileup_sensitivity": "medium",
    "airprint_detector": true,
    "airprint_sensitivity": "medium",
    "auto_recovery_step_loss": true,
    "filament_tangle_detect": false
  },
  "stg_cur": 0,
  "stg_cur_name": "Printing",
  "stg": [],
  "airduct_mode": 0,
  "speed_level": 2,
  "chamber_light": false,
  "active_extruder": 0,
  "ams_mapping": [],
  "ams_extruder_map": {
    "0": 0
  },
  "tray_now": 255,
  "ams_status_main": 0,
  "ams_status_sub": 0,
  "mc_print_sub_stage": 0,
  "last_ams_update": 1772696536.5817707,
  "printable_objects_count": 0,
  "cooling_fan_speed": 0,
  "big_fan1_speed": 0,
  "big_fan2_speed": 0,
  "heatbreak_fan_speed": 0,
  "firmware_version": "01.09.01.00",
  "developer_mode": null,
  "plate_cleared": false
}

Screenshots

Image

Additional Context

No response

Checklist

  • I have searched existing issues to ensure this bug hasn't already been reported
  • I am using the latest version of Bambuddy
  • My printer is set to LAN Only mode
  • My printer has Developer Mode enabled
Originally created by @Dendrowen on GitHub (Mar 5, 2026). Original GitHub issue: https://github.com/maziggy/bambuddy/issues/616 Originally assigned to: @maziggy on GitHub. ### Bug Description The printer is in IDLE and there is no 'clear plate' button. An API call to clear the plate results in an error indicating the state is not FINISH or FAILED. ### Expected Behavior The next print to be picked up ### Steps to Reproduce 1. Go to dashboard 2. nothing ### Printer Model P1S ### Bambuddy Version 0.2.2b1 ### Printer Firmware Version 01.09.01.00 ### Installation Method Docker ### Operating System Linux (Ubuntu/Debian) ### Relevant Logs / Support Package ```shell { "id": 1, "name": "P1S 001", "connected": true, "state": "IDLE", "current_print": "", "subtask_name": "", "gcode_file": "", "progress": 0, "remaining_time": 0, "layer_num": 0, "total_layers": 0, "temperatures": { "bed": 23.125, "bed_target": 0, "nozzle": 24.46875, "nozzle_target": 0, "nozzle_heating": false }, "cover_url": null, "hms_errors": [], "ams": [ { "id": 0, "humidity": 38, "temp": 26, "is_ams_ht": false, "tray": [ { "id": 0, "tray_color": "AE835BFF", "tray_type": "PLA", "tray_sub_brands": "PLA Matte", "tray_id_name": "A01-N3", "tray_info_idx": "GFA01", "remain": 92, "k": 0.019999999552965164, "cali_idx": -1, "tag_uid": "15772C2500000100", "tray_uuid": "3F98511944DC4DF6B89BC126F5EE51D9", "nozzle_temp_min": 190, "nozzle_temp_max": 230 }, { "id": 1, "tray_color": "CBC6B8FF", "tray_type": "PLA", "tray_sub_brands": "PLA Matte", "tray_id_name": "A01-W3", "tray_info_idx": "GFA01", "remain": 64, "k": 0.019999999552965164, "cali_idx": -1, "tag_uid": "A7332C7900000100", "tray_uuid": "6502E97309A5475285BEFA5E2CD41803", "nozzle_temp_min": 190, "nozzle_temp_max": 230 }, { "id": 2, "tray_color": "F7D959FF", "tray_type": "PLA", "tray_sub_brands": "PLA Matte", "tray_id_name": "A01-Y2", "tray_info_idx": "GFA01", "remain": 100, "k": 0.019999999552965164, "cali_idx": -1, "tag_uid": "777FEB2900000100", "tray_uuid": "56CCDFED218740429B73B75134A9ED40", "nozzle_temp_min": 190, "nozzle_temp_max": 230 }, { "id": 3, "tray_color": "00AE42FF", "tray_type": "PLA", "tray_sub_brands": "PLA Basic", "tray_id_name": "A00-G6", "tray_info_idx": "GFA00", "remain": 100, "k": 0.019999999552965164, "cali_idx": -1, "tag_uid": "359D340E00000100", "tray_uuid": "8E4A2E564EA842E8A77BBB966FD6DA78", "nozzle_temp_min": 190, "nozzle_temp_max": 230 } ] } ], "ams_exists": true, "vt_tray": [ { "id": 254, "tray_color": "00000000", "tray_type": "", "tray_sub_brands": "", "tray_id_name": "", "tray_info_idx": "", "remain": 0, "k": 0.019999999552965164, "cali_idx": -1, "tag_uid": null, "tray_uuid": null, "nozzle_temp_min": 0, "nozzle_temp_max": 0 } ], "sdcard": true, "store_to_sdcard": false, "timelapse": false, "ipcam": true, "wifi_signal": -47, "wired_network": false, "nozzles": [ { "nozzle_type": "stainless_steel", "nozzle_diameter": "0.2" }, { "nozzle_type": "", "nozzle_diameter": "" } ], "nozzle_rack": [], "print_options": { "spaghetti_detector": false, "print_halt": false, "halt_print_sensitivity": "medium", "first_layer_inspector": false, "printing_monitor": false, "buildplate_marker_detector": false, "allow_skip_parts": false, "nozzle_clumping_detector": true, "nozzle_clumping_sensitivity": "medium", "pileup_detector": true, "pileup_sensitivity": "medium", "airprint_detector": true, "airprint_sensitivity": "medium", "auto_recovery_step_loss": true, "filament_tangle_detect": false }, "stg_cur": 0, "stg_cur_name": "Printing", "stg": [], "airduct_mode": 0, "speed_level": 2, "chamber_light": false, "active_extruder": 0, "ams_mapping": [], "ams_extruder_map": { "0": 0 }, "tray_now": 255, "ams_status_main": 0, "ams_status_sub": 0, "mc_print_sub_stage": 0, "last_ams_update": 1772696536.5817707, "printable_objects_count": 0, "cooling_fan_speed": 0, "big_fan1_speed": 0, "big_fan2_speed": 0, "heatbreak_fan_speed": 0, "firmware_version": "01.09.01.00", "developer_mode": null, "plate_cleared": false } ``` ### Screenshots <img width="873" height="727" alt="Image" src="https://github.com/user-attachments/assets/16e494ef-bea3-467b-8700-dc06b043839f" /> ### Additional Context _No response_ ### Checklist - [x] I have searched existing issues to ensure this bug hasn't already been reported - [x] I am using the latest version of Bambuddy - [x] My printer is set to LAN Only mode - [x] My printer has Developer Mode enabled
Author
Owner

@Dendrowen commented on GitHub (Mar 5, 2026):

bambuddy-support-20260305-084557.zip

<!-- gh-comment-id:4003019309 --> @Dendrowen commented on GitHub (Mar 5, 2026): [bambuddy-support-20260305-084557.zip](https://github.com/user-attachments/files/25760986/bambuddy-support-20260305-084557.zip)
Author
Owner

@Dendrowen commented on GitHub (Mar 5, 2026):

I have now started a print directly from bambu studio to see if that resolves the issue for now. The state in bambuddy has changed to "RUNNING"

<!-- gh-comment-id:4003116775 --> @Dendrowen commented on GitHub (Mar 5, 2026): I have now started a print directly from bambu studio to see if that resolves the issue for now. The state in bambuddy has changed to "RUNNING"
Author
Owner

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

Are you sure developer mode is enabled on your printers?

  "developer_mode": null,
<!-- gh-comment-id:4003132112 --> @maziggy commented on GitHub (Mar 5, 2026): Are you sure developer mode is enabled on your printers? "developer_mode": null,
Author
Owner

@Dendrowen commented on GitHub (Mar 5, 2026):

Yes, very sure. It has worked up until now. The printer has finished my 0.2mm high cube and I can now clear the plate again. The next print has already started from bambuddy.

It's still an issue of course, but this is a way to fix the problem for now.

<!-- gh-comment-id:4003183062 --> @Dendrowen commented on GitHub (Mar 5, 2026): Yes, very sure. It has worked up until now. The printer has finished my 0.2mm high cube and I can now clear the plate again. The next print has already started from bambuddy. It's still an issue of course, but this is a way to fix the problem for now.
Author
Owner

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

I've analyzed your logs and here's what I found:

What happened:

  1. At 07:43, the scheduler started queue item 124 (Big Dragon Split plate 2, 23MB file). FTP upload failed once (connection reset), retried successfully, and the print command was sent at 07:48.
  2. After that, the scheduler found 31-32 pending items every 30 seconds but never started another print for the entire remaining hour of logs.
  3. Bambuddy restarted 3 times during that hour (at 07:52, 08:07, and 08:42) — that's unusual. Were you manually restarting, or is something else restarting the container?
  4. MQTT was very unstable — frequent disconnects with "Disconnected shortly after request topic subscription."

Why the queue stalled:

The most likely explanation is that your Big Dragon Split print was still running on the P1S during most of the log window. The scheduler correctly skips items when the printer is busy. The log ends at 08:45:55 (when you enabled debug logging), and your printer status shows IDLE at 08:45:57. The print may have finished just before you captured the support package, and the scheduler hadn't had a chance to run its next 30-second check yet.

However, we don't have enough visibility to be 100% sure — the scheduler had no logging for why it skips items. I've just added diagnostic logging that will show exactly why items aren't starting (printer state, connection status, manual_start flag, etc.). This will be in the next build.

Could you help confirm:

  1. Was the Big Dragon print still running when you noticed the issue? Or had it already finished and sat idle for a while?
  2. Why did Bambuddy restart 3 times in one hour? Manual restarts, Docker auto-restart, or something else?
  3. Are any of your queue items set to "Manual Start"? (staged mode — requires you to click Start). If so, they'll show a play button instead of starting automatically.

Also noted: The greenlet_spawn error from #612 is confirmed in your logs (5 occurrences). This happens on each MQTT reconnect during RFID auto-assign. We're tracking that separately.

Next steps: Please pull the latest 0.2.2b2 — it will include the scheduler diagnostics. If the issue happens again, the logs will tell us exactly what's going on.

<!-- gh-comment-id:4003209358 --> @maziggy commented on GitHub (Mar 5, 2026): I've analyzed your logs and here's what I found: What happened: 1. At 07:43, the scheduler started queue item 124 (Big Dragon Split plate 2, 23MB file). FTP upload failed once (connection reset), retried successfully, and the print command was sent at 07:48. 2. After that, the scheduler found 31-32 pending items every 30 seconds but never started another print for the entire remaining hour of logs. 3. Bambuddy restarted 3 times during that hour (at 07:52, 08:07, and 08:42) — that's unusual. Were you manually restarting, or is something else restarting the container? 4. MQTT was very unstable — frequent disconnects with "Disconnected shortly after request topic subscription." Why the queue stalled: The most likely explanation is that your Big Dragon Split print was still running on the P1S during most of the log window. The scheduler correctly skips items when the printer is busy. The log ends at 08:45:55 (when you enabled debug logging), and your printer status shows IDLE at 08:45:57. The print may have finished just before you captured the support package, and the scheduler hadn't had a chance to run its next 30-second check yet. However, we don't have enough visibility to be 100% sure — the scheduler had no logging for why it skips items. I've just added diagnostic logging that will show exactly why items aren't starting (printer state, connection status, manual_start flag, etc.). This will be in the next build. Could you help confirm: 1. Was the Big Dragon print still running when you noticed the issue? Or had it already finished and sat idle for a while? 2. Why did Bambuddy restart 3 times in one hour? Manual restarts, Docker auto-restart, or something else? 3. Are any of your queue items set to "Manual Start"? (staged mode — requires you to click Start). If so, they'll show a play button instead of starting automatically. Also noted: The greenlet_spawn error from #612 is confirmed in your logs (5 occurrences). This happens on each MQTT reconnect during RFID auto-assign. We're tracking that separately. Next steps: Please pull the latest 0.2.2b2 — it will include the scheduler diagnostics. If the issue happens again, the logs will tell us exactly what's going on.
Author
Owner

@Dendrowen commented on GitHub (Mar 5, 2026):

  1. The print didn't start. I therefor decided to reboot the printer and the container.
  2. That might also be why there are multiple outages?
  3. My items a are set to stage mode, and I have an automation running that selects a print to start printing. The automation then puts it in to 'ASAP' mode through the API.

I'll install 0.2.2b2 for now an let you know when it happens again.

<!-- gh-comment-id:4003234146 --> @Dendrowen commented on GitHub (Mar 5, 2026): 1. The print didn't start. I therefor decided to reboot the printer and the container. 2. That might also be why there are multiple outages? 3. My items a are set to stage mode, and I have an automation running that selects a print to start printing. The automation then puts it in to 'ASAP' mode through the API. I'll install 0.2.2b2 for now an let you know when it happens again.
Author
Owner

@Dendrowen commented on GitHub (Mar 5, 2026):

I can't install 0.2.2b2 because there is no released docker file yet. (I guess?)

Pulling bambuddy ... error

ERROR: for bambuddy  manifest unknown
ERROR: manifest unknown
<!-- gh-comment-id:4003260176 --> @Dendrowen commented on GitHub (Mar 5, 2026): I can't install 0.2.2b2 because there is no released docker file yet. (I guess?) ``` Pulling bambuddy ... error ERROR: for bambuddy manifest unknown ERROR: manifest unknown ```
Author
Owner

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

cd to your bambuddy folder and do a

git pull && git checkout 0.2.2b2 && git pull && docker compose down && docker compose up --build -d

<!-- gh-comment-id:4003271412 --> @maziggy commented on GitHub (Mar 5, 2026): cd to your bambuddy folder and do a git pull && git checkout 0.2.2b2 && git pull && docker compose down && docker compose up --build -d
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#398
No description provided.