#API login creates auth file in correct location but Upload call states no auth file exists

1 messages · Page 1 of 1 (latest)

bronze adder
#

Hi,
The title says it all really.
I'm doing a rebuild after a nasty crash of my system and I have a separate backup of all my media outside of my old immich setup.
For my new build I'm running on Docker (Portainer), Immich v1.117.0 and immich cli native on Ubuntu 24 server (installed today so it will be latest with updated NodeJS to v20). but I'm seeing this behaviour;

$ immich login http://192.168.0.xx:2283/api MySuperSecretToken
Logging in to http://192.168.0.xx:2283/api
Logged in as MyEmail
Wrote auth info to /home/user/.config/immich/auth.yml
$ immich upload -d /host/Pictures-bu
No auth file exists. Please login first.

Can confirm the file is there with the correct details.
Can anybody nudge me in the direction I need to be to get this working?

Kind regards,
Ijven

proven juncoBOT
#

:wave: Hey @bronze adder,

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

Checklist

  1. :blue_square: I have verified I'm on the latest release(note that mobile app releases may take some time).
  2. :blue_square: I have read applicable release notes.
  3. :blue_square: I have reviewed the FAQs for known issues.
  4. :blue_square: I have reviewed Github for known issues.
  5. :blue_square: I have tried accessing Immich via local ip (without a custom reverse proxy).
  6. :blue_square: 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.

sacred shard
#

How did you install the cli?

bronze adder
#

Hi, I followed the NPM installation from the website

#

(sorry, I'm a bit confused that the explaination on the toppic is no nologer visible except for the exerpt below the title)

#

rundown is, Complete rebuild on Docker (Portainer) with v1.117.0 with CLI installed through NPM and updated NodeJS to v20.

Process goes as follows:

$ immich login http://192.168.0.25:2283/api [MYSUPERSECRETAPIKEY]
Logging in to http://192.168.0.25:2283/api
Logged in as [MyEmail]
Wrote auth info to /home/user/.config/immich/auth.yml
$ immich upload -d /mnt/host/Pictures-bu
No auth file exists. Please login first.

Can confirm the file is there with the correct details

sacred shard
#

Can you post the output of ls -la ~/.config/immich/?

bronze adder
#

drwxrwxr-x 2 user user 4096 Oct 9 09:13 .
drwxrwxr-x 5 user user 4096 Oct 9 09:12 ..
-rw------- 1 user user 83 Oct 9 09:32 auth.yml

sacred shard
#

Hmm, that looks normal

#

Just to double check, the version of the cli? immich -V

bronze adder
#

$ immich -V
2.2.23

sacred shard
#

oh lmao I see the issue

#

You're giving it the -d flag

#

-d, --config-directory <directory> Configuration directory where auth.yml will be stored (default: "/home/boet/.config/immich/", env: IMMICH_CONFIG_DIR)

bronze adder
#

oh, you have got to be kidding me

#

that'll do it wouldn't it ... it works now, as always the probem was sittuated between the keyboard and the screen. Thanks for your help!

sacred shard
#

No problem!

bronze adder
#

that -d needed to be an -r

proven juncoBOT
#

This thread has been closed. To re-open, use the button below.