[GH-ISSUE #428] [Bug]: The end-of-print photo is not visible #268

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

Originally created by @Eltarius on GitHub (Feb 18, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/428

Originally assigned to: @maziggy on GitHub.

Bug Description

The end-of-print photo is not visible as well as the 3D printing thumbnail. The snapshot is present in the file tree.
As if I had a rights issue (See files lower)

Expected Behavior

Snapshot visible

Steps to Reproduce

Fresh install

Printer Model

P2S

Bambuddy Version

0.2.0

Printer Firmware Version

01.01.03.00

Installation Method

Docker

Operating System

Linux (Ubuntu/Debian)

Relevant Logs / Support Package

bambuddy-support-20260218-114557.zip

Screenshots

Image Image

Additional Context

Tree:

├── data
│   ├── archive
│   │   ├── library
│   │   │   ├── files
│   │   │   └── thumbnails
│   │   └── temp
│   ├── bambuddy.db
│   ├── bambuddy.db-shm
│   ├── bambuddy.db-wal
│   ├── photos
│   │   └── finish_20260217_232638_545bd1c3.jpg
│   ├── plate_calibration
│   │   ├── printer_1_metadata.json
│   │   ├── printer_1_ref_0.jpg
│   │   ├── printer_1_ref_1.jpg
│   │   ├── printer_1_ref_2.jpg
│   │   ├── printer_1_ref_3.jpg
│   │   └── printer_1_ref_4.jpg
│   └── virtual_printer
│       ├── certs
│       │   ├── bbl_ca.crt
│       │   ├── bbl_ca.key
│       │   ├── virtual_printer.crt
│       │   └── virtual_printer.key
│       └── uploads
│           └── cache
└── logs
    └── bambuddy.log

Data folder (1000:1000);

drwxr-xr-x 6 eltarius eltarius    4096 17 févr. 23:26 .
drwxr-xr-x 4 eltarius eltarius    4096 17 févr. 19:44 ..
drwxr-xr-x 4 eltarius eltarius    4096 17 févr. 19:48 archive
-rw-r--r-- 1 eltarius eltarius  348160 18 févr. 01:59 bambuddy.db
-rw-r--r-- 1 eltarius eltarius   32768 18 févr. 11:38 bambuddy.db-shm
-rw-r--r-- 1 eltarius eltarius 4120032 18 févr. 11:38 bambuddy.db-wal
-rw------- 1 eltarius eltarius      86 17 févr. 19:46 .jwt_secret
drwxr-xr-x 2 eltarius eltarius    4096 17 févr. 23:26 photos
drwxr-xr-x 2 eltarius eltarius    4096 17 févr. 23:57 plate_calibration
drwxr-xr-x 4 eltarius eltarius    4096 18 févr. 11:15 virtual_printer

Docker compose:


services:
  bambuddy:
    image: ghcr.io/maziggy/bambuddy:latest
    build: .
    container_name: bambuddy
    user: ${PUID:-1000}:${PGID:-1000}
    cap_add:
      - NET_BIND_SERVICE
    network_mode: host
    volumes:
      - /home/eltarius/docker/bambuddy/data:/app/data
      - /home/eltarius/docker/bambuddy/logs:/app/logs
      - TZ=${TZ:-Europe/Paris}
      - PORT=${PORT:-8000}
      - VIRTUAL_PRINTER_PASV_ADDRESS=10.0.0.6
    restart: unless-stopped

Checklist

  • I have searched existing issues to ensure this bug hasn't already been reported
  • I am using the latest version of Bambuddy
  • My printer is set to LAN Only mode
Originally created by @Eltarius on GitHub (Feb 18, 2026). Original GitHub issue: https://github.com/maziggy/bambuddy/issues/428 Originally assigned to: @maziggy on GitHub. ### Bug Description The end-of-print photo is not visible as well as the 3D printing thumbnail. The snapshot is present in the file tree. As if I had a rights issue (See files lower) ### Expected Behavior Snapshot visible ### Steps to Reproduce Fresh install ### Printer Model P2S ### Bambuddy Version 0.2.0 ### Printer Firmware Version 01.01.03.00 ### Installation Method Docker ### Operating System Linux (Ubuntu/Debian) ### Relevant Logs / Support Package [bambuddy-support-20260218-114557.zip](https://github.com/user-attachments/files/25388438/bambuddy-support-20260218-114557.zip) ### Screenshots <img width="424" height="661" alt="Image" src="https://github.com/user-attachments/assets/6f8219b8-29b6-4ee3-aac9-8125de5043ac" /> <img width="556" height="809" alt="Image" src="https://github.com/user-attachments/assets/a21998af-b93c-4b34-882c-9fcf456542a5" /> ### Additional Context Tree: ``` ├── data │   ├── archive │   │   ├── library │   │   │   ├── files │   │   │   └── thumbnails │   │   └── temp │   ├── bambuddy.db │   ├── bambuddy.db-shm │   ├── bambuddy.db-wal │   ├── photos │   │   └── finish_20260217_232638_545bd1c3.jpg │   ├── plate_calibration │   │   ├── printer_1_metadata.json │   │   ├── printer_1_ref_0.jpg │   │   ├── printer_1_ref_1.jpg │   │   ├── printer_1_ref_2.jpg │   │   ├── printer_1_ref_3.jpg │   │   └── printer_1_ref_4.jpg │   └── virtual_printer │   ├── certs │   │   ├── bbl_ca.crt │   │   ├── bbl_ca.key │   │   ├── virtual_printer.crt │   │   └── virtual_printer.key │   └── uploads │   └── cache └── logs └── bambuddy.log ``` Data folder (1000:1000); ``` drwxr-xr-x 6 eltarius eltarius 4096 17 févr. 23:26 . drwxr-xr-x 4 eltarius eltarius 4096 17 févr. 19:44 .. drwxr-xr-x 4 eltarius eltarius 4096 17 févr. 19:48 archive -rw-r--r-- 1 eltarius eltarius 348160 18 févr. 01:59 bambuddy.db -rw-r--r-- 1 eltarius eltarius 32768 18 févr. 11:38 bambuddy.db-shm -rw-r--r-- 1 eltarius eltarius 4120032 18 févr. 11:38 bambuddy.db-wal -rw------- 1 eltarius eltarius 86 17 févr. 19:46 .jwt_secret drwxr-xr-x 2 eltarius eltarius 4096 17 févr. 23:26 photos drwxr-xr-x 2 eltarius eltarius 4096 17 févr. 23:57 plate_calibration drwxr-xr-x 4 eltarius eltarius 4096 18 févr. 11:15 virtual_printer ``` Docker compose: ``` services: bambuddy: image: ghcr.io/maziggy/bambuddy:latest build: . container_name: bambuddy user: ${PUID:-1000}:${PGID:-1000} cap_add: - NET_BIND_SERVICE network_mode: host volumes: - /home/eltarius/docker/bambuddy/data:/app/data - /home/eltarius/docker/bambuddy/logs:/app/logs - TZ=${TZ:-Europe/Paris} - PORT=${PORT:-8000} - VIRTUAL_PRINTER_PASV_ADDRESS=10.0.0.6 restart: unless-stopped ``` ### Checklist - [x] I have searched existing issues to ensure this bug hasn't already been reported - [x] I am using the latest version of Bambuddy - [x] My printer is set to LAN Only mode
BreizhHardware 2026-05-06 12:27:45 +02:00
  • closed this issue
  • added the
    invalid
    label
Author
Owner

@maziggy commented on GitHub (Feb 18, 2026):

Looking at your logs and docker-compose, there are a couple of configuration issues:

  1. Environment variables are under volumes: instead of environment:

Your docker-compose has TZ, PORT, and VIRTUAL_PRINTER_PASV_ADDRESS listed under volumes: — Docker treats these as volume mount definitions, not environment variables. This likely explains why the support info detects bridge network mode despite your network_mode: host setting.

Fix:
services:
bambuddy:
image: ghcr.io/maziggy/bambuddy:latest
container_name: bambuddy
user: ${PUID:-1000}:${PGID:-1000}
cap_add:
- NET_BIND_SERVICE
network_mode: host
volumes:
- /home/eltarius/docker/bambuddy/data:/app/data
- /home/eltarius/docker/bambuddy/logs:/app/logs
environment:
- TZ=${TZ:-Europe/Paris}
- PORT=${PORT:-8000}
- VIRTUAL_PRINTER_PASV_ADDRESS=10.0.0.6
restart: unless-stopped

  1. Permission errors

Your logs show repeated Permission denied errors for /app/data/virtual_printer/. The virtual printer directories may have been created by a different user/process. Fix with:
sudo chown -R 1000:1000 /home/eltarius/docker/bambuddy/data

After fixing both, recreate the container (docker compose up -d --force-recreate) and try a new print to verify photos and thumbnails render correctly.

<!-- gh-comment-id:3920183696 --> @maziggy commented on GitHub (Feb 18, 2026): Looking at your logs and docker-compose, there are a couple of configuration issues: 1. Environment variables are under volumes: instead of environment: Your docker-compose has TZ, PORT, and VIRTUAL_PRINTER_PASV_ADDRESS listed under volumes: — Docker treats these as volume mount definitions, not environment variables. This likely explains why the support info detects bridge network mode despite your network_mode: host setting. Fix: services: bambuddy: image: ghcr.io/maziggy/bambuddy:latest container_name: bambuddy user: ${PUID:-1000}:${PGID:-1000} cap_add: - NET_BIND_SERVICE network_mode: host volumes: - /home/eltarius/docker/bambuddy/data:/app/data - /home/eltarius/docker/bambuddy/logs:/app/logs environment: - TZ=${TZ:-Europe/Paris} - PORT=${PORT:-8000} - VIRTUAL_PRINTER_PASV_ADDRESS=10.0.0.6 restart: unless-stopped 2. Permission errors Your logs show repeated Permission denied errors for /app/data/virtual_printer/. The virtual printer directories may have been created by a different user/process. Fix with: sudo chown -R 1000:1000 /home/eltarius/docker/bambuddy/data After fixing both, recreate the container (docker compose up -d --force-recreate) and try a new print to verify photos and thumbnails render correctly.
Author
Owner

@Eltarius commented on GitHub (Feb 18, 2026):

Hi, thank you for your quick return.

  1. I made a mistake in my copy of the compose, when I decommented, I removed "environment" but I reassure you it is good
services:
  bambuddy:
    image: ghcr.io/maziggy/bambuddy:latest
    build: .
    container_name: bambuddy
    user: ${PUID:-1000}:${PGID:-1000}
    cap_add:
      - NET_BIND_SERVICE
    network_mode: host
    volumes:
      - /home/eltarius/docker/bambuddy/data:/app/data
      - /home/eltarius/docker/bambuddy/logs:/app/logs
    environment:
      - TZ=${TZ:-Europe/Paris}
      - PORT=${PORT:-8000}
      - VIRTUAL_PRINTER_PASV_ADDRESS=10.0.0.6
    restart: unless-stopped
  1. Regarding the problems of permissions, I had already passed the data file in "chown -R 1000" and despite this action, I still do not have visibility on the photos. However, I put the order back on the data file as you suggested to me, but nothing to do.
drwxr-xr-x 6 eltarius eltarius    4096 17 févr. 23:26 .
drwxr-xr-x 4 eltarius eltarius    4096 17 févr. 19:44 ..
drwxr-xr-x 4 eltarius eltarius    4096 17 févr. 19:48 archive
-rw-r--r-- 1 eltarius eltarius  348160 18 févr. 01:59 bambuddy.db
-rw-r--r-- 1 eltarius eltarius   32768 18 févr. 12:17 bambuddy.db-shm
-rw-r--r-- 1 eltarius eltarius 4120032 18 févr. 12:17 bambuddy.db-wal
-rw------- 1 eltarius eltarius      86 17 févr. 19:46 .jwt_secret
drwxr-xr-x 2 eltarius eltarius    4096 18 févr. 11:44 photos
drwxr-xr-x 2 eltarius eltarius    4096 17 févr. 23:57 plate_calibration
drwxr-xr-x 4 eltarius eltarius    4096 18 févr. 12:12 virtual_printer
drwxr-xr-x 2 eltarius eltarius   4096 18 févr. 11:44 .
drwxr-xr-x 6 eltarius eltarius   4096 17 févr. 23:26 ..
-rw-r--r-- 1 eltarius eltarius 626874 17 févr. 23:26 finish_20260217_232638_545bd1c3.jpg
-rw-r--r-- 1 eltarius eltarius 545804 18 févr. 11:44 finish_20260218_114408_1f93462f.jpg

When I want download the snapshot:
http://10.0.0.6:8000/api/v1/archives/2/photos/finish_20260218_114408_1f93462f.jpg > Return 404 Error

<!-- gh-comment-id:3920239459 --> @Eltarius commented on GitHub (Feb 18, 2026): Hi, thank you for your quick return. 1. I made a mistake in my copy of the compose, when I decommented, I removed "environment" but I reassure you it is good ``` services: bambuddy: image: ghcr.io/maziggy/bambuddy:latest build: . container_name: bambuddy user: ${PUID:-1000}:${PGID:-1000} cap_add: - NET_BIND_SERVICE network_mode: host volumes: - /home/eltarius/docker/bambuddy/data:/app/data - /home/eltarius/docker/bambuddy/logs:/app/logs environment: - TZ=${TZ:-Europe/Paris} - PORT=${PORT:-8000} - VIRTUAL_PRINTER_PASV_ADDRESS=10.0.0.6 restart: unless-stopped ``` 2. Regarding the problems of permissions, I had already passed the data file in "chown -R 1000" and despite this action, I still do not have visibility on the photos. However, I put the order back on the data file as you suggested to me, but nothing to do. ``` drwxr-xr-x 6 eltarius eltarius 4096 17 févr. 23:26 . drwxr-xr-x 4 eltarius eltarius 4096 17 févr. 19:44 .. drwxr-xr-x 4 eltarius eltarius 4096 17 févr. 19:48 archive -rw-r--r-- 1 eltarius eltarius 348160 18 févr. 01:59 bambuddy.db -rw-r--r-- 1 eltarius eltarius 32768 18 févr. 12:17 bambuddy.db-shm -rw-r--r-- 1 eltarius eltarius 4120032 18 févr. 12:17 bambuddy.db-wal -rw------- 1 eltarius eltarius 86 17 févr. 19:46 .jwt_secret drwxr-xr-x 2 eltarius eltarius 4096 18 févr. 11:44 photos drwxr-xr-x 2 eltarius eltarius 4096 17 févr. 23:57 plate_calibration drwxr-xr-x 4 eltarius eltarius 4096 18 févr. 12:12 virtual_printer ``` ``` drwxr-xr-x 2 eltarius eltarius 4096 18 févr. 11:44 . drwxr-xr-x 6 eltarius eltarius 4096 17 févr. 23:26 .. -rw-r--r-- 1 eltarius eltarius 626874 17 févr. 23:26 finish_20260217_232638_545bd1c3.jpg -rw-r--r-- 1 eltarius eltarius 545804 18 févr. 11:44 finish_20260218_114408_1f93462f.jpg ``` When I want download the snapshot: http://10.0.0.6:8000/api/v1/archives/2/photos/finish_20260218_114408_1f93462f.jpg > Return 404 Error
Author
Owner

@maziggy commented on GitHub (Feb 18, 2026):

The photos exist on disk but in data/photos/ rather than inside an archive subdirectory (e.g. data/archive/1/20260217_.../photos/). This suggests the archive record's file path may not have the expected directory structure, which would cause the API to look in the wrong location.

Could you check two things?

  1. Open this URL in your browser and share the JSON output:
    http://10.0.0.6:8000/api/v1/archives/2
  2. (specifically interested in the file_path field)
  3. What's the exact error message in the 404 response — is it "Archive not found" or "Photo not found"?

This will help pinpoint whether it's a path resolution issue or something else.

<!-- gh-comment-id:3920325228 --> @maziggy commented on GitHub (Feb 18, 2026): The photos exist on disk but in data/photos/ rather than inside an archive subdirectory (e.g. data/archive/1/20260217_.../photos/). This suggests the archive record's file path may not have the expected directory structure, which would cause the API to look in the wrong location. Could you check two things? 1. Open this URL in your browser and share the JSON output: http://10.0.0.6:8000/api/v1/archives/2 1. (specifically interested in the file_path field) 2. What's the exact error message in the 404 response — is it "Archive not found" or "Photo not found"? This will help pinpoint whether it's a path resolution issue or something else.
Author
Owner

@Eltarius commented on GitHub (Feb 18, 2026):

The photos exist on disk but in data/photos/ rather than inside an archive subdirectory (e.g. data/archive/1/20260217_.../photos/). This suggests the archive record's file path may not have the expected directory structure, which would cause the API to look in the wrong location.

Could you check two things?

1. Open this URL in your browser and share the JSON output:
   http://10.0.0.6:8000/api/v1/archives/2

2. (specifically interested in the file_path field)

3. What's the exact error message in the 404 response — is it "Archive not found" or "Photo not found"?

This will help pinpoint whether it's a path resolution issue or something else.

  1. Output: {"detail":"Authentication required"}
  2. nothing
  3. When I refresh the 404 error page, I see this Json output:
    {"detail":"Photo not found"}

I looked in the Bambuddy API tool and I still have an output like this:
Image

<!-- gh-comment-id:3920377481 --> @Eltarius commented on GitHub (Feb 18, 2026): > The photos exist on disk but in data/photos/ rather than inside an archive subdirectory (e.g. data/archive/1/20260217_.../photos/). This suggests the archive record's file path may not have the expected directory structure, which would cause the API to look in the wrong location. > > Could you check two things? > > 1. Open this URL in your browser and share the JSON output: > http://10.0.0.6:8000/api/v1/archives/2 > > 2. (specifically interested in the file_path field) > > 3. What's the exact error message in the 404 response — is it "Archive not found" or "Photo not found"? > > > This will help pinpoint whether it's a path resolution issue or something else. 1. Output: {"detail":"Authentication required"} 2. nothing 3. When I refresh the 404 error page, I see this Json output: `{"detail":"Photo not found"}` I looked in the Bambuddy API tool and I still have an output like this: <img width="356" height="502" alt="Image" src="https://github.com/user-attachments/assets/2161f56a-d8b9-4a8b-bfbd-6c54160ad50e" />
Author
Owner

@maziggy commented on GitHub (Feb 18, 2026):

You need to generate and use an API key!

<!-- gh-comment-id:3920386278 --> @maziggy commented on GitHub (Feb 18, 2026): You need to generate and use an API key!
Author
Owner

@maziggy commented on GitHub (Feb 18, 2026):

"Output: {"detail":"Authentication required"}"

You have enabled authentication but something is missing. Go to settings -> authentication and disable authentication. then force a page reload and try again.

<!-- gh-comment-id:3920392379 --> @maziggy commented on GitHub (Feb 18, 2026): "Output: {"detail":"Authentication required"}" You have enabled authentication but something is missing. Go to settings -> authentication and disable authentication. then force a page reload and try again.
Author
Owner

@maziggy commented on GitHub (Feb 18, 2026):

Why is your installtion so "dirty"? I would strongly suggest to delete the complete Bambuddy folder and do a clean install.

<!-- gh-comment-id:3920397060 --> @maziggy commented on GitHub (Feb 18, 2026): Why is your installtion so "dirty"? I would strongly suggest to delete the complete Bambuddy folder and do a clean install.
Author
Owner

@Eltarius commented on GitHub (Feb 18, 2026):

After disable Authentication:
Image

Same Error with 404 error > Photo not found

<!-- gh-comment-id:3920408937 --> @Eltarius commented on GitHub (Feb 18, 2026): After disable Authentication: <img width="512" height="259" alt="Image" src="https://github.com/user-attachments/assets/a133c3ee-9724-47fc-bb9b-50bde321248e" /> Same Error with 404 error > Photo not found
Author
Owner

@Eltarius commented on GitHub (Feb 18, 2026):

I delete complete Bambuddy folder and do a clean install.
The problem persist 😢

Json archive 1:
1.json

Log file:
log.txt

FTP Download failed multiple time...

<!-- gh-comment-id:3920638497 --> @Eltarius commented on GitHub (Feb 18, 2026): I delete complete Bambuddy folder and do a clean install. The problem persist 😢 Json archive 1: [1.json](https://github.com/user-attachments/files/25390618/1.json) Log file: [log.txt](https://github.com/user-attachments/files/25390667/log.txt) FTP Download failed multiple time...
Author
Owner

@maziggy commented on GitHub (Feb 18, 2026):

Looking at your attached archive JSON and logs, the root cause is clear:

Your P2S printer is returning 550 Failed to open file for every FTP download attempt (24 failures in the logs). Bambuddy can't download the 3MF file from the printer, so the archive record has an empty file_path. This causes photos to be saved correctly but retrieved from the wrong location.

Questions to help narrow it down:

  1. Are you sending prints from Bambu Studio/Bambu Handy, or from Bambuddy's queue?
  2. Is there enough free space on printer's SD card?
  3. Can you check if the P2S has "LAN Only Mode" and "Developer Mode" enabled in the printer settings?

The FTP failures are the upstream issue — once those are resolved, photos and thumbnails will work correctly.

<!-- gh-comment-id:3920740793 --> @maziggy commented on GitHub (Feb 18, 2026): Looking at your attached archive JSON and logs, the root cause is clear: Your P2S printer is returning 550 Failed to open file for every FTP download attempt (24 failures in the logs). Bambuddy can't download the 3MF file from the printer, so the archive record has an empty file_path. This causes photos to be saved correctly but retrieved from the wrong location. Questions to help narrow it down: 1. Are you sending prints from Bambu Studio/Bambu Handy, or from Bambuddy's queue? 2. Is there enough free space on printer's SD card? 3. Can you check if the P2S has "LAN Only Mode" and "Developer Mode" enabled in the printer settings? The FTP failures are the upstream issue — once those are resolved, photos and thumbnails will work correctly.
Author
Owner

@Eltarius commented on GitHub (Feb 18, 2026):

When I print:

  • From Bambu Studio via Print button (Proxy mode) >Thumbtail & photo & filament statistics not work
  • From Bambu Studio via Send button & Bambuddy's queue (Archive mode) > Thumbtail & photo & filament statistics work

I have free space on my printer's SD Card.

My P2S was in LAN only mode & Developer mode actived.

<!-- gh-comment-id:3920764523 --> @Eltarius commented on GitHub (Feb 18, 2026): When I print: - From Bambu Studio via Print button (Proxy mode) >Thumbtail & photo & filament statistics not work - From Bambu Studio via Send button & Bambuddy's queue (Archive mode) > Thumbtail & photo & filament statistics work I have free space on my printer's SD Card. My P2S was in LAN only mode & Developer mode actived.
Author
Owner

@maziggy commented on GitHub (Feb 18, 2026):

So you are opening an issue for a broken image link, when the issue is proxy related? That's not very helpful and a waste of time.

Please open a proper issue for this.

<!-- gh-comment-id:3920798054 --> @maziggy commented on GitHub (Feb 18, 2026): So you are opening an issue for a broken image link, when the issue is proxy related? That's not very helpful and a waste of time. Please open a proper issue for this.
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#268
No description provided.