Hey Inductive,
We're trying to develop a module that supports Redundancy in Ignition 8.3 like we did in 8.1.
We run 2 images of the gateway (v8.3.3), one for the primary and the other one for the backup. Then, once both gateways are up, we configure them as such:
Primary (running on http://localhost:9081, container name: ign-primary)
- Redundancy Settings
- Mode=Master
- Port=8060 (default)
- Network Settings
- Require SSL=Off
Backup (running on http://localhost:9082, container name: ign-backup)
- Redundancy Settings: Mode=Backup
- Backup Node Settings:
- Master Node Address=ign-primary
- Port=8088
- Use SSL=Off
Then, I wait until the connection looks good on both:
Then I install the module in the master gateway.
The module we developed works well in independent mode, but when installed in redundancy mode, caused the backup to constantly reboot due to an error. So I tried with the dummy module provided on IA's GitHub :
https://github.com/inductiveautomation/ignition-sdk-examples/tree/ignition-8.3/webui-webpage
I install it on the master gateway and get the same thing: I restart the master gateway and after a minute, the backup gateway restarts, then errors, then restarts, then errors, etc... for a total of 5 times I think, until it just stops trying.
Here are some error logs I could manage to get from the backup while it was up (REDACTED is mine, but it's just an IP address):
-> outgoing local='ign-primary-backup' remote='ign-primary-master' method=handleConnectException: Connection attempt to 'ws://ign-primary:8088/system/ws-control-servlet?name=ign-primary-backup&uuid=14c4920f-d033-4459-ba0a-1cadffd9b0bb&serializer=protobuf&url=http://REDACTED:8088/system' failed! Verify that your host and port settings are correct. Error message='java.net.ConnectException: Connection refused'
-> outgoing local='ign-primary-backup' remote='ign-primary-master' method=handleConnectException: Connection attempt to 'ws://ign-primary:8088/system/ws-control-servlet?name=ign-primary-backup&uuid=14c4920f-d033-4459-ba0a-1cadffd9b0bb&serializer=protobuf&url=http://REDACTED:8088/system' failed! Response code='200', error message='org.eclipse.jetty.websocket.api.exceptions.UpgradeException: org.eclipse.jetty.websocket.core.exception.UpgradeException: Failed to upgrade to websocket: Unexpected HTTP Response Status Code: 200 OK'.
One thing I noticed that is weird is that initially in the top-left corner of the page, the backup gateway shows "ign-backup", but after its first restarts says "ign-primary"
Here's what it does (left is primary, right is backup):
So I'm wondering:
- Are modules supported in redundancy mode in 8.3?
- If so, did I simply misconfigure the redundancy and network settings at the beginning? Did I forget a step?
Sorry for the lengthy post, but I wanted to include as much details as possible. Let me know if you need any more.
Thanks!
