Tunnel not working

I have installed cloudflared and when I run "cloudflared service install X" it says
INF Installing cloudflared Windows service
INF cloudflared agent service is installed windowsServiceName=Cloudflared
Cannot install event logger: SYSTEM\CurrentControlSet\Services\EventLog\Application\Cloudflared registry key already exists
INF Installing cloudflared Windows service
INF cloudflared agent service is installed windowsServiceName=Cloudflared
Cannot install event logger: SYSTEM\CurrentControlSet\Services\EventLog\Application\Cloudflared registry key already exists
41 Replies
Kaveman
Kaveman4mo ago
I assume you installed before, did you uninstall using cloudflared service uninstall? I am typing cause I went through my own tunnel troubled today lmao
Tom
TomOP4mo ago
I tried that, it also gave me an error And yes, I had it installed before It gives me this error:
INF Uninstalling cloudflared agent service windowsServiceName=Cloudflared
Agent service Cloudflared is not installed, so it could not be uninstalled
INF Uninstalling cloudflared agent service windowsServiceName=Cloudflared
Agent service Cloudflared is not installed, so it could not be uninstalled
Kaveman
Kaveman4mo ago
I mean.... I assume the error is thrown because a key already exists, I am inclined to say delete the key, though I think renaming it from
to
to
SYSTEM\CurrentControlSet\Services\EventLog\Application\Cloudflared.bck``` will be better.... if this solves your issue be sure to delete this backup.. and make sure no instances of cloudflared are running.
Tom
TomOP4mo ago
Where do I find this? Is it on my dashboard somewhere or locally?
Kaveman
Kaveman4mo ago
This is in the registry
Kaveman
Kaveman4mo ago
No description
Kaveman
Kaveman4mo ago
Should be somewhere here
No description
Kaveman
Kaveman4mo ago
I don't have it for some reason.... what version of cloudflared are you using?
Tom
TomOP4mo ago
I have it and deleted it, it seems to work now Just testing
Kaveman
Kaveman4mo ago
Nice
Tom
TomOP4mo ago
I have the latest version
Kaveman
Kaveman4mo ago
Weird, I didn't find any registry keys for it.. at least on this system Let me check on another one
Tom
TomOP4mo ago
Still isn't working Says it's healthy but it isn't forwarding the port
Kaveman
Kaveman4mo ago
What are you forwarding?
Tom
TomOP4mo ago
Localhost:8000
Kaveman
Kaveman4mo ago
Is it an SSH port, HTTP, something else?
Tom
TomOP4mo ago
Http Says server IP address could not be found.
Kaveman
Kaveman4mo ago
Hmmmmm.... When you visit the URL thats visible on Zero Trust?
Tom
TomOP4mo ago
Yes Cloud flare says domain is active, zero trust says healthy but doesn't work at all
Kaveman
Kaveman4mo ago
Does it show this when you go to configure?
No description
Tom
TomOP4mo ago
Yes, shows exactly like that But with my domain
Kaveman
Kaveman4mo ago
Let me try to make this locally
Chaika
Chaika4mo ago
Sounds like DNS. Either you visited it too fast and it's being cached or something else. Can you share the url?
Chaika
Chaika4mo ago
There's legitimately no dns record/cname created for that, nothing routing traffic to the tunnel. You setup your public hostname directly on your root/apex and not on a subdomain or anything?
Tom
TomOP4mo ago
Yes
Tom
TomOP4mo ago
No description
Kaveman
Kaveman4mo ago
Adding this worked
No description
No description
No description
Chaika
Chaika4mo ago
What does your public hostname look like?
Tom
TomOP4mo ago
No description
Kaveman
Kaveman4mo ago
Public hostname has no subdomain? (is that an issue even?)
Chaika
Chaika4mo ago
it's perfectly fine to use tunnels on your root, but it should have made a DNS record for it easiest thing to try is just deleting and recreating
Tom
TomOP4mo ago
The tunnel?
Chaika
Chaika4mo ago
the public hostname
Tom
TomOP4mo ago
ok
Kaveman
Kaveman4mo ago
I did not know that.... thats pretty cool!
Chaika
Chaika4mo ago
I'm assuming you already readded it, looks like it works now
No description
Chaika
Chaika4mo ago
first time you added it maybe domain was still activating or something else failed to add the dns record. If it still doesn't work on your end, gotta wait for dns cache to expire or manually clear
Tom
TomOP4mo ago
How do you do that? It isn't working on my end but that is what's meant to happen
Chaika
Chaika4mo ago
clear dns cache? It depends on OS. If you wait it out it shouldn't be more then an hour or so at max. It's usually a matter of two things: 1 clearing local/browser dns cache and 2 switching to a public resolver like 1.1.1.1/8.8.8.8 and not your ISP's default which sometimes have aggressive caching policies ignoring TTLs
Tom
TomOP4mo ago
It's working on my PC now but not my phone I'll just wait but thanks for the help
Want results from more Discord servers?
Add your server