Cannot access Pagoda Panel

Updated at:

This topic describes how to troubleshoot failures to access Pagoda Panel after deploying it on an ECS instance.

Symptoms

After you deploy Pagoda Panel on an ECS instance, you cannot access it from a browser. When you try to access the server's public IP address on port 8888, which is the default address for Pagoda Panel, the browser displays a "This site can't be reached" message with the error code ERR_CONNECTION_REFUSED, indicating that the server refused the connection.

Possible causes

Possible causes include:

  • The Internet panel address is incorrect.

  • The security group for the ECS instance does not allow traffic on the Pagoda Panel port.

  • The Pagoda Panel service is not running correctly.

  • Network access is restricted.

Solutions

Follow these steps to troubleshoot the issue.

Step 1: Verify the Internet panel address

You must use the specific address for Pagoda Panel that you queried. It may not be in the format https:<ECS instance public IP address>:8888.

Pagoda Panel for Linux

  1. Remotely connect to the ECS instance where Pagoda Panel is deployed. For more information, see Log on to a Linux instance by using Workbench.

  2. Run the following command to find the Internet panel address:

    bt 14
    Note

    You can also run the bt command and select an option number to manage Pagoda Panel. For example, you can restart the panel service or change the panel username and password.

    The output is similar to the following:

    [root@iZ2zxxxxxxxxxlqvZ ~]# bt 14
    ================================================================
    Executing (14)...
    ================================================================
    BT-Panel default info!
    Internet panel address: https://18xxx.65:25447/483df1e0
    intranet panel address: https://19xxx189:25447/483df1e0
    username: akxxxjvh
    password: 2cxxx371
    Warning:
    If you cannot access the panel,
    release the following port (8888|888|80|443|20|21) in the security group
    Note: The initial password can only be retrieved correctly before your first login. To change the password later, use the 'bt 5' command.
  3. On a machine with public internet access, open a browser and enter the Internet panel address.

Pagoda Panel for Windows

  1. Remotely connect to the ECS instance where Pagoda Panel is deployed. For more information, see Log on to a Windows instance by using Workbench.

  2. On the Windows operating system desktop, double-click the 宝塔快捷图标 icon.

  3. In the Pagoda Windows Panel Toolbox dialog box, check the panel address.

    The panel address is displayed in the Panel Address field at the top of the dialog box, in the format http://:/. Click Copy Link to copy the address.

  4. On a machine with public internet access, open a browser and enter the panel address.

Step 2: Check the security group rule

The port for Pagoda Panel is not always 8888. You must find the actual port number and verify that the security group of the ECS instance allows traffic on that port.

Pagoda Panel for Linux

  1. Find the port for Pagoda Panel.

    1. Remotely connect to the ECS instance where Pagoda Panel is deployed. For more information, see Log on to a Linux instance by using Workbench.

    2. Run the following command to find the port:

      bt 14

      The output is similar to the following:

      [root@iZ2zxxxxxxxxxxxlqvZ ~]# bt 14
      ================================================================
      Executing (14)...
      ================================================================
      BT-Panel default info!
      ================================================================
      Internet panel address: https://18xxx.65:25447/483df1e0
      intranet panel address: https://19xxx189:25447/483df1e0
      username: akxxxjvh
      password: 2cxxx371
      Warning:
      If you cannot access the panel,
      release the following port (8888|888|80|443|20|21) in the security group
      Note: The initial password can only be retrieved correctly before your first login. To change the password later, use the 'bt 5' command.
  2. Add a rule to the security group of the ECS instance to allow traffic on the Pagoda Panel port. For more information, see Add a security group rule.

    In this example, the port to allow is 25447. Your port number may be different.

    For the rule, set Protocol to Custom TCP and policy to Allow. Set source to 0.0.0.0/0 to allow traffic from all IPv4 addresses.

  3. On a machine with public internet access, open a browser and enter the panel address.

Pagoda Panel for Windows

  1. Remotely connect to the ECS instance where Pagoda Panel is deployed. For more information, see Log on to a Windows instance by using Workbench.

  2. In the Pagoda Windows Panel Toolbox dialog box, check the port for Pagoda Panel.

    The default port is 8888.

  3. Add a rule to the security group of the ECS instance to allow traffic on the Pagoda Panel port. For more information, see Add a security group rule.

    In this example, the port to allow is 8888. Your port number may be different.

    After you add the rule, it appears in the inbound rules list of the security group. The Protocol is Custom TCP, the Port Range is 8888/8888, and the source is 0.0.0.0/0.

  4. On a machine with public internet access, open a browser and enter the panel address.

Step 3: Check the service status

Pagoda Panel for Linux

  1. Remotely connect to the ECS instance where Pagoda Panel is deployed. For more information, see Log on to a Linux instance by using Workbench.

  2. Run the following command to check the status of the Pagoda Panel service:

    /etc/init.d/bt status
    • If the status is running, the service is active.

      [root@iZ2zegz        <lqvZ ~]# /etc/init.d/bt status
      Bt-Panel (pid 40514) already running
      Bt-Task (pid 40554) already running
    • If the status is not running, the service is stopped. To resolve this, start the service.

      [root@iZ2z:xxx.bmyakfxlqvZ ~]# /etc/init.d/bt status
      bt-Panel not running
      bt-task not running
      1. Run the following command to start the service:

        /etc/init.d/bt start
      2. Run the following command to check the service status again:

        /etc/init.d/bt status

        If the status is running, the service has started successfully.

Pagoda Panel for Windows

  1. Remotely connect to the ECS instance where Pagoda Panel is deployed. For more information, see Log on to a Windows instance by using Workbench.

  2. On the Windows desktop, run Command Prompt as an administrator.

  3. Run the following command to check the running status of the Pagoda Panel service.

    sc query btPanel
    • If the command output displays RUNNING, the Pagoda Panel service is running properly.

      C:\Users\Administrator>sc query btPanel
      SERVICE_NAME: btPanel
              TYPE               : 10  WIN32_OWN_PROCESS
              STATE              : 4  RUNNING
                                      (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
              WIN32_EXIT_CODE    : 0  (0x0)
              SERVICE_EXIT_CODE  : 0  (0x0)
              CHECKPOINT         : 0x0
              WAIT_HINT          : 0x0
    • If the command output displays STOPPED, the Pagoda Panel service is stopped. Run the following command to start the Pagoda Panel service.

      net start btPanel
      C:\Users\Administrator>sc query btPanel
      SERVICE_NAME: btPanel
              TYPE               : 10  WIN32_OWN_PROCESS
              STATE              : 1  STOPPED
              WIN32_EXIT_CODE    : 0  (0x0)
              SERVICE_EXIT_CODE  : 0  (0x0)
              CHECKPOINT         : 0x0
              WAIT_HINT          : 0x0
      C:\Users\Administrator>net start btPanel
      The btPanel service is starting.
      The btPanel service was started successfully.
  4. On a machine with public internet access, open a browser and enter the panel address.

Step 4: Check for network issues

To rule out local network issues, try accessing the panel from a different network environment, such as a mobile hotspot.

For more troubleshooting information, see the Pagoda Panel official FAQ and Troubleshoot failures to access services on ECS instances.