Diagnose Qt License Server

If you're having issues with license reservations, try diagnosing the problem with these steps.

If you have a specific issue, see Troubleshooting Qt License Server.

Note: If you're having issues with license reservations, you can contact Qt Support. In Qt Customer Portal, select Support Center and Create a request.

Check the logs

Investigate the Qt License Server logs for possible errors. The location of the Qt License Server logs depend on your operating system.

For Qt License Server installed as a system service, the logs are collected by the systemd journal.

To view the full log, run:

journalctl -u qt-license-server.service

For example, to check only the last 100 lines, run:

journalctl -u qt-license-server.service -n 100

Note: If Qt License Server is not installed as a system service, the logs are located in <\QLSRV executable root folder>/logs.

By default, the logs are located in <\QLSRV executable root folder>\logs.

Change the logging level

To modify the logging level, edit the QLS_LOG_LEVEL option in the Qt License Server configuration file (Linux: qt-license-server.service, Windows: qt-service.xml). For more information, see Qt License Server configuration. Remember to restart Qt License Server after the modifications.

Check the license IDs and expiry dates

If you've enabled ACLs, check that the acl.json file contains the correct license numbers. For more information, see Maintain access control lists.

On-Prem Qt License Server

Note: On-Prem Qt License Server is available in version 3.3.0 or later.

With On-Prem Qt License Server, check the license IDs for the used Qt Account from Qt Customer Portal:

  1. Go to Qt Customer Portal.
  2. Check the license IDs for your available licenses.
  3. Check that the required licenses have not expired.

Offline Qt License Server

With Offline Qt License Server, check the license IDs from the entitlement.json file:

  1. Open the entitlement.json file.
  2. Check the license_id for each license in the file.
  3. Check the valid_to so that each license has not expired.

Check the configuration file

Ensure you have configured the Qt License Server configuration file (Linux: qt-license-server.service, Windows: qt-service.xml) properly.

Some common misconfigurations are:

  • QLS_PORT
    • Check that the QLS_PORT you have specified here is not occupied by anything else and is free to be used.
    • Check that this QLS_PORT is accessible via HTTP(S).
  • QLS_ENABLE_SSL
    • In localhost testing environments, set this to no.
    • In production, ensure you have the certificate from a Certificate Authority installed on the computer hosting Qt License Server. For more information, see SSL certificates.

For more information, see Qt License Server configuration.

Check host computer configuration

Ensure you have configured the computer hosting Qt License Server properly. Start by checking that:

  • The QLS_PORT is free and accessible via HTTP(S) from outside the computer hosting the On-Prem Qt License Server or Offline Qt License Server instance.
  • There are no firewall restrictions that could block the access.
  • The user account running the On-Prem Qt License Server or Offline Qt License Server instance has write access to the folder where it is installed.

If you're using On-Prem Qt License Server, ensure it can connect to Qt cloud. The On-Prem Qt License Server instance needs to connect to the following services:

  • login.qt.io (port: 443)
  • qls.qt.io (port: 443)
  • licenses.qt.io (port: 443)

See also Qt License Server configuration.

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.