Back to Brew

Troubleshooting

docs/Troubleshooting.md

6.0.122.3 KB
Original Source

Troubleshooting

Use this checklist before creating a Homebrew issue.

Update and diagnose

  1. Run brew update.
  2. Run brew update again so the first update cannot leave the failing command on an older Homebrew version.
  3. Run brew doctor and read every warning.
  4. Correct warnings that apply to the failing command.
  5. Retry the original command and keep its complete output.

Do not apply destructive Git, ownership or permission changes from an old issue report without understanding which files they affect. See Common Issues for current recovery guidance.

Search existing reports

Search the tracker responsible for the failing component:

Also search Homebrew Discussions for support and related reports. The Discourse archive is read-only historical material and will contain outdated instructions.

Collect diagnostic information

For a formula installation or build failure, upload its logs:

sh
brew gist-logs FORMULA

For other failures, collect:

sh
brew config
brew doctor

Remove credentials, private repository URLs and other secrets before publishing terminal output. Do not omit warnings merely because they appear unrelated.

Create an issue

If the problem is neither resolved nor already reported, use the issue template in the appropriate repository:

Include the command, complete error, relevant brew config and brew doctor output and the brew gist-logs URL when available. Use a descriptive title that identifies the package, failure and operating system.

See Creating a Homebrew Issue for reporting expectations.