InfluxDB Connection Refused inconsistently

I set up a small server monitoring script based on the Python tutorial in the GUI. I cloned the code repo into about 10 servers. Some connect fine, some give an error: “Failed to establish a new connection: [Errno 111] Connection refused”.

I’ve checked the configs and tokens, everything is identical. The code is all identical from the same repo. I don’t even know what to check from here.

— Edit —

I went through 8 of the servers. 5 connect fine. 1 gives a Connection Timed Out error, 2 give Connection Refused errors. All of the code and API tokens are identical.