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

[GH-ISSUE #934] [Bug Report] I am trying to enable a virtual printer. But the .cert file is not in my docker #644

Closed
opened 2026-05-07 00:12:22 +02:00 by BreizhHardware · 1 comment

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

Originally assigned to: @maziggy on GitHub.

I am trying to enable a virtual printer. But the .cert file is not in my docker fs. There is nothing at all in bambuddy:/app/data/virtual_printer.
The virtual printer is activated but the small light is not lit. (which I suppose is to indicate the connection state). My first attempt was without user authentification, now I have this option enabled. But this does not solve the problem.

Reporter Contact

Email: info@handcraft-it.de

System Information
{
  "generated_at": "2026-04-10T10:33:07.950856",
  "app": {
    "version": "0.2.2.2",
    "debug_mode": false
  },
  "system": {
    "platform": "Linux",
    "platform_release": "6.17.4-2-pve",
    "platform_version": "#1 SMP PREEMPT_DYNAMIC PMX 6.17.4-2 (2025-12-19T07:49Z)",
    "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": 0,
    "archives_completed": 0,
    "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": "IDLE",
      "firmware_version": "01.04.00.00",
      "wifi_signal": -44,
      "reachable": true,
      "ams_unit_count": 1,
      "ams_tray_count": 2,
      "has_vt_tray": true,
      "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": "12.0",
    "currency": "EUR",
    "energy_cost_per_kwh": "0.37",
    "energy_tracking_mode": "total",
    "disable_filament_warnings": "false",
    "check_updates": "true",
    "check_printer_firmware": "false",
    "include_beta_updates": "false",
    "notification_language": "de",
    "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": "false",
    "date_format": "system",
    "time_format": "system",
    "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": "5.0",
    "camera_view_mode": "window",
    "preferred_slicer": "orcaslicer",
    "prometheus_enabled": "false",
    "user_notifications_enabled": "true",
    "spoolman_enabled": "false",
    "spoolman_sync_mode": "auto",
    "spoolman_disable_weight_sync": "false",
    "spoolman_report_partial_usage": "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": [
    {
      "index": 1,
      "enabled": true,
      "mode": "print_queue",
      "model": "N1",
      "model_name": "A1 Mini",
      "has_target_printer": true,
      "has_bind_ip": true,
      "running": false,
      "pending_files": 0
    }
  ],
  "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": 4096,
    "wal_size_bytes": 1829312
  },
  "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": 37688,
    "size_formatted": "36.8 KB"
  },
  "network": {
    "interface_count": 1,
    "interfaces": [
      {
        "name": "eth0",
        "subnet": "x.x.12.0/24"
      }
    ]
  },
  "websockets": {
    "active_connections": 2
  }
}

Logs (sanitized): bambuddy.log


Submitted via BamBuddy Bug Report

Originally created by @maziggy on GitHub (Apr 10, 2026). Original GitHub issue: https://github.com/maziggy/bambuddy/issues/934 Originally assigned to: @maziggy on GitHub. I am trying to enable a virtual printer. But the .cert file is not in my docker fs. There is nothing at all in bambuddy:/app/data/virtual_printer. The virtual printer is activated but the small light is not lit. (which I suppose is to indicate the connection state). My first attempt was without user authentification, now I have this option enabled. But this does not solve the problem. <details> <summary>Reporter Contact</summary> Email: info@handcraft-it.de </details> <details> <summary>System Information</summary> ```json { "generated_at": "2026-04-10T10:33:07.950856", "app": { "version": "0.2.2.2", "debug_mode": false }, "system": { "platform": "Linux", "platform_release": "6.17.4-2-pve", "platform_version": "#1 SMP PREEMPT_DYNAMIC PMX 6.17.4-2 (2025-12-19T07:49Z)", "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": 0, "archives_completed": 0, "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": "IDLE", "firmware_version": "01.04.00.00", "wifi_signal": -44, "reachable": true, "ams_unit_count": 1, "ams_tray_count": 2, "has_vt_tray": true, "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": "12.0", "currency": "EUR", "energy_cost_per_kwh": "0.37", "energy_tracking_mode": "total", "disable_filament_warnings": "false", "check_updates": "true", "check_printer_firmware": "false", "include_beta_updates": "false", "notification_language": "de", "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": "false", "date_format": "system", "time_format": "system", "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": "5.0", "camera_view_mode": "window", "preferred_slicer": "orcaslicer", "prometheus_enabled": "false", "user_notifications_enabled": "true", "spoolman_enabled": "false", "spoolman_sync_mode": "auto", "spoolman_disable_weight_sync": "false", "spoolman_report_partial_usage": "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": [ { "index": 1, "enabled": true, "mode": "print_queue", "model": "N1", "model_name": "A1 Mini", "has_target_printer": true, "has_bind_ip": true, "running": false, "pending_files": 0 } ], "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": 4096, "wal_size_bytes": 1829312 }, "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": 37688, "size_formatted": "36.8 KB" }, "network": { "interface_count": 1, "interfaces": [ { "name": "eth0", "subnet": "x.x.12.0/24" } ] }, "websockets": { "active_connections": 2 } } ``` </details> **Logs (sanitized):** [bambuddy.log](https://raw.githubusercontent.com/maziggy/bambuddy/bug-report-assets/logs/0efa908ef2f64eae9b0cbe8ed1834199.log) --- *Submitted via BamBuddy Bug Report*
BreizhHardware 2026-05-07 00:12:22 +02:00
  • closed this issue
  • added the
    invalid
    label
Author
Owner

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

2026-04-10 09:51:36,442 ERROR [backend.app.services.virtual_printer.manager] Cannot create directory /app/data/virtual_printer/certs: 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-04-10 09:51:36,454 WARNING [root] Failed to sync virtual printers: [Errno 13] Permission denied: '/app/data/virtual_printer/uploads'

You need to fix your folder permissons.


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

<!-- gh-comment-id:4222793669 --> @maziggy commented on GitHub (Apr 10, 2026): >2026-04-10 09:51:36,442 ERROR [backend.app.services.virtual_printer.manager] Cannot create directory /app/data/virtual_printer/certs: 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-04-10 09:51:36,454 WARNING [root] Failed to sync virtual printers: [Errno 13] Permission denied: '/app/data/virtual_printer/uploads' You need to fix your folder permissons. ----- 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#644
No description provided.