CloudFlare Tunnels Connecter not showing up

Im using Cloudflare tunnels to try and connect a dashboard to my domain. Im using a ubuntu server. Im using the pre generated command to install everything. Im getting this error
2023-09-05T07:33:02Z INF Using Systemd
2023-09-05T07:33:02Z ERR error generating service template error="cloudflared service is already installed at /etc/systemd/system/cloudflared-update.service; if you are running a cloudflared tunnel, you can point it to multiple origins, avoiding the need to run more than one cloudflared service in the same machine; otherwise if you are really sure, you can do `cloudflared service uninstall` to clean up the existing service and then try again this command"
cloudflared service is already installed at /etc/systemd/system/cloudflared-update.service; if you are running a cloudflared tunnel, you can point it to multiple origins, avoiding the need to run more than one cloudflared service in the same machine; otherwise if you are really sure, you can do `cloudflared service uninstall` to clean up the existing service and then try again this command
2023-09-05T07:33:02Z INF Using Systemd
2023-09-05T07:33:02Z ERR error generating service template error="cloudflared service is already installed at /etc/systemd/system/cloudflared-update.service; if you are running a cloudflared tunnel, you can point it to multiple origins, avoiding the need to run more than one cloudflared service in the same machine; otherwise if you are really sure, you can do `cloudflared service uninstall` to clean up the existing service and then try again this command"
cloudflared service is already installed at /etc/systemd/system/cloudflared-update.service; if you are running a cloudflared tunnel, you can point it to multiple origins, avoiding the need to run more than one cloudflared service in the same machine; otherwise if you are really sure, you can do `cloudflared service uninstall` to clean up the existing service and then try again this command
If i run cloudflared service uninstall
2023-09-05T07:33:50Z ERR systemctl daemon-reload error error="systemctl [daemon-reload] returned with error code exit status 1 due to: Failed to reload daemon: Interactive authentication required.\n"
systemctl [daemon-reload] returned with error code exit status 1 due to: Failed to reload daemon: Interactive authentication required.
2023-09-05T07:33:50Z ERR systemctl daemon-reload error error="systemctl [daemon-reload] returned with error code exit status 1 due to: Failed to reload daemon: Interactive authentication required.\n"
systemctl [daemon-reload] returned with error code exit status 1 due to: Failed to reload daemon: Interactive authentication required.
and if i run it with sudo everything works
2023-09-05T07:34:49Z INF Linux service for cloudflared uninstalled successfully
2023-09-05T07:34:49Z INF Linux service for cloudflared uninstalled successfully
Then if i run sudo cloudflared service install xxxx i get the error i started with saying its already installed? There is no connecter showing up when it refreshes? I Think im stuck in a loop
26 Replies
Erisa
Erisaβ€’15mo ago
cloudflared service is already installed at /etc/systemd/system/cloudflared-update.service;
This name (cloudflared-update.service) isn't the normal name this service has. If you are sure no other cloudflared should be running on the server, could you delete that file and try again?
kath
kathOPβ€’15mo ago
uhh I might have it installed coz i folled a dif doc guide when installing the first time. Can you please tell me the best way to check
Erisa
Erisaβ€’15mo ago
sudo systemctl status cloudflared-update ?
kath
kathOPβ€’15mo ago
β—‹ cloudflared-update.service - Update cloudflared
Loaded: loaded (/etc/systemd/system/cloudflared-update.service; static)
Active: inactive (dead)
β—‹ cloudflared-update.service - Update cloudflared
Loaded: loaded (/etc/systemd/system/cloudflared-update.service; static)
Active: inactive (dead)
Erisa
Erisaβ€’15mo ago
inactive (dead) so its not in use I would be curious what it's supposed to be doing though, would you mind doing sudo cat /etc/systemd/system/cloudflared-update.service as well?
kath
kathOPβ€’15mo ago
Description=Update cloudflared
After=network.target

[Service]
ExecStart=/bin/bash -c '/usr/bin/cloudflared update; code=$?; if [ $code -eq 11 ]; then systemctl restart cloudflared; exit 0; fi; exit $code'
Description=Update cloudflared
After=network.target

