mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-05-09 08:25:54 +02:00
[GH-ISSUE #592] [Bug]: virtual_printer directories can not be created in the Docker container #385
Labels
No labels
A1
automated
automated
bug
bug
Closed due to inactivity
contrib
dependencies
dependencies
duplicate
enhancement
feedback
hold
invalid
Notes
P1S
pull-request
security
ThumbsUp
user-report
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/bambuddy-maziggy-1#385
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bandesz on GitHub (Mar 4, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/592
Originally assigned to: @maziggy on GitHub.
Bug Description
This is what I see in the container logs on the first start:
If I exec in, I see that the virtual_printer directory is owned by root:
Expected Behavior
virtual_printer subdirectories are successfully created
Steps to Reproduce
In a Linux environment:
Printer Model
P1S
Bambuddy Version
v0.2.1.1
Printer Firmware Version
Installation Method
Manual (git clone)
Operating System
Linux (Ubuntu/Debian)
Relevant Logs / Support Package
Screenshots
No response
Additional Context
No response
Checklist
@maziggy commented on GitHub (Mar 4, 2026):
This looks like a permissions issue from switching how the container runs. By default, the Bambuddy container runs as root (there's no USER directive in the Dockerfile), so all directories get created without issues.
Your ls output shows most of /app/data/ owned by 1000:1000, but virtual_printer owned by root:root — and with an earlier timestamp (11:57 vs 12:00). This suggests virtual_printer was created during a previous run as root, and then on a subsequent run the container started as UID 1000 (e.g. via user: "1000:1000" in your docker-compose.yml), which can't create subdirectories inside the root-owned folder.
You can fix this on the host by running:
sudo chown -R 1000:1000 /path/to/your/data/virtual_printer
(Replace /path/to/your/data/ with wherever your data volume is mounted from.)
If you find Bambuddy useful, please consider giving it a ⭐ on GitHub — it helps others discover the project!