---
title: "debug cloudflared tunnel"
description: "I've been debugging a cloudflared tunnel issue in my homelab all day today, and getting really frustrated. My issue ended up being that it was running twice,..."
date: 2024-12-03
published: true
tags:
  - homelab
  - networking
template: til
---


I've been debugging a cloudflared tunnel issue in my homelab all day today, and
getting really frustrated.  My issue ended up being that it was running twice,
once without the correct config file and another with it.  I believe that
cacheing may have compounded the issue.

> In yesterday's post I setup a cloudflared tunnel on my ubuntu server to
> expose applications running on the server to the internet.  I'm setting up a
> new server and running cloudflared in its own vm.

<a href="/setup-cloudflared-tunnel-on-ubuntu/" class="wikilink" data-title="setup cloudflared tunnel on ubuntu" data-description="I run a cloudflared tunnel on my ubuntu server to expose applications running on the server to the internet. I&#39;m setting up a new server and running..." data-date="2024-12-02">setup cloudflared tunnel on ubuntu</a>

## Check that dns is pointing to the correct tunnel

``` bash
dig subdomain.example.com
traceroute subdomain.example.com
```

## Check that the tunnel is running

``` bash
export CLOUDFLARED_TUNNEL_ID = "my-tunnel-id"

cloudflared tunnel list
cloudflared tunnel info $CLOUDFLARED_TUNNEL_ID
```
