Issue: Attempting to login to a sensor via its web UI at https://x.x.x.x:1443 results with displaying the 502 BAD GATEWAY error message.
Cause: This is often indicative the last update performed to the sensor failed.
Cause: This is often indicative the last update performed to the sensor failed.
Please perform the following steps to resolve the issue:
- Use SSH and login to the sensor with the pwnie user account.
- Type sudo su and press Enter, then re-type the password to become superuser.
- Next, type px-connection-dr and press Enter to verify the sensor has connectivity to the update servers.
IMPORTANT: When using the px-connection-dr command/script the tests performed include checking DNS resolution, checking TCP connectivity to ports 80, 443 and 873 and ensuring SSL Filtering is *not* being performed upon any of the connections. It is therefore required for *all* tests to either reflect SUCCESS and/or VALID. If any of the tests should reflect FAILURE and/or INVALID, then the issue involving connectivity needs to be resolved before continuing.
- Assuming all tests passed, type rm /opt/pwnix/chef/latest-
version-id and press Enter to remove a file indicative of the last update performed. - Next, type rm /opt/pwnix/chef/installed-
version-id and press Enter to allow the sensor to attempt updates again within 24 hours of the last update. Note this file may not exist. - Now, type px-system-update and allow the sensor to update itself.
IMPORTANT: Do not interfere with the sensor until it is finished and you are returned to the # prompt. Please know it may take the sensor as long as 45 minutes to update.
- After returned to the # prompt and to be sure the sensor is fully up-to-date, please repeat steps five and six. This second update will likely take much less time, often less than five minutes.
- When finished and returned to the # prompt, you should be all set to continue with the use of the sensor.
HINT: To verify a sensor is up-to-date, type cat /etc/motd and press Enter, then review the banner displayed specifically looking at the Pwnix Release. Next, review the "History of Pwnix Releases" article available at http://support.pwnieexpress.com/customer/portal/articles/2980929-history-of-pwnix-releases