> For the complete documentation index, see [llms.txt](https://docs.facephi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.facephi.com/docs.facephi-en/sdks/backend-sdk/finger/installation/offline_licensing.md). Agents can also search and read this documentation through its [MCP server](https://docs.facephi.com/~gitbook/mcp).

# Offline licensing with a local server

This guide explains, step by step, how to set up **Finger Service** in an installation **without Internet access**, using a **local license server**.

It is written so you can follow it even if you have no prior experience with software licensing: each step tells you which command to run, what you should see on screen, and what to do if something goes wrong.

## 1. What is offline licensing, and when do I need it?

Finger Service needs a Facephi license to run. By default, the service checks the license by connecting to Facephi's license servers over the Internet.

If your installation **does not have Internet access** (because of a security policy, because it is on an isolated network, etc.), you can use **local offline licensing**:

1. You install a small program called **local license server** (LexFloatServer).
2. That server is activated **just once**, by exchanging two files with Facephi (by email, USB, or whichever channel you prefer). It never needs an Internet connection.
3. From then on, all your Finger Service instances request the license **from that local server**, within your network.

### 1.1 Available license types

| Type                           | Does it need Internet access?                                     | When should you use it?                                                  |
| ------------------------------ | ----------------------------------------------------------------- | ------------------------------------------------------------------------ |
| **Shared online** (default)    | Yes, Finger Service instances access Facephi's servers over HTTPS | Standard installation with Internet access                               |
| **Local offline** (this guide) | No                                                                | Isolated networks or installations where outbound traffic is not allowed |

### 1.2 How the pieces fit together

```mermaid
flowchart LR
    subgraph RedLocal["Your local network (no Internet)"]
        LFS["Local license server<br/>(LexFloatServer)<br/>port 8090"]
        FINGER1["Finger Service<br/>(Docker container)"]
        FINGER2["Finger Service<br/>(Docker container)"]
        FINGER1 -->|"request license"| LFS
        FINGER2 -->|"request license"| LFS
    end

    Facephi["Facephi<br/>(offline activation:<br/>exchange of 2 files)"]
    Facephi -.->|"just once,<br/>by email or USB"| LFS
```

### 1.3 Key concept: floating licenses

The license provided by Facephi allows a maximum number of **simultaneous** Finger Service instances (for example, 15).

* Each Finger Service instance that starts **borrows** a license from the local server for a set period (the *borrow* or *lease*).
* When that lease expires, the license **returns** to the available pool and another instance can use it.
* There is no need to activate or register each container: they can be created and destroyed freely, and only consume a license while it is on loan.

{% hint style="info" %}
Keep in mind that the lease lasts for a fixed period (about 3 hours in a typical configuration) and **is not returned as soon as you stop the instance**. Section [10.3](#10-3-comprobar-que-la-licencia-se-ha-consumido-en-el-servidor) explains in detail what this means when restarting the service.
{% endhint %}

{% hint style="warning" %}
**A local license server serves only one product.** The product file (`product.dat`) provided by Facephi is specific to Finger Service. If you also deploy another Facephi service in offline mode (for example, IAD Service), you will need **another license server instance**, with its own `product.dat`, its own license key, and **a different port**.
{% endhint %}

## 2. Before you begin

### 2.1 What Facephi provides

Before you begin, you should have received the following from Facephi:

| Item                             | What it is                                         | Example                                     |
| -------------------------------- | -------------------------------------------------- | ------------------------------------------- |
| **License key** (*license key*)  | A code that identifies your Finger Service license | `3B337B-XXXXXX-422BB2-1957C2-YYYYYY-EF571D` |
| **Product file** (`product.dat`) | A file that identifies the Finger Service product  | `product.dat`                               |

Later in the process, Facephi will also send you a third file (`offline_response.dat`) to complete the activation.

{% hint style="info" %}
If you don't have these two items, request them from your Facephi representative before continuing. Make it clear that they are for **Finger Service** in **local offline**mode: both the key and the `product.dat` are different for each service.
{% endhint %}

### 2.2 What you need to prepare

| Requirement                                            | Details                                                                                                                                      |
| ------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------- |
| **A Linux machine** for the license server             | Linux x86\_64 (for example, Ubuntu 22.04 or 24.04). It can be the same machine running Finger Service or another machine on the same network |
| **Administrator permissions** (`sudo`) on that machine | The license server must run as `root`                                                                                                        |
| **A stable IP address** for that machine               | Finger Service instances will use it to locate the server                                                                                    |
| **Accessible TCP port 8090**                           | From the Finger Service machines/containers to the license server                                                                            |
| **Finger Service 2.2.0 or later**                      | See the [Installation Guide](https://docs.facephi.com/docs.facephi-en/sdks/backend-sdk/finger/installation/installation_instructions.md)     |

{% hint style="warning" %}
**The local license server cannot run inside a Docker container.** It is installed directly on the machine's operating system. This is a limitation of the licensing system, not of Finger Service ([more information](https://forums.cryptlex.com/t/running-lexfloatserver-in-docker/1466)).

If you want to install it on a **virtual machine**, check with Facephi first: the license must expressly allow activation on virtual machines, and cloning or migrating that VM to another host may invalidate the activation.
{% endhint %}

{% hint style="info" %}
**Why a “stable” machine?** When activated, the license server takes a “fingerprint” (*fingerprint*) of the machine's hardware. If you switch machines or change important components in that machine, you will have to repeat the activation (steps 3 and 4). Finger Service containers, on the other hand, are completely disposable: you can create and destroy them without affecting the activation.
{% endhint %}

## 3. Step 1 — Install the local license server

Run all commands in this section **on the machine that will serve as the license server**.

### 3.1 Download the program

Download the compressed file provided by Facephi:

> [LexFloatServer-v4.22.0-Linux.zip](https://facephicorp.jfrog.io/artifactory/generic-core-pro-fphi/third-party/cryptlex/v4.22.0/LexFloatServer-v4.22.0-Linux.zip)

{% hint style="info" %}
If the machine has no Internet access, download the file on another computer and copy it over using a USB drive or the internal network.
{% endhint %}

### 3.2 Extract it

Create a working directory and extract the file into it:

```bash
mkdir -p ~/facephi_license_server
cd ~/facephi_license_server
unzip LexFloatServer-v4.22.0-Linux.zip
```

After extracting it, you will see two directories, `amd64` and `arm64`. **Use `amd64`** (this is the one for the usual Intel/AMD processors):

```bash
cd ~/facephi_license_server/amd64
ls
```

You should see at least these two files:

```
config.yml  lexfloatserver
```

| File             | Purpose                                             |
| ---------------- | --------------------------------------------------- |
| `lexfloatserver` | The license server program                          |
| `config.yml`     | Its configuration file (port, panel users, logs...) |

### 3.3 Check that the program works

```bash
./lexfloatserver --version
```

Expected output:

```
Floating License Server v4.22.0
```

## 4. Step 2 — Copy the product file

Copy the file `product.dat` that Facephi provided for Finger Service **to this same folder** (`~/facephi_license_server/amd64`):

```bash
cp /ruta/donde/lo/tengas/product.dat ~/facephi_license_server/amd64/
```

Check that it is there:

```bash
ls ~/facephi_license_server/amd64
```

```
config.yml  lexfloatserver  product.dat
```

## 5. Step 3 — Generate the activation request

In this step, the server generates a file describing the machine on which the license will be activated. You will send this file to Facephi.

{% hint style="info" %}
**Tip: avoid typing the license key every time** Save it in a variable once. Replace the example value with your actual key:

```bash
export LICENSE_KEY=3B337B-XXXXXX-422BB2-1957C2-YYYYYY-EF571D
```

If you close the terminal, you will need to run this line again.
{% endhint %}

From the `amd64`:

```bash
cd ~/facephi_license_server/amd64
sudo ./lexfloatserver --generate-offline-request \
  --license-key $LICENSE_KEY \
  --product-file ./product.dat \
  --config ./config.yml \
  --offline-request ./offline_request.dat
```

What each part of the command means:

| Part                         | Meaning                                    |
| ---------------------------- | ------------------------------------------ |
| `sudo`                       | The server needs administrator privileges  |
| `--generate-offline-request` | “Generate the activation request for me”   |
| `--license-key`              | Your license key                           |
| `--product-file`             | The file `product.dat` from Facephi        |
| `--config`                   | The configuration file included in the ZIP |
| `--offline-request`          | Name of the request file to be created     |

Expected output (the date and time will vary):

```
[2026-09-17 12:03:40+02:00] INF Offline activation request generated successfully!
```

You now have a new file:

```bash
ls -la offline_request.dat
```

{% hint style="warning" %}
**Send the file `offline_request.dat` to Facephi** (by email or via the agreed channel) and wait for their response. Facephi will send you a file called `offline_response.dat`.

Meanwhile, **do not delete or move** the folder or the file `offline_request.dat`, and **do not reinstall the operating system** on that machine: Facephi's response is only valid for that machine and this request.
{% endhint %}

## 6. Step 4 — Activate the server with Facephi's response

When you receive the file `offline_response.dat`, copy it to the same folder:

```bash
cp /ruta/donde/lo/recibiste/offline_response.dat ~/facephi_license_server/amd64/
```

And activate the server:

```bash
cd ~/facephi_license_server/amd64
sudo ./lexfloatserver --activate \
  --license-key $LICENSE_KEY \
  --product-file ./product.dat \
  --config ./config.yml \
  --offline-response ./offline_response.dat
```

Expected output:

```
[2026-09-17 12:20:04+02:00] INF Offline activating license key...
[2026-09-17 12:20:04+02:00] INF License activated successfully!
```

{% hint style="info" %}
**Activation only needs to be done once.** You don't need to repeat it every time you start the server. You only need to repeat steps 3 and 4 when:

* the license expires and Facephi provides you with a renewal,
* you move the license server to another machine,
* or you change major hardware components on that machine.
  {% endhint %}

## 7. Step 5 — Check the activation

```bash
cd ~/facephi_license_server/amd64
sudo ./lexfloatserver --status \
  --license-key $LICENSE_KEY \
  --product-file ./product.dat \
  --config ./config.yml
```

Expected output:

```
Activation Status: OK
License key: 3B337B-XXXXXX-422BB2-1957C2-YYYYYY-EF571D
Days Left To Expiration: 0
```

`Activation Status: OK` confirms that the server is activated correctly.

{% hint style="info" %}
`Days Left To Expiration` indicates how many days remain until the license expires. If your license has no expiration date configured, this value appears as `0`.
{% endhint %}

## 8. Step 6 — Start the license server

### 8.1 Option A: manual startup (recommended for the first test)

```bash
cd ~/facephi_license_server/amd64
sudo ./lexfloatserver --start \
  --license-key $LICENSE_KEY \
  --product-file ./product.dat \
  --config ./config.yml
```

The server remains **running in the terminal** and displays what's happening. Expected output:

```
[2026-09-17 12:21:11+02:00] INF Starting floating license server...
[2026-09-17 12:21:11+02:00] INF Total number of available floating licenses: 15
[2026-09-17 12:21:11+02:00] INF Listening on port: 8090
```

The line `Total number of available floating licenses` tells you **how many Finger Service instances you can have running at the same time** with your license.

To stop it, press `Ctrl + C`.

{% hint style="warning" %}
If you close the terminal, the server stops and **the Finger Service instances will stop renewing their licenses**. For a production installation, use Option B.
{% endhint %}

### 8.2 Option B: install it as a system service (recommended for production)

This way, the license server starts automatically when the machine is turned on:

```bash
cd ~/facephi_license_server/amd64
sudo ./lexfloatserver -i \
  --service-name facephi-license-server \
  --license-key $LICENSE_KEY \
  --product-file ./product.dat \
  --config ./config.yml
```

To stop or start it later:

```bash
sudo service facephi-license-server stop
sudo service facephi-license-server start
```

And if you ever need to uninstall it:

```bash
cd ~/facephi_license_server/amd64
sudo ./lexfloatserver -d --service-name facephi-license-server \
  --license-key $LICENSE_KEY --product-file ./product.dat --config ./config.yml
sudo ./lexfloatserver -u --service-name facephi-license-server \
  --license-key $LICENSE_KEY --product-file ./product.dat --config ./config.yml
```

| Option | What it does                            |
| ------ | --------------------------------------- |
| `-i`   | Installs the server as a system service |
| `-d`   | Deactivates the server license          |
| `-u`   | Uninstalls the system service           |

### 8.3 Check that the server responds

From the license server machine itself, replacing `TU_API_KEY` with the value of `auth.apiKey` in your `config.yml`:

```bash
curl "http://localhost:8090/api/server/stats?apiKey=TU_API_KEY"
```

Expected response:

```json
{"leaseDuration":10798,"maxOfflineLeaseDuration":30,"allowedFloatingClients":15,"allowedOfflineFloatingClients":0,"totalFloatingClients":0,"totalOfflineFloatingClients":0,"leasingStrategy":"per-instance","version":"4.22.0","status":"ok","expiresAt":0,"serverSyncGracePeriodExpiresAt":1792228583}
```

The values that matter:

| Field                    | Meaning                                                          |
| ------------------------ | ---------------------------------------------------------------- |
| `status`                 | `ok` if the server is operational                                |
| `allowedFloatingClients` | Maximum number of simultaneous instances allowed by your license |
| `totalFloatingClients`   | Instances currently using a license                              |
| `leaseDuration`          | License lease duration, in seconds                               |

Now repeat the check **from the machine where Finger Service will run**, to make sure it can reach the server over the network:

```bash
curl -s -o /dev/null -w "%{http_code}\n" http://192.168.1.193:8090/api/server/stats
```

Replace the IP address with that of your license server. If the response is `401`, **the connection is working**: this code only indicates that you haven't included the `apiKey`, which isn't needed for this check.

{% hint style="warning" %}
If you get no response or see a connection error, Finger Service won't be able to obtain a license either. Check the firewall on the license server machine and make sure TCP port 8090 is open to the network where Finger Service runs.
{% endhint %}

### 8.4 Optional settings in the file `config.yml`

You don't have to change anything, but these are the settings most commonly changed:

| Value in `config.yml`    | Default                    | Purpose                                                                                                                                                                                                       |
| ------------------------ | -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `server.port`            | `8090`                     | Port on which the license server listens                                                                                                                                                                      |
| `server.leaseDuration`   | `60`                       | Number of seconds the license "lease" lasts. If your license defines its own duration, the license setting takes precedence: check the actual value in `leaseDuration` from `/api/server/stats` (section 8.3) |
| `auth.apiKey`            | `PASTE_SOME_RANDOM_STRING` | Key for querying server statistics                                                                                                                                                                            |
| `auth.admins`            | `admin` / `admin123`       | Server web panel username and password                                                                                                                                                                        |
| `logging.file.directory` | `./logs`                   | Folder where server logs are stored                                                                                                                                                                           |

{% hint style="warning" %}
If you plan to keep the license server running permanently, **change the default username and password** (`admin` / `admin123`) and set your own value for `apiKey`. After editing `config.yml`, restart the server.
{% endhint %}

## 9. Step 7 — Configure Finger Service to use the local server

Now let's go to the machine running **Finger Service**.

### 9.1 Create the license file

Finger Service reads its license from a file called `license.lic`. Create it with the following content:

```ini
LICENSE_TYPE=LOCAL
LICENSE_BEHAVIOUR=OFFLINE
LICENSE_KEY=3B337B-XXXXXX-422BB2-1957C2-YYYYYY-EF571D
LICENSE_URLS=http://192.168.1.193:8090
```

Replace:

* `LICENSE_KEY` with **your** license key (the same one you used to activate the server).
* The IP `192.168.1.193` with the **real IP address of your local license server**.

Meaning of each field:

| Field               | Value              | Explanation                                                                                                                                                       |
| ------------------- | ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `LICENSE_TYPE`      | `LOCAL`            | The license is served by a server on your network                                                                                                                 |
| `LICENSE_BEHAVIOUR` | `OFFLINE`          | The server was activated without Internet access                                                                                                                  |
| `LICENSE_KEY`       | Your key           | The license key provided by Facephi                                                                                                                               |
| `LICENSE_URLS`      | `http://IP:PUERTO` | Local license server address. Multiple addresses can be specified, separated by commas (see [section 11](#11-alta-disponibilidad-varios-servidores-de-licencias)) |

{% hint style="info" %}
In Finger Service 2.2.0 and later **you don't need to specify `LICENSE_ID` or `LICENSE_DATA`**: that data is already included in the service. If these values appear in the file, they are ignored, and the service reports this in the log with the message `LICENSE_ID and LICENSE_DATA in the license file are ignored; using compile-time product credentials`.

In `LOCAL` mode, the entity activated with the license key is the **local server**, and it decides whether to grant the license. Even so, always specify your actual key in `LICENSE_KEY` to keep the file consistent with the other modes.
{% endhint %}

{% hint style="warning" %}
The combination `LICENSE_TYPE=SHARED` with `LICENSE_BEHAVIOUR=OFFLINE` **is not supported**: if you use it, the service will not start and will write the following to the log: `SHARED licenses with OFFLINE behaviour are not supported`. For the local server, always use `LOCAL` + `OFFLINE`.
{% endhint %}

### 9.2 Place the license file

Save the file as `license.lic` inside the license folder that you mount in the container:

```bash
mkdir -p ~/facephi_finger/license
# create or copy the license.lic file here
chmod 644 ~/facephi_finger/license/license.lic
```

### 9.3 Starting Finger Service

The `docker-compose.yml` is the same as in the standard installation; the only thing that changes is the contents of `license.lic`:

```yaml
services:
  finger-service:
    image: facephicorp.jfrog.io/docker-pro-fphi/facephi-finger-service:2.2.1
    container_name: facephi-finger-service
    ports:
      - "6982:6982"
    volumes:
      - ~/facephi_finger/license:/app/license
      - ~/facephi_finger/config:/app/config
      - ~/facephi_finger/logs:/app/logs
    environment:
      - FACEPHI_FINGER_ENGINE_ROLE=master
      - FACEPHI_FINGER_ENGINE_SERVICES=Master,FingerTC,Verifier
      - FACEPHI_FINGER_ENGINE_MASTER=127.0.0.1
    restart: unless-stopped
```

```bash
docker compose up -d
```

{% hint style="warning" %}
**The container must be able to reach the license server.** Always use the **network IP address** of the license server in `LICENSE_URLS`, never `127.0.0.1` or `localhost`: inside the container, `localhost` refers to the container itself, not the host machine.
{% endhint %}

{% hint style="info" %}
**Without a license, the service will not start.** If Finger Service cannot obtain a license from the local server on startup, it logs the error and the container exits. With `restart: unless-stopped`, Docker will keep retrying until the license server is available.
{% endhint %}

## 10. Step 8 — Verify that everything works

### 10.1 Checking the Finger Service log

```bash
docker logs facephi-finger-service
```

Look for this line:

```
License initialized successfully from: /app/license/license.lic
```

### 10.2 Check the service

```bash
curl http://localhost:6982/api/v1/finger/health
```

```json
{
  "engine": {
    "healthy": true,
    "initialized": true,
    "lastError": "",
    "lastHealthCheckAt": "2026-09-17T09:18:17Z",
    "lastHealthKnown": true,
    "role": "master",
    "servicesConfigured": ["Master", "FingerTC", "Verifier"]
  },
  "initialized": true,
  "license": {
    "statusCode": "LF_OK",
    "statusMessage": "The license is valid.",
    "valid": true
  },
  "message": "Healthy"
}
```

The important values are:

| Field            | Expected value | Meaning                                                        |
| ---------------- | -------------- | -------------------------------------------------------------- |
| `message`        | `Healthy`      | The service is ready to process requests                       |
| `license.valid`  | `true`         | The service has a license granted by the local server          |
| `engine.healthy` | `true`         | The internal fingerprint processing components are operational |

{% hint style="info" %}
**The service takes a little while to respond.** The internal processing components start before the REST port opens: for approximately the first minute and a half, `curl` does not get a response (connection refused), even though the container appears as `Up`. This is normal. Wait and check again.

After that, if `health` returns `Unhealthy` with `engine.healthy: false` but `license.valid: true`, the processing components are still starting up; check again in a few seconds.
{% endhint %}

{% hint style="warning" %}
In Version 2.2.0, when the license is **valid** the field `license.statusMessage` displays the text `Unrecognized licensing error code: LF_OK. Please contact support.`. This is a cosmetic message and **does not indicate a problem**: there is no need to open a support ticket. Starting with Version 2.2.1, it displays `The license is valid.`. In any case, the field to check is `license.valid`, and the overall summary is `message`.
{% endhint %}

```bash
curl http://localhost:6982/api/v1/finger/version
```

```json
{
  "message": "2.2.1 Copyright © 2026 FacePhi Biometria. All rights reserved."
}
```

### 10.3 Verify that the license has been consumed on the server

From the license server machine, using the `apiKey` that you have in `config.yml`:

```bash
curl "http://localhost:8090/api/floating-licenses?apiKey=TU_API_KEY"
```

You will see one entry for each Finger Service instance that has a license in use:

```json
[{"id":"0c97dc3c-27ae-4fc3-b2e9-6a7e1f458f90","ip":"192.168.2.2","os":"linux","osVersion":"Ubuntu 20.04.6 LTS","hostname":"85a2726e2f53","offline":false,"clientVersion":"4.11.0","createdAt":1789636606,"updatedAt":1789636606,"expiresAt":1789647404,"metadata":null,"meterAttributes":null}]
```

The license server log will also show the license grant and how many licenses remain available:

```
INF Floating license request from IP address: 192.168.2.2
INF Client Id: 0c97dc3c-27ae-4fc3-b2e9-6a7e1f458f90 Floating license request successful for IP address: 192.168.2.2
INF Remaining floating licenses count: 14
```

You can also open `http://IP_DEL_SERVIDOR:8090` in your browser and sign in with the user configured in `config.yml`.

{% hint style="warning" %}
**Important when restarting instances**

When you stop a Finger Service container, its license **is not released immediately**: the server keeps it reserved until the lease expires, that is, for the number of seconds specified in `leaseDuration` (in the example above, 10,798 seconds ≈ 3 hours).

Therefore, if you restart the service several times in a row, **each startup consumes a new license** and the licenses from previous startups remain occupied until they expire. Keep this in mind when sizing the number of floating clients for your license, especially in environments where deployments are restarted frequently.

Restarting the license server itself **also does not release** those leases: after restarting, the line `Total number of available floating licenses` shows how many are actually free (for example, `14` if one is in use).
{% endhint %}

{% hint style="info" %}
**Cluster deployments** In a multi-node topology (one `master` and several `worker`, see the [Installation Guide](https://docs.facephi.com/docs.facephi-en/sdks/backend-sdk/finger/installation/installation_instructions.md)), **each node consumes one floating license**, including the `worker`nodes. Size the number of floating clients by counting all cluster nodes, not just the master.
{% endhint %}

## 11. High availability (multiple license servers)

You can install **more than one local license server** so the service continues running if one of them goes down. Install and activate each server by following steps 1 through 6 (each one needs its own offline activation).

Then, specify all the addresses, separated by commas, in the file `license.lic`:

```ini
LICENSE_TYPE=LOCAL
LICENSE_BEHAVIOUR=OFFLINE
LICENSE_KEY=3B337B-XXXXXX-422BB2-1957C2-YYYYYY-EF571D
LICENSE_URLS=http://192.168.1.193:8090,http://192.168.1.194:8090
```

How Finger Service behaves:

* When requesting a license, it selects a server **at random** from the list until one responds. This distributes usage instead of always concentrating it on the first server.
* While the service is running, it checks the license every 30 seconds. If the server it was using stops responding, it switches to another server in the list **without interrupting the service**.
* If **no** server on the list responds, the service remains running, but eventually it will be unable to renew its lease: at that point, `GET /api/v1/finger/health` starts returning `Unhealthy` with `license.valid: false` and the error details in `license.statusMessage`, and fingerprint operations are no longer available. As soon as one of the servers responds again, the service recovers its license on its own, without restarting it.

### 11.1 What exactly happens if the license server goes down

| Situation                                                  | Behavior                                                                                                                                                                                                                           |
| ---------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| The container **is already running** and has a valid lease | **It continues working normally**, even if the license server is shut down. `health` continues to return `Healthy` as long as the lease has not expired                                                                            |
| The lease **expires** and no server responds to renew it   | The service remains running but unlicensed: `health` returns `Unhealthy` with `license.valid: false`. It recovers on its own when a server comes back online                                                                       |
| A **new container is started** and no server responds      | The service **does not start**: it writes `Network connection to the floating license server failed ... (code: LF_E_INET)` to the log and exits. With `restart: unless-stopped`, Docker retries until the server comes back online |

{% hint style="info" %}
This means you can restart or update the license server without interrupting instances that are already serving traffic. What you must not do is start new instances while the server is down.
{% endhint %}

## 12. Frequently asked questions

**Does the machine running Finger Service need Internet access?** No. It only needs network access to the local license server (port 8090).

**Do usage counters (`GET /api/v1/finger/metrics`) continue working in offline mode?** Yes, as long as your license has them enabled (see the [Installation Guide](https://docs.facephi.com/docs.facephi-en/sdks/backend-sdk/finger/installation/installation_instructions.md)). In this mode, the service syncs them with the local license server every 30 seconds. If `GET /api/v1/finger/metrics` returns `usageCountersEnabled: false`, your license does not have them enabled: check with Facephi.

**I deploy on Kubernetes and the pods are ephemeral. Is that a problem?** The hardware “fingerprint” is taken on the **license server**, not on the pods: pods can be created and destroyed freely without affecting activation. However, keep in mind that the license for a pod that disappears remains reserved until its lease expires (see the notice in [step 8](#10-paso-8-comprobar-que-todo-funciona)). Size the number of floating clients with enough headroom for pod restarts and rescheduling, not just for the number of running pods.

**What happens if I start more instances than allowed?** Instances that exceed the limit will not obtain a license and will not start. Check how many licenses are in use and how many your license allows using the query in section 8.3.

**Do I have to repeat activation every time I restart?** No. Activation is a one-time process. It only needs to be repeated when renewing the license, moving the server to another machine, or changing its hardware.

**Can I move the license server to another machine?** Yes, but first you must deactivate it on the old machine (option `-d`) and then repeat steps 3 to 6 on the new one. Contact Facephi to coordinate this.

**Can the license server be run in a Docker container?** No. It must run directly on the machine’s operating system.

**I have IAD Service and Finger Service on the same network. Can I use a single license server?** No. Each product requires its own license server instance, with its own `product.dat`, key, and port.

## 13. Troubleshooting

| Symptom                                                                                                                                 | Most likely cause                                                                      | Solution                                                                                                                                                                                                                                        |
| --------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Access denied! Make sure you have root privileges` when running `lexfloatserver`                                                       | The command was run without `sudo`                                                     | Run the command again, prefixing it with `sudo`                                                                                                                                                                                                 |
| Activation fails after the request is submitted                                                                                         | The file `offline_response.dat` does not correspond to this machine or this request    | Run step 3 again on **that same machine** and sends the new request to Facephi                                                                                                                                                                  |
| The server starts, but from another machine `curl http://IP:8090/api/server/stats` does not respond (not even with a `401`)             | Firewall or incorrect IP                                                               | Open TCP port 8090 and check the IP address of the license server                                                                                                                                                                               |
| The container starts and then stops on its own, with the error `Network connection to the floating license server failed` (`LF_E_INET`) | The container cannot reach the license server                                          | Check that the license server is running, that `LICENSE_URLS` uses the network IP address (not `localhost` or `127.0.0.1`) and that port 8090 is open                                                                                           |
| The container starts and then stops on its own, indicating that no licenses are available                                               | Floating licenses have run out                                                         | Check the licenses in use (section 8.3). Remember that licenses for instances that have already stopped remain occupied until their leases expire                                                                                               |
| The container starts and stops on its own, with the error `The product id is incorrect` (`LF_E_PRODUCT_ID`)                             | The license server was activated with the `product.dat` for another product            | Activate the server again with the `product.dat` for Finger Service, or use a separate server instance for each product                                                                                                                         |
| Already-started instances keep running, but new ones cannot obtain a license                                                            | The license server has stopped, or the terminal where it was started was closed        | Start the license server (step 6) and install it as a system service so it starts automatically. Running instances remain operational for the duration of their lease and automatically reclaim their license when the server comes back online |
| `Failed to open license file: /app/license/license.lic`                                                                                 | The file is not in the mounted folder or does not have read permissions                | Check the volume in `docker-compose.yml` and run `chmod 644 license.lic`                                                                                                                                                                        |
| `SHARED licenses with OFFLINE behaviour are not supported`                                                                              | The file `license.lic` combines `LICENSE_TYPE=SHARED` with `LICENSE_BEHAVIOUR=OFFLINE` | Use `LICENSE_TYPE=LOCAL` with `LICENSE_BEHAVIOUR=OFFLINE` (section 9.1)                                                                                                                                                                         |
| `health` returns `Unhealthy` with `license.valid: true` and `engine.healthy: false`                                                     | The internal processing components are still starting up                               | Wait half a minute and check again `health`. If the issue persists, check `docker logs facephi-finger-service`                                                                                                                                  |

If the issue persists, collect the license server log (the `logs` folder next to the executable) and the output of `docker logs facephi-finger-service`, and contact Facephi support.
