# Traefik dashboard connection refused

**URL:** <https://community.traefik.io/t/traefik-dashboard-connection-refused/8823>\
**Category:** Traefik v2\
**Tags:** dashboard-api\
**Created:** [December 1, 2020, 7:46pm UTC](https://community.traefik.io/t/traefik-dashboard-connection-refused/8823 "2020-12-01T19:46:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cook1e\_mr](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/cook1e_mr/32/2973_2.png) [@Cook1e\_mr](https://community.traefik.io/u/Cook1e_mr)\
**Post date:** [December 1, 2020, 7:46pm UTC](https://community.traefik.io/t/traefik-dashboard-connection-refused/8823/1 "2020-12-01T19:46:08Z")

</div>

Hi All,

Really struggling to get access to the dashboard. I have deployed traefik within rancher in the system namespace.

It is running, but I cannot for the life of me figure out why the dashboard returns this error

traefik.toml

```auto
apiVersion: v1
data:
  traefik.toml: |
    # traefik.toml
    logLevel = "info"
    defaultEntryPoints = ["http","https"]
    [entryPoints]
      [entryPoints.http]
      address = ":80"
      compress = true
      [entryPoints.https]
      address = ":443"
      compress = true
        [entryPoints.https.tls]
          [[entryPoints.https.tls.certificates]]
          CertFile = "/ssl/tls.crt"
          KeyFile = "/ssl/tls.key"
      [entryPoints.traefik]
      address = ":8080"
    [ping]
    entryPoint = "http"
    [kubernetes]
    [traefikLog]
      format = "json"
    [acme]
    KeyType = "RSA4096"
    email = "xxxx@yyyy.com"
    storage = "/acme/acme.json"
    entryPoint = "https"
    onHostRule = true
    caServer = "https://acme-staging-v02.api.letsencrypt.org/directory"
    acmeLogging = true
      [acme.dnsChallenge]
      provider = "duckdns"
    [api]
      entryPoint = "traefik"
      dashboard = true
      insecure = true
kind: ConfigMap
metadata:
  creationTimestamp: "2020-11-30T17:12:25Z"
  labels:
    app: traefik
    chart: traefik-1.0.0
    heritage: Tiller
    io.cattle.field/appId: traefik
    release: traefik
  managedFields:
  - apiVersion: v1
    fieldsType: FieldsV1
    fieldsV1:
      f:data: {}
      f:metadata:
        f:labels:
          .: {}
          f:app: {}
          f:chart: {}
          f:heritage: {}
          f:io.cattle.field/appId: {}
          f:release: {}
    manager: Go-http-client
    operation: Update
    time: "2020-11-30T17:13:23Z"
  - apiVersion: v1
    fieldsType: FieldsV1
    fieldsV1:
      f:data:
        f:traefik.toml: {}
    manager: Mozilla
    operation: Update
    time: "2020-12-01T11:20:56Z"
  name: traefik
  namespace: kube-system
  resourceVersion: "1057880"
  selfLink: /api/v1/namespaces/kube-system/configmaps/traefik
  uid: 7d4248e6-3e70-4210-843b-981813c37e5a

```

Dashboard.yaml

```auto
apiVersion: v1
kind: Service
metadata:
  creationTimestamp: "2020-11-30T17:12:27Z"
  labels:
    app: traefik
    chart: traefik-1.0.0
    heritage: Tiller
    io.cattle.field/appId: traefik
    release: traefik
  managedFields:
  - apiVersion: v1
    fieldsType: FieldsV1
    fieldsV1:
      f:metadata:
        f:labels:
          .: {}
          f:app: {}
          f:chart: {}
          f:heritage: {}
          f:io.cattle.field/appId: {}
          f:release: {}
      f:spec:
        f:ports:
          .: {}
          k:{"port":80,"protocol":"TCP"}:
            .: {}
            f:port: {}
            f:protocol: {}
            f:targetPort: {}
        f:selector:
          .: {}
          f:app: {}
          f:release: {}
        f:sessionAffinity: {}
        f:type: {}
    manager: Go-http-client
    operation: Update
    time: "2020-11-30T17:12:26Z"
  - apiVersion: v1
    fieldsType: FieldsV1
    fieldsV1:
      f:spec:
        f:ports:
          k:{"port":80,"protocol":"TCP"}:
            f:name: {}
    manager: Mozilla
    operation: Update
    time: "2020-12-01T10:22:50Z"
  name: traefik-dashboard
  namespace: kube-system
  resourceVersion: "1048465"
  selfLink: /api/v1/namespaces/kube-system/services/traefik-dashboard
  uid: 479846dd-b3ea-48e6-89e4-645ccfa27210
spec:
  clusterIP: xxxxxxxxxxxx
  ports:
  - name: dashboard-http
    port: 80
    protocol: TCP
    targetPort: 8080
  selector:
    app: traefik
    release: traefik
  sessionAffinity: None
  type: ClusterIP
status:
  loadBalancer: {}

```

Can anyone see anything stupid? or any suggestions on how I troubleshoot? I am completely new to this and followed a guide on Technotim youtube "Self-Hosting Your Homelab Services with SSL". However he doesn't mention what to do if the dashboard doesn't show

Thanks

---

<div class="post-metadata">

**Author:** ![cakiwi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/cakiwi/32/3205_2.png) [@cakiwi](https://community.traefik.io/u/cakiwi)\
**Post date:** [December 4, 2020, 2:40pm UTC](https://community.traefik.io/t/traefik-dashboard-connection-refused/8823/2 "2020-12-04T14:40:32Z")

</div>

> [@Cook1e\_mr](#):
>
> It is running, but I cannot for the life of me figure out why the dashboard returns this error

What is the error?

When using api insecure traefik will automatically create an entrypoint. Try removing the traefik entrypoint is my advice.

---

<div class="post-metadata">

**Author:** ![Cook1e\_mr](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/cook1e_mr/32/2973_2.png) [@Cook1e\_mr](https://community.traefik.io/u/Cook1e_mr)\
**Post date:** [December 4, 2020, 5:35pm UTC](https://community.traefik.io/t/traefik-dashboard-connection-refused/8823/3 "2020-12-04T17:35:21Z")

</div>

Hi, thank you for your response, i have tried both with and without the api insecure. I get a 404 error on both occasions.

here you can see the localhost refused

![localhost](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/0/027ed034506b5ee75e81b76b1ccea9e782357788.png)

here I can see that the port is being exposed, but I cant access it

 ![i dont get it](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/2/2216c8a060297d9d57025b5b0d83e468bea3e411.png)

---

<div class="post-metadata">

**Author:** ![cakiwi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/cakiwi/32/3205_2.png) [@cakiwi](https://community.traefik.io/u/cakiwi)\
**Post date:** [December 4, 2020, 10:15pm UTC](https://community.traefik.io/t/traefik-dashboard-connection-refused/8823/4 "2020-12-04T22:15:33Z")

</div>

I think that / should work but could you also try as per the Quickstart guide [http://localhost/api/rawdata](http://localhost/api/rawdata)

I am reading your file right that you have a port publish of 80 to 8080 ?

---

<div class="post-metadata">

**Author:** ![Cook1e\_mr](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/cook1e_mr/32/2973_2.png) [@Cook1e\_mr](https://community.traefik.io/u/Cook1e_mr)\
**Post date:** [December 8, 2020, 7:28pm UTC](https://community.traefik.io/t/traefik-dashboard-connection-refused/8823/5 "2020-12-08T19:28:30Z")

</div>

Hi

yes that's correct.

Have resolved the issue now. The problem was that I didnt have a dns record in the host file of the machine I was using to access the dashboard. I had put my dns record on the server.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/b/bd81ebdb578656e76e56ff3cc3eed021d3ba132d.png) [@system](https://community.traefik.io/u/system)\
**Post date:** [December 11, 2020, 7:28pm UTC](https://community.traefik.io/t/traefik-dashboard-connection-refused/8823/6 "2020-12-11T19:28:33Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
