Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EMQX addon fails to connect with cluster #68

Closed
hanley-development opened this issue Sep 28, 2023 · 2 comments
Closed

EMQX addon fails to connect with cluster #68

hanley-development opened this issue Sep 28, 2023 · 2 comments

Comments

@hanley-development
Copy link

Problem/Motivation

env_vars:

  • name: EMQX_NODE__NAME
    value: emqx@192.168.0.140
  • name: EMQX_NODE__COOKIE
    value: cookie
  • name: EMQX_CLUSTER__DISCOVERY_STRATEGY
    value: static
  • name: EMQX_CLUSTER__STATIC__SEEDS
    value: "["emqx@192.168.20.86", "emqx@192.168.0.140"]"

Expected behavior

Cluster joined successfully

Actual behavior

reason="econnrefused"
2023-09-28T01:26:44.888258-05:00 [error] crasher: initial call: gen_rpc_client:init/1, pid: <0.3297.0>, registered_name: [], exit: {{badrpc,econnrefused},[{gen_server,init_it,6,[{file,"gen_server.erl"},{line,407}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}, ancestors: [gen_rpc_client_sup,gen_rpc_sup,<0.1883.0>], message_queue_len: 0, messages: [], links: [<0.1889.0>], dictionary: [], trap_exit: true, status: running, heap_size: 2586, stack_size: 29, reductions: 7419; neighbours:
2023-09-28T01:26:49.981254-05:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: ['emqx@192.168.20.86']
2023-09-28T01:26:55.631845-05:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: ['emqx@192.168.20.86']

Steps to reproduce

(How can someone else make/see it happen)

Proposed changes

Give documentation on setup for clustery

(If you have a proposed change, workaround or fix,
describe the rationale behind it)

@hanley-development
Copy link
Author

Is there a way to add ports option to the addon?
The ports in question are the following:
ports:
- 1883:1883
- 4370:4370
- 5369:5369

- 8083:8083
- 8084:8084
- 8883:8883
- 18083:18083

@hanley-development
Copy link
Author

found my answer through emqx support community: emqx/emqx#11708 (comment)

@github-actions github-actions bot locked and limited conversation to collaborators Oct 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant