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

Error when Installing Cloudflared Service on Ubuntu 22.04

anshul-rao opened this issue · comments

Hello, I'm trying to install cloudflared and I messed up the original installation as my computer crashed. I'm trying to reinstall and it just pauses when using systemd.

curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb &&

sudo dpkg -i cloudflared.deb &&

sudo cloudflared service install [REDACTED]
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 16.8M  100 16.8M    0     0  5527k      0  0:00:03  0:00:03 --:--:-- 6871k
(Reading database ... 206160 files and directories currently installed.)
Preparing to unpack cloudflared.deb ...
Unpacking cloudflared (2023.10.0) over (2023.10.0) ...
Setting up cloudflared (2023.10.0) ...
Processing triggers for man-db (2.10.2-1) ...
2023-12-31T22:55:55Z INF Using Systemd

When I ctrl+c out of it and check status on cloudflared

● cloudflared.service - cloudflared
     Loaded: loaded (/etc/systemd/system/cloudflared.service; enabled; vendor preset: enabled)
     Active: activating (start) since Sun 2023-12-31 16:55:55 CST; 2min 56s ago
   Main PID: 6114 (cloudflared)
      Tasks: 20 (limit: 38095)
     Memory: 18.4M
        CPU: 279ms
     CGroup: /system.slice/cloudflared.service
             └─6114 /usr/bin/cloudflared --no-autoupdate tunnel run --token REDACTED>

Dec 31 16:58:08 user-server cloudflared[6114]: 2023-12-31T22:58:08Z INF Retrying connection in up to 1m4s connIndex=>
Dec 31 16:58:09 user-server cloudflared[6114]: 2023-12-31T22:58:09Z ERR failed to serve incoming request error="Unau>
Dec 31 16:58:09 user-server cloudflared[6114]: 2023-12-31T22:58:09Z ERR Register tunnel error from server side error>
Dec 31 16:58:09 user-server cloudflared[6114]: 2023-12-31T22:58:09Z INF Retrying connection in up to 1m4s connIndex=>
Dec 31 16:58:25 user-server cloudflared[6114]: 2023-12-31T22:58:25Z ERR failed to serve incoming request error="Unau>
Dec 31 16:58:25 user-server cloudflared[6114]: 2023-12-31T22:58:25Z ERR Register tunnel error from server side error>
Dec 31 16:58:25 user-server cloudflared[6114]: 2023-12-31T22:58:25Z INF Retrying connection in up to 1m4s connIndex=>
Dec 31 16:58:50 user-server cloudflared[6114]: 2023-12-31T22:58:50Z ERR failed to serve incoming request error="Unau>
Dec 31 16:58:50 user-server cloudflared[6114]: 2023-12-31T22:58:50Z ERR Register tunnel error from server side error>
Dec 31 16:58:50 user-server cloudflared[6114]: 2023-12-31T22:58:50Z INF Retrying connection in up to 1m4s connIndex=>

My installation is screwed up and I'm not sure how to fix it. What can I do?

It looks like this is a pervasive bug on the latest Ubuntu distribution as I'm facing the same issue after upgrading. Or did you solve it outside of this thread?