multiple tunneling services

whenever i try to run the command cloudflare gives me to setup a second tunnel on my OS, it gives me this error:
2023-08-16T14:33:10Z INF Using Systemd
2023-08-16T14:33:10Z 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-08-16T14:33:10Z INF Using Systemd
2023-08-16T14:33:10Z 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
how do i point a cloudflare tunnel to multiple origins?
3 Replies
Chaika
Chaika16mo ago
Add another public hostname to the existing tunnel, you really shouldn't need to create a second entire tunnel for the same machine
Anga
AngaOP16mo ago
thanks
Microserver
Microserver14mo ago
Hi! I have the same error, but I unfortunately need to use 2 different tunnels. How I add a second UUID.json to my server? (2 different cloudflare accounts have to be able to add hostnames to the same server) Thanks! I then started cloudflared2 as service and it's working like a charm! Hi...I'm back on this topic. For the first time after my last message I restarted my server. Now the second tunnel is not working, but the config file is there. I get this error: :~ $ sudo systemctl start /etc/systemd/system/cloudflared2.service Failed to start etc-systemd-system-cloudflared2.service.mount: Unit etc-systemd-system-cloudflared2.service.mount not found. The first tunnel is working normally and started by itself when booting Thanks! $ systemctl enable -now cloudflared2.service Failed to parse lines 'ow' What is 'ow'? Ah I changed with 1 dash I made it work, but I had to make some changes. I'll add them here if someone needs it. I had to remove the '--now' and add 'sudo' and separately use the command 'sudo systemctl start cloudflared2.service' @FloppyDisk thank you again for your help! Yes, from the error message it seems so
Want results from more Discord servers?
Add your server