Skip to content

Debugging Playbook

When a Netherframe workflow fails, reduce the problem systematically instead of changing several variables at once.

1. Confirm The Execution Path

Ask first:

  • is this app in apps (hybrid_apps) or terraform_apps (legacy_apps)?
  • am I debugging a synthesized stack or a hybrid app?

That single distinction changes which commands and artifacts matter.

2. Confirm Project Configuration

Check:

  • [tool.nf] selectors
  • [tool.nf].python
  • output directory assumptions
  • app vs stack selector names

Useful commands:

nf list apps
nf list stacks

3. Increase Logging Carefully

Use:

nf synth --log-level DEBUG

Or add --log-format json if machine-readable output is easier to inspect.

4. Reduce Scope

Prefer:

  • one app
  • one stack
  • one provider
  • one failing command

This usually gets you to the real failure much faster than reading a full deploy pipeline log.

5. Inspect The Artifact Or Runtime Boundary

For synthesis path:

  • inspect .nf.out/<app>/<stack>/nf.tf.json
  • run nf plan --stack ...
  • use nf diff or nf show

For hybrid path:

  • re-run nf plan --app ...
  • inspect provider config and backend config
  • check whether progress/logging settings are hiding useful detail

6. Escalate To Backend And State Checks

If the failure looks state-related:

  • confirm backend choice
  • confirm backend resources exist
  • check whether a migration is partially complete