cloudflare / cloudflared

Cloudflare Tunnel client (formerly Argo Tunnel)

Home Page:https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/tunnel-guide

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🐛Building/Deploying the master branch is not working

Letgamer opened this issue · comments

Describe the bug
When using the current master branch to deploy cloudflared using docker an error occurrs when executing

To Reproduce
Steps to reproduce the behavior:
Same setup as in #1131 but changed golang:1.20-alpine to golang:alpine to use golang 1.21.5 version and changed fetching layer to:
git clone https://github.com/cloudflare/cloudflared --depth=1

The same error also happens with golang:1.22-rc-alpine

Expected behavior
Build should succeed and docker should start successfully.

Environment and versions

  • OS: linux
  • Architecture: amd64
  • Version: master branch

Logs and errors
ERR Failed to create new quic connection error="failed to dial to edge with quic: INTERNAL_ERROR (local): tls: CurvePreferences includes unsupported curve"

Additional context
Add any other context about the problem here.

I've just updated to 2024.1.0 and facing this issue.
It takes 2 minutes for the tunnels to start. It seems QUIC is not working at all, so the tunnels only start once protocol is switched to HTTP2:

connector_1  | 2024-01-08T10:34:44Z INF Starting metrics server on [::]:40901/metrics
connector_1  | 2024/01/08 10:34:44 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes for details.
connector_1  | 2024-01-08T10:34:44Z ERR Failed to create new quic connection error="failed to dial to edge with quic: INTERNAL_ERROR (local): tls: CurvePreferences includes unsupported curve" connIndex=0 event=0 ip=198.41.192.47
connector_1  | 2024-01-08T10:34:44Z INF Retrying connection in up to 2s connIndex=0 event=0 ip=198.41.192.47
connector_1  | 2024-01-08T10:34:45Z ERR Failed to create new quic connection error="failed to dial to edge with quic: INTERNAL_ERROR (local): tls: CurvePreferences includes unsupported curve" connIndex=0 event=0 ip=198.41.200.33
connector_1  | 2024-01-08T10:34:45Z INF Retrying connection in up to 4s connIndex=0 event=0 ip=198.41.200.33
connector_1  | 2024-01-08T10:34:47Z ERR Failed to create new quic connection error="failed to dial to edge with quic: INTERNAL_ERROR (local): tls: CurvePreferences includes unsupported curve" connIndex=0 event=0 ip=198.41.192.227
connector_1  | 2024-01-08T10:34:47Z INF Retrying connection in up to 8s connIndex=0 event=0 ip=198.41.192.227
connector_1  | 2024-01-08T10:34:47Z ERR Failed to create new quic connection error="failed to dial to edge with quic: INTERNAL_ERROR (local): tls: CurvePreferences includes unsupported curve" connIndex=0 event=0 ip=198.41.192.7
connector_1  | 2024-01-08T10:34:47Z INF Retrying connection in up to 16s connIndex=0 event=0 ip=198.41.192.7
connector_1  | 2024-01-08T10:35:01Z ERR Failed to create new quic connection error="failed to dial to edge with quic: INTERNAL_ERROR (local): tls: CurvePreferences includes unsupported curve" connIndex=0 event=0 ip=198.41.192.227
connector_1  | 2024-01-08T10:35:01Z INF Retrying connection in up to 32s connIndex=0 event=0 ip=198.41.192.227
connector_1  | 2024-01-08T10:35:26Z ERR Failed to create new quic connection error="failed to dial to edge with quic: INTERNAL_ERROR (local): tls: CurvePreferences includes unsupported curve" connIndex=0 event=0 ip=198.41.200.33
connector_1  | 2024-01-08T10:35:26Z INF Retrying connection in up to 1m4s connIndex=0 event=0 ip=198.41.200.33
connector_1  | 2024-01-08T10:35:40Z ERR Failed to create new quic connection error="failed to dial to edge with quic: INTERNAL_ERROR (local): tls: CurvePreferences includes unsupported curve" connIndex=0 event=0 ip=198.41.192.27
connector_1  | 2024-01-08T10:35:40Z INF Retrying connection in up to 1m4s connIndex=0 event=0 ip=198.41.192.27
connector_1  | 2024-01-08T10:35:42Z ERR Failed to create new quic connection error="failed to dial to edge with quic: INTERNAL_ERROR (local): tls: CurvePreferences includes unsupported curve" connIndex=0 event=0 ip=198.41.200.113
connector_1  | 2024-01-08T10:35:42Z INF Retrying connection in up to 1m4s connIndex=0 event=0 ip=198.41.200.113
connector_1  | 2024-01-08T10:35:47Z ERR Failed to create new quic connection error="failed to dial to edge with quic: INTERNAL_ERROR (local): tls: CurvePreferences includes unsupported curve" connIndex=0 event=0 ip=198.41.192.167
connector_1  | 2024-01-08T10:35:47Z INF Retrying connection in up to 1m4s connIndex=0 event=0 ip=198.41.192.167
connector_1  | 2024-01-08T10:36:19Z INF Switching to fallback protocol http2 connIndex=0 event=0 ip=198.41.192.167
connector_1  | 2024-01-08T10:36:20Z INF Registered tunnel connection connIndex=0 connection=8dbe2406-5cd8-4563-ab12-ad6cb252b933 event=0 ip=198.41.200.63 location=waw02 protocol=http2
connector_1  | 2024-01-08T10:36:20Z INF Updated to new configuration config="XXXXXX" version=12
connector_1  | 2024-01-08T10:36:20Z INF Registered tunnel connection connIndex=1 connection=38b75f5b-daef-4210-8e32-a018ab359a51 event=0 ip=198.41.192.27 location=kbp02 protocol=http2
connector_1  | 2024-01-08T10:36:21Z INF Registered tunnel connection connIndex=2 connection=e2ebb8cf-5941-4bfa-ba60-6010675afc45 event=0 ip=198.41.192.47 location=kbp02 protocol=http2
connector_1  | 2024-01-08T10:36:22Z INF Registered tunnel connection connIndex=3 connection=556e3bc5-1842-49a7-9fe6-8ad43696ae2b event=0 ip=198.41.200.233 location=waw02 protocol=http2

