immich-cli connection error
When I set up the cli for mass upload, it keeps "pinging server" until "Error connecting to server - check server address and port" occurs.
I connect to Immich web-ui very well at 192.168.1.77:2283
I set up immich-cli via docker:
docker run -it --rm -v </share/Phone>:/import ghcr.io/immich-app/immich-cli:latest upload --key <api-key> --server http://192.168.1.77:2283/api --album
I have googled the common error of cli but their server status is all ok at least. Any suggestion? Thank you.
3 Replies
Are they both containers on the same machine?
If you're running the CLI inside docker on the same machine, the "internal networking" section here might be relevant 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
Yeah, it works. I always focus only on the github installation guide and missed the one on official page.
They are both containers in the same device. Except the server is created by portainer and the cli is created by ssh.
But http://immich-server:3001 doesnt work in my case.
It should be http://portainer_network_address:2283/api