Hi,
I’m using flowfuse with the digital ocean deployment.
I have 3 instances running. I can access the editors of two of them fine but the third I get a 502 Nginx bad gateway error.
I have tried restarting and stop/starting the instance.
I assume the instance in question is one with the UID that starts 8d8be951 (the uuid will be in the URL at the top of the flowforge app when on the instance page) that shows as being up 28mins?
can you try and access the editor again then run docker logs flowforge-nginx-1 and show me any messages mentioning the instance hostname
Please check the Node-RED log again, you may need to scroll back up to see if it crashed and restarted at the point you tried to log into the editor.
It may help to restart in safe mode to prevent the flows running while trying to log in. To do this add the following environment variable under the instance settings:
NODE_RED_ENABLE_SAFE_MODE = true
Once set, suspend, restart then once started try and log in again please.
It does imply it is your flow that is causing the problem. You need to fix what ever is flooding the logs with errors then it will be easier to see what might be causing to to crash.
Okay, so we are sub’d to a wildcard MQTT topic. The sub topics get formatted and sent to an Influxdb 2 DB. The influxdb config had changed which broke the comms from the node to the DB.
Now I’ve fixed the influxdb node everything is okay. I have removed safe mode and everything still works. I guess it was the rate of errors causing the problem.
Is there anyway to mitigate against this? So if it happens again it doesn’t cripple the instance?