Skip to main content
Skip table of contents

How to Obtain Logs - Self-Managed Repository Integrations

To fetch the relevant logs for GitHub Enterprise, GitLab and Bitbucket Server integrations, please use the commands below

#Output the container logs in the console

docker logs <containerName>

 

Examples for all self-hosted integrations:

#Controller logs are needed when investigating issues related to WebHooks (e.g. missing Issues, missing checkRun scans, etc.)

docker logs wss-ghe-app

docker logs wss-gls-app

docker logs wss-bb-app

 

#Scanner logs are needed when investigating scan-related issues (e.g. 0 dependencies found during the scan, some dependencies are missing in the scan output, scans are failing, scans are timing out, etc.)

docker logs wss-scanner-ghe

docker logs wss-scanner-gls

docker logs wss-scanner-bb

 

#Remediation logs are needed if PR/MR are not created or are created incorrectly

docker logs remediate-server

 

#To save a container log in a file in a current directory

#<name>.log file will be created in the directory where the below command is executed from

docker logs wss-ghe-app > controller.log

docker logs wss-scanner-ghe > scanner.log

docker logs remediate-serve > remediate.log

 

If you are using Docker Swarm to orchestrate your Mend for Developers integration, then use docker service logs <containerName>

 

#To copy the server log from the app container to </host/path/target>1

#This is the same log as you would get from executing docker logs wss-ghe-app

docker cp wss-ghe-app:/etc/usr/local/whitesource/logs/bolt4scm-server.log </host/path/target>

#The server log file size is limited to 10MB. Therefore, there can be some rollover logs, such as bolt4scm-server-<date>.<0|1|2>.log. It is recommended to copy the entire folder instead of a specific log file.

docker cp wss-ghe-app:/etc/usr/local/whitesource/logs </host/path>

 

#Unified Agent logs are necessary to fine-tune the scans (e.g. if scans are taking a long time to conclude or if scans are timing out).

#To copy the Unified Agent log from the scanner container to </host/path/target>1

docker cp wss-scanner-ghe:/tmp/unified-agent-log.txt </host/path/target> 

1 Specify your path and filename in place of </host/path/target>

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.