Closed kyemacdonald closed 1 year ago
Sorry the formatted go chewed up on the file listing.
root@f8ce7da4c5d3:/usr/src# cd /usr/src/app/upload/library/admin/2023/2023-08-10/ root@f8ce7da4c5d3:/usr/src/app/upload/library/admin/2023/2023-08-10# ls -la total 159532 drwxrwxrwx 2 root root 4096 Aug 11 09:38 . drwxrwxrwx 223 root root 12288 Aug 11 03:24 .. -rwxrwxrwx 1 root root 6738745 Aug 10 01:29 2023-08-10-20230810_080031.jpg -rwxrwxrwx 1 root root 6800142 Aug 10 01:29 2023-08-10-20230810_080034.jpg -rwxrwxrwx 1 root root 6652097 Aug 10 01:29 2023-08-10-20230810_083831.jpg -rwxrwxrwx 1 root root 2416641 Aug 11 09:38 2023-08-10-20230810_102235.jpg -rwxrwxrwx 1 root root 2442687 Aug 11 09:38 2023-08-10-20230810_102318.jpg -rwxrwxrwx 1 root root 2528520 Aug 11 09:38 2023-08-10-20230810_102323.jpg -rwxrwxrwx 1 root root 2443156 Aug 11 09:38 2023-08-10-20230810_102327.jpg -rwxrwxrwx 1 root root 2349095 Aug 11 09:38 2023-08-10-20230810_142918.jpg -rwxrwxrwx 1 root root 1857505 Aug 11 09:38 2023-08-10-20230810_155356.jpg -rwxrwxrwx 1 root root 25162697 Aug 10 10:13 2023-08-10-20230810_194232.mp4 -rwxrwxrwx 1 root root 2901629 Aug 10 10:13 2023-08-10-20230810_194426.mp4 -rwxrwxrwx 1 root root 2437533 Aug 10 10:13 2023-08-10-20230810_194431.mp4 -rwxrwxrwx 1 root root 98570920 Aug 10 10:13 2023-08-10-20230810_194437.mp4 root@f8ce7da4c5d3:/usr/src/app/upload/library/admin/2023/2023-08-10#
Update - it appears I have caught an edge case and I'm not sure why. I can now play back the videos with no issue.
Most recent fail. These video's were working but now are reporting access issues.
[Nest] 7 - 08/14/2023, 7:25:29 AM ERROR [ExceptionsHandler] EACCES: permission denied, access 'upload/library/admin/2023/2023-08-12/2023-08-12-20230812_091233.mp4'
Error: EACCES: permission denied, access 'upload/library/admin/2023/2023-08-12/2023-08-12-20230812_091233.mp4'
[Nest] 7 - 08/14/2023, 7:25:29 AM ERROR [ExceptionsHandler] EACCES: permission denied, access 'upload/library/admin/2023/2023-08-12/2023-08-12-20230812_091606.mp4'
Error: EACCES: permission denied, access 'upload/library/admin/2023/2023-08-12/2023-08-12-20230812_091606.mp4'
[Nest] 7 - 08/14/2023, 7:25:29 AM ERROR [ExceptionsHandler] EACCES: permission denied, access 'upload/library/admin/2023/2023-08-12/2023-08-12-20230812_091753.mp4'
Error: EACCES: permission denied, access 'upload/library/admin/2023/2023-08-12/2023-08-12-20230812_091753.mp4'
[Nest] 7 - 08/14/2023, 7:25:57 AM ERROR [ExpressAdapter] Premature close
Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close
at new NodeError (node:internal/errors:405:5)
at ServerResponse.onclose (node:internal/streams/end-of-stream:154:30)
at ServerResponse.emit (node:events:526:35)
at emitCloseNT (node:_http_server:996:10)
at Socket.onServerResponseClose (node:_http_server:278:5)
at Socket.emit (node:events:526:35)
at TCP.<anonymous> (node:net:323:12)
[Nest] 7 - 08/14/2023, 7:25:57 AM ERROR [ExpressAdapter] Premature close
Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close
at new NodeError (node:internal/errors:405:5)
at ServerResponse.onclose (node:internal/streams/end-of-stream:154:30)
at ServerResponse.emit (node:events:526:35)
at emitCloseNT (node:_http_server:996:10)
at Socket.onServerResponseClose (node:_http_server:278:5)
at Socket.emit (node:events:526:35)
at TCP.<anonymous> (node:net:323:12)
[Nest] 7 - 08/14/2023, 7:25:57 AM ERROR [ExpressAdapter] Premature close
Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close
at new NodeError (node:internal/errors:405:5)
at ServerResponse.onclose (node:internal/streams/end-of-stream:154:30)
at ServerResponse.emit (node:events:526:35)
at emitCloseNT (node:_http_server:996:10)
at Socket.onServerResponseClose (node:_http_server:278:5)
at Socket.emit (node:events:526:35)
at TCP.<anonymous> (node:net:323:12)
[Nest] 7 - 08/14/2023, 7:25:57 AM ERROR [ExpressAdapter] Premature close
Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close
at new NodeError (node:internal/errors:405:5)
at ServerResponse.onclose (node:internal/streams/end-of-stream:154:30)
at ServerResponse.emit (node:events:526:35)
at emitCloseNT (node:_http_server:996:10)
at Socket.onServerResponseClose (node:_http_server:278:5)
at Socket.emit (node:events:526:35)
at TCP.<anonymous> (node:net:323:12)
[Nest] 7 - 08/14/2023, 7:25:57 AM ERROR [ExpressAdapter] Premature close
Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close
at new NodeError (node:internal/errors:405:5)
at ServerResponse.onclose (node:internal/streams/end-of-stream:154:30)
at ServerResponse.emit (node:events:526:35)
at emitCloseNT (node:_http_server:996:10)
at Socket.onServerResponseClose (node:_http_server:278:5)
at Socket.emit (node:events:526:35)
at TCP.<anonymous> (node:net:323:12)
[Nest] 7 - 08/14/2023, 7:25:57 AM ERROR [ExpressAdapter] Premature close
Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close
at new NodeError (node:internal/errors:405:5)
at ServerResponse.onclose (node:internal/streams/end-of-stream:154:30)
at ServerResponse.emit (node:events:526:35)
at emitCloseNT (node:_http_server:996:10)
at Socket.onServerResponseClose (node:_http_server:278:5)
at Socket.emit (node:events:526:35)
at TCP.<anonymous> (node:net:323:12)
[Nest] 7 - 08/14/2023, 7:26:05 AM ERROR [ExpressAdapter] Premature close
Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close
at new NodeError (node:internal/errors:405:5)
at ServerResponse.onclose (node:internal/streams/end-of-stream:154:30)
at ServerResponse.emit (node:events:526:35)
at emitCloseNT (node:_http_server:996:10)
at Socket.onServerResponseClose (node:_http_server:278:5)
at Socket.emit (node:events:526:35)
at TCP.<anonymous> (node:net:323:12)
[Nest] 7 - 08/14/2023, 7:26:05 AM ERROR [ExpressAdapter] Premature close
Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close
at new NodeError (node:internal/errors:405:5)
at ServerResponse.onclose (node:internal/streams/end-of-stream:154:30)
at ServerResponse.emit (node:events:526:35)
at emitCloseNT (node:_http_server:996:10)
at Socket.onServerResponseClose (node:_http_server:278:5)
at Socket.emit (node:events:526:35)
at TCP.<anonymous> (node:net:323:12)
@kyemacdonald you can ignore those stream playback interruptions error
Ok. But playback on those videos fails and immich becomes unresponsive until the time out occurs.
The bug
Playback of a video fails with immich reporting permission denied to the file. This then causes handlers to crash and time out.
Videos have been imported into immich via the android app. The video has been processed and provides a thumbnail and exif data.
`[Nest] 8 - 08/14/2023, 5:03:40 AM ERROR [ExceptionsHandler] EACCES: permission denied, access 'upload/library/admin/2023/2023-08-10/2023-08-10-20230810_194431.mp4'
Error: EACCES: permission denied, access 'upload/library/admin/2023/2023-08-10/2023-08-10-20230810_194431.mp4'
[Nest] 8 - 08/14/2023, 5:04:38 AM ERROR [ExceptionsHandler] EACCES: permission denied, access 'upload/library/admin/2023/2023-08-10/2023-08-10-20230810_194437.mp4'
Error: EACCES: permission denied, access 'upload/library/admin/2023/2023-08-10/2023-08-10-20230810_194437.mp4'
[Nest] 8 - 08/14/2023, 5:04:38 AM ERROR [ExceptionsHandler] EACCES: permission denied, access 'upload/library/admin/2023/2023-08-10/2023-08-10-20230810_194426.mp4'
Error: EACCES: permission denied, access 'upload/library/admin/2023/2023-08-10/2023-08-10-20230810_194426.mp4'
[Nest] 8 - 08/14/2023, 5:04:38 AM ERROR [ExceptionsHandler] EACCES: permission denied, access 'upload/library/admin/2023/2023-08-10/2023-08-10-20230810_194437.mp4'
Error: EACCES: permission denied, access 'upload/library/admin/2023/2023-08-10/2023-08-10-20230810_194437.mp4'
[Nest] 8 - 08/14/2023, 5:05:02 AM ERROR [ExceptionsHandler] EACCES: permission denied, access 'upload/library/admin/2023/2023-08-10/2023-08-10-20230810_194437.mp4'
Error: EACCES: permission denied, access 'upload/library/admin/2023/2023-08-10/2023-08-10-20230810_194437.mp4'
[Nest] 8 - 08/14/2023, 5:05:02 AM ERROR [ExceptionsHandler] EACCES: permission denied, access 'upload/library/admin/2023/2023-08-10/2023-08-10-20230810_194431.mp4'
Error: EACCES: permission denied, access 'upload/library/admin/2023/2023-08-10/2023-08-10-20230810_194431.mp4'
[Nest] 8 - 08/14/2023, 5:05:02 AM ERROR [ExceptionsHandler] EACCES: permission denied, access 'upload/library/admin/2023/2023-08-10/2023-08-10-20230810_194426.mp4'
Error: EACCES: permission denied, access 'upload/library/admin/2023/2023-08-10/2023-08-10-20230810_194426.mp4'
[Nest] 8 - 08/14/2023, 5:05:02 AM ERROR [ExceptionsHandler] EACCES: permission denied, access 'upload/library/admin/2023/2023-08-10/2023-08-10-20230810_194232.mp4'
Error: EACCES: permission denied, access 'upload/library/admin/2023/2023-08-10/2023-08-10-20230810_194232.mp4'
[Nest] 8 - 08/14/2023, 5:05:20 AM ERROR [ExceptionsHandler] EACCES: permission denied, access 'upload/library/admin/2023/2023-08-10/2023-08-10-20230810_194431.mp4'
Error: EACCES: permission denied, access 'upload/library/admin/2023/2023-08-10/2023-08-10-20230810_194431.mp4'
[Nest] 8 - 08/14/2023, 5:05:20 AM ERROR [ExceptionsHandler] EACCES: permission denied, access 'upload/library/admin/2023/2023-08-10/2023-08-10-20230810_194431.mp4'
Error: EACCES: permission denied, access 'upload/library/admin/2023/2023-08-10/2023-08-10-20230810_194431.mp4'
[Nest] 8 - 08/14/2023, 5:05:21 AM ERROR [ExceptionsHandler] EACCES: permission denied, access 'upload/library/admin/2023/2023-08-10/2023-08-10-20230810_194431.mp4'
Error: EACCES: permission denied, access 'upload/library/admin/2023/2023-08-10/2023-08-10-20230810_194431.mp4'
[Nest] 8 - 08/14/2023, 5:05:27 AM ERROR [ExceptionsHandler] EACCES: permission denied, access 'upload/library/admin/2023/2023-08-10/2023-08-10-20230810_194431.mp4'
Error: EACCES: permission denied, access 'upload/library/admin/2023/2023-08-10/2023-08-10-20230810_194431.mp4'
[Nest] 8 - 08/14/2023, 5:05:47 AM ERROR [ExceptionsHandler] EACCES: permission denied, access 'upload/library/admin/2023/2023-08-10/2023-08-10-20230810_194431.mp4'
Error: EACCES: permission denied, access 'upload/library/admin/2023/2023-08-10/2023-08-10-20230810_194431.mp4'
[Nest] 8 - 08/14/2023, 5:05:51 AM ERROR [ExceptionsHandler] Connection terminated due to connection timeout
Error: Connection terminated due to connection timeout
[Nest] 8 - 08/14/2023, 5:05:51 AM ERROR [ExceptionsHandler] Connection terminated due to connection timeout
Error: Connection terminated due to connection timeout
[Nest] 8 - 08/14/2023, 5:05:51 AM ERROR [ExceptionsHandler] Connection terminated due to connection timeout
Error: Connection terminated due to connection timeout
[Nest] 8 - 08/14/2023, 5:05:51 AM ERROR [ExceptionsHandler] Connection terminated due to connection timeout
Error: Connection terminated due to connection timeout
[Nest] 8 - 08/14/2023, 5:05:51 AM ERROR [ExceptionsHandler] Connection terminated due to connection timeout
Error: Connection terminated due to connection timeout
[Nest] 8 - 08/14/2023, 5:05:51 AM ERROR [ExceptionsHandler] Connection terminated due to connection timeout
Error: Connection terminated due to connection timeout
[Nest] 8 - 08/14/2023, 5:05:51 AM ERROR [ExceptionsHandler] Connection terminated due to connection timeout
Error: Connection terminated due to connection timeout
[Nest] 8 - 08/14/2023, 5:06:29 AM ERROR [ExceptionsHandler] EACCES: permission denied, access 'upload/library/admin/2023/2023-08-10/2023-08-10-20230810_194426.mp4'
Error: EACCES: permission denied, access 'upload/library/admin/2023/2023-08-10/2023-08-10-20230810_194426.mp4'
[Nest] 8 - 08/14/2023, 5:06:31 AM ERROR [ExceptionsHandler] EACCES: permission denied, access 'upload/library/admin/2023/2023-08-10/2023-08-10-20230810_194426.mp4'
Error: EACCES: permission denied, access 'upload/library/admin/2023/2023-08-10/2023-08-10-20230810_194426.mp4'
[Nest] 8 - 08/14/2023, 5:06:39 AM ERROR [ExceptionsHandler] EACCES: permission denied, access 'upload/library/admin/2023/2023-08-10/2023-08-10-20230810_194431.mp4'
Error: EACCES: permission denied, access 'upload/library/admin/2023/2023-08-10/2023-08-10-20230810_194431.mp4'`
Output from inside the container showing file list and permission.
root@f8ce7da4c5d3:/usr/src/app/upload# cd library/admin/2023/2023-08-10 root@f8ce7da4c5d3:/usr/src/app/upload/library/admin/2023/2023-08-10# ls -la total 159532 drwxrwxrwx 2 root root 4096 Aug 11 09:38 . drwxrwxrwx 223 root root 12288 Aug 11 03:24 .. -rwxrwxrwx 1 root root 6738745 Aug 10 01:29 2023-08-10-20230810_080031.jpg -rwxrwxrwx 1 root root 6800142 Aug 10 01:29 2023-08-10-20230810_080034.jpg -rwxrwxrwx 1 root root 6652097 Aug 10 01:29 2023-08-10-20230810_083831.jpg -rwxrwxrwx 1 root root 2416641 Aug 11 09:38 2023-08-10-20230810_102235.jpg -rwxrwxrwx 1 root root 2442687 Aug 11 09:38 2023-08-10-20230810_102318.jpg -rwxrwxrwx 1 root root 2528520 Aug 11 09:38 2023-08-10-20230810_102323.jpg -rwxrwxrwx 1 root root 2443156 Aug 11 09:38 2023-08-10-20230810_102327.jpg -rwxrwxrwx 1 root root 2349095 Aug 11 09:38 2023-08-10-20230810_142918.jpg -rwxrwxrwx 1 root root 1857505 Aug 11 09:38 2023-08-10-20230810_155356.jpg -rwxrwxrwx 1 root root 25162697 Aug 10 10:13 2023-08-10-20230810_194232.mp4 -rwxrwxrwx 1 root root 2901629 Aug 10 10:13 2023-08-10-20230810_194426.mp4 -rwxrwxrwx 1 root root 2437533 Aug 10 10:13 2023-08-10-20230810_194431.mp4 -rwxrwxrwx 1 root root 98570920 Aug 10 10:13 2023-08-10-20230810_194437.mp4 root@f8ce7da4c5d3:/usr/src/app/upload/library/admin/2023/2023-08-10#
The OS that Immich Server is running on
Ubuntu 22.04.02 LTS VM on Proxmox
Version of Immich Server
v1.72.2
Version of Immich Mobile App
1.72.0 build.95
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Additional information
Doesn't seem to impact all videos. Unsure as to what the deciding difference is between them. However the files are in the location because immich imported them, so can't see a reason why a permission error would happen.