Error on CLI import - TypeError: fetch failed

I try to upload using the cli. everythings seems good in the beginning: root@b822b7a0e66c:/usr/src/app# immich upload --recursive /home/external/photos/christoph --album-name "Christoph" --dry-run Crawling for assets... Checking files | ████████████████████████████████████████ | 100% | ETA: 0s | 1482/1482 assets Found 1482 new files and 0 duplicates Would have uploaded 1482 assets (1.4 GB) Would have created 1 new album Would have updated albums of 1482 assets But if I really do run the command the upload fails: root@b822b7a0e66c:/usr/src/app# immich upload --recursive /home/external/photos/christoph --album-name "Christoph" Crawling for assets... Checking files | █████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ | 11% | ETA: 39s | 168/1482 assets^C root@b822b7a0e66c:/usr/src/app# immich upload --recursive /home/external/photos/christoph --album-name "Christoph" Crawling for assets... Checking files | ████████████████████████████████████████ | 100% | ETA: 0s | 1482/1482 assets Found 1482 new files and 0 duplicates Uploading assets | ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ | 0% | ETA: 0s | 0/1.4 GB and after some silent working/trying (depending on the size of the folder) gives me a - /home/external/photos/christoph/weihnachten 2006/ulli/MVI_0131.avi - TypeError: fetch failed - /home/external/photos/christoph/weihnachten 2006/ulli/MVI_0166.avi - TypeError: fetch failed for every single item, concluding with: Creating albums | ████████████████████████████████████████ | 100% | ETA: 0s | 0/0 albums Successfully created 0 new albums Successfully updated 0 assets Adding assets to albums | ████████████████████████████████████████ | 100% | ETA: 0s | 0/0 assets It might be unrelated, but if i run the immich-cli docker container on my system, it gives me the standard output (manual) and then just exits mit error code 1? I can mount these assets under the path given as external library, btw... I am totally out of ideas what to do next to troubleshoot...
3 Replies
Immich
Immich7mo ago
:wave: Hey @dierochade, Thanks for reaching out to us. Please follow the recommended actions below; 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 compose ps docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy Checklist 1. :ballot_box_with_check: I have verified I'm on the latest release(note that mobile app releases may take some time). 2. :ballot_box_with_check: I have read applicable release notes. 3. :ballot_box_with_check: I have reviewed the FAQs for known issues. 4. :ballot_box_with_check: I have reviewed Github for known issues. 5. :ballot_box_with_check: I have tried accessing Immich via local ip (without a custom reverse proxy). 6. :ballot_box_with_check: I have uploaded the relevant logs, docker compose, and .env files, making sure to use code formatting. 7. :blue_square: I have 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) If this ticket can be closed you can use the /close command, and re-open it later if needed.
dierochade
dierochadeOP7mo ago
this is my compose yaml: https://pastebin.com/ipHfycn4 this is my .env: https://pastebin.com/f5DdR0CC
Pastebin
compose.yaml - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
env - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
dierochade
dierochadeOP7mo ago
I tried to directly access the instance (without the reverse proxy by exposing default port 2283. If I run the cli from inside the server container i do get this?? Logging in to http://192.168.100.103:2283/auth/login/api Logged in as undefined Wrote auth info to /root/.config/immich/auth.yml root@60edbedd409b:/usr/src/app# immich upload --recursive /home/external/photos/thomas --album-name "Thomas" --dry-run Crawling for assets... file:///usr/local/lib/node_modules/@immich/cli/dist/index.js:16586 extensions: [...image, ...video] ^ TypeError: image is not iterable at scan (file:///usr/local/lib/node_modules/@immich/cli/dist/index.js:16586:21) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async upload (file:///usr/local/lib/node_modules/@immich/cli/dist/index.js:16568:21) Node.js v20.18.0 root@60edbedd409b:/usr/src/app# I was able to upload using immich-go (although its based on the api/cli?), so this is from here only relevant for bug-tracking imho.

Did you find this page helpful?