Closed tivo65 closed 1 year ago
Thanks for raising. Since nothing tunnel / Cloudflared related changed with 4.1.7 (only documentation), this cannot be caused by the update. It fells like a temporary problem with Cloudfalred, so it would be great if you could check for some days, how this evolves (also if you are able to connect or not, not just the logs). I also do have some connection drops from time to time, so if you can connect it's ok.
I can connect, but it was dropping so often it was not very functional. i rolled back to 2023.5.4 (still running 4.1.7 of cloudflared) and it is much better (fewer disconnects). from reading other posts https://github.com/cloudflare/cloudflared/issues sounds like others are having the same problem. hopefully the just released 2023.6.2 addresses the issue.
2023-06-15T19:51:10Z INF Unregistered tunnel connection connIndex=1 event=0 ip=198.41.200.23 2023-06-15T19:51:10Z WRN Failed to serve quic connection error="failed to accept QUIC stream: Application error 0x0 (remote)" connIndex=1 event=0 ip=198.41.200.23 2023-06-15T19:51:10Z WRN Serve tunnel error error="failed to accept QUIC stream: Application error 0x0 (remote)" connIndex=1 event=0 ip=198.41.200.23 2023-06-15T19:51:10Z INF Retrying connection in up to 1s connIndex=1 event=0 ip=198.41.200.23 2023-06-15T19:51:12Z WRN Connection terminated error="failed to accept QUIC stream: Application error 0x0 (remote)" connIndex=1 2023-06-15T19:51:33Z INF Registered tunnel connection connIndex=1 connection=9b50c91e-5ac3-43e8-bdd7-9fecfa2d3b3b event=0 ip=198.41.200.23 location=SLC protocol=quic
@tivo65 Please check with the newest version released yesterday and let us know
I have the same issue, just installed latest version and deleted tunnel. Uninstalled addon an reinstall, created tunnel and after a few minutes the tunnel shows down again.
Cloudflare zero tier shows the tunnel is down.
Unfortunately, I cannot reproduce this. Can you share your addon logs and any special network config or setup that you might have?
Fresh install full log https://pastebin.com/tPmEjhsW
Changed domain and same problem.
Which Top Level Domain and registrar are you using?
One I have from cloudflare, thought I'd get everything at the same place.
tielen.cc
i have updated home assistant to the latest patches including cloudflared. i am running on a cloudflare tunnel I created on the cloudflare site. my domain is with omnis. my HA is running on debian in a vm guest on macos host. since the update it is running better, but I still get an occasional reconnecting message - "connection lost. Reconnecting..." Interesting, it generally happens when I am loading node-red. when I do get the reconnecting message it will load after about 30-60 seconds. here are the logs when that happens. the error always references "failed to accept QUIC stream"
2023-06-25T21:44:26Z WRN Serve tunnel error error="timeout: no recent network activity" connIndex=3 event=0 ip=198.41.200.53 2023-06-25T21:44:26Z INF Retrying connection in up to 1s connIndex=3 event=0 ip=198.41.200.53 2023-06-25T21:44:27Z ERR error="timeout: no recent network activity" cfRay=7dd0641acbf4533d-LAX event=1 ingressRule=0 originService=http://homeassistant:8123 2023-06-25T21:44:27Z ERR Request failed error="timeout: no recent network activity" connIndex=0 dest=https://xxxx/api/hassio_ingress/iwUCOPVYCQeCL8JdifRj3nei0F8pobiDV3cM86moXtM/vendor/monaco/dist/editor.js event=0 ip=198.41.192.27 type=http 2023-06-25T21:44:27Z INF Unregistered tunnel connection connIndex=0 event=0 ip=198.41.192.27 2023-06-25T21:44:27Z WRN Failed to serve quic connection error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=0 event=0 ip=198.41.192.27 2023-06-25T21:44:27Z WRN Serve tunnel error error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=0 event=0 ip=198.41.192.27 2023-06-25T21:44:27Z INF Retrying connection in up to 1s connIndex=0 event=0 ip=198.41.192.27 2023-06-25T21:44:27Z INF Unregistered tunnel connection connIndex=1 event=0 ip=198.41.200.113 2023-06-25T21:44:27Z WRN Failed to serve quic connection error="timeout: no recent network activity" connIndex=1 event=0 ip=198.41.200.113 2023-06-25T21:44:27Z WRN Serve tunnel error error="timeout: no recent network activity" connIndex=1 event=0 ip=198.41.200.113 2023-06-25T21:44:27Z INF Retrying connection in up to 1s connIndex=1 event=0 ip=198.41.200.113 2023-06-25T21:44:28Z ERR Connection terminated error="timeout: no recent network activity" connIndex=3 2023-06-25T21:44:28Z ERR Connection terminated error="timeout: no recent network activity" connIndex=1 2023-06-25T21:44:28Z ERR Connection terminated error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=0 2023-06-25T21:44:28Z INF Registered tunnel connection connIndex=2 connection=63731ffb-8a93-423b-a425-b6ba24f8e193 event=0 ip=198.41.192.227 location=DEN protocol=quic 2023-06-25T21:44:28Z INF Registered tunnel connection connIndex=0 connection=5f620907-6abb-4a31-bc5a-f068ad885b17 event=0 ip=198.41.192.27 location=DEN protocol=quic 2023-06-25T21:44:28Z INF Registered tunnel connection connIndex=3 connection=e1a712e9-9995-43da-9fe1-3d3928ff7450 event=0 ip=198.41.200.13 location=SLC protocol=quic 2023-06-25T21:44:29Z INF Registered tunnel connection connIndex=1 connection=577bf9b1-8008-4ebe-bb12-1a4054e06a3c event=0 ip=198.41.200.233 location=SLC protocol=quic
How are you running HA in Debian? Since with running it in a VM you are introducing many potential problems, I suggest to not use this add-on but use Docker within Debian, run the official Cloudflared Container and follow the instructions to create a tunnel in the Cloudflare Zero Trust Dashboard.
It's running on a nuc in a proxmox VM, it's been running fine with cloudflare for a while. Trouble started few days ago.
I am running a VM using virtualbox with the supplied VDI file. at HAOS ver 10.3 - https://www.home-assistant.io/installation/alternative - I am somewhat new to HA, been running it for a few months now. please elaborate why running home assistant in a VM is problematic. I thought it was a fully supported installation. Runs totally file other than this cloudflare issue. I believe if I were to run cloudflared outside HA it would require me to spin up another linux VM as HAOS takes over my entire homeassitant VM.
i moved cloudflared to docker running on a separate host and so far no problems. you do have to update the trusted_proxies: setting in HA to the subnet where docker is running.
i moved cloudflared to docker running on a separate host and so far no problems. you do have to update the trusted_proxies: setting in HA to the subnet where docker is running.
HI, I don't understand about trusted proxies setting, can you share your configuration ?
from my configuration.yaml on HA. my cloudflared is running on a host in docker that is, for example, 192.168.100.100
http: use_x_forwarded_for: true trusted_proxies:
The problem
in the last few days my cloudflare tunnel goes up and down causing loss of remote access. I deleted the cloudflared addon, reinstalled, and this time configured it as a remote managed tunnel. started working, then same result, tunnel goes up and down.
What version of Cloudflared has the issue?
4.1.7
What was the last working version of Cloudflared?
4.1.6
What type of installation are you running?
Home Assistant Supervised
Add-on YAML Configuration
Anything in the logs that might be useful for us?
Steps to reproduce the issue
fresh install works, then tunnel starts to go up and down as I access HA via the tunnel.
Additional information
No response