Skip to content

Added troubleshooting page for license check failures#429

Open
zzzeebra wants to merge 1 commit into
mainfrom
docs/license-server-troubleshooting
Open

Added troubleshooting page for license check failures#429
zzzeebra wants to merge 1 commit into
mainfrom
docs/license-server-troubleshooting

Conversation

@zzzeebra
Copy link
Copy Markdown

Summary

Adds a new docs page documenting how License Server client failures manifest in ThingsBoard PE logs, and how to fix each canonical error code.

The existing what-is-license-server.mdx only vaguely says the client "may shut down the ThingsBoard instance" — leaving operators to debug INVALID_LICENSE_SECRET(101), INVALID_LICENSE_CHECK_SECRET(107), CONNECTION_ERROR(400), and PKIX/SSL failures from scratch. This page lists each mode with a concrete recovery procedure.

Changes

  • New page docs/license-server/troubleshooting:
    • The new ERROR-banner format *** LICENSE CHECK FAILED ({code} - code {n}) *** and a grep example to locate it across logs.
    • A canonical error-code table.
    • Per-code recovery instructions (101, 107, 400, PKIX, GENERAL_ERROR).
    • Container exit-code explanation (JVM -1 → POSIX 255).
    • Docker Compose restart: on-failure recommendation that avoids the infinite-restart-loop symptom.
  • Linkback added at the end of the Prerequisites section in what-is-license-server.mdx (right where the "may shut down" mention is).
  • Sidebar: new Troubleshooting group in the License Server sidebar.

Companion PR

Backend PR introducing the ERROR banner the page references: thingsboard/thingsboard-pe#4799.

Test plan

  • npm run build clean (3818 pages, no errors related to the new content)
  • Manual review of grep example, error-code descriptions, restart-policy snippet against the actual log output captured during backend verification

…ures

New page listing canonical License Server client errors
(INVALID_LICENSE_SECRET 101, INVALID_LICENSE_CHECK_SECRET 107,
CONNECTION_ERROR 400, PKIX SSL trust failure, GENERAL_ERROR) with
diagnostic steps and per-code recovery instructions. Documents the
new ERROR banner format, container exit code semantics, and the
docker-compose restart: on-failure recommendation that avoids the
infinite restart loop on unresolved license errors.

Linked from the prerequisites section of what-is-license-server.mdx
where the "may shut down" behavior was previously only vaguely
mentioned. Added a Troubleshooting group to the License Server
sidebar.
@zzzeebra zzzeebra force-pushed the docs/license-server-troubleshooting branch from 088d31c to ce46717 Compare May 27, 2026 08:30
@vvlladd28 vvlladd28 requested a review from Copilot June 4, 2026 07:16
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds operational documentation for diagnosing and recovering from ThingsBoard PE License Server client validation failures, and integrates that new content into the existing License Server docs navigation.

Changes:

  • Adds a new troubleshooting page documenting the log banner pattern, common license-check failure codes, and recovery steps.
  • Adds a link from the License Server prerequisites section to the troubleshooting page for quick operator guidance.
  • Updates the License Server sidebar to include a new “Troubleshooting” group.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/content/docs/docs/license-server/what-is-license-server.mdx Adds a link from prerequisites to the new troubleshooting page.
src/content/docs/docs/license-server/troubleshooting.mdx Introduces a new page covering failure banner detection, error codes, remediation steps, and container restart behavior.
astro.sidebar.ts Adds the troubleshooting page to the License Server sidebar navigation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

The License Server Client (e.g. your ThingsBoard PE instance) requires an internet connection to the host `license.thingsboard.io` to issue license check requests.
In case internet connection to the host is not available for more than 24 hours, License Server Client may shut down the ThingsBoard instance.

If the License Server Client fails to validate the license, the ThingsBoard PE node logs a `*** LICENSE CHECK FAILED ***` banner on the ERROR level and exits with a non-zero JVM code. See [Troubleshooting license check failures](/docs/license-server/troubleshooting/) for diagnostic steps and recovery per error code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants