Emqx: [Protocol] Failed to open session: client_id_unavailable

Created on 29 May 2019  ·  5Comments  ·  Source: emqx/emqx

Environment

  • OS:
  • Erlang/OTP: R21/10.3.4
  • EMQ: v3.1.1

Description

emqtx_worker:
    image: emqx/emqx:v3.1.1
    ulimits:
      nofile:
        soft: 60000
        hard: 100000
      nproc:
        soft: 60000
        hard: 100000
    environment:
      - "EMQX_NAME=woker"
      - "EMQX_ALLOW_ANONYMOUS=false"
      - "EMQX_LOADED_PLUGINS=emqx_recon,emqx_retainer,emqx_management,emqx_dashboard,emqx_auth_redis,emqx_web_hook"

      - "EMQX_AUTH__REDIS__SERVER=xxxxx:6379"
      - "EMQX_AUTH__REDIS__AUTH_CMD=xxxxx"

      - "EMQX_WEB__HOOK__API__URL=http://xxxxxxx"

      - "EMQX_ZONE__EXTERNAL__IDLE_TIMEOUT=2s"

      - "EMQX_LISTENER__WS__EXTERNAL__PROXY_PROTOCOL=on"
      - "EMQX_LISTENER__WS__EXTERNAL_MAX_CONNECTIONS=1024000"
      - "EMQX_LISTENER__WS__EXTERNAL__PROXY_PROTOCOL_TIMEOUT=1s"
      - "EMQX_LISTENER__WS__EXTERNAL__PROXY_PORT_HEADER=X-Forwarded-Port"
      - "EMQX_LISTENER__WS__EXTERNAL__PROXY_ADDRESS_HEADER=X-Forwarded-For"

      - "EMQX_LISTENER__TCP__EXTERNAL__PROXY_PROTOCOL=on"
      - "EMQX_LISTENER__TCP__EXTERNAL_MAX_CONNECTIONS=1024000"
      - "EMQX_LISTENER__TCP__EXTERNAL__PROXY_PROTOCOL_TIMEOUT=1s"

      - "EMQX_NODE__COOKIE=xxxxxxxxxxxx"

      - "EMQX_CLUSTER__DISCOVERY=dns"
      - "EMQX_CLUSTER__DNS__NAME=emqx_leader.emqx"
      - "EMQX_CLUSTER__DNS__APP=emqx"
      - "EMQX_CLUSTER__AUTOHEAL=on"
      - "EMQX_CLUSTER__AUTOCLEAN=5m"

      - "EMQX_WAIT_TIME=60"

集群启动一段时间(十几个小时之后),所有客户端都无法连接.............

image

BUG

Most helpful comment

Can't reproduce the problem, please provide the complex scene and provide a more detailed LOG, thank you!

maybe try it in k8s.

All 5 comments

Is this fixed in 3.2-rc.1 already or not yet?

@turtleDeng Is this fixed in 3.2-rc.1 ?

Can't reproduce the problem, please provide the complex scene and provide a more detailed LOG, thank you!

Can't reproduce the problem, please provide the complex scene and provide a more detailed LOG, thank you!

maybe try it in k8s.

It has released at v3.2.1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

baer-devl picture baer-devl  ·  4Comments

stefano055415 picture stefano055415  ·  4Comments

w3yyb picture w3yyb  ·  3Comments

xlb0479 picture xlb0479  ·  5Comments

jbrzozoski picture jbrzozoski  ·  4Comments