cloudflare / cloudflare/cloudflared
🐛WSL ubuntu env: cloudflared.service can't starting
- Dominant language
- Go
- Stars
- 15.6k
- Forks
- 1.4k
- PR merge metrics
- No merged PRs in 30d
Description
[cf.log](https://github.com/cloudflare/cloudflared/files/15059722/cf.log)
**Describe the bug**
A clear and concise description of what the bug is.
the cloudflared.service report:
```bash
-- The job identifier is 15553.
Apr 22 15:48:35 ZBBB2006M-0032 cloudflared[85500]: 2024-04-22T07:48:35Z INF Starting tunnel tunnelID=08b6314a-9140-48bb-bcc8-c172d2b772bf
Apr 22 15:48:35 ZBBB2006M-0032 cloudflared[85500]: 2024-04-22T07:48:35Z INF Version 2024.4.0
Apr 22 15:48:35 ZBBB2006M-0032 cloudflared[85500]: 2024-04-22T07:48:35Z INF GOOS: linux, GOVersion: go1.21.5, GoArch: amd64
Apr 22 15:48:35 ZBBB2006M-0032 cloudflared[85500]: 2024-04-22T07:48:35Z INF Settings: map[no-autoupdate:true token:*****]
Apr 22 15:48:35 ZBBB2006M-0032 cloudflared[85500]: 2024-04-22T07:48:35Z INF cloudflared will not automatically update if installed by a package manager.
Apr 22 15:48:35 ZBBB2006M-0032 cloudflared[85500]: 2024-04-22T07:48:35Z INF Generated Connector ID: 1ee4e585-9236-4062-b54b-624bec5c71e8
Apr 22 15:48:35 ZBBB2006M-0032 cloudflared[85500]: 2024-04-22T07:48:35Z ERR Failed to fetch features, default to disable error="lookup cfd-features.argotunnel.com on 172.19.64.1:53: no such host"
Apr 22 15:48:35 ZBBB2006M-0032 cloudflared[85500]: 2024-04-22T07:48:35Z WRN Unable to lookup protocol percentage.
Apr 22 15:48:35 ZBBB2006M-0032 cloudflared[85500]: 2024-04-22T07:48:35Z INF Initial protocol quic
Apr 22 15:48:35 ZBBB2006M-0032 cloudflared[85500]: 2024-04-22T07:48:35Z INF ICMP proxy will use 192.168.127.2 as source for IPv4
Apr 22 15:48:35 ZBBB2006M-0032 cloudflared[85500]: 2024-04-22T07:48:35Z INF ICMP proxy will use fe80::5894:efff:fee4:cee in zone wsltap as source for IPv6
Apr 22 15:48:40 ZBBB2006M-0032 cloudflared[85500]: 2024-04-22T07:48:40Z ERR edge discovery: error looking up Cloudflare edge IPs: the DNS query failed error="lookup _v2-origintunneld._tcp.argotunnel.com on 172.19.64.1:53: no such host" event=0
Apr 22 15:48:40 ZBBB2006M-0032 cloudflared[85500]: 2024-04-22T07:48:40Z ERR Please try the following things to diagnose this issue: event=0
Apr 22 15:48:40 ZBBB2006M-0032 cloudflared[85500]: 2024-04-22T07:48:40Z ERR 1. ensure that argotunnel.com is returning "origintunneld" service records. event=0
Apr 22 15:48:40 ZBBB2006M-0032 cloudflared[85500]: 2024-04-22T07:48:40Z ERR Run your system's equivalent of: dig srv _origintunneld._tcp.argotunnel.com event=0
Apr 22 15:48:40 ZBBB2006M-0032 cloudflared[85500]: 2024-04-22T07:48:40Z ERR 2. ensure that your DNS resolver is not returning compressed SRV records. event=0
Apr 22 15:48:40 ZBBB2006M-0032 cloudflared[85500]: 2024-04-22T07:48:40Z ERR See GitHub issue https://github.com/golang/go/issues/27546 event=0
Apr 22 15:48:40 ZBBB2006M-0032 cloudflared[85500]: 2024-04-22T07:48:40Z ERR For example, you could use Cloudflare's 1.1.1.1 as your resolver: event=0
Apr 22 15:48:40 ZBBB2006M-0032 cloudflared[85500]: 2024-04-22T07:48:40Z ERR https://developers.cloudflare.com/1.1.1.1/setting-up-1.1.1.1/ event=0
Apr 22 15:48:40 ZBBB2006M-0032 cloudflared[85500]: 2024-04-22T07:48:40Z INF Starting metrics server on 127.0.0.1:44207/metrics
Apr 22 15:48:44 ZBBB2006M-0032 cloudflared[85500]: 2024-04-22T07:48:44Z ERR edge discovery: error looking up Cloudflare edge IPs: the DNS query failed error="lookup _v2-origintunneld._tcp.argotunnel.com on 172.19.64.1:53: no such host" event=0
Apr 22 15:48:44 ZBBB2006M-0032 cloudflared[85500]: 2024-04-22T07:48:44Z ERR Please try the following things to diagnose this issue: event=0
Apr 22 15:48:44 ZBBB2006M-0032 cloudflared[85500]: 2024-04-22T07:48:44Z ERR 1. ensure that argotunnel.com is returning "origintunneld" service records. event=0
Apr 22 15:48:44 ZBBB2006M-0032 cloudflared[85500]: 2024-04-22T07:48:44Z ERR Run your system's equivalent of: dig srv _origintunneld._tcp.argotunnel.com event=0
Apr 22 15:48:44 ZBBB2006M-0032 cloudflared[85500]: 2024-04-22T07:48:44Z ERR 2. ensure that your DNS resolver is not returning compressed SRV records. event=0
Apr 22 15:48:44 ZBBB2006M-0032 cloudflared[85500]: 2024-04-22T07:48:44Z ERR See GitHub issue https://github.com/golang/go/issues/27546 event=0
Apr 22 15:48:44 ZBBB2006M-0032 cloudflared[85500]: 2024-04-22T07:48:44Z ERR For example, you could use Cloudflare's 1.1.1.1 as your resolver: event=0
Apr 22 15:48:44 ZBBB2006M-0032 cloudflared[85500]: 2024-04-22T07:48:44Z ERR https://developers.cloudflare.com/1.1.1.1/setting-up-1.1.1.1/ event=0
Apr 22 15:48:44 ZBBB2006M-0032 cloudflared[85500]: 2024-04-22T07:48:44Z INF Tunnel server stopped
Apr 22 15:48:44 ZBBB2006M-0032 cloudflared[85500]: 2024-04-22T07:48:44Z ERR Initiating shutdown error="Could not lookup srv records on _v2-origintunneld._tcp.argotunnel.com: lookup _v2-origintunneld._tcp.argotunnel.com on 172.19.64.1:53: no such host"
Apr 22 15:48:44 ZBBB2006M-0032 cloudflared[85500]: 2024-04-22T07:48:44Z INF Metrics server stopped
Apr 22 15:48:44 ZBBB2006M-0032 cloudflared[85500]: Could not lookup srv records on _v2-origintunneld._tcp.argotunnel.com: lookup _v2-origintunneld._tcp.argotunnel.com on 172.19.64.1:53: no such host
Apr 22 15:48:44 ZBBB2006M-0032 systemd[1]: cloudflared.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
```
**To Reproduce**
If it's an issue with Cloudflare Tunnel:
4. Tunnel ID :
5. cloudflared config:
**Expected behavior**
WSL ubuntu 20.04 env, hope the cloudflared service is work like a charm.
**Environment and versions**
- OS: win10+wsl 2
- Architecture: intel x86-64
- Version: WSL 版本: 2.1.5.0
**Logs and errors**
If applicable, add logs or errors to help explain your problem.
**Additional context**
Add any other context about the problem here.
Contributor guide
Assessment
This issue has not been assessed yet.