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
Kaveman3mo 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
TomOP3mo 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
Kaveman3mo 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
TomOP3mo ago
Where do I find this? Is it on my dashboard somewhere or locally?
Kaveman
Kaveman3mo ago
This is in the registry
Kaveman
Kaveman3mo ago
No description
Kaveman
Kaveman3mo ago
Should be somewhere here
No description
Kaveman
Kaveman3mo ago
I don't have it for some reason.... what version of cloudflared are you using?
Tom
TomOP3mo ago
I have it and deleted it, it seems to work now Just testing
Kaveman
Kaveman3mo ago
Nice
Tom
TomOP3mo ago
I have the latest version
Kaveman
Kaveman3mo ago
Weird, I didn't find any registry keys for it.. at least on this system Let me check on another one
Tom
TomOP3mo ago
Still isn't working Says it's healthy but it isn't forwarding the port
Kaveman
Kaveman3mo ago
What are you forwarding?
Tom
TomOP3mo ago
Localhost:8000
Kaveman
Kaveman3mo ago
Is it an SSH port, HTTP, something else?
Tom
TomOP3mo ago
Http Says server IP address could not be found.
Kaveman
Kaveman3mo ago
Hmmmmm.... When you visit the URL thats visible on Zero Trust?
Tom
TomOP3mo ago
Yes Cloud flare says domain is active, zero trust says healthy but doesn't work at all
Kaveman
Kaveman3mo ago
Does it show this when you go to configure?
No description
Tom
TomOP3mo ago
Yes, shows exactly like that But with my domain
Kaveman
Kaveman3mo ago
Let me try to make this locally
Chaika
Chaika3mo ago
Sounds like DNS. Either you visited it too fast and it's being cached or something else. Can you share the url?
Chaika
Chaika3mo 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
TomOP3mo ago
Yes
Tom
TomOP3mo ago
No description
Kaveman
Kaveman3mo ago
Adding this worked
No description
No description
No description
Chaika
Chaika3mo ago
What does your public hostname look like?
Tom
TomOP3mo ago
No description
Kaveman
Kaveman3mo ago
Public hostname has no subdomain? (is that an issue even?)
Chaika
Chaika3mo 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
TomOP3mo ago
The tunnel?
Chaika
Chaika3mo ago
the public hostname
Tom
TomOP3mo ago
ok
Kaveman
Kaveman3mo ago
I did not know that.... thats pretty cool!
Chaika
Chaika3mo ago
I'm assuming you already readded it, looks like it works now
No description
Chaika
Chaika3mo 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
TomOP3mo ago
How do you do that? It isn't working on my end but that is what's meant to happen
Chaika
Chaika3mo 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
TomOP3mo 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