# Missing port in address – \[RabbitMQ\]

**URL:** <https://community.traefik.io/t/missing-port-in-address-rabbitmq/5870>\
**Category:** Traefik v2\
**Tags:** tcp, file\
**Created:** [May 4, 2020, 7:14am UTC](https://community.traefik.io/t/missing-port-in-address-rabbitmq/5870 "2020-05-04T07:14:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kmplngj](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/kmplngj/32/998_2.png) [@kmplngj](https://community.traefik.io/u/kmplngj)\
**Post date:** [May 4, 2020, 7:14am UTC](https://community.traefik.io/t/missing-port-in-address-rabbitmq/5870/1 "2020-05-04T07:14:26Z")

</div>

Hello,

I try to setup RabbitMQ SSL over Traefik.

I now get a Traefik configuration error and do not know why. I config via file.

Perhaps someone could help me. Or better has a complete guide how to setup RabbitMQ with Traefik.

Thanks a lot

```auto
{"entryPointName":"rabbitmq-amqp","level":"error","msg":"In service \"rabbitmq-amqp@file\": missing port in address","routerName":"rabbitmq-amqp@file","serviceName":"rabbitmq-amqp","time":"2020-05-04T09:07:09+02:00"}
{"entryPointName":"rabbitmq-stompws","level":"error","msg":"In service \"rabbitmq-stompws@file\": missing port in address","routerName":"rabbitmq-stompws@file","serviceName":"rabbitmq-stompws","time":"2020-05-04T09:07:09+02:00"}

```

```auto
[entryPoints]
  [entryPoints.web]
    address = ":80"
  [entryPoints.web-secure]
    address = ":443"
  [entryPoints.rabbitmq-amqp]
    address = ":5672"
  [entryPoints.rabbitmq-rest]
    address = ":15672"
  [entryPoints.rabbitmq-stompws]
    address = ":15674"
  [entryPoints.ping]
    address = ":8082"
  [entryPoints.metrics]
    address = ":8083"

```

```auto
[tcp.routers]

    [tcp.routers.rabbitmq-amqp]
        rule = "HostSNI(`*`)"
        entrypoints = ["rabbitmq-amqp"]
        service = "rabbitmq-amqp"
    [tcp.routers.rabbitmq-amqp.tls]
        passthrough = true
        [[tcp.routers.rabbitmq-amqp.tls.domains]]
            main = "*.xyz.com"

    [tcp.routers.rabbitmq-stompws]
        rule = "HostSNI(`*`)"
        entrypoints = ["rabbitmq-stompws"]
        service = "rabbitmq-stompws"
    [tcp.routers.rabbitmq-stompws.tls]
        passthrough = true
        [[tcp.routers.rabbitmq-stompws.tls.domains]]
            main = "*.xyz.com"          

[tcp.services]

    [tcp.services.rabbitmq-amqp.loadBalancer]
        [[tcp.services.rabbitmq-amqp.loadBalancer.servers]]
            url = "internal.server1:5672"

    [tcp.services.rabbitmq-stompws.loadBalancer]
        [[tcp.services.rabbitmq-stompws.loadBalancer.servers]]
            url = "internal.server1:15674"          
            
[http.routers]

    [http.routers.rabbitmq-rest]
        entrypoints = ["rabbitmq-rest"]
        service = "rabbitmq-rest"
        rule = "Host(`rabbitmq.xyz.com`)"
    [http.routers.rabbitmq-rest.tls]
        [[http.routers.rabbitmq-rest.tls.domains]]
            main = "*.xyz.com"

[[tls.certificates]]
    certFile = "/etc/traefik/certs/xyz.com/certificate.crt"
    keyFile = "/etc/traefik/certs/xyz.com/wildcard.xyz.com.key"

```

---

<div class="post-metadata">

**Author:** ![ldez](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/ldez/32/5_2.png) [@ldez](https://community.traefik.io/u/ldez)\
**Post date:** [May 4, 2020, 7:58am UTC](https://community.traefik.io/t/missing-port-in-address-rabbitmq/5870/2 "2020-05-04T07:58:05Z")

</div>

Hello,

you have to use `address` instead of `url`: [https://docs.traefik.io/v2.2/routing/services/#configuring-tcp-services](https://docs.traefik.io/v2.2/routing/services/#configuring-tcp-services)

---

<div class="post-metadata">

**Author:** ![kmplngj](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/kmplngj/32/998_2.png) [@kmplngj](https://community.traefik.io/u/kmplngj)\
**Post date:** [May 4, 2020, 11:01am UTC](https://community.traefik.io/t/missing-port-in-address-rabbitmq/5870/3 "2020-05-04T11:01:18Z")

</div>

🤦‍♂️

Thanks a lot for the help  
Jan
