Skip to main content

Services

Transcription:Batch   Deployments:Virtual Appliance

Access Logs

If you want to download logs (to provide information for a support ticket for instance) as a ZIP file, then it is possible to do this using the following command:

curl -L -u admin:$PWD -X 'GET' \
    "http://${APPLIANCE_HOST}/v2/management/logs/zip?limit=1h" \
    -o ./speechmatics.zip

where limit is the maximum age of logs, specified by a duration.

It is also possible to do this directly from the Management Interface by going to the following URL to your browser: http://${APPLIANCE_HOST}/docs/#/Management/ZipLogs, and then clicking on the download link when the ZIP file is ready.

Download log files (ZIP) from the Management Interface

To dig deeper into the logs to help Support diagnose problems, you can log on to the Appliance and use kubectl and journald commands directly.

System Restart and Shutdown

If the Virtual Appliance becomes unresponsive, there might be a need to restart it. If this is the case, it's recommended that the system is restarted through a remote SSH session or via the hypervisor console, however, the legacy restart and shutdown commands are still available in the Management API.

# reboot
curl -L -u admin:$PWD -X 'DELETE' "http://${APPLIANCE_HOST}/v2/management/reboot"
# shutdown
curl -L -u admin:$PWD -X 'DELETE' "http://${APPLIANCE_HOST}/v2/management/shutdown"

There will be a one minute delay between requesting a shutdown or reboot via the Management API and the action occurring.

Job Artefacts Cleanup

During job execution various artefacts are saved to disk, such as the job config and or audio file, these artefacts are automatically cleared every 24 hours. This cleanup interval can be configured via the Appliance Management API.

curl -L -u admin:$PWD -X 'POST' \
  "http://${APPLIANCE_HOST}/v2/management/cleanupinterval" \
  -H 'Content-Type: application/json' \
  -d '{
  "minutes": 1
}'

This is also possible through the Management Interface via http://${APPLIANCE_HOST}/#/Management/Management_SetCleanupInterval

Note

This cleanup process removes all job data including processed transcriptions; as a result, it is best to retrieve all processed transcription data to store externally before it is deleted.

Troubleshooting

There may be times unexpected behavior is observed with the Virtual Appliance. If this is the case, the following should be performed/checked:

  • Check the license is valid (see licensing)
  • Check the worker services are running
  • Check the resources (CPU, memory & disk) to ensure they are not exhausted
  • Restart the Virtual Appliance
  • Collect logs and reach out to Support.

Transcription Job Failure

If your transcription job fails with an error job status, more information can be found by looking at the logs from the api container (using the Management API, as previously described). Search the logs for the job id corresponding with your failure. If you see a SoftTimeLimitExceeded exception, this indicates that the job took longer than expected and as such was terminated. This is typically caused by poor VM performance, in particular slow disk IO operations (IOPS). If issues persist, it may be necessary to improve the disk IO performance on the underlying host, or you may need to increase the RAM available to the VM such that memory caches can be taken advantage of. Please consult the section on System Requirements, and the optimization advice specific to your hypervisor to ensure that you are not over-committing your compute resources.

Illegal Instruction Errors

If jobs fail repeatedly, and you see Illegal instruction errors in the log information for these jobs then it is likely that the host hardware you are running on does not support AVX. The host machine requirements for the Virtual Appliance must meet the following minimum specification: Intel® Xeon® CPU E5-2630 v4 (Sandy Bridge) 2.20GHz (or equivalent). This is important because these chipsets (and later ones) support Advanced Vector Extensions (AVX). The machine learning algorithms used by Speechmatics ASR require the performance optimizations that AVX provides.

You can check this by callin the cpuinfo endpoint.

curl -L -u admin:$PWD -X 'GET' \
  "http://${APPLIANCE_HOST}/v2/management/cpuinfo"

Check the flags field in the response. If avx isn't present, then your host's CPU does not support AVX, or that your hypervisor does not have AVX support.

AVX2 Warning

Speechmatics Appliance is optimized for running on hardware that supports the AVX2 flag. If you see the below message, your hardware is not optimised, and you may see slower performance of jobs

WARNING ([5.5.675~1-0c22]:SetupMathLibrary():asrengine/asrengine.cc:356) Unable to set CNR mode to 10 (AVX2); falling back to 9. The transcription might be slower and/or use more CPU resource.

Pending Jobs

If jobs enter a pending state within Kubernetes, it may be that the machine doesn't currently have enough resources to schedule the job. Check the current number of running jobs, the job should begin to run once the running jobs complete and sufficient resources have been made available.

Jobs Storage Full

By default, job artifacts are stored for 24hrs after job completion, in cases where a high volume of jobs are being ran it is possible that the local storage for job artefacts will become full and jobs will begin to fail, to avoid this it is best to monitor the status of the job storage via Prometheus and reduce the cleanup interval if job storage is filling up too quickly (see Monitoring).

Individual jobs can also be deleted via the jobs API e.g.

curl -L -u admin:$PWD -X 'DELETE' "https://${APPLIANCE_HOST}/v2/jobs/${job_id}"