You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a new Gitpod instance is started, the first user goes to create their user account and the error Error: Maximum number of users permitted by the license exceeded is returned.
Ultimately, no users are able to log in leaving an unusable instance.
It seems to be a problem that the server call to kotsadm fails and the fallback licence is not properly loaded. A log similar to this will be at the start of the server log.
In this example, the kotsadm server appears to not be running. This is not something that should happen because the kotsadm pod is already running, so clearly this is something to investigate.
Workaround
Simply reload the server pod and ensure that the above error does not happen
ensure that the server component can differentiate between licence error and fatal responses. If there are < 1 users available, crash the server
ensure that the invalid license: falling back to default actually correctly loads the default license. This may be a problem with the Replicated vs Gitpod licensor as the Replicated license requires an HTTP call whereas the Gitpod license is from a static file
The text was updated successfully, but these errors were encountered:
In this example, the kotsadm server appears to not be running. This is not something that should happen because the kotsadm pod is already running, so clearly this is something to investigate.
@mrsimonemms, just to clarify on this: the issue seems to be that the server is fetching the license only once on start, and it might happen that the license service is not yet available, because if you restart server (to repeat the request effectively) the request succeeds.
Looking at the code, the licenseEvaluator.validate is never called, thus the validation isn't repeated after initialization. It looks like there were changes made in this area which led to this gap. A solution would be to call licenseEvaluator.validate whenever the state of the license is requested, but an invalid result was returned previously.
@AlexTugarev yes. I created the Replicated licensor and wanted to keep the changes to server to a minimum. If we did make a call each time then it SHOULD work, although I guess there's the potential for that to introduce new bugs if the kotsadm service isn't available.
We almost want a nuanced approach - if the licence has loaded "correctly", then should use the in-memory licence otherwise, the server should attempt to revalidate/reload the licence.
Problem
When a new Gitpod instance is started, the first user goes to create their user account and the error
Error: Maximum number of users permitted by the license exceeded
is returned.Ultimately, no users are able to log in leaving an unusable instance.
Root cause
It seems to be a problem that the
server
call tokotsadm
fails and the fallback licence is not properly loaded. A log similar to this will be at the start of theserver
log.In this example, the
kotsadm
server appears to not be running. This is not something that should happen because thekotsadm
pod is already running, so clearly this is something to investigate.Workaround
Simply reload the
server
pod and ensure that the above error does not happenPotential avenues/solutions
server
component can differentiate between licenceerror
andfatal
responses. If there are< 1
users available, crash theserver
The text was updated successfully, but these errors were encountered: