How Do You Troubleshoot a Script or Program That Automates Tasks when The Logs Do Not Help you?

Problem Scenario
An automated process is failing. You look in the logs and they don’t help you. You have Googled the error. What should you do?

Solution
Has it ever worked? If so, did something change?

If not, Google for the command most recently entered before the error happens. New characters could be added into the command that you do not realize. The command itself may not work (due to an upgrade to the OS or a change in a configuration).

Manually reproduce the process as you believe it is being implemented in a program to the best of your ability. Sometimes the automated process happens in a different user context or in a shell that does not have resources that you assumed were available.

Leave a comment

Your email address will not be published. Required fields are marked *