Troubleshooting the AI Media Server

This section covers how to troubleshoot issues you may experience with the AI Media Server (AIMS) and its features and functionality.

This section includes:

Gathering logs from the AIMS VM

To gather logs from the AIMS VM:

  1. Log in to the AIMS VM as the user admin, either through SSH or the VMware console.

  2. At the command prompt, run the following command:

    sudo tar --exclude='/var/log/journal' -czvf /home/admin/aims_logs.gz /etc/pexip/pexaims /var/log
  3. Export the /home/admin/aims_logs.gz file, either using a local SCP client (i.e. scp admin@aims-appliance.domain.com:/home/admin/aims_logs.gz) or, for Windows, using WinSCP or similar.

Setting and viewing the log retention period

You can view and set the maximum number of days for which logging information will be retained. Note that logs have a minimum and maximum size limit, so in busy deployments log information may cover less than the maximum number of days while in very quiet deployments it may cover more.

To view the current maximum retention period for logging:

  1. Log in to the AIMS VM as the user admin, either through SSH or the VMware console.

  2. At the command prompt, run the command aims-config log-retention-get

    This will output the following:

    admin@aims:~$ aims-config log-retention-get
    logs_max_age: 0

To set the maximum retention period for logging, in days:

  1. Log in to the AIMS VM as the user admin, either through SSH or the VMware console.

  2. At the command prompt, run the command aims-config log-retention-set <days>

    For example:

    aims-config log-retention-set 10

Taking a packet capture

To take a packet capture by running tcpdump on the AIMS appliance:

  1. Log in to the AIMS VM as the user admin, either through SSH or the VMware console.

  2. At the command prompt, run the command sudo tcpdump -s0 -w /tmp/capture.pcap

  3. To stop the capture, press Control + C or CMD + C.

You can download the capture via SCP from the /tmp folder.

Checking the time on the AIMS VM

To check the time on the AIMS VM:

  1. Log in to the AIMS VM as the user admin, either through SSH or the VMware console.

  2. At the command prompt, run the command date && ntpq -pn && sudo hwclock -r

The following output can be shared with your Pexip authorized support representative, for example:

Fri Jun 21 06:44:53 AM UTC 2024
			remote                                   refid      st t when poll reach   delay   offset   jitter
			=======================================================================================================
			+91.189.xxx.xx                           194.58.xxx.xx    2 u   59   64  337   0.4440   7.9776   2.9072
			+152.65.xxx.xx                           129.24.xxx.xx    2 u   42   64  377   8.1303   7.1930   2.4215
			2024-06-21 06:44:52.997148+00:00
		

Outputting the current GPU information

To get the GPU information:

  1. Log in to the AIMS VM as the user admin, either through SSH or the VMware console.

  2. At the command prompt, run the command aims-config show-gpus

This will output information on the current GPU that is passed through to the AIMS appliance, and you should expect to see an output similar to the below:

AIMS GPU InfoAIMS GPU Info
=============
GPU,Device,UUID,Variant,Memory
gpu0,/dev/nvidia0,GPU-aa0b1111-a111-00a1-abcd-0aa1111b0a1b,adalovelace,23034

CDI Info
=========
CDI Device count: 1
CDI Device nodes: /dev/nvidia-uvm,/dev/nvidiactl
Mounts:
HostPath,ContainerPath,Type,Options
....

NVIDIA GPU Info
================
GPU 0: NVIDIA L4 (UUID: GPU-aa0b1111-a111-00a1-abcd-0aa1111b0a1b)

You can also include the verbose flag to include the NVSMI log in the output aims-config -v show-gpus.

If the AIMS appliance does not detect the GPU, you will see the following output:

AIMS GPU Info
=============
E: Could not determine AIMS status

CDI Info
=========
E: Could not determine CDI status

NVIDIA GPU Info
================
E: Could not determine NVIDIA status

You will need to ensure that you have correctly configured PCI pass-through of the GPU device in the hypervisor.

Outputting the version of the AIMS VM

To output the AIMS system version:

  1. Log in to the AIMS VM as the user admin, either through SSH or the VMware console.

  2. At the command prompt, run the command aims-config show-version

For example:

AIMS Version Info
=================
{'major': '0', 'minor': '1', 'maintenance': '0', 'pseudo-version': '100.0.0', 'revision': '48457ce5a0aa426f926baa0ab481feaa'}

