How to use the OpenResty Edge™ self-check tool

1. Download

curl -O https://openresty.com/client/oredge/openresty-edge-self-check.sh

2. Use

Before running the self-check tool, we need to transfer the tool to the target machine.

2.1 Default mode

sudo bash openresty-edge-self-check.sh

2.2 Detailed mode

sudo bash openresty-edge-self-check.sh -v

3. Cases

3.1 Case 1

sudo bash openresty-edge-self-check.sh -v

[INFO] Processor: 32
[INFO] Memory: 32 GB
[INFO] Disk:
[INFO]   Filesystem   Size   Use%
[INFO]    /dev/sda2    50G    3%
[INFO] Firewall is disabled.
[INFO] Internet(IPv4) is up.
[INFO] The or-client.crt and or-client.key is match.
[INFO] The certificate or-client.crt remaining time greater than 30 days.
[INFO] openresty-edge-node is installed.
[INFO] oredge-node is running.
[INFO] oredge-node is listening on ports: 20717 8090 8091 11212.
[WARN] oredge-node is not listening on ports: 80 443 11212 8090 8091.
[WARN] There are error logs in /usr/local/oredge-node/logs/error.log, please confirm.
[INFO] Connect to openresty package server(pkg.openresty.com:443), Succeeded.
[INFO] Connect to Edge Admin(xx.xx.xx.xx:xxxx), Succeeded.
[INFO] Connect to Edge Log Server(xx.xx.xx.xx:xxxx), Succeeded.
[WARN] For more information: https://doc.openresty.com/en/edge-admin/troubleshooting

We focus primarily on the WARN level output and can see the hint that:

  • the Edge Node process is not listening on the port it is expected to listen on.
  • there are error logs in the log file that need to be checked.
  • A help page is shown, this is due to the fact that there is something that we need to confirm.

Prioritizing the error log to see if there are any obvious error messages. then go to the help page to see if there is a corresponding solution. Finally, if the problem is still not resolved, please contact us.

3.2 Case 2

sudo bash openresty-edge-self-check.sh -v

[INFO] Processor: 2
[INFO] Memory: 4 GB
[INFO] Disk:
[INFO]   Filesystem   Size   Use%
[INFO]   /dev/xvda1    40G   16%
[INFO] Firewall is disabled.
[INFO] Internet(IPv4) is up.
[INFO] The or-client.crt and or-client.key is match.
[INFO] The certificate or-client.crt remaining time greater than 30 days.
[INFO] openresty-edge-node is installed.
[INFO] oredge-node is running.
[INFO] oredge-node is listening on ports: 10808 8090 443 8091 12000 9090 11212 80 81.
[INFO] Connect to openresty package server(pkg.openresty.com:443), Succeeded.
[INFO] Connect to Edge Admin(xx.xx.xx.xx:xxxx), Succeeded.
[INFO] Connect to Edge Log Server(xx.xx.xx.xx:xxxx), Succeeded.

All checks passed in this case.