I am having some weird network issues, seemed to have started couple days ago. How this all started, is I was trying to do some of my AWS training for Professional Certificates on Linux Academy. I have been unable to login to Linux Academy website on my main workstation since Dec 26th. I either get a generic error the error below, or it just times out. I am able to login to my Linux Academy account just fine on my Windows VM, or Fedora Laptop.
Error Encountered:
invalid_request : jwt expired
Please try again. If this error persists, please contact Support
I am currently running Pop_OS 18.10 on my main workstation. I cannot seem to get to the bottom of it. Speedtest dot net bombs out on upload test from my main workstation, works perfecting from Unifi USG, Windows VM, Linux VM and my Linux work laptop. I have tried moving network cable from 1 switch to other switch, same results, tried different network cable, same results. Tried LiveUSB (Fedora 29), same results. Same errors with USB network adapter. Iperf test shows 1.09Gbps in both directions to my server.
I just ran another test. Fast dot com seems to function correctly for speed tests. While my upload still bombs out when trying to use speedtest dot net.
In ~14 years of IT I have never seen anything like this. I have also been running Linux since late 90’s. Does not mean I am over looking something stupid, but just want to make it clear I am not new to the OS and just do not know what I am doing.
First thought is to check the date on your machine. JWT is commonly used instead of cookies for authentication and session tracking these days (JSON Web Token). Otherwise it may simply be a fault in Linux Academy’s infrastructure.
More on JWT: The servers store all session information in a cryptographically signed, base64 encoded JSON blob. The signature is how the server is able to know the token hasn’t been tampered with. This simplifies the server because it doesn’t have to communicate with a shared database to track session state. It just verifies the signature on the token that is sent with your request, and all the state it needs is in the token. One of the pieces of data is an expiration date that tells the server when the token will no longer be valid (helps prevent replay attacks by limiting the lifetime of a token).
With this in mind, it seems more likely that the problem is solely on Linux Academy’s end, since the client should have no control over the contents (and thus expiry) of the token. Perhaps your client is reusing the wrong token? Usually they are sent in the HTTP Authorization header as a bearer token. Something else you could try then is a different browser.
I have tried Firefox, Chrome, and Chromium. I also have deleted the profiles for each of these browsers, and tried private browsing windows. I have a ticket in with Linux Academy, but they say they do not “store” any client information on their side. That was the first thing I was trying is I thought it might be some corrupt profile token for this machine. Linux Academy also said its not on their side cause I am able to login to my account form my Windows VM and my work laptop running Fedora. The tech at Linux Academy was also able to login to my account just fine.
In Gnome I have it setup to pull time from the internet. I would think that should be accurate enough for login session tokens.
Any idea what would cause the socket error on upload side of a bandwidth test?
Glad you figured it out! Just to clarify, the JWT token is not stored by the server, it’s sent to the client, and the client sends back it in a header with every request. ECN being the issue suggests either a firewall or Linux Academy’s server doesn’t properly handle ECN. Odd but I guess that’s why the default is 2.