-
Support
- How to Retrieve and Share ItemPath Logs
How to Retrieve and Share ItemPath Logs
When troubleshooting an error in your on-premise ItemPath instance, providing system logs to our Support team can help to diagnose the root cause of the issue.
Depending on the scenario, you may only need to capture a targeted 5-minute snapshot immediately after reproducing an error, or you may need to export the entire logs folder for deeper analysis.
Follow the instructions below to gather and package these logs to share with our Support team.
Capture Logs from the Last 5 Minutes
Use this method if you can easily reproduce the issue. Capturing a narrow window of time keeps the log file small and allows our team to focus precisely on the timestamp of the error.
- Open your terminal or command-line interface on the server hosting ItemPath.
- Attempt to perform the action that is failing.
- For example, if you're encountering an error generating a downloadable report file, in ItemPath:
- Navigate to the report.
- Select the Export tab.
- Select a file type.
- Click Generate New File.
- For example, if you're encountering an error generating a downloadable report file, in ItemPath:
- Immediately after the error or failure occurs, run the following two commands in sequence. This will extract the relevant logs from both the worker and application containers and write them to a single text file named
error_logs.txt.docker logs itempath-worker --since=5m -t > error_logs.txtdocker logs itempath-flask --since=5m -t >> error_logs.txt - Locate the
error_logs.txtfile created in your current directory and email it to support@itempath.com with details regarding the issue you are experiencing.
Save the Entire Logs Folder
Note: This method applies to environments running version 2.24.2.0 and later.
If the issue you're investigating happens intermittently or occurred hours ago, the support team may need to inspect the full historical logs directory.
- Open your terminal or command-line interface on the server hosting ItemPath.
- Run the following command to create a .zip file of the entire logs directory. This command will create a file named
itempath-logs.tar.gzin your current working directory.
tar -czvf itempath-logs.tar.gz ItemPath/data/logs - Locate the
itempath-logs.tar.gzfile created in your current directory and email it to support@itempath.com with details regarding the issue you are experiencing.