Bulk upload

This is my docker compose that I'm running on Unraid I'm trying to bulk upload my photos with this command
docker run -it --rm -v "/mnt/user/Personal/Photos:/import" ghcr.io/immich-app/immich-cli:latest upload --key zFM441pDb6olqipjSXk9Mt6ReUfCdfqw68oPHJMbY --server http://10.10.40.170:8080/api
docker run -it --rm -v "/mnt/user/Personal/Photos:/import" ghcr.io/immich-app/immich-cli:latest upload --key zFM441pDb6olqipjSXk9Mt6ReUfCdfqw68oPHJMbY --server http://10.10.40.170:8080/api
https://immich.app/docs/features/bulk-upload I get this error when I run the command (pics attached) The one with the api error is when I open http://10.10.40.170:8080/api from the browser, if I open http://10.10.40.170:8080/ it goes to the immich webui Docker compose: https://0bin.net/paste/7EP22FkL#p8Pjgnws0fR9PeZXzGX2od08J12cB1GVAu0uQfFP6gP
Bulk Upload (Using the CLI) | Immich
You can use the CLI to upload an existing gallery to the Immich server
0bin - encrypted pastebin
0bin is a client-side-encrypted alternative pastebin. You can store code/text/images online for a set period of time and share with the world. Featuring burn after reading, history, clipboard.
No description
No description
22 Replies
bo0tzz
bo0tzz2y ago
The first command (docker run) is the correct one. What exactly is the IP address you're using? You want to use either the IP of the host (if it can be reached from inside docker), or the internal address of the immich_server container (see the "internal networking" note at https://immich.app/docs/features/bulk-upload#run-via-docker)
Bulk Upload (Using the CLI) | Immich
You can use the CLI to upload an existing gallery to the Immich server
L0rdRaiden
L0rdRaidenOP2y ago
I was using the external one because I have the service publish with a fixed IP I'm running the command from a host with a different IP (unraid host 10.10.10.5)
bo0tzz
bo0tzz2y ago
What's the address you use when opening Immich in a browser?
L0rdRaiden
L0rdRaidenOP2y ago
maybe I'm not exposing the API correctly or a port is missing in the compose or something http://10.10.40.170:8080/photos look at the compose
bo0tzz
bo0tzz2y ago
On the host where you're trying to upload from, what is the result of curl http://10.10.40.170:8080/api ?
L0rdRaiden
L0rdRaidenOP2y ago
{"statusCode":404,"message":"Cannot GET /api","error":"Not Found"}
bo0tzz
bo0tzz2y ago
OK, so it can connect
L0rdRaiden
L0rdRaidenOP2y ago
is the API using the same port than the web?
immich-proxy:
container_name: Immich_proxy
image: ghcr.io/immich-app/immich-proxy:release
networks:
immich_network:
br1:
ipv4_address: 10.10.40.170
ports:
- 2283:8080
dns:
- 10.10.50.5
environment:
# Make sure these values get passed through from the env file
- IMMICH_SERVER_URL
- IMMICH_WEB_URL
logging:
driver: none
depends_on:
- immich-server
restart: always
immich-proxy:
container_name: Immich_proxy
image: ghcr.io/immich-app/immich-proxy:release
networks:
immich_network:
br1:
ipv4_address: 10.10.40.170
ports:
- 2283:8080
dns:
- 10.10.50.5
environment:
# Make sure these values get passed through from the env file
- IMMICH_SERVER_URL
- IMMICH_WEB_URL
logging:
driver: none
depends_on:
- immich-server
restart: always
`
bo0tzz
bo0tzz2y ago
Are you running the upload command on the same host that runs the Immich server?
L0rdRaiden
L0rdRaidenOP2y ago
yes but they have different IP's
bo0tzz
bo0tzz2y ago
Can you try the internal networking approach that I linked above?
L0rdRaiden
L0rdRaidenOP2y ago
root@Unraid:~# docker run --network immich_immich_network -it --rm -v "/mnt/user/Personal/Photos:/import" ghcr.io/immich-app/immich-cli:latest upload --key zFM441pDb6olqipjSXk9Mt6ReUfCdfqw68oPHJMbY --server http://immich-server:3001/ Checking connectivity with Immich instance... Error connecting to server - check server address and port root@Unraid:~# docker network ls NETWORK ID NAME DRIVER SCOPE f23a2926d85c br0 macvlan local ec0aaa5f1ae8 br1 macvlan local 72391f057422 br2 macvlan local 9d92a30cba28 bridge bridge local e9dd950fda68 host host local 743ded536272 immich_immich_network bridge local d6b3c4e95d2f nextcloud_nextcloud_network bridge local b569099e9c21 none null local root@Unraid:~# I think the command is right
bo0tzz
bo0tzz2y ago
Might have to use http://Immich-server:3001 since you changed the container name, not sure if casing matters here
L0rdRaiden
L0rdRaidenOP2y ago
same error
bo0tzz
bo0tzz2y ago
Can you try from another machine just to narrow down whether it's network or something else?
L0rdRaiden
L0rdRaidenOP2y ago
No description
bo0tzz
bo0tzz2y ago
With the upload CLI, I mean
L0rdRaiden
L0rdRaidenOP2y ago
that means that it can't see /api right' ?
bo0tzz
bo0tzz2y ago
No, that's an error coming from the Immich API. A little confusing but it's actually good & expected It just means the api doesn't do anything on just the /api path
L0rdRaiden
L0rdRaidenOP2y ago
will try from other host
L0rdRaiden
L0rdRaidenOP2y ago
No description
L0rdRaiden
L0rdRaidenOP2y ago
now I got another error it works,sorry xD

Did you find this page helpful?