-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Open
Description
I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.
- Yes
The bug
Environment:
- Immich version: v2.2.3
- Installation: Docker Compose
- OS: Ubuntu Server 24.04
- Storage: External library on NFS mount
Description:
Immich server becomes completely unresponsive when attempting to process corrupt JPEG files. The web interface hangs with "Server Offline - Unknown" status, and the application requires a full stack restart (including Redis cache clear) to recover.
Steps to Reproduce:
- Have corrupt JPEG files in external library path (files can be opened partially but have corrupted image data)
- Immich discovers and attempts to process these files during library scan
- Web interface becomes unresponsive
- Server shows "healthy" status but websocket connections fail immediately
- Browser console shows:
Uncaught (in promise) The message port closed before a response was received
Expected Behavior:
Immich should skip corrupt/unreadable files gracefully, log the error and continue processing other files.
Actual Behavior:
- Web interface becomes completely unresponsive
- No error logged in
docker logs immich_server - Websocket connections establish (101) but disconnect immediately
- API endpoints respond (200 OK) but frontend cannot load
- Regular
docker compose restartdoes NOT fix the issue - Only
docker compose down+docker compose up -d(full Redis cache clear) resolves it
Recovery Steps Taken:
- Identified corrupt files from error context
- Removed files from disk storage
- Removed asset entries from database:
DELETE FROM asset WHERE id IN (...) - Full stack shutdown and restart to clear Redis cache
- System recovered and functions normally
Additional Information:
- The corrupt JPEG files were also corrupt in backup storage, indicating corruption occurred before upload
- I can provide the corrupt JPEG files to developers upon request (prefer not to attach publicly)
Impact:
High - Complete service outage requiring manual database intervention and full restart
The OS that Immich Server is running on
Ubuntu Server 24.04
Version of Immich Server
v2.2.3
Version of Immich Mobile App
N/A
Platform with the issue
- Server
- Web
- Mobile
Device make and model
No response
Your docker-compose.yml content
N/AYour .env content
N/AReproduction steps
...
Relevant log output
Additional information
No response
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Backlog