Warp on Linux crashes

Trying to evaluate WARP tunnel mode in Cloudflare Teams I set up the tunnel according to the documentation and the Linux client according to the corresponding instructions.

But the Linux client always fails for me. Tried on two different systems (both of them Ubuntu 20.04), fails on both.

Snippet from the logs:

Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] Connected to 162.159.192.10:2408
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] WARP status: Connected
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] starting new connection: https://engage.cloudflareclient.com/
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] starting new connection: https://connectivity.cloudflareclient.com/
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] Fallback resolvers: [127.0.0.53]
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] Applying DNS settings [redacted]
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] detected that system dns is managed with systemd-resolved
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] No cached session for DNSNameRef("engage.cloudflareclient.com")
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] Not resuming any session
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Error] Error in process_tun_packets: Err(Os { code: 1, kind: PermissionDenied, message: "Operation not permitted" })
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] Reconnecting on error
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] WARP status: Disconnecting
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] WARP status: Disconnected
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] Firewall stopped
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Info] captive_portal_fw_disable: None
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] Using auto fallback: true
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] IPv4: [redacted; redacted; Ethernet]; DNS servers:;   127.0.0.53;
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] Initiate WARP connection
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] WARP status: Connecting
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] Routes changed:
Oct 12 16:00:30 mysystem warp-svc[4133817]: DelNeighbour; Destination: 0.0.0.0;
Oct 12 16:00:30 mysystem warp-svc[4133817]: DelNeighbour; Destination: ff02::2;
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] Attempting Happy Eyeballs to port 2408
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] Start racer redacted:47478 ---> 162.159.192.10:2408
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] Sending handshake_initiation
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] Sent handshake initiation to 162.159.192.10:2408
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Warn] Happy eyeballs to [2606:4700:d0::a29f:c00a]:2408 failed: Os { code: 101, kind: Other, message: "Network is unreachable" }
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] Got response from 162.159.192.10:2408
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] Received handshake_response, remote_idx: 3849772, local_idx: 4241426945
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] New session, session: 4241426945
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] Sending keepalive
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] Connected to 162.159.192.10:2408
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] WARP status: Connected
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] starting new connection: https://engage.cloudflareclient.com/
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] starting new connection: https://connectivity.cloudflareclient.com/
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] Fallback resolvers: [127.0.0.53]
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Error] Error in process_dns: Err(ReadError: Unexpected end of slice. The given slice contained less then minimum required 1 bytes.)
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] Applying DNS settings [redacted]
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] Reconnecting on error
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] WARP status: Disconnecting
Oct 12 16:00:30 mysystem warp-svc[4133817]: [Debug] detected that system dns is managed with systemd-resolved
Oct 12 16:00:31 mysystem warp-svc[4133817]: [Debug] starting new connection: https://in.appcenter.ms/
Oct 12 16:00:35 mysystem warp-svc[4133817]: [Error] Failed to send crash report reqwest::Error { kind: Request, url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("in.appcenter.ms")), port: None, path: "/logs", query: Some("Api-Version=1.0.0"), fragment: None }, source: hyper::Error(Connect, TimedOut) }
Oct 12 16:00:35 mysystem warp-svc[4133817]: [Error] thread 'tokio-runtime-worker' panicked at 'called `Option::unwrap()` on a `None` value': urt/src/rt/unix/mod.rs:220
Oct 12 16:00:35 mysystem warp-svc[4133817]: [Debug] starting new connection: https://in.appcenter.ms/
Oct 12 16:00:39 mysystem warp-svc[4133817]: [Error] Failed to send crash report reqwest::Error { kind: Request, url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("in.appcenter.ms")), port: None, path: "/logs", query: Some("Api-Version=1.0.0"), fragment: None }, source: hyper::Error(Connect, TimedOut) }
Oct 12 16:00:39 mysystem warp-svc[4133817]: [Error] thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: JoinError::Panic(...)': /cfsetup_build/urt/src/rt/mod.rs:173
Oct 12 16:00:39 mysystem warp-svc[4133817]: [Error] Dropping WarpService
Oct 12 16:00:39 mysystem warp-svc[4133817]: [Debug] Firewall stopped

This is just the end of a flood of similar log messages that start to appear directly after issuing warp-cli connect. In the end the warp-svc is unresponsive and has to be killed.

Any help would be appreciated. Thanks!

A few more attempts to get it running failed, e.g. downgrading the WARP client did not change anything, trying to run it on Linux systems other than Ubuntu 20.04 failed due to issues with teams-enroll on headless systems (on versions 2021.08.1 as well as 2021.07.2)…

So, have to give up on this unfortunately and go for other solutions.

Thanks anyways.

Hi,

Maybe you can try with static IP and static IP’s for resolving? in short not to use DHCP?

Did you see this page : Cloudflare Package Repository (cloudflareclient.com) as well?

Thanks for your response.

Regarding the package repository - this is exactly what I used for the installation.

Regarding the static IP addresses for resolving, I’m not quite sure I get what you mean, but I switched my WIFI connection to use 1.1.1.1 as DNS server (instead of the one provided by DHCP) with no change in results, i.e. it still doesn’t work unfortunately…

Thanks Thomas for your feedback.
I meant not to use DHCP, just static IP.
What if you wire your computer instead of using wireless?

I am using Debian Buster that’s version 10 I believe, wired and everything static.

Thanks for your response, Paul.

I gave it another try with the Debian Buster Live CD in a VM and, what should I say, it works. Then I tried an Ubuntu 20.04 Live CD in a VM and again, it works. Then I tried a fresh Ubuntu 20.04 Server installation in a VM. First, this didn’t work due to issues with teams-enroll on headless systems, but eventually I figured how to overcome these:

  1. Open the URL output by teams-enroll in a browser (on a different system)
  2. Open Network tab from Developer Tools in the browser
  3. Login
  4. When the browser asks to open a URL with a local app: Cancel
  5. Instead copy the URL with scheme com.cloudflare.warp:// found in the Developer Tool’s Network tab
  6. On the headless system run warp-cli teams-enroll-token URL (where URL is the copied URL, including the scheme)

Then it works. Then, I tried it on the headless Ubuntu where I had already tried and failed before. Using the headless enroll procedure it finally works there, too. Leaves me just with my laptop where it still doesn’t work. But that’s okay for now. Prove of concept works. That’s what matters. Thanks!

1 Like

Hi @thomas.weiss

Good to read! Good that you didn’t give up!
Makes sense and yes the concept works :slight_smile: Warp is really good!