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

0301 optimize boot failure logs #10052

Merged
merged 3 commits into from
Mar 6, 2023

Commits on Mar 2, 2023

  1. Configuration menu
    Copy the full SHA
    8a9984c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c4c0c9c View commit details
    Browse the repository at this point in the history
  3. feat(bin/emqx): diagnose boot failure

    Prior to this change, when EMQX daemon mode failed to start
    it's not quite easy for users to understand what went wrong.
    All the know is the node did not start in time
    and then instructed to boot the node in 'console' mode wishing
    for some logs.
    However, the node might actuay be running, causing 'console' mode
    to fail with a different reason.
    
    With this change, after a filure of daemon mode boot,
    we issue a diagnosis.
    1. if node can not be found from ps -ef, instruct the user
       to find information in erlang.log.N
    2. if the node is found running, but not responding to pings
       instruct the user to check if the node name is
       resolvable and reachable
    3. if the node is responding to pings but emqx app is not
       running, then it's likely a bug. so the user is advised
       to report a github issue.
    zmstone committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    4eb9a69 View commit details
    Browse the repository at this point in the history