Can't login from CLI

Hi!

I just created a new account on Husarnet this morning.

My desktop is running Zorin OS (Debian/Ubuntu based). I installed Husarnet package using standard method, which installed release 2.0.180.

When trying to login, I always get an error:

Password:
ERROR: Authentication error occured
ERROR: invalid character ‘<’ looking for beginning of value

Here is my Husarnet status:

tflorac@P01289 /e/s/system [1]> husarnet status
Version
● CLI: 2.0.180
● Daemon (running): 2.0.180
● Daemon (binary): 2.0.180

Feature flags
● Hooks: disabled
● Disabled hooks are not a reason to panic, unless your setup needs them
● Notifications: enabled

Dashboard URL
● CLI: prod.husarnet.com
● Daemon: prod.husarnet.com
● You’re using development environment

Connection status
● Base Server: 188.165.23.196:443 (TCP)
● TCP is a fallback connection method. You’ll get better results on UDP

Readiness
● Is ready to handle data? yes
● Is ready to join? yes
● Is joined? no

Local
● Husarnet IP:
xxxx:xxxx:xxxx…

Whitelist

I changed my password several times to avoid any custom characters, but nothing change.

Any idea?

Regards,
Thierry

Hello @tflorac

Thank you for the report.

Yes, unfortunately the old API (with husarnet login ) is retired and docs are not updated yet :frowning: sorry for the inconvenience, we will try to update the docs soon.

To use the Dashboard API now, you need to flip the switch in Husarnet Dashboard and use root account on your machine. There is also more manual method (manually obtaining JWT to use with curl) possible. Refer to this documentation: Husarnet Dashboard API documentation and manual | Husarnet

BR,
ympek

Hi,

I tried with my own login and with sudo, so I don’t think that the root access is the source of the problem.

I tried to look at my Husarnet dashboard, but can’t see any “switch” (settings only include my “Account information” and “Network settings”) and link to Beta Dashboard seems dead!

Regards,
Thierry

Alright, first you need to claim a device. You will see “copy claim code” button at the top of the Dashboard. You execute sudo husarnet claim <CLAIM_CODE> (or sudo husarnet join <CLAIM_CODE>, one is the alias of the other

And the device should appear in “Devices” section of your Dashboard. If you open the Device details, you will see “AccountAdmin” switch. This enables the CLI API.

BR,
ympek

OK, nice!, seems to work!! :slight_smile:

Regards,
Thierry

1 Like