[Support Guide] Frequently encountered problems during builds

Last reviewed in August 2021.

Hi,
I have a Gatsby site deployed on Netlify but I am running into an issue with my latest deploy. After reading the above & Netlify’s docs, I believe I am encountering #7 - post processing issue.
The fail message says: ‘Deploy processing failed after 5 attempts.’

I have tried the following:

  1. Added CI='' npm run build as build command to bypass warning errors
  2. Disabled Asset optimization
  3. Downloaded Netlify CLI and ran netlify dev, netlify build (both successful)
  4. Ran DEBUG=* netlify deploy and am seeing: “error_message”: “Deploy processing failed after 5 attempts”.

Can you please advise on next steps to debug this issue? I have not been able to deploy my site since yesterday.

Thanks!

Hi @hyped1,

Are you using Netlify Forms? If yes, could you share the form’s code?

Hi @hrishikesh, I am using Netlify forms and have multiple forms on one page. I realized the deploy is successful when I only have one form.
I am setting each form name, id, and fields dynamically (using GraphQL, Gatsby, Contenful). Here is my form’s code:

<form
name={form.title}
method="POST"
data-netlify="true"
id={form.slug}
>
<div
  className="input_padding_bottom  mt-36"
  data-delay="100"
>
  <input
    name={form.formField1}
    type="text"
    id={form.formField1}
    size="30"
    placeholder={form.formField1}
    required
  />
  <label
    className="input_label"
    htmlFor={form.formField1}
  ></label>
</div>

<div
  className="input_padding_bottom "
  data-delay="150"
>
  <input
    name={form.formField2}
    type="text"
    id={form.formField2}
    size="30"
    placeholder={form.formField2}
    required
  />
  <label
    className="input_label"
    htmlFor={form.formField2}
  ></label>
</div>
<div
  className="input_padding_bottom "
  data-delay="150"
>
  <input
    name={form.formField3}
    type="text"
    id={form.formField3}
    size="30"
    placeholder={form.formField3}
    required
  />
  <label
    className="input_label"
    htmlFor={form.formField3}
  ></label>
</div>
<div className="" data-delay="100">
  <textarea
    name={form.formField4}
    cols="40"
    rows="4"
    id={form.formField4}
    placeholder={form.formField4}
  ></textarea>
  <label
    className="input_label slow"
    htmlFor={form.formField4}
  ></label>
</div>
<button
type="submit"
className="send_message"
id="submit"
>
{form.cta}
</button>
</form>

Well this piece of code looks fine. I believe the error would appear due to the fields being filled up dynamically.

In general this might happen when your attribute value contains '. For example, id = "let's" is wrong, id = "let us" would do.

@hrishikesh that solved it! One of my fields had an apostrophe. Thank you for your help!

Hi, I have my frontend and backend in the same folder, but want to host them separately, with the frontend on netlify, I put /client in the build, so it goes into the client folder to build, but deployment has been failing. This is the site name unruffled-euclid-43cc20

hi dimola, this isn’t really super related to the thread, generally. can you start a new thread please and post a recent failing build log along with information on what you have already tried? thanks.

okay, thank you for your response, how do I start a thread sorry, couldn’t figure it out, so i came here

your view may look a bit different, but from the main forums page at answers.netlify.com please just select “new topic” and give us as much information as possible:

okay, thank you very much

A post was split to a new topic: Unable to deploy nft-minting-app

Pls why my site is deploying is fail

Hi @abubakaradamgaru

Welcome to the community! :tada:

We’re going to need more details in order to help you. Please refer to this thread for tips on submitting a troubleshooting request: