I
Immich2mo ago
chk86

Share album downloading

I recently came across the support ticket titled “Large file doesn’t download from Immich,” so I decided to test my own setup. I’m encountering the same issue. I have Immich set up using a reverse proxy. I already have Traefik setup following Immich’s docs to increase the responding timeouts for Traefik. Everything works great, except for large file downloads. When I use my reverse proxy and click the download button on a 3.4GB share album I created, I see the progress bar, but it stays at 0%.
But it never progresses past 0%. It also never actually downloads, no matter how long I wait. Eventually, I do see in Immich’s log:
[Nest] 17 - 04/07/2025, 4:36:56 PM LOG [Api:EventRepository] Websocket Disconnect: mjydMIQzaCCLxOXxAABw
[Nest] 17 - 04/07/2025, 4:36:56 PM LOG [Api:EventRepository] Websocket Disconnect: mjydMIQzaCCLxOXxAABw
And then this error:
[Nest] 17 - 04/07/2025, 4:40:42 PM ERROR [Api:StreamableFile] Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close
at ServerResponse.<anonymous> (node:internal/streams/pipeline:415:29)
at ServerResponse.emit (node:events:530:35)
at emitCloseNT (node:_http_server:1033:10)
at Socket.onServerResponseClose (node:_http_server:284:5)
at Socket.emit (node:events:530:35)
at TCP.<anonymous> (node:net:351:12)
at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
code: 'ERR_STREAM_PREMATURE_CLOSE'
[Nest] 17 - 04/07/2025, 4:40:42 PM ERROR [Api:StreamableFile] Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close
at ServerResponse.<anonymous> (node:internal/streams/pipeline:415:29)
at ServerResponse.emit (node:events:530:35)
at emitCloseNT (node:_http_server:1033:10)
at Socket.onServerResponseClose (node:_http_server:284:5)
at Socket.emit (node:events:530:35)
at TCP.<anonymous> (node:net:351:12)
at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
code: 'ERR_STREAM_PREMATURE_CLOSE'
If I select a subset of pictures in the same album album (like just 1 day from a week's worth), these smaller subsets do download. I could download the entire 3.4GB album in 7 smaller chunks, with the smallest being 223MB and the largest being 1.19 GB. However, the progress bar also never progresses past 0%. I got similar results when I tried the same steps behind my local IP address. I was not able to download the entire share album. One difference is that it did start to download the file to my Downloads Folder, but then it stalled and never finished. However, I was able to download the smaller subsets of the shared album.
28 Replies
Immich
Immich2mo ago
:wave: Hey @chk86, Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:. References - Container Logs: docker compose logs docs - Container Status: docker ps -a docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy - Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA Checklist I have... 1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time). 2. :ballot_box_with_check: read applicable release notes. 3. :ballot_box_with_check: reviewed the FAQs for known issues. 4. :ballot_box_with_check: reviewed Github for known issues. 5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy). 6. :ballot_box_with_check: uploaded the relevant information (see below). 7. :ballot_box_with_check: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable (an item can be marked as "complete" by reacting with the appropriate number) Information In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider: - Your docker-compose.yml and .env files. - Logs from all the containers and their status (see above). - All the troubleshooting steps you've tried so far. - Any recent changes you've made to Immich or your system. - Details about your system (both software/OS and hardware). - Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h). - The version of the Immich server, mobile app, and other relevant pieces. - Any other information that you think might be relevant. Please paste files and logs with proper code formatting, and especially avoid blurry screenshots. Without the right information we can't work out what the problem is. Help us help you ;) If this ticket can be closed you can use the /close command, and re-open it later if needed.
chk86
chk86OP2mo ago
Aside from the recent support ticket, I did find these two issues: https://github.com/immich-app/immich/issues/14725 and https://github.com/immich-app/immich/issues/15012 I would love to be able to share an entire album with non-Immich users and have them be able to download the entire album successfully. Thanks!
chk86
chk86OP2mo ago
Immich
Immich2mo ago
Successfully submitted, a tag has been added to inform contributors. :white_check_mark:
Tempest
Tempest2mo ago
do you have the same issue when accessing http://local_IP_address:immich_port ?
chk86
chk86OP2mo ago
Yes, I included that info and the outcome in my original post.
Tempest
Tempest2mo ago
is your client ram filling up?
Zeus
Zeus2mo ago
What’s the exact ip and port you’re using for local test? How big is this album? Oh, 3.4 GB, not that big
chk86
chk86OP2mo ago
I'm using the local ip and port to access immich. I'm not only using my reverse proxy. Agreed. I am able to download a part of the share album, which was 1.19 GB, just not the whole share album. This is a possibility, which is why I was asking if this is related to the issues I linked.
Zeus
Zeus2mo ago
Please share this info, it’s not private. We often have people who think they are local but it turns out not to be
chk86
chk86OP2mo ago
There's really no need to be rude. I wasn't assuming it was private. 10.0.1.46:2283 is how I access immich without my reverse proxy.
chk86
chk86OP2mo ago
No description
Zeus
Zeus2mo ago
How’s that rude? I asked for the exact IP and port and you didn’t share it?
chk86
chk86OP2mo ago
@Zeus I think if someone says they're accessing via their reverse proxy and also can access it via their local IP, you can assume some sense of competence.
Zeus
Zeus2mo ago
No, I can’t haha You would be surprised what we see here
chk86
chk86OP2mo ago
That's completely fair. But I think you can in this conversation.
Tempest
Tempest2mo ago
If your device is filling up with memory, then yes. As immich downloads the library to ram first, then saves to disk, it would make sense So if you were asking whether or not that issue was reporting correct information, yes it was
chk86
chk86OP2mo ago
As in my issue is related to those? So Immich as it currently stands is operating as it should. Ahhh, okay then. @Tempest hopefully that gets resolved at some point in the near future, I think that would be a huge improvement, especially with how I use Immich.
Tempest
Tempest2mo ago
I don't know. You answered my earlier question with a round about statement.
chk86
chk86OP2mo ago
I’m confused?
Tempest
Tempest2mo ago
To my knowledge this is not currently being worked on. If you feel like contributing the code I'd suggest asking in #contributing for some basic guidance if you have not submitted code thus far https://discord.com/channels/979116623879368755/1358867553593721213/1358908898878161057 The only way to know the cause of a problem is to verify the error
chk86
chk86OP2mo ago
Oh I see. I didn’t know how to answer your question so was just guessing. How would you verify if it’s ram filling up?
Tempest
Tempest2mo ago
What platform are you running? Windows?
chk86
chk86OP2mo ago
macOS. The only way I know how to see memory is in the activity center ( or whatever it’s called?). Do you know of another way?
Tempest
Tempest2mo ago
Sorry I don't use macos. I assume there's a utility on mac similar to task manager on windows though
chk86
chk86OP2mo ago
Got it. Yes, so really you’re just looking to see how much memory the download process would be using?
Tempest
Tempest2mo ago
correct. just watch to see if it fills up as you're downloading. If you run out of free space then you know, or if it stops at the same amount of usage repeatedly

Did you find this page helpful?