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

[GH-ISSUE #670] [Bug Report] im having trouble with uploading some .gcode.3mf files to Bambuddy, it seems lik #440

Closed
opened 2026-05-07 00:10:10 +02:00 by BreizhHardware · 11 comments

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

Originally assigned to: @maziggy on GitHub.

im having trouble with uploading some .gcode.3mf files to Bambuddy, it seems like its larger files its having trouble with, but not massive ones were talking like 2.5mb

System Information
{
  "generated_at": "2026-03-11T10:59:11.302394",
  "app": {
    "version": "0.2.2b3",
    "debug_mode": false
  },
  "system": {
    "platform": "Linux",
    "platform_release": "6.8.0-100-generic",
    "platform_version": "#100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026",
    "architecture": "x86_64",
    "python_version": "3.13.12"
  },
  "environment": {
    "docker": true,
    "data_dir": "/app/data",
    "log_dir": "/app/logs",
    "timezone": "Etc/UTC"
  },
  "database": {
    "archives_total": 1,
    "archives_completed": 0,
    "printers_total": 1,
    "filaments_total": 0,
    "projects_total": 0,
    "smart_plugs_total": 0
  },
  "printers": [
    {
      "index": 1,
      "model": "X1C",
      "nozzle_count": 1,
      "is_active": true,
      "mqtt_connected": true,
      "state": "RUNNING",
      "firmware_version": "01.11.02.00",
      "wifi_signal": -51,
      "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": 2,
      "developer_mode": true,
      "nozzle_rack_count": 1
    }
  ],
  "settings": {
    "auth_enabled": "true",
    "setup_completed": "true",
    "auto_archive": "true",
    "save_thumbnails": "true",
    "capture_finish_photo": "true",
    "default_filament_cost": "25.0",
    "currency": "GBP",
    "energy_cost_per_kwh": "0.15",
    "energy_tracking_mode": "total",
    "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",
    "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": "embedded",
    "preferred_slicer": "bambu_studio",
    "prometheus_enabled": "false",
    "dark_accent": "blue",
    "dark_style": "classic"
  },
  "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": 368640,
    "wal_size_bytes": 477952
  },
  "dependencies": {
    "fastapi": "0.135.1",
    "uvicorn": "0.41.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": 109374,
    "size_formatted": "106.8 KB"
  },
  "network": {
    "interface_count": 1,
    "interfaces": [
      {
        "name": "eth0",
        "subnet": "x.x.0.0/16"
      }
    ]
  },
  "websockets": {
    "active_connections": 1
  }
}

Logs (sanitized): bambuddy.log


Submitted via BamBuddy Bug Report

Originally created by @maziggy on GitHub (Mar 11, 2026). Original GitHub issue: https://github.com/maziggy/bambuddy/issues/670 Originally assigned to: @maziggy on GitHub. im having trouble with uploading some .gcode.3mf files to Bambuddy, it seems like its larger files its having trouble with, but not massive ones were talking like 2.5mb <details> <summary>System Information</summary> ```json { "generated_at": "2026-03-11T10:59:11.302394", "app": { "version": "0.2.2b3", "debug_mode": false }, "system": { "platform": "Linux", "platform_release": "6.8.0-100-generic", "platform_version": "#100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026", "architecture": "x86_64", "python_version": "3.13.12" }, "environment": { "docker": true, "data_dir": "/app/data", "log_dir": "/app/logs", "timezone": "Etc/UTC" }, "database": { "archives_total": 1, "archives_completed": 0, "printers_total": 1, "filaments_total": 0, "projects_total": 0, "smart_plugs_total": 0 }, "printers": [ { "index": 1, "model": "X1C", "nozzle_count": 1, "is_active": true, "mqtt_connected": true, "state": "RUNNING", "firmware_version": "01.11.02.00", "wifi_signal": -51, "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": 2, "developer_mode": true, "nozzle_rack_count": 1 } ], "settings": { "auth_enabled": "true", "setup_completed": "true", "auto_archive": "true", "save_thumbnails": "true", "capture_finish_photo": "true", "default_filament_cost": "25.0", "currency": "GBP", "energy_cost_per_kwh": "0.15", "energy_tracking_mode": "total", "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", "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": "embedded", "preferred_slicer": "bambu_studio", "prometheus_enabled": "false", "dark_accent": "blue", "dark_style": "classic" }, "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": 368640, "wal_size_bytes": 477952 }, "dependencies": { "fastapi": "0.135.1", "uvicorn": "0.41.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": 109374, "size_formatted": "106.8 KB" }, "network": { "interface_count": 1, "interfaces": [ { "name": "eth0", "subnet": "x.x.0.0/16" } ] }, "websockets": { "active_connections": 1 } } ``` </details> **Logs (sanitized):** [bambuddy.log](https://raw.githubusercontent.com/maziggy/bambuddy/bug-report-assets/logs/2887cc5fc60040cbb9749ccc04123d7b.log) --- *Submitted via BamBuddy Bug Report*
BreizhHardware 2026-05-07 00:10:10 +02:00
Author
Owner

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

