Mender-connect remote terminal access suddenly dissappeared in all devices

Hello,
I’ve an issue with mender-connect. Yesterday, all fleet of devices which are running on meta-mender, the mender remote terminal access has disappeared. That means there is no button to launch remote terminal from the server. When I checked the logs, I’ve the following info,

journalctl -fu mender-connect
-- Logs begin at Sun 2020-09-20 10:43:58 UTC. --
Jul 07 10:21:00 j140-tx2-d02 mender-connect[24127]: time="2021-07-07T10:21:00Z" level=info msg="Loaded configuration file: /etc/mender/mender-connect.conf"
Jul 07 10:21:01 j140-tx2-d02 mender-connect[24127]: time="2021-07-07T10:21:01Z" level=warning msg="The server certificate cannot be loaded: no file provided"
Jul 07 10:21:07 j140-tx2-d02 systemd[1]: Stopping Mender Connect service...
Jul 07 10:21:08 j140-tx2-d02 systemd[1]: mender-connect.service: Succeeded.
Jul 07 10:21:08 j140-tx2-d02 systemd[1]: Stopped Mender Connect service.
Jul 07 10:21:08 j140-tx2-d02 systemd[1]: Started Mender Connect service.
Jul 07 10:21:08 j140-tx2-d02 mender-connect[24323]: time="2021-07-07T10:21:08Z" level=info msg="Loaded configuration file: /etc/mender/mender-connect.conf"
Jul 07 10:21:08 j140-tx2-d02 mender-connect[24323]: time="2021-07-07T10:21:08Z" level=warning msg="call to GetJWTToken on the Mender D-Bus API failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name io.mender.AuthenticationManager was not provided by any .service files"
Jul 07 10:21:08 j140-tx2-d02 mender-connect[24323]: time="2021-07-07T10:21:08Z" level=info msg="waiting for JWT token (waitForJWTToken)"
Jul 07 10:21:08 j140-tx2-d02 mender-connect[24323]: time="2021-07-07T10:21:08Z" level=warning msg="The server certificate cannot be loaded: no file provided"

I’m wondering what changed now, why all the remote terminals are disappeared suddenly.

1 Like

This is a known bug in the Mender client (it fails to provide the token to mender-connect). It is in the process of being released as we speak, and should be available in a matter of days.

Ok, Which is going to be the version with this fix? is this going to be a server side fix or client side?

It is a client side fix, and will be available in Mender Client 2.5.2, 2.6.1 and 3.0.0.

I see that v2.7 is not listed. Does that mean v2.7 has already this fix?

There is no 2.7 client. What you are talking about is the Mender Product offering, which is the complete offering of all the tools. The mapping then becomes as follows:

  • Mender client 2.5.1 <= Mender Product offering 2.6.1
  • Mender client 2.6.2 <= Mender Product offering 2.7.2
  • Mender client 3.0.0 <= Mender Product offering 3.0.0
1 Like

That’s very clear. Thank you . May I ask one more question, if there was a bug in the client side, why I was able to access the remote terminal until yesterday?

It’s a race condition, so it does not always happen, only when you are unlucky. :slightly_smiling_face:

1 Like