I'm running cloudflare/cloudflared:2024.1.0 binary in alpine:3.18.4 on amd64.

I just updated to 2024.1.0 today and ran into the same issue, running on Kubernetes built with kubeadm.

2024-01-08T11:43:15Z INF Starting tunnel tunnelID=_____
2024-01-08T11:43:15Z INF Version 2024.1.0 
2024-01-08T11:43:15Z INF GOOS: linux, GOVersion: go1.21.5, GoArch: amd64
2024-01-08T11:43:15Z INF Settings: map[metrics:0.0.0.0:2000 token:*****]
2024-01-08T11:43:15Z INF Autoupdate frequency is set autoupdateFreq=86400000
2024-01-08T11:43:15Z INF Generated Connector ID: _____
2024-01-08T11:43:15Z INF Initial protocol quic
2024-01-08T11:43:15Z INF ICMP proxy will use 10.0.0.29 as source for IPv4 
2024-01-08T11:43:15Z INF ICMP proxy will use fe80::34d9:deff:fea0:f7b4 in zone eth0 as source for IPv6
2024-01-08T11:43:15Z WRN The user running cloudflared process has a GID (group ID) that is not within ping_group_range. You might need to add that user to a group within that range, or instead update the range to encompass a group the user is already in by modifying /proc/sys/net/ipv4/ping_group_range. Otherwise cloudflared will not be able to ping this network error="Group ID 65532 is not between ping group 1 to 0" 
2024-01-08T11:43:15Z WRN ICMP proxy feature is disabled error="cannot create ICMPv4 proxy: Group ID 65532 is not between ping group 1 to 0 nor ICMPv6 proxy: socket: permission denied" 
2024-01-08T11:43:15Z INF Starting metrics server on :2000/metrics 
2024-01-08T11:43:15Z ERR Failed to create new quic connection error="failed to dial to edge with quic: INTERNAL_ERROR (local): tls: CurvePreferences includes unsupported curve" connIndex=0 event=0 ip=198.41.200.23 
2024-01-08T11:43:15Z INF Retrying connection in up to 2s connIndex=0 event=0 ip=198.41.200.23 
2024-01-08T11:43:17Z ERR Failed to create new quic connection error="failed to dial to edge with quic: INTERNAL_ERROR (local): tls: CurvePreferences includes unsupported curve" connIndex=0 event=0 ip=198.41.200.113
2024-01-08T11:43:17Z INF Retrying connection in up to 4s connIndex=0 event=0 ip=198.41.200.113
2024-01-08T11:43:21Z ERR Failed to create new quic connection error="failed to dial to edge with quic: INTERNAL_ERROR (local): tls: CurvePreferences includes unsupported curve" connIndex=0 event=0 ip=198.41.200.73 
2024-01-08T11:43:21Z INF Retrying connection in up to 8s connIndex=0 event=0 ip=198.41.200.73 
2024-01-08T11:43:28Z ERR Failed to create new quic connection error="failed to dial to edge with quic: INTERNAL_ERROR (local): tls: CurvePreferences includes unsupported curve" connIndex=0 event=0 ip=198.41.200.63 
2024-01-08T11:43:28Z INF Retrying connection in up to 16s connIndex=0 event=0 ip=198.41.200.63
2024-01-08T11:43:30Z INF Initiating graceful shutdown due to signal terminated ...
2024-01-08T11:43:30Z INF Tunnel server stopped
2024-01-08T11:43:30Z INF Metrics server stopped 
Stream closed EOF for cloudflared/cloudflared-deployment-6f64df55f-bttmr (cloudflared)

Hi,
We are aware that the docker image is currently broken. We are fixing it and will provide a new release with all binaries and docker images fixed ASAP.

Ok a valid release 2024.1.1 was issued. All binaries and docker images are working. Sorry for the inconvenience but because of the go update to 1.21 and the Post Quantum ciphers we had to start using cloudflare go toolchain which was not spread across all of our builds. We will work to improve the process in the future and ensure this won't happen again.

It is now also possible to build locally using make install which will use the cloudflare go toolchain.