IOT Application Health Check
1. Overview
This guide describes how to monitor and verify the health status of the IOT application after startup. It covers log analysis, service verification, and troubleshooting procedures.
Edit ${APP_HOME}/bin/app.env to adjust settings such as database connection, ACS WS parameters, ports, hazelcast connection, LDAP configuration.
2. Startup issues troubleshooting
Sometimes files after editing in linux need to be transferred from CRLF format to LF.
If application is not started, execute from bin folder:
sed -i 's/\r$//' start.sh
sed -i 's/\r$//' app.env
3. Post-Startup Directory Structure
After successful application startup, the following directories are automatically created:
-
${APP_HOME}/logs/- Contains all application logs -
${APP_HOME}/app/static/support-center/- Contains deployed Support Center Angular UI files -
${APP_HOME}/app/static/management-console/- Contains deployed Management Console Angular UI files
4. Primary Log Files
5. Critical Startup Checkpoints
5.1. 1. Database Initialization
Look for successful database initialization in iot_web.log:
INFO [main] liquibase.lockservice.null Successfully acquired change log lock
INFO [main] liquibase.changelog.null Creating database history table with name: iotw.DATABASECHANGELOG
INFO [main] liquibase.changelog.null ChangeSet db.changelog/ui/init.xml::createIotw::vadim ran successfully
INFO [main] liquibase.lockservice.null Successfully released change log lock
What it means: Database schema has been successfully created/updated. Adjust database settings in app.env:
DB_VENDOR=mysql
DB_HOST=localhost
MYSQL_USER=ftacs
MYSQL_PASSWORD=ftacs
MYSQL_SCHEMA_IOTW=iotw
5.2. 2. Hazelcast Connection
Verify distributed cache connectivity:
INFO [hz.client_1.internal-1] HazelcastClient is CLIENT_CONNECTED
What it means: Application connected to Hazelcast cluster. Hazelcast configuration in app.env:
HZ_MEMBERS=127.0.0.1:5701
HZ_CLIENT_CONFIG=${CONF_DIR}/hazelcast-client.xml
6. Service Availability Verification
6.2. Web Service Endpoints
-
Swagger UI: http://localhost:8880/iot-webservice/swagger-ui
-
Support Center: http://localhost:8880/support-portal/
-
Management Console: http://localhost:8880/management-portal/