TABLE OF CONTENTS
Wherever possible, the Seqera Labs Support Team requests that you share log files as part of your ticket submission by adding them as an attachment to your ticket submission. The different types of logs that we may ask you to provide include the following:
- Nextflow logs
- Tower logs
- Backend logs
- Cron logs
- Frontend logs
Q: How do I provide my log files?
Nextflow Logs
Nextflow logs can be retrieved on your Tower instance through the following steps:
- Log into your Tower instance and click 'Runs.'
- Select the workflow that you want to share.
- Move to the 'Execution log' tab.
- Click the 'Download log files' dropdown -> Download the 'Nextflow log file'.
- You can also provide the 'Nextflow console output' for the full details of your standard output.
Tower Logs
Tower logs are found inside your deployment instance.
For Docker Compose deployments
- Log in to your instance where the containers are running.
- Run the following command to determine the target ID of the container:
- docker ps
- Get the container ID or the name (ie. ba54613516f or tower_backend_1)
- Run the following command to get the logs of a specific container and dump it into a file.
- This command will send the full logs from the beginning:
- docker logs tower_backend_1 > /tmp/backend.log
- This command will send the logs of a specific date:
- docker logs tower_backend_1| grep Sep-07 > /tmp/backend.log
- This command will send the full logs from the beginning:
- Attach the 'backend.log' file created to your ticket.
- The process above also applies to frontend, backend, and cron logs; note that for each, you need to change the filename (i.e. backend.log), so it does not overwrite the existing file.
For Kubernetes-based deployments
- Log in to your instance where the Kubernetes pods are running.
- Run the following command to determine the target name of the pods for the log extraction:
- kubectl get pod -n [namespace]
- kubectl logs [pod name] -n [namespace] > /tmp/backend-pod.og
- We may also need you to provide the pod deployment in some situations. To do so run the command below and provide us the result.
- kubectl describe [pod name] -n [namespace] > /tmp/describe-backend-pod.log
- Be mindful of the log file name as not to overwrite existing files. The process above is applicable for other pods depending on what is required for investigation.
Troubleshooting
Work Directory Retrieval
Occasionally, you may encounter an error downloading the Nextflow logs via Tower. These logs can also be retrieved from the work directory set on the Compute Environment.
Azure:
AWS Batch
The example above applies to all compute environments.
Configure key-pair to AWS Batch Compute via Tower Forge
For Tower version 22.3 and above, we have added the implementation of key-pair to the instances created by Tower Forge for AWS Batch Compute Environment. This will allow the user to access the instance directly and retrieve the logs inside.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article