Spotfire Web player or Automation service hosted on Linux fails to start with error "xvfb-run: command not found"

Spotfire Web player or Automation service hosted on Linux fails to start with error "xvfb-run: command not found"

book

Article ID: KB0070579

calendar_today

Updated On:

Products Versions
Spotfire Server Spotfire server 12.0.0 and later

Description

When the node manager 12.0 or later is installed on Linux OS, the Webplayer or Automation services fail with error "xvfb-run: command not found" as seen in below screenshot.
 

User-added image

Following errors are logged in "service-ID-stdout.log":

Status for Web_Player_STD2 [34872344]
Attempt to communicate with service was unsuccessful.
Status notified as FAILED. The service exited with error code 127. Recent Logs: Error: /logiciel/spotfire/SRV/nodemanager-
 
INFO 2024-02-20T13:49:08,426+0000 [] 8ca16dd8-7368-46a7-a881-5908e807a997: Failed to load libcef.so - ensure that all dependencies are met by executing the command 'ldd libcef.so' in a terminal
INFO 2024-02-20T13:49:08,458+0000 [] 8ca16dd8-7368-46a7-a881-5908e807a997: 02/20/2024 13:49:08 - 8ca16dd8-7368-46a7-a881-5908e807a997 Failed to start worker.
INFO 2024-02-20T13:49:08,426+0000 [] 8ca16dd8-7368-46a7-a881-5908e807a997: CefRuntime.Load failed:System.DllNotFoundException: Unable to load shared library 'libcef' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibcef: cannot open shared object file: No such file or directory
 
ERROR 2024-02-20T13:49:09,459+0000 [] 8ca16dd8-7368-46a7-a881-5908e807a997: 8ca16dd8-7368-46a7-a881-5908e807a997 [WEB_PLAYER] process state switched to failure with exit value 105

The error indicates that the required ASP.NET Core Runtime version is not installed and the prerequisite script for Linux distribution has not been executed.

Issue/Introduction

This article explains as to why Spotfire web player or Automation service hosted on Linux fails to start resulting in the error xvfb-run: command not found

Environment

Spotfire server 12.0.0 and later

Resolution

  1. Make sure that the required ASP.NET Core Runtime is installed as per the system requirement document of the desired version.
  2. Locate the Tools directory in the deployed files on the target host, and find the prerequisites script for your Linux distribution.
    For example, if you want to use Debian: {node-manager-installation-directory}/ spotfirenodemanager-{version-number}.x86_64/nm/services/webworker-net-core-*/Tools/prerequisites-debian11.sh.
  3. Run the script corresponding to your distribution, for example:
     sh prerequisites-debian11.sh
    This will install required system dependencies and recommended font packages on the host.

Note- The above script is visible only after installing webplayer or Automation services. 

Additional Information

Doc: System Requirements document:

Doc: Running Web Player or Automation Services on Linux