Issue
It is not possible to create a CJE support bundle and we need to review the logs from a tenant.
Environment
- CloudBees Jenkins Enterprise - AWS/OpenStack/Anywhere
Resolution
First of all we have to know where the tenant is running, to know that we have to run this command cje run find-worker-for TENANT_NAME
where TENANT_NAME is the name of the tenant (cjoc, castle, palace, elacticsearch, name of the controller), then we can access to the worker and compress the log files into a tar.xz file.
dna connect worker-1
sudo tar -chJf /tmp/logfiles.tar.xz $(find /var/lib/mesos/slaves|grep TENANT_NAME)
exit
download the generated file
dna copy -rs /tmp/logfiles.tar.xz . worker-1
finally, remove the compressed file.
dna connect worker-1
sudo rm /tmp/logfiles.tar.xz
exit
2 Comments