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

[GH-ISSUE #955] [Bug Report] P1S printer showing offline, connection with Bambu Studio works #663

Closed
opened 2026-05-07 00:12:31 +02:00 by BreizhHardware · 8 comments

Originally created by @maziggy on GitHub (Apr 12, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/955

Originally assigned to: @maziggy on GitHub.

P1S printer showing offline, connection with Bambu Studio works

System Information
{
  "generated_at": "2026-04-12T19:58:01.975490",
  "app": {
    "version": "0.2.2.2",
    "debug_mode": false
  },
  "system": {
    "platform": "Linux",
    "platform_release": "6.8.0-106-generic",
    "platform_version": "#106-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar  6 07:58:08 UTC 2026",
    "architecture": "x86_64",
    "python_version": "3.13.12"
  },
  "environment": {
    "docker": true,
    "data_dir": "/app/data",
    "log_dir": "/app/logs",
    "timezone": "Europe/Berlin"
  },
  "database": {
    "archives_total": 13,
    "archives_completed": 6,
    "printers_total": 3,
    "filaments_total": 0,
    "projects_total": 1,
    "smart_plugs_total": 0
  },
  "printers": [
    {
      "index": 1,
      "model": "P1S",
      "nozzle_count": 1,
      "is_active": true,
      "mqtt_connected": false,
      "state": "unknown",
      "firmware_version": null,
      "wifi_signal": null,
      "reachable": false,
      "ams_unit_count": 0,
      "ams_tray_count": 0,
      "has_vt_tray": false,
      "external_camera_configured": false,
      "plate_detection_enabled": false,
      "hms_error_count": 0,
      "developer_mode": null,
      "nozzle_rack_count": 0
    },
    {
      "index": 2,
      "model": "P1P",
      "nozzle_count": 1,
      "is_active": true,
      "mqtt_connected": true,
      "state": "FINISH",
      "firmware_version": "01.10.00.00",
      "wifi_signal": -45,
      "reachable": true,
      "ams_unit_count": 1,
      "ams_tray_count": 4,
      "has_vt_tray": true,
      "external_camera_configured": false,
      "plate_detection_enabled": false,
      "hms_error_count": 0,
      "developer_mode": null,
      "nozzle_rack_count": 0
    },
    {
      "index": 3,
      "model": "P1S",
      "nozzle_count": 1,
      "is_active": true,
      "mqtt_connected": false,
      "state": "unknown",
      "firmware_version": null,
      "wifi_signal": null,
      "reachable": false,
      "ams_unit_count": 0,
      "ams_tray_count": 0,
      "has_vt_tray": false,
      "external_camera_configured": false,
      "plate_detection_enabled": false,
      "hms_error_count": 0,
      "developer_mode": null,
      "nozzle_rack_count": 0
    }
  ],
  "settings": {
    "advanced_auth_enabled": "false",
    "smtp_auth_enabled": "true",
    "auth_enabled": "true",
    "setup_completed": "true",
    "auto_archive": "true",
    "save_thumbnails": "true",
    "capture_finish_photo": "true",
    "default_filament_cost": "25.0",
    "currency": "EUR",
    "energy_cost_per_kwh": "0.15",
    "energy_tracking_mode": "total",
    "disable_filament_warnings": "false",
    "check_updates": "true",
    "check_printer_firmware": "true",
    "include_beta_updates": "false",
    "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",
    "queue_drying_enabled": "false",
    "queue_drying_block": "false",
    "ambient_drying_enabled": "false",
    "drying_presets": "",
    "per_printer_mapping_expanded": "true",
    "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",
    "user_notifications_enabled": "true",
    "language": "en",
    "debug_logging_enabled": "false",
    "debug_logging_enabled_at": ""
  },
  "docker": {
    "container_memory_limit_bytes": null,
    "container_memory_limit_formatted": null,
    "network_mode_hint": "host"
  },
  "virtual_printers": [],
  "integrations": {
    "notification_providers": [],
    "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": 516096,
    "wal_size_bytes": 4128272
  },
  "dependencies": {
    "fastapi": "0.135.2",
    "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.6",
    "opencv-python-headless": "4.13.0.92",
    "numpy": "2.4.3"
  },
  "log_file": {
    "size_bytes": 1340579,
    "size_formatted": "1.3 MB"
  },
  "network": {
    "interface_count": 2,
    "interfaces": [
      {
        "name": "eno1",
        "subnet": "x.x.0.0/24"
      },
      {
        "name": "tailscale0",
        "subnet": "x.x.22.121/32"
      }
    ]
  },
  "websockets": {
    "active_connections": 1
  }
}

Logs (sanitized): bambuddy.log


Submitted via BamBuddy Bug Report

Originally created by @maziggy on GitHub (Apr 12, 2026). Original GitHub issue: https://github.com/maziggy/bambuddy/issues/955 Originally assigned to: @maziggy on GitHub. P1S printer showing offline, connection with Bambu Studio works <details> <summary>System Information</summary> ```json { "generated_at": "2026-04-12T19:58:01.975490", "app": { "version": "0.2.2.2", "debug_mode": false }, "system": { "platform": "Linux", "platform_release": "6.8.0-106-generic", "platform_version": "#106-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 6 07:58:08 UTC 2026", "architecture": "x86_64", "python_version": "3.13.12" }, "environment": { "docker": true, "data_dir": "/app/data", "log_dir": "/app/logs", "timezone": "Europe/Berlin" }, "database": { "archives_total": 13, "archives_completed": 6, "printers_total": 3, "filaments_total": 0, "projects_total": 1, "smart_plugs_total": 0 }, "printers": [ { "index": 1, "model": "P1S", "nozzle_count": 1, "is_active": true, "mqtt_connected": false, "state": "unknown", "firmware_version": null, "wifi_signal": null, "reachable": false, "ams_unit_count": 0, "ams_tray_count": 0, "has_vt_tray": false, "external_camera_configured": false, "plate_detection_enabled": false, "hms_error_count": 0, "developer_mode": null, "nozzle_rack_count": 0 }, { "index": 2, "model": "P1P", "nozzle_count": 1, "is_active": true, "mqtt_connected": true, "state": "FINISH", "firmware_version": "01.10.00.00", "wifi_signal": -45, "reachable": true, "ams_unit_count": 1, "ams_tray_count": 4, "has_vt_tray": true, "external_camera_configured": false, "plate_detection_enabled": false, "hms_error_count": 0, "developer_mode": null, "nozzle_rack_count": 0 }, { "index": 3, "model": "P1S", "nozzle_count": 1, "is_active": true, "mqtt_connected": false, "state": "unknown", "firmware_version": null, "wifi_signal": null, "reachable": false, "ams_unit_count": 0, "ams_tray_count": 0, "has_vt_tray": false, "external_camera_configured": false, "plate_detection_enabled": false, "hms_error_count": 0, "developer_mode": null, "nozzle_rack_count": 0 } ], "settings": { "advanced_auth_enabled": "false", "smtp_auth_enabled": "true", "auth_enabled": "true", "setup_completed": "true", "auto_archive": "true", "save_thumbnails": "true", "capture_finish_photo": "true", "default_filament_cost": "25.0", "currency": "EUR", "energy_cost_per_kwh": "0.15", "energy_tracking_mode": "total", "disable_filament_warnings": "false", "check_updates": "true", "check_printer_firmware": "true", "include_beta_updates": "false", "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", "queue_drying_enabled": "false", "queue_drying_block": "false", "ambient_drying_enabled": "false", "drying_presets": "", "per_printer_mapping_expanded": "true", "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", "user_notifications_enabled": "true", "language": "en", "debug_logging_enabled": "false", "debug_logging_enabled_at": "" }, "docker": { "container_memory_limit_bytes": null, "container_memory_limit_formatted": null, "network_mode_hint": "host" }, "virtual_printers": [], "integrations": { "notification_providers": [], "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": 516096, "wal_size_bytes": 4128272 }, "dependencies": { "fastapi": "0.135.2", "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.6", "opencv-python-headless": "4.13.0.92", "numpy": "2.4.3" }, "log_file": { "size_bytes": 1340579, "size_formatted": "1.3 MB" }, "network": { "interface_count": 2, "interfaces": [ { "name": "eno1", "subnet": "x.x.0.0/24" }, { "name": "tailscale0", "subnet": "x.x.22.121/32" } ] }, "websockets": { "active_connections": 1 } } ``` </details> **Logs (sanitized):** [bambuddy.log](https://raw.githubusercontent.com/maziggy/bambuddy/bug-report-assets/logs/e9fe015f27774afa9e19dae128615640.log) --- *Submitted via BamBuddy Bug Report*
BreizhHardware 2026-05-07 00:12:31 +02:00
  • closed this issue
  • added the
    invalid
    label
Author
Owner

@maziggy commented on GitHub (Apr 12, 2026):

You need to start a print from Bambuddy while the debug logs are collected.

<!-- gh-comment-id:4232187535 --> @maziggy commented on GitHub (Apr 12, 2026): You need to start a print from Bambuddy while the debug logs are collected.
Author
Owner

@tom5677 commented on GitHub (Apr 13, 2026):

Cannot start print, because printers are offline. Tried to switch off/on the printers. And do a reconnect for the printer in bambuddy. Unfortunately no change.

Image
<!-- gh-comment-id:4236096225 --> @tom5677 commented on GitHub (Apr 13, 2026): Cannot start print, because printers are offline. Tried to switch off/on the printers. And do a reconnect for the printer in bambuddy. Unfortunately no change. <img width="1712" height="503" alt="Image" src="https://github.com/user-attachments/assets/19001407-f058-4bc9-9a06-ff26ab5702fe" />
Author
Owner

@maziggy commented on GitHub (Apr 13, 2026):

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

<!-- gh-comment-id:4236109231 --> @maziggy commented on GitHub (Apr 13, 2026): Please upload a support package -> https://wiki.bambuddy.cool/features/system-info/?h=debug#enable-debug-logging
Author
Owner

@tom5677 commented on GitHub (Apr 13, 2026):

Here's the support package. Thx

bambuddy-support-20260413-161726.zip

<!-- gh-comment-id:4237084388 --> @tom5677 commented on GitHub (Apr 13, 2026): Here's the support package. Thx [bambuddy-support-20260413-161726.zip](https://github.com/user-attachments/files/26678049/bambuddy-support-20260413-161726.zip)
Author
Owner

@maziggy commented on GitHub (Apr 13, 2026):

Thanks for the support package. I see something diagnostic in the MQTT log:

05:00:50,597 MQTT disconnected: rc=Keep alive timeout
05:00:50,598 MQTT disconnected: rc=Keep alive timeout
05:00:55,905 MQTT disconnected: rc=Keep alive timeout
05:00:55,906 MQTT disconnected: rc=Keep alive timeout

The same disconnect event is firing twice, 1 ms apart, repeatedly. That's the classic signature of two Bambuddy printer entries sharing the same serial number. Bambu P1-series LAN MQTT only allows one session per serial, so each connect kicks the other off — they flap forever and neither stays online. Your P1P (different serial) is unaffected and stays connected, which matches the pattern.

Could you please check:

  1. Settings → Printers — compare the Serial Number field on the two P1S entries. Are they identical? (Easy to miss when you duplicate a printer and only update IP + access code.)
  2. If the serials really differ, double-check the access code on each P1S — a wrong access code can also produce "Unspecified error" disconnects.
  3. As a quick test: delete one of the two P1S entries. If the remaining one then connects, it confirms the duplicate-serial theory.

Also worth updating — you're on v0.2.2.2, a few versions behind — 0.2.3b3 has many fixes.

<!-- gh-comment-id:4237132341 --> @maziggy commented on GitHub (Apr 13, 2026): Thanks for the support package. I see something diagnostic in the MQTT log: 05:00:50,597 MQTT disconnected: rc=Keep alive timeout 05:00:50,598 MQTT disconnected: rc=Keep alive timeout 05:00:55,905 MQTT disconnected: rc=Keep alive timeout 05:00:55,906 MQTT disconnected: rc=Keep alive timeout The same disconnect event is firing twice, 1 ms apart, repeatedly. That's the classic signature of two Bambuddy printer entries sharing the same serial number. Bambu P1-series LAN MQTT only allows one session per serial, so each connect kicks the other off — they flap forever and neither stays online. Your P1P (different serial) is unaffected and stays connected, which matches the pattern. Could you please check: 1. Settings → Printers — compare the Serial Number field on the two P1S entries. Are they identical? (Easy to miss when you duplicate a printer and only update IP + access code.) 2. If the serials really differ, double-check the access code on each P1S — a wrong access code can also produce "Unspecified error" disconnects. 3. As a quick test: delete one of the two P1S entries. If the remaining one then connects, it confirms the duplicate-serial theory. Also worth updating — you're on v0.2.2.2, a few versions behind — 0.2.3b3 has many fixes.
Author
Owner

@tom5677 commented on GitHub (Apr 13, 2026):

Now I've tried to update to new version (running in docker on Ubuntu. Initally installed via docker pre-built image; then tried to update with copmpose pull; no success. then done the built from source path. still v0.2.2.2)
But I've fixed the initial printer offline issue: the IP addess was changed... (most likely via DHCP). Sorry for the confusion.

<!-- gh-comment-id:4239722056 --> @tom5677 commented on GitHub (Apr 13, 2026): Now I've tried to update to new version (running in docker on Ubuntu. Initally installed via docker pre-built image; then tried to update with copmpose pull; no success. then done the built from source path. still v0.2.2.2) But I've fixed the initial printer offline issue: the IP addess was changed... (most likely via DHCP). Sorry for the confusion.
Author
Owner

@tom5677 commented on GitHub (Apr 13, 2026):

now I'm on 0.2.3b3. Thx

<!-- gh-comment-id:4239804670 --> @tom5677 commented on GitHub (Apr 13, 2026): now I'm on 0.2.3b3. Thx
Author
Owner

@maziggy commented on GitHub (Apr 14, 2026):


If you find Bambuddy useful, please consider giving it a on GitHub — it helps others discover the project!

<!-- gh-comment-id:4241670546 --> @maziggy commented on GitHub (Apr 14, 2026): ----- If you find Bambuddy useful, please consider giving it a ⭐ on [GitHub](https://github.com/maziggy/bambuddy) — it helps others discover the project!
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#663
No description provided.