I am trying to stand up some test machines running Debian 11 and installing the mender-client and mender-connect deb packages using the docs form the APT repo.
I have successful installed the mender-client, mender-connect, and mender-configure deb packages and I am able to register my test machines in the mender ui using a basic demo config.
I have also paid for the configure and troubleshooting add-ons for my account.
When attempting to Remote terminal from the Mender Hosted UI I get a forbidden.
Watching the debug logs on the mender client show no errors, however watching a trace output from the mender-connect logs show the following
I did find some references in previous posts to running a dbus-send command to check if the JWT was being provided by the localhost endpoint. I can confirm that is it and the server in the logs of the mender-connect matches the server returned by the dbus-send command.
Otherwise I can find no other errors in either the mender-connect or mender-client logs and am wondering what is going on.
The mender client is run by systemd, meaning, it uses root permissions, while if you run the mender-connect as a regular user probably that is the reason it is not working as it is not able to get access to the credentials the mender-client has. If you don’t want to use it as a regular systemd service, at least you need to run it with sudo or the root user.
Let me also note the the installation enviroment is as follows
QEMU Virtual machine, X86-64 running Debian 11 (bullseye) net-install/minimal installation with not extra packages selected, and mender is deployed following
https://docs.mender.io/client-installation/install-with-debian-package – using the script to install the client, and then apt-get install mender-connect mender-configure.
mender setup is using hosted and mender-connect.conf is a follows
Update from my end. I tried using mender-cli which did work. I am able to upload, download, port-forward, and terminal into my device for the CLI running on a local machine to me.
So this seems to be an issues with the hosted.mender.io web interface – Still an issue as that is part of the troubleshoot offering, but at least some progress.
Load the page with both Cache Disabled in Dev tools, and in Incognito Modes results in the same error – below is a screen shot of the dev tools network during the Incognito Run – tried connecting 3 times
Here are the cookies that aren’t the JWT
grav-site-8c069df=6e4d692979579274335dbd080f3a1a9c; _ga=GA1.2.857832636.1658154050; _gid=GA1.2.1618402795.1658154050; _gat=1
Seems I am getting a 400 due to an error in the websocket handshake
I agree. It actually worked for a bit and then stopped working the CLI seems to work generally most of the time. It it so sad the support if so terrible even when paying for hosted mender.
After a series of reboots (luckily I have a reboot function on the apps) I was able to connect for a few minutes and get a VPN setup…which is what we were doing before using this add-on. I get that it’s not a SSH session and mender has their work cut out for them, but would really appreciate support/transparency.