Why i can't remove the Router R1?

Hi Everyone

The R1 file is removed but why the router info still show on dashboard ?

Please Help ! Thanks.

Tony

Have you tried restarting Traefik?

I recommend to share your Traefik static and dynamic config, and docker-compose.yml if used.

Traefik.yml

global:
  checkNewVersion: true
  sendAnonymousUsage: false  # true by default

# (Optional) Log information
# ---
log:
   level:  ERROR
   format: common  # common, json, logfmt
   filePath: /etc/traefik/traefik.log

# (Optional) Accesslog
# ---
accesslog:
   format: common  # common, json, logfmt
   filePath: /etc/traefik/access.log

# (Optional) Enable API and Dashboard
# ---
api:
  dashboard: true  # true by default
  insecure: true  # Don't do this in production!

# Entry Points configuration
# ---
entryPoints:
  p-80:
    address: :80
    http:
      redirections:
        entryPoint:
          to: p-443

  p-443:
    address: ':443'
    http:
      tls: {}
 

  p-3001:
    address: ':3001'

  p-3889: 
    address: ':3889'

# Configure your CertificateResolver here...
# ---
# certificatesResolvers:
#   staging:
#     acme:
#       email: your-email@example.com
#       storage: /etc/traefik/certs/acme.json
#       caServer: "https://acme-staging-v02.api.letsencrypt.org/directory"
#       httpChallenge:
#         entryPoint: web
#
#   production:
#     acme:
#       email: your-email@example.com
#       storage: /etc/traefik/certs/acme.json
#       caServer: "https://acme-v02.api.letsencrypt.org/directory"
#       httpChallenge:
#         entryPoint: web


providers:
  docker:
    exposedByDefault: false  # Default is true
  file:
    # watch for dynamic configuration changes
    directory: /etc/traefik/Config
    watch: true

Docker Stack

 version: '3'

services:
  traefik:
    image: "traefik"
    container_name: "odtraefik01_container1_traefik"
    ports:
      - "80:80"
      - "443:443"
      # (Optional) Expose Dashboard
      - "8080:8080"  # Don't do this in production!
    volumes:
      - /docker/data/traefik:/etc/traefik
      - /var/run/docker.sock:/var/run/docker.sock:ro
      
      

lb.test-infra.com-p-80.yml


# Router & Service configuration
# Profile - R1 & S1
# Router

## Dynamic configuration
http:
  routers:
    lb-test-infra-com:
      # won't listen to entry point web
      entryPoints:
        - p-443 
      rule: "Host(`lb.test-infra.com`)"
      service: "lb-test-infra-com-S1"
      tls  :
        options: default
      


# Service 

  services:
    lb-test-infra-com-S1:
      loadBalancer:
        servers:
        - url: "http://10.145.1.120:9447/"

 


tls.yml

# (Optional) Overwrite Default Certificates
tls:
   stores:
     default:
       defaultCertificate:
         certFile: /etc/traefik/certs/test-infra.com.pem
         keyFile: /etc/traefik/certs/test-infra.com.key
# (Optional) Disable TLS version 1.0 and 1.1
   options:
     default:
       minVersion: VersionTLS12

Are you sure there are no old config files in the folder?

This is my config folder and yes no any old config inside

Yes but donest't work

image

FYI Thanks

Change log.level to DEBUG and check Traefik output.