Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Action Cable breaks if the redis container is restarted #149

Open
benarmston opened this issue Jan 18, 2024 · 2 comments
Open

Action Cable breaks if the redis container is restarted #149

benarmston opened this issue Jan 18, 2024 · 2 comments

Comments

@benarmston
Copy link
Collaborator

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 (f8fd5d6) and also on the branch for #148 .

@benarmston
Copy link
Collaborator Author

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
Copy link
Collaborator Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant