How to enable debug logging for html5gw docker and podman version
Symptom
How to enable debug for Docker/podman version of html5gw
Environment
12.6;13.2;14.0 Privileged Access Manager (PAM, self-hosted) PSM
HTML5 Gateway Docker/Podman
Cause
None
Resolution
1. Stop the container:
# docker kill <containername>
or
# docker stop <containername>
2. Remove the container and associated files:
# docker rm <containername>
3. Relaunch the container with the debug parameters added:
-e PSMGWGuacLogLevel=debug -e PSMGWAppLogLevel=debug
- Reproduce the issue and collect the logs:
1. Create a directory for the logs, for example:
2. mkdir /tmp/psmgw_logs
3. Copy the Tomcat log: docker cp psmgw.com:/opt/tomcat/logs/catalina.out /tmp/psmgw_logs/
4. Copy the HTML5 web application log:
docker cp psmgw.com:/var/opt/CARKpsmgw/logs/webapp /tmp/psmgw_logs/
5. Extract the guacd logs:
docker logs -t --since 20m psmgw.com > /tmp/psmgw_logs/guac.log
6. Upload the /tmp/psmgw_logs directory to the case after all the logs are present, as well as the get-logs archive.