Problem
I'm having issues with troubleshooting an APS2 application, are there any logs that can be useful?
Resolution
APS2 applications work in a distributed system, each component has its own log file and troubleshooting technics.
There are 4 major components in APS2 instrastructure:
- UI
- APS controller
- Application endpoint
- Service itself (usually located in the cloud)
To find needed component you need first to define whether you are troubleshooting a problem with APS user interface or with provisioning logic.
Application UI:
Navigation (how application interface should be embedded into POA screens)
defined in:
APP-META.xml
,<navigation>
nodestypical errors:
- application tab is not showing in CCP
Unforseen error
in CCP
logs:
/var/log/poa-ui.log
JavaScript UI
defined in:
ui/
folder in APS packagetypical errors:
- hanging 'Loading' icon
- UI elements do not work or work not as expected
log: browser's debugger console tab
Application provisioning:
POA + APS controller
defined in:
schemas/
folder in APS packagetypical errors:
- schema validation failed
- incorrect order of provisioning
- PA and APS controller logic
log:
/var/log/poa.log
- POA/SAAS SC/APSC logs, database queries/var/log/apsc.http.log
- requests to and from APSC (IN and OUT)/var/log/saas.http.log
- requests to and from endpoints (IN and OUT)
Application endpoint
defined in:
scripts/
folder, can be provided by means of rpm or some other waytypical errors: '500 Internal Server Error' returned by endpoint
log:
- webserver log, for Apache
/var/log/httpd/ssl_error_log
- application's own log, location can be found in Deployment Guide in APS package
- webserver log, for Apache
external service in the cloud
Problem needs to be troubleshooted by service maintainer, considered a blackbox