Mender-cli gitlab "Unauthorized. Please Login first"

Hi,

I am trying to use mender-cli to upload an artifact to the server ( https://eu.hosted.mender.io/) but always get the failure “Unauthorized. Please Login first”. Token is a freshly created PAT.
image

When testing with the docker container on my WSL it looks similar:
image

I have to enter my user credentials to get logged in… Do I miss something?
Thanks!
Nils

Hi @nilso,

Thanks for reaching out! I tried to reproduce the problem, but only succeeded half:

  • the login command is not meant to be in conjunction with the PATS, it also falls to username and password for me. Guess the documentation should be clearer here.
  • the mender-cli artifacts upload using --server and --token-value flags worked nicely here.

The first thing to hit my mind, is there maybe some problem with shell expansions?

Greetz,
Josef

Hi @TheYoctoJester ,
thanks for clarification. The solution was much easier. We simply used the wrong server :see_no_evil_monkey: