openflighthpc / concertim-ct-visualisation-app

Eclipse Public License 2.0
0 stars 0 forks source link

Action Cable breaks if the redis container is restarted #149

Open benarmston opened 9 months ago

benarmston commented 9 months ago

If the redis container is restarted the live updates to the interactive rack view fails to initialise properly. To recreate:

  1. Deploy the concertim containers.
  2. Login to concertim and connect to the IRV. Notice that the page loads correctly and live updates are working.
  3. Restart the redis container.
  4. Reload the IRV page. Notice that it doesn't load correctly / fully load.

This has been observed on current main (f8fd5d6956c38252113663b8590a891b1ed81c5e) and also on the branch for #148 .

benarmston commented 9 months ago

The behaviour on v1.0.0 is different from the above. There if the redis container is restarted (or just stopped), the visualisation rails process crashes.

The difference between v1.0.0 and main is the upgrade from Rails 7.0.8 to 7.1.3.

benarmston commented 9 months ago

Regarding behaviour on main: it appears that the issue is that the rails process doesn't correctly re-establish a connection to the redis server. The result is that the redis server is unable to send the subscription confirmation from the browser client to the rails server.

Although it can do so when a second tab is opened. FSR!