Skip to content

Error reference

Use our error reference to find solutions to common errors using Netlify.

This doc covers many different kinds of common errors across Netlify. To review build errors, you can check your build log in the Netlify dashboard.

When you get a build error, you can select the Why did it fail? button from your deploy details page or from a pull request/merge request.

A failed deploy with a "Why did it fail?" button and a diagnosis and suggested solution above the deploy log details

If your deploy appears to not be making any progress or update, then you may have a timeout error.

To resolve a timeout error, you can retry your deploy.

  1. From your project overview dashboard, select Deploys.
  2. Choose the deploy that appears stalled or not making progress.
  3. Select Retry without cache with the latest branch commit to ensure your latest commits are deployed and that you’re not encountering cache issues. Deploy options > retry options

Drag and drop deploy stuck “uploading” or “In progress”

Section titled “Drag and drop deploy stuck “uploading” or “In progress””

If your drag and drop deploy (or manual deploy) is stalled in Uploading or In progress status for more than 10 minutes, you may have an error with your project folder.

We recommend the following best practices for reliable manual drag and drop deploys:

  • Deploys under 50MB work best. Individual files over 10MB are likely to cause your deploy to get stuck. For anything larger, try using Netlify’s Command Line Interface.
  • You must have an index.html in the root of your project.
  • Put all of your project assets in a folder (so, myfolder/index.html and myfolder/subdirectory/otherassets, etc).
  • Use a computer with a reliable network connection. Any network hiccups can cause the deploy to get stuck.
  • Use the latest version of a Chromium-based browser.
  • Use a computer that has sufficient free memory - 4x your uncompressed site size is a good ballpark and more is better.

If your deploy fits those criteria and is still stuck after 10 minutes, you can try to deploy again right away by dragging and dropping your folder again. After 10 minutes, that older, stuck deploy will never publish, so you don’t need to worry about it interfering with your next try. If your deploy won’t get unstuck, consider trying deploys using Git or the CLI.

Your build log may show a non-zero exit code, which means your build failed, which means your deploy failed.

Bulid failed due to a user error: Build script returned non-zero exit code: 2
Failing build: Failed to build site

If you check your build log before the non-zero exit code, you can usually find more details about the reason for the failure.

To check your build log, go to your deploy details page and open the log:

  1. Go to your project overview dashboard and select Deploys.
  2. Choose your deploy that failed.
  3. Open your build log. Deploy log example where to expand failure
  4. Scroll in your build log to find the failure before the non-zero exit code. Build failure  reason highlighted for exit code error

Page not found error example

The most common reason for this error is missing an index.html file.

If you drag and drop your project folder and it has an index.html file in the root directory when your build settings expect this, your deploy will appear successful but you will find a page not found error.

You can add an empty index.html file to the root directory of your project to fix this error.

There can be other causes for this error. Learn more in our expanded “Page not found error” docs.

Are you trying to enter a credit card into app.netlify.com but getting an error instead?

We recommend you try entering your credit card in an incognito window without any browser extensions enabled. We’ve seen ad-blocking-type browser plugins and other plugins inhibit our communication with our authentication service, and create unpredictable behavior. Please test in an incognito window before you post in the forums or try and contact support.

If that doesn’t help, please reach out to Netlify Support.