License server
Troubleshooting
What to check when the license server won't start, Tenon can't reach it, or seats are refused.
Most license server problems show up in one of two places: in the
cluster, where its pods won’t start, or on a machine with Tenon, where
tenon license status says what’s wrong. Start with
whichever one you’re looking at. The commands below use the namespace
tenon-licensing and the release name
license-manager, as the other pages do.
kubectl -n tenon-licensing get podskubectl -n tenon-licensing logs deploy/license-manager-licensedtenon license statusThe license server doesn’t start
| What you see | What to check |
|---|---|
The seat service’s pods stay in ContainerCreating |
There’s no Secret licensed-trust yet. Apply your
license from Tangram, as in Install the license
server. |
The seat service’s pods restart, and their log mentions
delegation self-verify |
Your license isn’t signed by the trust root beside it. Check that
delegation.json and root-pub.pem in the Secret
licensed-trust are the two files Tangram sent
together. |
Pods stay in ImagePullBackOff |
The cluster can’t pull an image. Check the pull secret named in
global.imagePullSecrets, or that your mirror has all three
images under the right paths. |
Pods stay in ImagePullBackOff, and the chart keeps the
pull secret |
Its job hasn’t run yet, or its last run failed, so the login in the
secret has expired. Run the job now with
kubectl -n tenon-licensing create job pull-secret-now --from=cronjob/license-manager-ecr-cronjob,
and read its log. See Keep an
AWS registry’s credentials current. |
Pods or the key-generation job stay Pending |
A volume can’t be created. Check that your cluster has a default StorageClass, or name one in your values file. |
| The key-generation job fails | Read its log with
kubectl -n tenon-licensing logs job/<job-name>. It
needs to create a Secret and a ConfigMap in the namespace. |
Tenon can’t reach the license server
When Tenon can’t reach the license server,
tenon license status says
Licensing: configured, but the license server can't be checked ✗,
with the reason in brackets, and licensed commands stop with exit code
13. Check the route from the same machine with
curl https://licensing.example.com/v1/status, which should
answer with your license’s seat counts.
| The reason in brackets | What to check |
|---|---|
HTTP 404 for /v1/status: not a license server at that address, or something in between |
The address reaches something other than the seat service, such as
the dashboard, or a proxy that doesn’t route /v1/ to it.
Point the address, or the route, at the seat service. |
couldn't connect: … |
Nothing answers at the address. Check its DNS name, the route into
the cluster, and that the network policy lets the traffic through:
networkPolicy.clientNamespaces or
networkPolicy.clientCIDRs. See Connect developers and CI. |
| A certificate error | The machine doesn’t trust the certificate the address presents. Use one from a certificate authority every machine and runner trusts. |
From CI, check the same things from a runner: the address in
FLEX_LICENSE_SERVER has to be reachable from the runners’
network, which may not be the same as a developer’s.
Seats are refused
When the license server refuses a seat, licensed commands stop with
exit code 10, and say why.
| What you see | What to check |
|---|---|
| The license has expired | tenon license status shows the date it expired. Apply a
renewed license, as in Renew your license. |
| No seats are free | Every floating seat is checked out.
tenon license status shows how many are in use. A seat
nobody is using frees itself within 4 hours, and the dashboard shows who
holds each one, to an admin, who can release them. |
| A node-locked seat is refused | The machine isn’t in your license, or
license.node_locked is on for a machine that should use a
floating seat. See Add node-locked
machines. |
issued lease failed offline verify: lease signature invalid |
Either the machine’s trust root doesn’t match your license, or the
license server’s key doesn’t. For the first, run
tenon license configure --root-pubkey root-pub.pem --yes
with the trust root Tangram sent. If every machine sees it, the license
server’s key has probably been generated again, as after its namespace
was deleted: restore
the key, or ask Tangram for a license for the new one. |
The dashboard
| What you see | What to check |
|---|---|
Your Ingress controller answers with a 502 |
The chart’s network policy blocks the controller, which is in
another namespace. Add its namespace to
networkPolicy.dashboardFromNamespaces, as in Publish the
dashboard. |
| The sign-in refuses the admin password | Read it again from license-manager-dashboard-auth. A
reinstall generates a new one; an upgrade keeps it. |
| No holder names beside the seats | That’s how it works without a sign-in. Sign in as the admin to see who holds each seat. |
The activity store
| What you see | What to check |
|---|---|
| The dashboard or the activity export says the activity store is unavailable | The activity store isn’t running or isn’t ready. Seats still work, and the license server holds new activity until the store is back. |
| The dashboard’s activity store tile says it’s behind | The activity store is slow or stuck. Check its log, and whether its volume is full. |
401 admin token required |
The request has no admin token, or the wrong one, or you’re not signed in to the dashboard as the admin. |
| The activity store can’t write after a restore | The snapshot was copied as root. Copy it again as user 65532, as in Restore from a snapshot. |
| A machine’s activity is refused as too old | It was queued on the machine, offline, for longer than
activity.lateAcceptDays, 7 days by default. |