[GH-ISSUE #810] [Bug Report] Cannot upload source file #543

Closed
opened 2026-05-06 12:30:45 +02:00 by BreizhHardware · 4 comments

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

Originally assigned to: @maziggy on GitHub.

Cannot upload source file

Reporter Contact

Email: jan.malec@gmail.com

System Information
{
  "generated_at": "2026-03-25T12:46:07.982183",
  "app": {
    "version": "0.2.2.1",
    "debug_mode": false
  },
  "system": {
    "platform": "Linux",
    "platform_release": "6.8.12-19-pve",
    "platform_version": "#1 SMP PREEMPT_DYNAMIC PMX 6.8.12-19 (2026-02-14T15:58Z)",
    "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": 27,
    "archives_completed": 22,
    "printers_total": 1,
    "filaments_total": 0,
    "projects_total": 0,
    "smart_plugs_total": 1
  },
  "printers": [
    {
      "index": 1,
      "model": "A1 Mini",
      "nozzle_count": 1,
      "is_active": true,
      "mqtt_connected": true,
      "state": "FINISH",
      "firmware_version": "01.07.02.00",
      "wifi_signal": -38,
      "reachable": true,
      "ams_unit_count": 1,
      "ams_tray_count": 3,
      "has_vt_tray": true,
      "external_camera_configured": true,
      "plate_detection_enabled": false,
      "hms_error_count": 1,
      "developer_mode": null,
      "nozzle_rack_count": 0
    }
  ],
  "settings": {
    "auth_enabled": "false",
    "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.2",
    "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": "eu",
    "time_format": "24h",
    "default_printer_id": "1",
    "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": "true",
    "library_archive_mode": "always",
    "library_disk_warning_gb": "4.0",
    "camera_view_mode": "embedded",
    "preferred_slicer": "bambu_studio",
    "prometheus_enabled": "false",
    "dark_accent": "purple",
    "dark_style": "classic",
    "dark_background": "oled",
    "low_stock_threshold": "20.0",
    "advanced_auth_enabled": "false",
    "smtp_auth_enabled": "true",
    "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": true
    }
  },
  "database_health": {
    "journal_mode": "wal",
    "quick_check": "ok",
    "db_size_bytes": 1155072,
    "wal_size_bytes": 4140632
  },
  "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": 4571184,
    "size_formatted": "4.4 MB"
  },
  "network": {
    "interface_count": 1,
    "interfaces": [
      {
        "name": "eth0",
        "subnet": "x.x.1.0/24"
      }
    ]
  },
  "websockets": {
    "active_connections": 1
  }
}

Logs (sanitized): bambuddy.log


Submitted via BamBuddy Bug Report

Originally created by @maziggy on GitHub (Mar 25, 2026). Original GitHub issue: https://github.com/maziggy/bambuddy/issues/810 Originally assigned to: @maziggy on GitHub. Cannot upload source file <details> <summary>Reporter Contact</summary> Email: jan.malec@gmail.com </details> <details> <summary>System Information</summary> ```json { "generated_at": "2026-03-25T12:46:07.982183", "app": { "version": "0.2.2.1", "debug_mode": false }, "system": { "platform": "Linux", "platform_release": "6.8.12-19-pve", "platform_version": "#1 SMP PREEMPT_DYNAMIC PMX 6.8.12-19 (2026-02-14T15:58Z)", "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": 27, "archives_completed": 22, "printers_total": 1, "filaments_total": 0, "projects_total": 0, "smart_plugs_total": 1 }, "printers": [ { "index": 1, "model": "A1 Mini", "nozzle_count": 1, "is_active": true, "mqtt_connected": true, "state": "FINISH", "firmware_version": "01.07.02.00", "wifi_signal": -38, "reachable": true, "ams_unit_count": 1, "ams_tray_count": 3, "has_vt_tray": true, "external_camera_configured": true, "plate_detection_enabled": false, "hms_error_count": 1, "developer_mode": null, "nozzle_rack_count": 0 } ], "settings": { "auth_enabled": "false", "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.2", "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": "eu", "time_format": "24h", "default_printer_id": "1", "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": "true", "library_archive_mode": "always", "library_disk_warning_gb": "4.0", "camera_view_mode": "embedded", "preferred_slicer": "bambu_studio", "prometheus_enabled": "false", "dark_accent": "purple", "dark_style": "classic", "dark_background": "oled", "low_stock_threshold": "20.0", "advanced_auth_enabled": "false", "smtp_auth_enabled": "true", "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": true } }, "database_health": { "journal_mode": "wal", "quick_check": "ok", "db_size_bytes": 1155072, "wal_size_bytes": 4140632 }, "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": 4571184, "size_formatted": "4.4 MB" }, "network": { "interface_count": 1, "interfaces": [ { "name": "eth0", "subnet": "x.x.1.0/24" } ] }, "websockets": { "active_connections": 1 } } ``` </details> **Logs (sanitized):** [bambuddy.log](https://raw.githubusercontent.com/maziggy/bambuddy/bug-report-assets/logs/1926105727474fc78aeeed01a868489d.log) --- *Submitted via BamBuddy Bug Report*
Author
Owner

