Bug: Camera fails to initialize on mobile (QR scan) until toggling between front/back sensors
Author: danyonline64Created Feb 2, 2026Updated Sep 18, 2026
Labels🕷️ bug
First Check
- This is not a feature request
- I added a very descriptive title to this issue.
- I used the GitHub search to find a similar issue and didn't find it.
- I searched the documentation, with the integrated search.
- I already read the docs and didn't find an answer.
- I can replicate the issue inside the Demo install.
Homebox Version
0.23.1
What is the issue you are experiencing?
On the mobile web app, clicking the "Scan" button results in an immediate error within the scan modal. The camera feed does not start, and a grey box is displayed instead.
Error message: "Une erreur s'est produite lors du scan" (An error occurred during scanning).Behavior: The camera selector is correctly set to "facing back" by default, but the feed is broken.Workaround: If I manually switch the selector to "facing front", the front camera works. If I then switch back to "facing back", the rear camera eventually starts working. It usually takes 1 to 4 toggles between sensors to get the rear camera feed to display.
How can the maintainer reproduce the issue?
- Open Homebox on a mobile device.
- Click on the Scan button to open the QR code scanner.
- Observe the error message and the grey frame.
- Switch the camera selection to "facing front".
- Switch back to "facing back" until the video feed appears.
Deployment
Docker (Linux)
Database Type
SQLite
OS Architechture
x86_64 (AMD, Intel)
Deployment Details
Deployment Method: Docker / Portainer (stack/docker compose) Reverse Proxy: Nginx Proxy Manager Protocol: HTTPS (Self-hosted)
Source: sysadminsmedia/homebox