The four-cause order
Recipe, environment, data, command. Each check is one command. Do not start reading application code until the first three are cleared, because application code is the expensive one.
What to fix once found
Fix the artifact, not the box. A running box is disposable; the recipe, the pin, or the migration is the durable thing. A fix that only works in one box has not fixed the release.