Skip to content

SPICE viewer does not connect

For general information about the SPICE viewer and how to use it, see the SPICE viewer user documentation. This page covers what to check when it does not connect.

SPICE viewer traffic goes through the web proxy (isard-portal / isard-video) and the connection proxy (isard-squid). Most failures are in one of these two, in the network firewall, or in the certificates.

Basic checks

Check that the containers involved are up and not restarting:

docker ps | grep -E 'isard-portal|isard-video|isard-squid'
docker logs -f isard-portal      # or isard-video, depending on the installation
docker logs -f isard-squid

If isard-squid failed to start or is misconfigured, the SPICE viewer cannot establish the connection. This is rare.

The network firewall blocks the CONNECT method

The SPICE viewer connects with the HTTP CONNECT method on port 80: isard-portal/isard-video forwards these CONNECT requests to isard-squid, which routes them to the hypervisor. Some network firewalls (or changes made by the Internet provider) block the CONNECT method even when they let normal HTTP traffic through.

How to recognise it: the IsardVDI web loads fine but the SPICE viewer does not open, and it starts failing suddenly (often after a change in the network firewall). The fix is in the network: the CONNECT method has to be allowed towards the server on the corresponding port, which is done by whoever manages that firewall.

Certificate mismatch between disk and database

isard-engine generates the viewer certificates if they do not exist and stores them in the database. Sometimes the certificate on disk changes but is not updated in the database. The viewer data of a desktop that is already started does not change until the desktop is restarted.

Solution:

  1. Run docker restart isard-engine and check, by starting a desktop on the same hypervisor, whether the viewer works again.
  2. If the certificates in the database must be updated from the ones on disk, run inside the isard-engine container:

    docker exec isard-engine python3 update_certs.py