[Service]
ExecStart=/bin/bash -c '/usr/bin/cloudflared update; code=$?; if [ $code -eq 11 ]; then systemctl restart cloudflared; exit 0; fi; exit $code'
Erisa
Erisaβ€’15mo ago
Fascinating Okay so, you can add that back later if you need it, for now try sudo rm /etc/systemd/system/cloudflared-update.service and then try installing cloudflared service again
kath
kathOPβ€’15mo ago
kath@funny-kath-server:~/a$ sudo cloudflared service install no
2023-09-05T08:47:19Z INF Using Systemd
2023-09-05T08:47:19Z ERR error generating service template error="cloudflared service is already installed at /etc/systemd/system/cloudflared.service; if you are running a cloudflared tunnel, you can point it to multiple origins, avoiding the need to run more than one cloudflared service in the same machine; otherwise if you are really sure, you can do `cloudflared service uninstall` to clean up the existing service and then try again this command"
cloudflared service is already installed at /etc/systemd/system/cloudflared.service; if you are running a cloudflared tunnel, you can point it to multiple origins, avoiding the need to run more than one cloudflared service in the same machine; otherwise if you are really sure, you can do `cloudflared service uninstall` to clean up the existing service and then try again this command
kath@funny-kath-server:~/a$ sudo cloudflared service install no
2023-09-05T08:47:19Z INF Using Systemd
2023-09-05T08:47:19Z ERR error generating service template error="cloudflared service is already installed at /etc/systemd/system/cloudflared.service; if you are running a cloudflared tunnel, you can point it to multiple origins, avoiding the need to run more than one cloudflared service in the same machine; otherwise if you are really sure, you can do `cloudflared service uninstall` to clean up the existing service and then try again this command"
cloudflared service is already installed at /etc/systemd/system/cloudflared.service; if you are running a cloudflared tunnel, you can point it to multiple origins, avoiding the need to run more than one cloudflared service in the same machine; otherwise if you are really sure, you can do `cloudflared service uninstall` to clean up the existing service and then try again this command
Erisa
Erisaβ€’15mo ago
run sudo cloudflared service uninstall again last time it was complaining about cloudflared-update.service so now thats gone, the uninstall + reinstall should work
kath
kathOPβ€’15mo ago
Running the uninstall 2023-09-05T08:49:44Z INF Linux service for cloudflared uninstalled successfully as normal. Running the install script
2023-09-05T08:50:20Z ERR error generating service template error="cloudflared service is already installed at /etc/systemd/system/cloudflared.service; if you are running a cloudflared tunnel, you can point it to multiple origins, avoiding the need to run more than one cloudflared service in the same machine; otherwise if you are really sure, you can do `cloudflared service uninstall` to clean up the existing service and then try again this command"
cloudflared service is already installed at /etc/systemd/system/cloudflared.service; if you are running a cloudflared tunnel, you can point it to multiple origins, avoiding the need to run more than one cloudflared service in the same machine; otherwise if you are really sure, you can do `cloudflared service uninstall` to clean up the existing service and then try again this command
2023-09-05T08:50:20Z ERR error generating service template error="cloudflared service is already installed at /etc/systemd/system/cloudflared.service; if you are running a cloudflared tunnel, you can point it to multiple origins, avoiding the need to run more than one cloudflared service in the same machine; otherwise if you are really sure, you can do `cloudflared service uninstall` to clean up the existing service and then try again this command"
cloudflared service is already installed at /etc/systemd/system/cloudflared.service; if you are running a cloudflared tunnel, you can point it to multiple origins, avoiding the need to run more than one cloudflared service in the same machine; otherwise if you are really sure, you can do `cloudflared service uninstall` to clean up the existing service and then try again this command
Erisa
Erisaβ€’15mo ago
πŸ€” that's very strange Since uninstall isn't working, try cleaning it manually with sudo rm /etc/systemd/system/cloudflared.service and rerun the install command?
kath
kathOPβ€’15mo ago
worth rming everything with cloudflared?
Erisa
Erisaβ€’15mo ago
Just that for now
kath
kathOPβ€’15mo ago
2023-09-05T08:56:50Z ERR error generating service template error="cloudflared service is already installed at /etc/systemd/system/cloudflared-update.timer; if you are running a cloudflared tunnel, you can point it to multiple origins, avoiding the need to run more than one cloudflared service in the same machine; otherwise if you are really sure, you can do `cloudflared service uninstall` to clean up the existing service and then try again this command"
cloudflared service is already installed at /etc/systemd/system/cloudflared-update.timer; if you are running a cloudflared tunnel, you can point it to multiple origins, avoiding the need to run more than one cloudflared service in the same machine; otherwise if you are really sure, you can do `cloudflared service uninstall` to clean up the existing service and then try again this command
2023-09-05T08:56:50Z ERR error generating service template error="cloudflared service is already installed at /etc/systemd/system/cloudflared-update.timer; if you are running a cloudflared tunnel, you can point it to multiple origins, avoiding the need to run more than one cloudflared service in the same machine; otherwise if you are really sure, you can do `cloudflared service uninstall` to clean up the existing service and then try again this command"
cloudflared service is already installed at /etc/systemd/system/cloudflared-update.timer; if you are running a cloudflared tunnel, you can point it to multiple origins, avoiding the need to run more than one cloudflared service in the same machine; otherwise if you are really sure, you can do `cloudflared service uninstall` to clean up the existing service and then try again this command
when installing
Erisa
Erisaβ€’15mo ago
Delete that file and try again :/ /etc/systemd/system/cloudflared-update.timer this time
kath
kathOPβ€’15mo ago
kath@funny-kath-server:~/a$ sudo rm /etc/systemd/system/cloudflared-update.timer
kath@funny-kath-server:~/a$ 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 xxx
% 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:00:01 --:--:-- 0
100 16.8M 100 16.8M 0 0 2783k 0 0:00:06 0:00:06 --:--:-- 4768k
(Reading database ... 121320 files and directories currently installed.)
Preparing to unpack cloudflared.deb ...
Unpacking cloudflared (2023.8.2) over (2023.8.2) ...
Setting up cloudflared (2023.8.2) ...
Processing triggers for man-db (2.10.2-1) ...
2023-09-05T09:01:06Z INF Using Systemd
2023-09-05T09:01:06Z ERR error generating service template error="cloudflared service is already installed at /etc/systemd/system/cloudflared.service; if you are running a cloudflared tunnel, you can point it to multiple origins, avoiding the need to run more than one cloudflared service in the same machine; otherwise if you are really sure, you can do `cloudflared service uninstall` to clean up the existing service and then try again this command"
cloudflared service is already installed at /etc/systemd/system/cloudflared.service; if you are running a cloudflared tunnel, you can point it to multiple origins, avoiding the need to run more than one cloudflared service in the same machine; otherwise if you are really sure, you can do `cloudflared service uninstall` to clean up the existing service and then try again this command
kath@funny-kath-server:~/a$ sudo rm /etc/systemd/system/cloudflared-update.timer
kath@funny-kath-server:~/a$ 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 xxx
% 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:00:01 --:--:-- 0
100 16.8M 100 16.8M 0 0 2783k 0 0:00:06 0:00:06 --:--:-- 4768k
(Reading database ... 121320 files and directories currently installed.)
Preparing to unpack cloudflared.deb ...
Unpacking cloudflared (2023.8.2) over (2023.8.2) ...
Setting up cloudflared (2023.8.2) ...
Processing triggers for man-db (2.10.2-1) ...
2023-09-05T09:01:06Z INF Using Systemd
2023-09-05T09:01:06Z ERR error generating service template error="cloudflared service is already installed at /etc/systemd/system/cloudflared.service; if you are running a cloudflared tunnel, you can point it to multiple origins, avoiding the need to run more than one cloudflared service in the same machine; otherwise if you are really sure, you can do `cloudflared service uninstall` to clean up the existing service and then try again this command"
cloudflared service is already installed at /etc/systemd/system/cloudflared.service; if you are running a cloudflared tunnel, you can point it to multiple origins, avoiding the need to run more than one cloudflared service in the same machine; otherwise if you are really sure, you can do `cloudflared service uninstall` to clean up the existing service and then try again this command
🀷
Erisa
Erisaβ€’15mo ago
Well thats annoying regardless of the error does it then work? check sudo systemctl status cloudflared
kath
kathOPβ€’15mo ago
● funny-kath-server
State: degraded
Jobs: 0 queued
Failed: 1 units
Since: Tue 2023-09-05 05:51:47 UTC; 3h 12min ago
CGroup: /
β”œβ”€user.slice
β”‚ └─user-1000.slice
β”‚ β”œβ”€[email protected] …
β”‚ β”‚ └─init.scope
β”‚ β”‚ β”œβ”€1302 /lib/systemd/systemd --user
β”‚ β”‚ └─1303 (sd-pam)
β”‚ └─session-1.scope
β”‚ β”œβ”€ 1290 sshd: kath [priv]
β”‚ β”œβ”€ 1415 sshd: kath@pts/0
β”‚ β”œβ”€ 1416 -bash
β”‚ β”œβ”€ 1785 PM2 v5.3.0: God Daemon (/home/kath/.pm2)
β”‚ β”œβ”€ 1799 PM2 Agent v2.0.3: (/home/kath/.pm2)
β”‚ β”œβ”€18231 sudo systemctl status
β”‚ β”œβ”€18232 sudo systemctl status
β”‚ β”œβ”€18233 systemctl status
β”‚ └─18234 less
β”œβ”€init.scope
β”‚ └─1 /sbin/init
└─system.slice
β”œβ”€irqbalance.service
β”‚ └─820 /usr/sbin/irqbalance --foreground
β”œβ”€netplan-wpa-wlp1s0.service
β”‚ └─712 /sbin/wpa_supplicant -c /run/netplan/wpa-wlp1s0.conf -iwlp1s0 -Dnl80211,wext
β”œβ”€containerd.service …
β”‚ └─902 /usr/bin/containerd
β”œβ”€packagekit.service
β”‚ └─2413 /usr/libexec/packagekitd
β”œβ”€systemd-networkd.service
β”‚ └─802 /lib/systemd/systemd-networkd
β”œβ”€systemd-udevd.service
lines 1-36
● funny-kath-server
State: degraded
Jobs: 0 queued
Failed: 1 units
Since: Tue 2023-09-05 05:51:47 UTC; 3h 12min ago
CGroup: /
β”œβ”€user.slice
β”‚ └─user-1000.slice
β”‚ β”œβ”€[email protected] …
β”‚ β”‚ └─init.scope
β”‚ β”‚ β”œβ”€1302 /lib/systemd/systemd --user
β”‚ β”‚ └─1303 (sd-pam)
β”‚ └─session-1.scope
β”‚ β”œβ”€ 1290 sshd: kath [priv]
β”‚ β”œβ”€ 1415 sshd: kath@pts/0
β”‚ β”œβ”€ 1416 -bash
β”‚ β”œβ”€ 1785 PM2 v5.3.0: God Daemon (/home/kath/.pm2)
β”‚ β”œβ”€ 1799 PM2 Agent v2.0.3: (/home/kath/.pm2)
β”‚ β”œβ”€18231 sudo systemctl status
β”‚ β”œβ”€18232 sudo systemctl status
β”‚ β”œβ”€18233 systemctl status
β”‚ └─18234 less
β”œβ”€init.scope
β”‚ └─1 /sbin/init
└─system.slice
β”œβ”€irqbalance.service
β”‚ └─820 /usr/sbin/irqbalance --foreground
β”œβ”€netplan-wpa-wlp1s0.service
β”‚ └─712 /sbin/wpa_supplicant -c /run/netplan/wpa-wlp1s0.conf -iwlp1s0 -Dnl80211,wext
β”œβ”€containerd.service …
β”‚ └─902 /usr/bin/containerd
β”œβ”€packagekit.service
β”‚ └─2413 /usr/libexec/packagekitd
β”œβ”€systemd-networkd.service
β”‚ └─802 /lib/systemd/systemd-networkd
β”œβ”€systemd-udevd.service
lines 1-36
No description
kath
kathOPβ€’15mo ago
wait
Erisa
Erisaβ€’15mo ago
and sudo journalctl -u cloudflared --no-pager ?
kath
kathOPβ€’15mo ago
sudo systemctl status cloudflared returns
β—‹ cloudflared.service - cloudflared
Loaded: loaded (/etc/systemd/system/cloudflared.service; disabled; vendor preset: enabled)
Active: inactive (dead)
β—‹ cloudflared.service - cloudflared
Loaded: loaded (/etc/systemd/system/cloudflared.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Erisa
Erisaβ€’15mo ago
sudo systemctl enable --now cloudflared?
kath
kathOPβ€’15mo ago
too many results to let me view everything in my terminal πŸ’€
kath@funny-kath-server:~/a$ sudo systemctl enable --now cloudflared
Created symlink /etc/systemd/system/multi-user.target.wants/cloudflared.service β†’ /etc/systemd/system/cloudflared.service.
kath@funny-kath-server:~/a$ sudo systemctl enable --now cloudflared
Created symlink /etc/systemd/system/multi-user.target.wants/cloudflared.service β†’ /etc/systemd/system/cloudflared.service.
Erisa
Erisaβ€’15mo ago
okay now check the status again
kath
kathOPβ€’15mo ago
kath@funny-kath-server:~/a$ sudo systemctl status cloudflared
● cloudflared.service - cloudflared
Loaded: loaded (/etc/systemd/system/cloudflared.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2023-09-05 09:08:27 UTC; 1min 45s ago
Main PID: 18354 (cloudflared)
Tasks: 13 (limit: 9288)
Memory: 18.5M
CPU: 1.615s
CGroup: /system.slice/cloudflared.service
└─18354 /usr/bin/cloudflared --no-autoupdate tunnel run --token eyJhIjoiNWE2OWE2YjVlMGVjZWM0MTljMjI2Mzc5MTI0NzFiNjMiLC>

Sep 05 09:08:27 funny-kath-server cloudflared[18354]: 2023-09-05T09:08:27Z INF ICMP proxy will use 192.168.0.228 as source for IPv4
Sep 05 09:08:27 funny-kath-server cloudflared[18354]: 2023-09-05T09:08:27Z INF ICMP proxy will use 2001:8003:9023:d800:f26e:bff:fed>
Sep 05 09:08:27 funny-kath-server cloudflared[18354]: 2023-09-05T09:08:27Z INF Starting metrics server on 127.0.0.1:44575/metrics
Sep 05 09:08:27 funny-kath-server cloudflared[18354]: 2023/09/05 09:08:27 failed to sufficiently increase receive buffer size (was:>
Sep 05 09:08:27 funny-kath-server cloudflared[18354]: 2023-09-05T09:08:27Z INF Registered tunnel connection connIndex=0 connection=>
Sep 05 09:08:27 funny-kath-server systemd[1]: Started cloudflared.
Sep 05 09:08:28 funny-kath-server cloudflared[18354]: 2023-09-05T09:08:28Z INF Registered tunnel connection connIndex=1 connection=>
Sep 05 09:08:28 funny-kath-server cloudflared[18354]: 2023-09-05T09:08:28Z INF Updated to new configuration config=null version=0
Sep 05 09:08:29 funny-kath-server cloudflared[18354]: 2023-09-05T09:08:29Z INF Registered tunnel connection connIndex=2 connection=>
Sep 05 09:08:30 funny-kath-server cloudflared[18354]: 2023-09-05T09:08:30Z INF Registered tunnel connection connIndex=3 connection=>
lines 1-20/20 (END)
kath@funny-kath-server:~/a$ sudo systemctl status cloudflared
● cloudflared.service - cloudflared
Loaded: loaded (/etc/systemd/system/cloudflared.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2023-09-05 09:08:27 UTC; 1min 45s ago
Main PID: 18354 (cloudflared)
Tasks: 13 (limit: 9288)
Memory: 18.5M
CPU: 1.615s
CGroup: /system.slice/cloudflared.service
└─18354 /usr/bin/cloudflared --no-autoupdate tunnel run --token eyJhIjoiNWE2OWE2YjVlMGVjZWM0MTljMjI2Mzc5MTI0NzFiNjMiLC>

Sep 05 09:08:27 funny-kath-server cloudflared[18354]: 2023-09-05T09:08:27Z INF ICMP proxy will use 192.168.0.228 as source for IPv4
Sep 05 09:08:27 funny-kath-server cloudflared[18354]: 2023-09-05T09:08:27Z INF ICMP proxy will use 2001:8003:9023:d800:f26e:bff:fed>
Sep 05 09:08:27 funny-kath-server cloudflared[18354]: 2023-09-05T09:08:27Z INF Starting metrics server on 127.0.0.1:44575/metrics
Sep 05 09:08:27 funny-kath-server cloudflared[18354]: 2023/09/05 09:08:27 failed to sufficiently increase receive buffer size (was:>
Sep 05 09:08:27 funny-kath-server cloudflared[18354]: 2023-09-05T09:08:27Z INF Registered tunnel connection connIndex=0 connection=>
Sep 05 09:08:27 funny-kath-server systemd[1]: Started cloudflared.
Sep 05 09:08:28 funny-kath-server cloudflared[18354]: 2023-09-05T09:08:28Z INF Registered tunnel connection connIndex=1 connection=>
Sep 05 09:08:28 funny-kath-server cloudflared[18354]: 2023-09-05T09:08:28Z INF Updated to new configuration config=null version=0
Sep 05 09:08:29 funny-kath-server cloudflared[18354]: 2023-09-05T09:08:29Z INF Registered tunnel connection connIndex=2 connection=>
Sep 05 09:08:30 funny-kath-server cloudflared[18354]: 2023-09-05T09:08:30Z INF Registered tunnel connection connIndex=3 connection=>
lines 1-20/20 (END)
No description
kath
kathOPβ€’15mo ago
look like that worked @Erisa | Out of office ❀️ everything is now working for me
Want results from more Discord servers?
Add your server