Uploaded image for project: 'Qt License server'
  1. Qt License server
  2. QLS-1639

"Error! Cannot acquire license to use qtframework" when installed as root

    XMLWordPrintable

Details

    • Linux/Other display system

    Description

      On an AlmaLinux 8.10 (RHEL 8 derivative) server we are getting licensing errors as follows:

      AutoMoc: Error while initializing license client: Could not acquire lock file for client. Some other process might be using it.
      Error! Cannot acquire license to use qtframework.
      
      If you have a valid commercial license, please create a bug report to Qt Bugtracker:
      https://bugreports.qt.io/projects/QLS
      
      Attach the above error details to the bug report.
      
      Additionally, attach the qtlicd_log.txt file of the Qt License Service that can be found from the directory of this Qt installation.
      
      To bypass the license check entirely, set the environment variable QTFRAMEWORK_BYPASS_LICENSE_CHECK with value 1.

      This error is repeated many times throughout the build output.

      Qt 6.8.1 was installed as root since this build server is used by multiple users. It was installed once using "su -c" and once directly as root after switching user. Same problem in both cases.

      We do not see this error when building with Qt 6.7.2 on the same server and we do not see it with Qt 6.8.1 on most of our other target platforms (Ubuntu 20.04, Windows, iOS).

      When installed as a local user (i.e. non-root), we do not see the error, all works fine.

      I've attached my qtlicd.ini, installations.ini, and qtlicd_log.txt.

      Attachments

        1. installations.ini
          0.1 kB
        2. qtlicd_log.txt
          0.2 kB
        3. qtlicd.ini
          5 kB
        4. Screenshot 2025-01-22 110139.png
          Screenshot 2025-01-22 110139.png
          194 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              arttu.tarkiainen Arttu Tarkiainen
              chris.wavestore Christopher Mocock
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes