I have been using Argo Tunnel for a while now. When I first started exposing my origin application it worked great, the app was fresh and new and started super quick.
However, as my app (and its database) grew in size, it takes a little longer before it enters a state where it is ready to serve requests after a reboot.
What this generally means is that Argo comes up before the app is ready, and I get presented with the following in my log:
getsockopt: connection refused","level":"error","msg":"unable to connect to the origin","time"
That means Argo never actually starts, because it doesn’t think the source app is ready. It never re-attempts to connect which usually meant i had to manually log into the server and restart Cloudflared.
I have temporarily fixed this by sleeping Cloudflared on start for 30 seconds, but it may be worth implementing a “retry” period when Cloudflared starts.
Just a thought