-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uploading large video file via immich cli fails #7052
Comments
I just ran into the same problem yesterday when trying to upload video files that are greater than 4GB. I'm running |
I also just received this error when attempting to upload a large collection of images and videos through the CLI:
The file that it tripped on is a 11.7 GB large MP4. When I reran the import the script halted on the same file a second time. This is on an Unraid system with 128 GB of RAM. For a work-around I'll attempt to remove anything larger than 4GB from the import directory like @lakestonelabs suggested. If importing files this large isn't a possibility, we should at least be catching the error, logging it, and continuing with the import. |
Same problem when using deployment via Docker Compose on Ubuntu 22.04. Cli is installed on Node v21.6.2 on same machine |
Also, same files managed to upload over website so it's more likely an issue with CLI |
Same behaviour, size bigger than 4Go failed to import. And the Version : |
I am experiencing this same issue running Immich 1.98.1 on a Compose setup with Node.js v20.11.1 and Immich CLI 2.0.7. $ docker exec -ti immich_server bash
node@207a6cbdc17a:/usr/src/app$ id -u
1000
node@207a6cbdc17a:/usr/src/app$ cd upload/User
node@207a6cbdc17a:/usr/src/app/upload/User$ ls -lhAF
-rw-rw-rw- 1 99 users 5.6G Mar 10 2024 big_file.mp4
node@207a6cbdc17a:/usr/src/app/upload/User$ immich login-key http://localhost:3001/api MY_API_KEY
Logging in...
Logged in as [email protected]
Wrote auth info to /home/node/.config/immich/auth.yml
node@207a6cbdc17a:/usr/src/app/upload/User$ time immich upload /usr/src/app/upload/User
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ | 0% | ETA: 0s | 0/5.6 GB: /usr/src/app/upload/User/big_file.mp4
file:///usr/src/app/node_modules/@immich/cli/dist/index.js:9719
throw new FetchError(e, "The request failed and the interceptors did not return an alternative response");
^
FetchError: The request failed and the interceptors did not return an alternative response
at AssetApi.fetchApi (file:///usr/src/app/node_modules/@immich/cli/dist/index.js:9719:19)
at async AssetApi.request (file:///usr/src/app/node_modules/@immich/cli/dist/index.js:9771:22)
... 3 lines matching cause stack trace ...
at async Command.<anonymous> (file:///usr/src/app/node_modules/@immich/cli/dist/index.js:22454:3) {
cause: TypeError: fetch failed
at node:internal/deps/undici/undici:12345:11
at async AssetApi.fetchApi (file:///usr/src/app/node_modules/@immich/cli/dist/index.js:9704:20)
at async AssetApi.request (file:///usr/src/app/node_modules/@immich/cli/dist/index.js:9771:22)
at async AssetApi.uploadFileRaw (file:///usr/src/app/node_modules/@immich/cli/dist/index.js:13469:22)
at async AssetApi.uploadFile (file:///usr/src/app/node_modules/@immich/cli/dist/index.js:13481:22)
at async UploadCommand.run (file:///usr/src/app/node_modules/@immich/cli/dist/index.js:22389:30)
at async Command.<anonymous> (file:///usr/src/app/node_modules/@immich/cli/dist/index.js:22454:3) {
cause: RequestContentLengthMismatchError: Request body length does not match content-length header
at AsyncWriter.write (node:internal/deps/undici/undici:9682:19)
at writeIterable (node:internal/deps/undici/undici:9642:23) {
code: 'UND_ERR_REQ_CONTENT_LENGTH_MISMATCH'
}
}
} |
Affects CLI v2.1.0 as well, but gives a slightly different error message
|
I wonder if its a greater issue than just CLI. |
This is definitely still an issue |
And it affects 1.99.0 as well. |
The bug
When I try to upload a ~11GB video file via immich cli on windows I get the following error:
I connect directly to the immich docker ocntainer. There is no error message in the immich docker logs.
The OS that Immich Server is running on
Docker for Windows on Windows 11
Version of Immich Server
v1.94.1
Version of Immich Mobile App
v1.94.1
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Additional information
No response
The text was updated successfully, but these errors were encountered: