Closed gdamx closed 6 months ago
Immich -V yields version 2.0.7
Please make sure your cli is up to date.
It's not
On Wed, Mar 20, 2024, 4:30 p.m. kocane @.***> wrote:
Please make sure your cli is up to date.
I get this error if I use the cli in the docker container itself (immich_server).
Is the cli of the docker not kept up up-to-date?
— Reply to this email directly, view it on GitHub https://github.com/immich-app/immich/issues/8092#issuecomment-2010568253, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXWEMYLPD6L5JLKX25VJ4QTYZHWXRAVCNFSM6AAAAABE7OHGMCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJQGU3DQMRVGM . You are receiving this because you authored the thread.Message ID: @.***>
@bo0tzz I am also having this issue using the cli within the immich-server
(latest release tag) container itself. Shall I open a new issue or post details here? My uploads have been working until recently.
For reference I'm running:
docker exec -it immich-server bash -c 'immich login-key '"$immich_endpoint"' '"$token"'; immich upload --recursive --album /files_to_upload; immich logout'
where /files_to_upload
is a mapped volume, and $immich_endpoint
is http://127.0.0.1:3001/api
. Thanks in advance for any input/advice.
It looks like the @immich/cli
installed on the server is old. It'll be upgraded in the next release. Alternatively you can probably install it yourself with npm i -g @immich/cli@latest
Thanks, @jrasm91 - Can confirm; running immich -V
inside the server container returns 2.0.7
-- updated via npm
as mentioned and that's worked great! For anyone who might do the same: I had to use docker exec -u 0 -it immich-server bash
(the -u 0
argument gives you a root shell) for permissions.
I shall retry my upload now, and thanks again to you + everyone who works on this amazing platform.
Edit: Upload is working perfectly now :)
The bug
oot@19da0a9a12b2:/# immich upload --recursive /photos/admin/ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ | 0% | ETA: 0s | 0/136.8 GB: /photos/admin/2002/2002-12-08/IMG_20130224_144628.jpg file:///app/immich/server/node_modules/@immich/cli/dist/index.js:9775 throw new ResponseError(response, "Response returned an error code"); ^
ResponseError: Response returned an error code at AssetApi.request (file:///app/immich/server/node_modules/@immich/cli/dist/index.js:9775:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async AssetApi.uploadFileRaw (file:///app/immich/server/node_modules/@immich/cli/dist/index.js:13469:22) at async AssetApi.uploadFile (file:///app/immich/server/node_modules/@immich/cli/dist/index.js:13481:22) at async UploadCommand.run (file:///app/immich/server/node_modules/@immich/cli/dist/index.js:22389:30) at async Command. (file:///app/immich/server/node_modules/@immich/cli/dist/index.js:22454:3) {
response: Response {
} }
The OS that Immich Server is running on
Unraid
Version of Immich Server
1.98.2
Version of Immich Mobile App
na
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Additional information
No response