Outputting the status of the AIMS VM

To show AIMS system status:

  1. Log in to the AIMS VM as the user admin, either through SSH or the VMware console.

  2. At the command prompt, run the command aims-config show-status

You will see the running services here, the number of services will depend on the hardware passed through to the AIMS appliance. For example:

CTM Instance Summary
====================
Livecaption instances: ctm-livecaption0.service
Riva instances: ctm-riva0.service

Instance Details
=================
ctm-livecaption0.service: loaded, active, running
ctm-riva0.service: loaded, active, running

Outputting support information

To show detailed AIMS system status:

  1. Log in to the AIMS VM as the user admin, either through SSH or the VMware console.

  2. At the command prompt, run the command aims-config show-all

This provides a detailed output which you can send to your Pexip authorized support representative, for example:

AIMS Version Info
=================
{'major': '0', 'minor': '1', 'maintenance': '0', 'pseudo-version': '100.0.0', 'revision': '48457ce5a0aa426f926baa0ab481feaa'}

CTM Instance Summary
====================
Livecaption instances: ctm-livecaption0.service
Riva instances: ctm-riva0.service

Instance Details
=================
ctm-livecaption0.service: loaded, active, running
ctm-riva0.service: loaded, active, running

AIMS GPU Info
=============
GPU,Device,UUID,Variant,Memory
gpu0,/dev/nvidia0,GPU-aa0b1111-a111-00a1-abcd-0aa1111b0a1b,adalovelace,23034

CDI Info
=========
CDI Device count: 1
CDI Device nodes: /dev/nvidia-uvm,/dev/nvidiactl
Mounts:
	HostPath,ContainerPath,Type,Options
	...

NVIDIA GPU Info
================
GPU 0: NVIDIA L4 (UUID: GPU-aa0b1111-a111-00a1-abcd-0aa1111b0a1b)

Name,AppID,DefaultLanguage
Pexip1,00abc000-111a-1234-1abc-a11122b3c444,en-US

loaded_services: en-US-parakeet

You can also include the verbose flag to include the NVSMI log in the output aims-config -v show-all.

Common issues

Symptom Possible cause Resolution
Nothing happens when the closed captions button is pressed in a conference.

This could be caused by a number of issues:

  • The dial out location for live captions is incorrect in the Pexip Infinity configuration

  • The AIMS appliance is unreachable or offline

  • The Pexip Infinity node cannot resolve the DNS record configured for the AIMS appliance

  • Pexip Infinity does not trust the certificate presented by the AIMS appliance.

  • Check the support logs for Not configured:

    2024-06-25T16:05:57.447+00:00 10-144-107-21-Hostname 2024-06-25 16:05:57,447 Level="INFO" Name="support.rest" Message="Sending REST API response" Src-Address="10.144.107.21" Src-Port="443" Dst-Address="10.47.151.5" Dst-Port="53146" Uuid="1e45f4cf-daa4-4f93-81b5-1778a5376ed4" Request="/api/client/v2/conferences/test/participants/1e45f4cf-daa4-4f93-81b5-1778a5376ed4/show_live_captions" Code="500" Detail="{\"status\": \"failed\", \"result\": \"Not configured\"}"
  • Check the support logs for Dial out failed:

    2024-06-21T09:21:11.002+00:00 conference_node 2024-06-21 09:21:11,002 Level="INFO" Name="administrator.conference" Message="Participant requested live captions by API." Conference="testvmr" Service-Tag="" Requester="b87edf1c-7892-4936-xxx-0401c5c054df" Participant="name" Call-Id="b87edf1c-7892-4936-xxx-0401c5c054df" Conversation-Id="b87edf1c-7892-4936-xxx-0401c5c054df" Show="True"
    
    2024-06-21T09:21:29.427+00:00 conference_node 2024-06-21 09:21:29,427 Level="INFO" Name="support.rest" Message="Sending REST API response" Src-Address="1.2.3.4" Src-Port="443" Dst-Address="4.3.2.1" Dst-Port="54618" Uuid="b87edf1c-7892-4936-xxx-0401c5c054df" Request="/api/client/v2/conferences/testvmr/participants/b87edf1c-7892-4936-xxx-0401c5c054df/show_live_captions" Code="500" Detail="{\"status\": \"failed\", \"result\": \"Dial out failed\"}"d