SageMaker上Cloudflare Tunnel连接建立失败求助
Cloudflare Tunnel 在 SageMaker 上无法建立连接求助
我尝试在SageMaker上通过Cloudflare Tunnel将主机暴露至0.0.0.0:7860,已按照官方文档完成隧道配置,但无法建立连接。
执行的命令:
!/home/studio-lab-user/cloudflared tunnel --url http://0.0.0.0:7860
命令输出:
2024-01-30T18:17:21Z INF Thank you for trying Cloudflare Tunnel. Doing so, without a Cloudflare account, is a quick way to experiment and try it out. However, be aware that these account-less Tunnels have no uptime guarantee. If you intend to use Tunnels in production you should use a pre-created named tunnel by following: https://developers.cloudflare.com/cloudflare-one/connections/connect-apps 2024-01-30T18:17:21Z INF Requesting new quick Tunnel on trycloudflare.com... 2024-01-30T18:17:22Z INF +--------------------------------------------------------------------------------------------+ 2024-01-30T18:17:22Z INF | Your quick Tunnel has been created! Visit it at (it may take some time to be reachable): | 2024-01-30T18:17:22Z INF | https://sync-dip-uniprotkb-dayton.trycloudflare.com | 2024-01-30T18:17:22Z INF +--------------------------------------------------------------------------------------------+ 2024-01-30T18:17:22Z INF Cannot determine default configuration path. No file [config.yml config.yaml] in [~/.cloudflared ~/.cloudflare-warp ~/cloudflare-warp /etc/cloudflared /usr/local/etc/cloudflared] 2024-01-30T18:17:22Z INF Version 2024.1.5 2024-01-30T18:17:22Z INF GOOS: linux, GOVersion: go1.21.5, GoArch: amd64 2024-01-30T18:17:22Z INF Settings: map[ha-connections:1 protocol:quic url:http://0.0.0.0:7860] 2024-01-30T18:17:22Z INF cloudflared will not automatically update when run from the shell. To enable auto-updates, run cloudflared as a service: https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/run-tunnel/as-a-service/ 2024-01-30T18:17:22Z INF Generated Connector ID: 8e966e6f-5266-4cf8-923b-089d30788d44 2024-01-30T18:17:22Z INF Initial protocol quic 2024-01-30T18:17:22Z INF ICMP proxy will use 169.254.255.2 as source for IPv4 2024-01-30T18:17:22Z INF ICMP proxy will use :: as source for IPv6 2024-01-30T18:17:22Z 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 100 is not between ping group 65534 to 65534" 2024-01-30T18:17:22Z WRN ICMP proxy feature is disabled error="cannot create ICMPv4 proxy: Group ID 100 is not between ping group 65534 to 65534 nor ICMPv6 proxy: socket: permission denied" 2024-01-30T18:17:22Z INF Starting metrics server on 127.0.0.1:40995/metrics 2024/01/30 18:17:22 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. 2024-01-30T18:17:27Z ERR Failed to create new quic connection error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=0 event=0 ip=198.41.192.107 2024-01-30T18:17:27Z INF Retrying connection in up to 2s connIndex=0 event=0 ip=198.41.192.107 2024-01-30T18:17:33Z ERR Failed to create new quic connection error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=0 event=0 ip=198.41.200.193 2024-01-30T18:17:33Z INF Retrying connection in up to 4s connIndex=0 event=0 ip=198.41.200.193 2024-01-30T18:17:38Z ERR Failed to create new quic connection error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=0 event=0 ip=198.41.200.113 2024-01-30T18:17:38Z INF Retrying connection in up to 8s connIndex=0 event=0 ip=198.41.200.113 2024-01-30T18:17:45Z ERR Failed to create new quic connection error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=0 event=0 ip=198.41.192.27 2024-01-30T18:17:45Z INF Retrying connection in up to 16s connIndex=0 event=0 ip=198.41.192.27 ^C 2024-01-30T18:17:46Z INF Initiating graceful shutdown due to signal interrupt ... 2024-01-30T18:17:46Z INF Tunnel server stopped 2024-01-30T18:17:46Z INF Metrics server stopped
从输出可以看到隧道已创建成功,但建立连接时反复出现**「failed to dial to edge with quic: timeout: no recent network activity」**的QUIC连接超时错误。
已完成的排查步骤:
- 检查Cloudflare Tunnel配置无错误;
- 验证SageMaker实例已正确配置为接受端口7860的入站连接;
- 确认无防火墙限制阻止出站连接;
- 查阅官方文档及社区论坛,未找到匹配的解决方案。
恳请专业人士帮忙分析问题原因并提供有效的解决方法,感谢协助!
内容的提问来源于stack exchange,提问作者Kael Voker
相关产品推荐
相关产品推荐

