Start and check the APPX License Server
The License Server is a copy of the APPX engine that serves one System Administration registration file (REGISTER). APPX engines using that registration coordinate through the same System Administration files. One License Server serves that registration, even when the engines run on more than one host. The Login Manager is the separate service that accepts client connections.
Which installations need a License Server?
APPX 3.2 introduced the License Server for multi-user registrations. A single-user registration does not require a separate License Server process. APPX 3.3 added automatic startup on a host whose identity matches the registration. This is the normal first-login behavior on APPX 5.5.4 and 6.2.1 on Unix and Windows. The first login can pause briefly while the server starts.
On a shared installation, first start APPX on the registered host. The other engine hosts must use the same System Administration files. For a historical 3.2 installation, the administrator starts the License Server explicitly. On legacy OpenVMS, use the site's licensed engine and startup procedure to start the License Server explicitly.
Start the License Server for an installation
- On the registered server host, identify the installed engine and its data directory. Check that the registration supplied by APPX has been entered for this installation. In APPX, open System Administration, then System Setup and System Registration. For the 4.x registration import workflow, see Importing registration information.
- On releases with automatic startup, start a normal APPX session on the registered host. If login succeeds, the License Server needs no additional startup command. In the normal automatic startup, its log is
license.login the APPX data directory. - If manual startup is needed, use the APPX operating account on that host. Point its engine at the same System Administration data as the application. Give the lowercase letter
loption an absolute log filename. The directory must already exist and be writable by the account. APPX creates the log if needed and appends to an existing log. Substitute your local paths.
Unix or Linux shell
export APPXPATH=/usr/local/appx/data /usr/local/appx/appx -l=/usr/local/appx/data/license.log
On Unix the engine normally forks a daemon. The parent reports its child's process ID and log pathname, then returns to the shell. Confirm the child is still running and try a login.
Windows Command Prompt on the server
set "APPXPATH=C:\Appx\data" C:\Appx\Appx.exe -l=C:\Appx\data\license.log
Windows runs the License Server as an APPX process. The Unix startup message does not appear. Check the log and try a connection to the same installation. A second License Server targeting a registration that is already being serviced exits. Adding another copy does not increase registration capacity.
For an installation that requires explicit startup at boot, arrange to run the verified command under its usual account after the System Administration files become available. On legacy OpenVMS the License Server runs as a normal process and accepts the /l= form of the log option. The original setup uses the site's SYS$MANAGER:SYSTARTUP*.COM procedure. Modern Unix and Windows sites using automatic startup can rely on the first login on the registered host.
Check a failed start or login
- If APPX reports that the License Server was not detected, record the exact message, time, engine release and host. Compare the data directory used by the client session's engine with the directory used by the License Server. Verify that the registration belongs to the host starting the server and its account has access to the System Administration files.
- Read the newest entries in the automatic log or the file named with
-l=. On Unix, usetail -n 20 /usr/local/appx/data/license.log. On Windows, useGet-Content C:\Appx\data\license.log -Tail 20in PowerShell. If you cannot find it, check the log path and the account's write access to its parent directory. A quiet log is normal after a successful start. Check that a fresh session can log in. - If the message instead reports that licensed users are already in use, open System Registration and choose View Registration Usage. Check the users, workstations and processes against expected activity. The License Server periodically cleans up stale usage from exited engines. A disconnected client can still have a running engine. See Identify the session holding a lock before ending any session.
- For an expired registration, an unexpected host or a release mismatch, contact APPX Technical Support with the release, platform, time, message and relevant log lines. Send site registration information through the support channel.
Collect a License Server log and a login attempt
The License Server and the engine requesting a license are two separate processes. For a failed login, collect their logs for the same attempt. In APPX 5.5.4 and 6.2.1, APPX_LS_DBG=0x07 records errors and startup progress. Use a private directory that already exists and that the appropriate operating-system account can write. Use a fresh filename for each capture because the license logs are opened for append.
- Identify the registered host, the engine and its data directory as described under Start the License Server. If a License Server is already running, arrange a restart during maintenance. Confirm its installation and log argument before stopping that process. Changing another shell or starting a second copy leaves the existing server's logging unchanged.
- Start the License Server with the diagnostic setting. These examples apply the setting to this invocation only. Substitute your own engine and writable log directory.
Unix or Linux shell
export APPXPATH=/usr/local/appx/data /usr/local/appx/appx --APPX_LS_DBG=0x07 -l=/srv/appx/logs/license-server.log
Windows Command Prompt on the server
set "APPXPATH=C:\Appx\data" C:\Appx\Appx.exe --APPX_LS_DBG=0x07 -l=C:\Appx\Logs\license-server.log
Next, start one fresh test session against the same registration. Set APPX_LS_DBG and APPX_LS_LOG on the engine making the request. For a directly launched test engine, use the following command in a second terminal configured for this installation.
Unix or Linux shell
/usr/local/appx/appx --APPX_LS_DBG=0x07 --APPX_LS_LOG=/srv/appx/logs/license-client.log
Windows Command Prompt on the server
C:\Appx\Appx.exe --APPX_LS_DBG=0x07 --APPX_LS_LOG=C:\Appx\Logs\license-client.log
If the failure occurs through a Login Manager, supply these two environment settings to the relevant test login service, then make a new connection using its normal client. The client log in this example is written by the APPX engine on the server. See Set one APPX Login Manager service.
Note the time and exact error. Read license-server.log for server startup and license-client.log for the requesting engine. Monitor the file sizes and stop collecting after the test. Sign out of the test session. Restore any saved service settings and restart the affected service if changed. Restore the License Server's normal startup command and restart it in the maintenance window. Confirm an ordinary login and send the two matching logs privately to APPX Technical Support.
Startup delay and stale-session cleanup
For APPX 5.5.4 and 6.2.1 on Windows, the engine that starts a missing License Server normally waits eight seconds before checking again. If the logs show that startup succeeds just after this check, try APPX_LS_DELAY=12 in the environment of the engine making the first login. It waits 12 seconds on that startup attempt. Restore the previous setting after the test. The Unix startup path in these two releases uses a fixed five-second wait.
The License Server checks for stale usage from exited engines on its regular cycle. In the 5.5.4 and 6.2.1 sources, APPX_LS_INTERVAL is in seconds, with a default of 120 and an upper limit of 600. For example, APPX_LS_INTERVAL=180 in the License Server's own startup environment spaces checks three minutes apart. A longer interval can leave stale entries visible longer. Restart the License Server for a change to take effect. To restore the normal cycle, remove the override and restart. The older 4.x manual describes this setting in minutes, so use the units for your engine release.
The 4.x manual also describes APPX_LS_GHOSTS=1 to enable cleanup on the releases it covers. Engines 5.5.4 and 6.2.1 already perform cleanup by default and do not read that older setting. A detached session with a live engine is still running. To investigate a specific record lock, see Removing an inactive APPX session.