@janmalec commented on GitHub (Mar 25, 2026):

#808 was closed because developer assumed I uploaded the code instead of source file. This time I actually uploaded the source 3mf and got the same error. Also you might want to take a look at the log before closing issues as it does not seem to be related to file type.

<!-- gh-comment-id:4125953761 --> @janmalec commented on GitHub (Mar 25, 2026): #808 was closed because developer assumed I uploaded the code instead of source file. This time I actually uploaded the source 3mf and got the same error. Also you might want to take a look at the log before closing issues as it does not seem to be related to file type.
Author
Owner

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

Why do you think I didn't check your logs? Do you have a glass ball?

Logs don't have any corresponding messages. You need to trigger the error during logs collection, as the help text in support bubble shows.

<!-- gh-comment-id:4126042363 --> @maziggy commented on GitHub (Mar 25, 2026): Why do you think I didn't check your logs? Do you have a glass ball? Logs don't have any corresponding messages. You need to trigger the error during logs collection, as the help text in support bubble shows.
Author
Owner

@janmalec commented on GitHub (Mar 25, 2026):

Hello,

I believe the first issue that you have closed because we didn't provide the support package in time had useful logs, especially this part:

~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/pathlib/_local.py", line 385, in relative_to raise ValueError(f"{str(self)!r} is not in the subpath of {str(other)!r}") ValueError: '/app/source/Fanart_Grinch.gcode.3mf' is not in the subpath of '/app/data'

So it appears as it is expecting the .3mf file to be in subpath of /app/data, but it is being uploaded in /app/source. I'm not sure why this was not captured during automatic log collection, as I did trigger the bug while the debug mode was running. I'm happy to do more testing and provide more info if missing.

<!-- gh-comment-id:4126373034 --> @janmalec commented on GitHub (Mar 25, 2026): Hello, I believe the first issue that you have closed because we didn't provide the support package in time had useful logs, especially this part: `~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/pathlib/_local.py", line 385, in relative_to raise ValueError(f"{str(self)!r} is not in the subpath of {str(other)!r}") ValueError: '/app/source/Fanart_Grinch.gcode.3mf' is not in the subpath of '/app/data'` So it appears as it is expecting the .3mf file to be in subpath of /app/data, but it is being uploaded in /app/source. I'm not sure why this was not captured during automatic log collection, as I did trigger the bug while the debug mode was running. I'm happy to do more testing and provide more info if missing.
Author
Owner

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

That doesn't help me. I need more infos -> debug logs. But please don't past them here in the issue. I don't spent half an hour to format it so that it is readable.

So, if you want me to debug your problem, please provide the requested information.

<!-- gh-comment-id:4126409172 --> @maziggy commented on GitHub (Mar 25, 2026): That doesn't help me. I need more infos -> debug logs. But please don't past them here in the issue. I don't spent half an hour to format it so that it is readable. So, if you want me to debug your problem, please provide the requested information.
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#543
No description provided.