# 404 page not found errors

**URL:** <https://community.traefik.io/t/404-page-not-found-errors/17085>\
**Category:** Traefik v2\
**Tags:** kubernetes-ingress\
**Created:** [January 11, 2023, 11:49am UTC](https://community.traefik.io/t/404-page-not-found-errors/17085 "2023-01-11T11:49:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wachtell](https://avatars.discourse-cdn.com/v4/letter/w/e5b9ba/32.png) [@wachtell](https://community.traefik.io/u/wachtell)\
**Post date:** [January 11, 2023, 11:49am UTC](https://community.traefik.io/t/404-page-not-found-errors/17085/1 "2023-01-11T11:49:18Z")

</div>

I am getting a 404 error from Traefik during the the first install. I installed using Helm and this values file. What am I doing wrong?

globalArguments:

- "--global.sendanonymoususage=false"
- "--global.checknewversion=false"

additionalArguments:

- "--serversTransport.insecureSkipVerify=true"
- "--log.level=DEBUG"

deployment:  
enabled: true  
replicas: 3  
annotations: {}  
podAnnotations: {}  
additionalContainers:   
initContainers:

ports:  
web:  
redirectTo: websecure  
websecure:  
tls:  
enabled: true

ingressRoute:  
dashboard:  
enabled: false

providers:  
kubernetesCRD:  
enabled: true  
ingressClass: traefik-external  
allowExternalNameServices: true  
kubernetesIngress:  
enabled: true  
allowExternalNameServices: true  
publishedService:  
enabled: false

rbac:  
enabled: true

service:  
enabled: true  
type: LoadBalancer  
annotations: {}  
labels: {}  
spec:  
loadBalancerIP: 192.168.3.104  
loadBalancerSourceRanges:   
externalIP:

---

<div class="post-metadata">

**Author:** ![wachtell](https://avatars.discourse-cdn.com/v4/letter/w/e5b9ba/32.png) [@wachtell](https://community.traefik.io/u/wachtell)\
**Post date:** [January 12, 2023, 12:38pm UTC](https://community.traefik.io/t/404-page-not-found-errors/17085/2 "2023-01-12T12:38:56Z")

</div>

I will add some context. I followed the directions of @jakubhajek

```auto
kubectl port-forward --namespace default \
$(kubectl get pods \
--selector "app.kubernetes.io/name=traefik" \
--output=name \
--namespace default) \
9000:9000

```

which returns this error: error: TYPE/NAME and list of ports are required for port-forward  
See 'kubectl port-forward -h' for help and examples  
For some more information, here is my middleware file:

```auto
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
  name: traefik-dashboard-basisauth
  namespace: traefik
spec:
  basicAuth:
    secret: traefik-dashboard-basisauth

```

and here is my ingress route file:

```auto
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: traefik-dashboard
  namespace: traefik
  annotations:
    kubernetes.io/ingress.class: traefik-external
spec:
  entryPoints:
    - web
    - websecure
  routes:
    - match: Host('traefik.wachtell.net')
      kind: Rule
      middleware: 
        - name: traefik-dashboard-basisauth
          namespaces: traefik
      services:
         - name: api@internal
           kind: TraefikService
# tls:
# secretName: wachtell-net-staging-tls

```

When I do curl [http://traefik.wachtell.net](http://traefik.wachtell.net) it returns Moved Permanently and when I do [https://traefik.wachtell.net](https://traefik.wachtell.net) is returns curl: (60) SSL certificate problem: unable to get local issuer certificate. What am I doing wrong? I see a lot of others have had 404 problems.

---

<div class="post-metadata">

**Author:** ![wachtell](https://avatars.discourse-cdn.com/v4/letter/w/e5b9ba/32.png) [@wachtell](https://community.traefik.io/u/wachtell)\
**Post date:** [January 25, 2023, 3:37pm UTC](https://community.traefik.io/t/404-page-not-found-errors/17085/3 "2023-01-25T15:37:19Z")

</div>

I found that one has to add: - match: Host(`traefik.domain.com`) && (PathPrefix(`/dashboard`) || PathPrefix(`/api`))

and in the browser "[http://traefik.domain.com/dashboard/](http://traefik.domain.com/dashboard/)" to get rid of the 404 page not found.

---

<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:** [January 28, 2023, 3:37pm UTC](https://community.traefik.io/t/404-page-not-found-errors/17085/4 "2023-01-28T15:37:56Z")

</div>

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