Need more infos. What does "uploading some .gcode.3mf files to Bambuddy" exatly mean? Please describe your workflow.

<!-- gh-comment-id:4038569190 --> @maziggy commented on GitHub (Mar 11, 2026): Need more infos. What does "uploading some .gcode.3mf files to Bambuddy" exatly mean? Please describe your workflow.
Author
Owner

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

Also the logs don't show any uploads. Please generate a support package -> https://wiki.bambuddy.cool/features/system-info/?h=debug#enable-debug-logging

<!-- gh-comment-id:4038582589 --> @maziggy commented on GitHub (Mar 11, 2026): Also the logs don't show any uploads. Please generate a support package -> https://wiki.bambuddy.cool/features/system-info/?h=debug#enable-debug-logging
Author
Owner

@Besley-0 commented on GitHub (Mar 11, 2026):

Image

bambuddy-support-20260311-113702.zip

when trying to upload a .gcode.3mf file into the archives i get this error (as shown in image) i have managed to upload 1 file that was only 300kb the others are much larger (roughly 2.5mb)

<!-- gh-comment-id:4038658107 --> @Besley-0 commented on GitHub (Mar 11, 2026): <img width="626" height="517" alt="Image" src="https://github.com/user-attachments/assets/45ac8390-c293-451a-826c-734703abe6ac" /> [bambuddy-support-20260311-113702.zip](https://github.com/user-attachments/files/25900327/bambuddy-support-20260311-113702.zip) when trying to upload a .gcode.3mf file into the archives i get this error (as shown in image) i have managed to upload 1 file that was only 300kb the others are much larger (roughly 2.5mb)
Author
Owner

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

Port 8000 is already in use on your system!

OSError: [Errno 98] error while attempting to bind on address ('[IP]', 8000): [errno 98] address already in use

You also need to check your folder permissions.

2026-03-11 10:55:09,845 ERROR [backend.app.services.virtual_printer.manager] Cannot create directory /app/data/virtual_printer/uploads: Permission denied. For Docker: ensure
the data volume is writable by the container user. For bare metal: run 'sudo chown -R $(whoami) /app/data/virtual_printer'
2026-03-11 10:55:09,846 ERROR [backend.app.services.virtual_printer.manager] Cannot create directory /app/data/virtual_printer/certs: Permission denied. For Docker: ensure th
e data volume is writable by the container user. For bare metal: run 'sudo chown -R $(whoami) /app/data/virtual_printer'

<!-- gh-comment-id:4038745898 --> @maziggy commented on GitHub (Mar 11, 2026): Port 8000 is already in use on your system! >OSError: [Errno 98] error while attempting to bind on address ('[IP]', 8000): [errno 98] address already in use You also need to check your folder permissions. >2026-03-11 10:55:09,845 ERROR [backend.app.services.virtual_printer.manager] Cannot create directory /app/data/virtual_printer/uploads: Permission denied. For Docker: ensure the data volume is writable by the container user. For bare metal: run 'sudo chown -R $(whoami) /app/data/virtual_printer' >2026-03-11 10:55:09,846 ERROR [backend.app.services.virtual_printer.manager] Cannot create directory /app/data/virtual_printer/certs: Permission denied. For Docker: ensure th e data volume is writable by the container user. For bare metal: run 'sudo chown -R $(whoami) /app/data/virtual_printer'
Author
Owner

@Besley-0 commented on GitHub (Mar 11, 2026):

Image Image

issue is still persisting after amending the Folder permissions and sorting the port issue

<!-- gh-comment-id:4039267106 --> @Besley-0 commented on GitHub (Mar 11, 2026): <img width="675" height="540" alt="Image" src="https://github.com/user-attachments/assets/4b3d9906-8f60-4fbf-8095-8ef29d9887f4" /> <img width="1908" height="1063" alt="Image" src="https://github.com/user-attachments/assets/f8433f99-3603-4c9c-89f6-32ed5f3aabfd" /> issue is still persisting after amending the Folder permissions and sorting the port issue
Author
Owner

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

Need new logs please.

<!-- gh-comment-id:4039356669 --> @maziggy commented on GitHub (Mar 11, 2026): Need new logs please.
Author
Owner

@Besley-0 commented on GitHub (Mar 11, 2026):

bambuddy-support-20260311-140938.zip

<!-- gh-comment-id:4039505965 --> @Besley-0 commented on GitHub (Mar 11, 2026): [bambuddy-support-20260311-140938.zip](https://github.com/user-attachments/files/25903990/bambuddy-support-20260311-140938.zip)
Author
Owner

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

Same errors as before.

2026-03-11 10:55:09,845 ERROR [backend.app.services.virtual_printer.manager] Cannot create directory /app/data/virtual_printer/uploads: Permission denied. For Docker: ensure
the data volume is writable by the container user. For bare metal: run 'sudo chown -R $(whoami) /app/data/virtual_printer'
2026-03-11 10:55:09,846 ERROR [backend.app.services.virtual_printer.manager] Cannot create directory /app/data/virtual_printer/certs: Permission denied. For Docker: ensure th
e data volume is writable by the container user. For bare metal: run 'sudo chown -R $(whoami) /app/data/virtual_printer'

OSError: [Errno 98] error while attempting to bind on address ('[IP]', 8000): [errno 98] address already in use

<!-- gh-comment-id:4039535574 --> @maziggy commented on GitHub (Mar 11, 2026): Same errors as before. >2026-03-11 10:55:09,845 ERROR [backend.app.services.virtual_printer.manager] Cannot create directory /app/data/virtual_printer/uploads: Permission denied. For Docker: ensure the data volume is writable by the container user. For bare metal: run 'sudo chown -R $(whoami) /app/data/virtual_printer' >2026-03-11 10:55:09,846 ERROR [backend.app.services.virtual_printer.manager] Cannot create directory /app/data/virtual_printer/certs: Permission denied. For Docker: ensure th e data volume is writable by the container user. For bare metal: run 'sudo chown -R $(whoami) /app/data/virtual_printer' >OSError: [Errno 98] error while attempting to bind on address ('[IP]', 8000): [errno 98] address already in use
Author
Owner

@Besley-0 commented on GitHub (Mar 11, 2026):

These errors are timestamped before I implimented a fix, there are no instances of this error after 12.00.00 (around when i fixed the port and permissions issue)

<!-- gh-comment-id:4039633269 --> @Besley-0 commented on GitHub (Mar 11, 2026): These errors are timestamped before I implimented a fix, there are no instances of this error after 12.00.00 (around when i fixed the port and permissions issue)
Author
Owner

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

I guess there's something wrgong with your network setup.

[Errno -3] Temporary failure in name resolution
426 Failure reading network stream. (error_temp)

First of all you must resolve your DNS issue.

Tell me something about your setup:

  • How did you install Bambuddy?
  • What OS is running on your Docker host?
  • Do you modified docker-compose.yml?
  • show me the output of "ifconfig" from your Docker host
<!-- gh-comment-id:4039733151 --> @maziggy commented on GitHub (Mar 11, 2026): I guess there's something wrgong with your network setup. >[Errno -3] Temporary failure in name resolution >426 Failure reading network stream. (error_temp) First of all you must resolve your DNS issue. Tell me something about your setup: - How did you install Bambuddy? - What OS is running on your Docker host? - Do you modified docker-compose.yml? - show me the output of "ifconfig" from your Docker host
Author
Owner

@Besley-0 commented on GitHub (Mar 11, 2026):

Appolgies ive worked out my issue, The connection for our Bambuddy server is proxied through nginx. but nginx has a default upload limit of 1mb. ive changed this and it is now working.

Thank you for your help

<!-- gh-comment-id:4039938518 --> @Besley-0 commented on GitHub (Mar 11, 2026): Appolgies ive worked out my issue, The connection for our Bambuddy server is proxied through nginx. but nginx has a default upload limit of 1mb. ive changed this and it is now working. Thank you for your help
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#440
No description provided.