Build failed due to an internal system error: Build script returned non-zero exit code: 4

Hello,
My Hugo site suddenly starts failing during build. The build takes very long and after processing Forms all start crashing. No changes in forms have been done.

Most concerning part

6:44:50 AM:   Error: Deploy did not succeed: Failed to execute deploy: timed out while waiting to enter states [prepared, ready]

Log:

7:00:01 AM: Waiting for other deploys from your team to complete. Check the queue: https://app.netlify.com/teams/idarek/builds
7:18:51 AM: Build ready to start
7:18:56 AM: build-image version: 122b31996ccaffd45d820a452d6227f8312110cc (focal)
7:18:56 AM: build-image tag: v4.5.3
7:18:56 AM: buildbot version: 6aae4d21fd1b7e33a10a9c03ca8e663d0c79b21d
7:18:56 AM: Fetching cached dependencies
7:18:57 AM: Starting to download cache of 1.3GB
7:19:11 AM: Finished downloading cache in 14.941078317s
7:19:11 AM: Starting to extract cache
7:19:28 AM: Finished extracting cache in 17.040043632s
7:19:28 AM: Finished fetching cache in 32.084708656s
7:19:28 AM: Starting to prepare the repo for build
7:19:29 AM: Preparing Git Reference refs/heads/master
7:19:34 AM: Parsing package.json dependencies
7:19:34 AM: Starting build script
7:19:35 AM: Installing dependencies
7:19:35 AM: Python version set to 2.7
7:19:35 AM: Started restoring cached node version
7:19:39 AM: Finished restoring cached node version
7:19:39 AM: v12.18.0 is already installed.
7:19:39 AM: Now using node v12.18.0 (npm v6.14.4)
7:19:39 AM: Started restoring cached build plugins
7:19:39 AM: Finished restoring cached build plugins
7:19:39 AM: Attempting ruby version 2.7.1, read from environment
7:19:40 AM: Started restoring cached ruby version
7:19:40 AM: Finished restoring cached ruby version
7:19:41 AM: Using ruby version 2.7.1
7:19:42 AM: Using PHP version 8.0
7:19:42 AM: Installing Hugo 0.92.2
7:19:42 AM: hugo v0.92.2-CDF6A0D6+extended linux/amd64 BuildDate=2022-02-11T14:17:39Z VendorInfo=gohugoio
7:19:42 AM: Started restoring cached go cache
7:19:43 AM: Finished restoring cached go cache
7:19:43 AM: Installing Go version 1.14.4
7:19:43 AM: unset GOOS;
7:19:43 AM: unset GOARCH;
7:19:43 AM: export GOROOT='/opt/buildhome/.gimme_cache/versions/go1.14.4.linux.amd64';
7:19:43 AM: export PATH="/opt/buildhome/.gimme_cache/versions/go1.14.4.linux.amd64/bin:${PATH}";
7:19:43 AM: go version >&2;
7:19:43 AM: export GIMME_ENV='/opt/buildhome/.gimme_cache/env/go1.14.4.linux.amd64.env';
7:19:43 AM: go version go1.14.4 linux/amd64
7:19:43 AM: Installing missing commands
7:19:43 AM: Verify run directory
7:19:44 AM: ​
7:19:44 AM: ────────────────────────────────────────────────────────────────
7:19:44 AM:   Netlify Build                                                 
7:19:44 AM: ────────────────────────────────────────────────────────────────
7:19:44 AM: ​
7:19:44 AM: ❯ Version
7:19:44 AM:   @netlify/build 26.3.14
7:19:44 AM: ​
7:19:44 AM: ❯ Flags
7:19:44 AM:   baseRelDir: true
7:19:44 AM:   buildId: 622067714230b800075da90a
7:19:44 AM:   deployId: 622067714230b800075da90c
7:19:44 AM: ​
7:19:44 AM: ❯ Current directory
7:19:44 AM:   /opt/build/repo
7:19:44 AM: ​
7:19:44 AM: ❯ Config file
7:19:44 AM:   /opt/build/repo/netlify.toml
7:19:44 AM: ​
7:19:44 AM: ❯ Context
7:19:44 AM:   production
7:19:44 AM: ​
7:19:44 AM: ────────────────────────────────────────────────────────────────
7:19:44 AM:   1. build.command from netlify.toml                            
7:19:44 AM: ────────────────────────────────────────────────────────────────
7:19:44 AM: ​
7:19:44 AM: $ hugo --gc --minify
7:19:44 AM: Start building sites …
7:19:44 AM: hugo v0.92.2-CDF6A0D6+extended linux/amd64 BuildDate=2022-02-11T14:17:39Z VendorInfo=gohugoio
7:19:59 AM:                    |  PL  | EN
7:19:59 AM: -------------------+------+------
7:19:59 AM:   Pages            | 3186 | 338
7:19:59 AM:   Paginator pages  |  236 |  17
7:19:59 AM:   Non-page files   | 2509 |   0
7:19:59 AM:   Static files     |   12 |  12
7:19:59 AM:   Processed images |    0 |   0
7:19:59 AM:   Aliases          | 1512 | 156
7:19:59 AM:   Sitemaps         |    2 |   1
7:19:59 AM:   Cleaned          |    0 |   0
7:19:59 AM: Total in 15064 ms
7:19:59 AM: ​
7:19:59 AM: (build.command completed in 15.1s)
7:19:59 AM: ​
7:19:59 AM: ────────────────────────────────────────────────────────────────
7:19:59 AM:   2. Deploy site                                                
7:19:59 AM: ────────────────────────────────────────────────────────────────
7:19:59 AM: ​
7:19:59 AM: Starting to deploy site from 'public'
7:20:00 AM: Creating deploy tree asynchronously
7:20:01 AM: Creating deploy upload records
7:20:06 AM: Starting post processing
7:20:06 AM: Post processing - HTML
7:21:54 AM: Processing form - contact-en
7:21:54 AM: Detected form fields:
7:21:55 AM:  - Name
7:21:55 AM:  - bot-field
7:21:55 AM:  - Email address
7:21:55 AM:  - Your message
7:21:55 AM:  - subject
7:22:07 AM: Processing form - contact-pl
7:22:07 AM: Detected form fields:
7:22:07 AM:  - ImiΔ™
7:22:07 AM:  - bot-field
7:22:07 AM:  - Adres email
7:22:07 AM:  - Twoja wiadomoΕ›Δ‡
7:22:08 AM:  - subject
7:25:01 AM: ​
7:25:01 AM: ────────────────────────────────────────────────────────────────
7:25:01 AM:   Internal error during "Deploy site"                           
7:25:01 AM: ────────────────────────────────────────────────────────────────
7:25:01 AM: ​
7:25:01 AM:   Error message
7:25:01 AM:   Error: Deploy did not succeed: Failed to execute deploy: timed out while waiting to enter states [prepared, ready]
7:25:01 AM: ​
7:25:01 AM:   Error location
7:25:01 AM:   During Deploy site
7:25:01 AM:       at handleDeployError (file:///opt/buildhome/node-deps/node_modules/@netlify/build/src/plugins_core/deploy/buildbot_client.js:87:18)
7:25:01 AM:       at deploySiteWithBuildbotClient (file:///opt/buildhome/node-deps/node_modules/@netlify/build/src/plugins_core/deploy/buildbot_client.js:68:12)
7:25:01 AM:       at processTicksAndRejections (node:internal/process/task_queues:96:5)
7:25:01 AM:       at async coreStep (file:///opt/buildhome/node-deps/node_modules/@netlify/build/src/plugins_core/deploy/index.js:45:5)
7:25:01 AM:       at async fireCoreStep (file:///opt/buildhome/node-deps/node_modules/@netlify/build/src/steps/core_step.js:39:9)
7:25:01 AM:       at async tFireStep (file:///opt/buildhome/node-deps/node_modules/@netlify/build/src/time/main.js:20:59)
7:25:01 AM:       at async runStep (file:///opt/buildhome/node-deps/node_modules/@netlify/build/src/steps/run_step.js:88:7)
7:25:01 AM:       at async pReduce.index (file:///opt/buildhome/node-deps/node_modules/@netlify/build/src/steps/run_steps.js:91:11)
7:25:01 AM:       at async runSteps (file:///opt/buildhome/node-deps/node_modules/@netlify/build/src/steps/run_steps.js:51:7)
7:25:01 AM:       at async runBuild (file:///opt/buildhome/node-deps/node_modules/@netlify/build/src/core/main.js:610:7)
7:25:01 AM: ​
7:25:01 AM:   Resolved config
7:25:01 AM:   build:
7:25:01 AM:     command: hugo --gc --minify
7:25:01 AM:     commandOrigin: config
7:25:01 AM:     environment:
7:25:01 AM:       - HUGO_VERSION
7:25:01 AM:       - HUGO_ENV
7:25:01 AM:       - HUGO_ENABLEGITINFO
7:25:01 AM:     publish: /opt/build/repo/public
7:25:01 AM:     publishOrigin: config
7:25:01 AM:   headers:
7:25:02 AM:     - for: /*
      values:
        Content-Security-Policy: 'base-uri ''self'' ''unsafe-inline'' ''unsafe-eval'' https: data:'
        Expect-CT: max-age=0
        Permissions-Policy: accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=()
        Referrer-Policy: strict-origin-when-cross-origin
        Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
        Vary: Accept-Encoding
        X-Content-Type-Options: nosniff
        X-Frame-Options: SAMEORIGIN
        X-XSS-Protection: 1; mode=block
    - for: /*.ico
      values:
        Cache-Control: public, max-age=31536000, immutable
    - for: /*.js
      values:
        Cache-Control: public, max-age=31536000, immutable
    - for: /pobierz/*
      values:
        Cache-Control: public, max-age=31536000, immutable
    - for: /*.pdf
      values:
        Cache-Control: public, max-age=31536000, immutable
    - for: /*.7z
      values:
        Cache-Control: public, max-age=31536000, immutable
    - for: /*.zip
      values:
        Cache-Control: public, max-age=31536000, immutable
    - for: /*.css
      values:
        Cache-Control: public, max-age=31536000, immutable
    - for: /*.woff
      values:
        Cache-Control: public, max-age=31536000, immutable
    - for: /*.woff2
      values:
        Cache-Control: public, max-age=31536000, immutable
    - for: /images/*
      values:
        Cache-Control: public, max-age=31536000, immutable
    - for: /*.jpg
      values:
        Cache-Control: public, max-age=31536000, immutable
    - for: /*.jpeg
      values:
        Cache-Control: public, max-age=31536000, immutable
    - for: /*.gif
      values:
        Cache-Control: public, max-age=31536000, immutable
    - for: /*.png
      values:
        Cache-Control: public, max-age=31536000, immutable
    - for: /*.webp
      values:
        Cache-Control: public, max-age=31536000, immutable`
    - for: /*.svg
      values:
        Cache-Control: public, max-age=31536000, immutable
    - for: /*.html
      values:
        Cache-Control: public, max-age=0, must-revalidate
  redirects:
    - force: true
      from: https://idarek.netlify.com
      status: 301
      to: https://dariusz.wieckiewicz.org
    - force: true
      from: https://idarek.netlify.com/*
      status: 301
      to: https://dariusz.wieckiewicz.org/:splat
    - force: true
      from: https://wieckiewicz.org/ads.txt
      status: 200
      to: https://dariusz.wieckiewicz.org/ads.txt
    - force: true
      from: https://wieckiewicz.org
      status: 301
      to: https://dariusz.wieckiewicz.org
    - force: true
      from: https://wieckiewicz.org/*
      status: 301
      to: https://dariusz.wieckiewicz.org/:splat
    - from: /collect
      status: 200
      to: https://www.google-analytics.com/collect
    - from: /pl/
      to: /
    - from: /rss
      to: /index.xml
    - from: /feed
      to: /index.xml
    - from: /atom
      to: /index.xml
    - from: /:context/rss
      to: /index.xml
    - from: /:context/feed
      to: /index.xml
    - from: /:context/atom
      to: /index.xml
    - from: /en/rss
      to: /en/index.xml
    - from: /en/feed
      to: /en/index.xml
    - from: /en/atom
      to: /en/index.xml
    - from: /en/:context/rss
      to: /en/index.xml
    - from: /en/:context/feed
      to: /en/index.xml
    - from: /en/:context/atom
      to: /en/index.xml
    - from: /dane-statystyczne
      to: /
    - from: /sitemap-index.xml
      to: /sitemap.xml
    - from: /post-sitemap.xml
      to: /sitemap.xml
    - from: /mapa-strony
      to: /sitemap.xml
    - from: /macskrytka
      to: /kategoria/apple
    - from: /mac-skrytka
      to: /kategoria/apple
    - from: /kategoria/mac
      to: /kategoria/apple
    - from: /wp-content/uploads/sites/3/*
      to: /images/:splat
    - from: /wp-content/uploads/*
      to: /images/:splat
    - from: /youtube
      to: https://www.youtube.com/user/ITDarek/
    - from: /android
      to: /kategoria/android
    - from: /artykuly
      to: /kategoria/artykuΕ‚y
    - from: /blog
      to: /kategoria/blog
    - from: /dydaktyka
      to: /kategoria/dydaktyka
    - from: /finanse
      to: /kategoria/finanse
    - from: /firma
      to: /kategoria/firma
    - from: /gry
      to: /kategoria/gry
    - from: /internet
      to: /kategoria/internet
    - from: /komputery
      to: /kategoria/komputery
    - from: /kulinaria
      to: /kategoria/kulinaria
    - from: /linux
      to: /kategoria/linux
    - from: /mac
      to: /kategoria/apple
    - from: /na-luzie
      to: /kategoria/na-luzie
    - from: /oprogramowanie
      to: /kategoria/oprogramowanie
    - from: /sprzet
      to: /kategoria/sprzet
    - from: /wiersze
      to: /kategoria/wiersze
    - from: /windows
      to: /kategoria/windows
    - from: /wordpress
      to: /kategoria/wordpress
    - from: /blog/page/*
      to: /strona/:splat
    - from: /blog/tag/*
      to: /tag/:splat
    - from: /2009/03/*
      to: /:splat
    - from: /2009/04/*
      to: /:splat
    - from: /2009/11/*
      to: /:splat
    - from: /2010/08/*
      to: /:splat
    - from: /2011/01/*
      to: /:splat
    - from: /2011/10/*
      to: /:splat
    - from: /2012/02/*
      to: /:splat
    - from: /2012/04/*
      to: /:splat
    - from: /2015/12/*
      to: /:splat
    - from: /tag/przesylki-priorytetowe-krajowe
      to: /tag/przesyΕ‚ki-priorytetowe-krajowe
    - from: /tag/plynny-karmel
      to: /tag/pΕ‚ynny-karmel
    - from: /tag/slawomir-wlodkowski/
      to: /tag/sΕ‚awomir-wΕ‚odkowski
Caching artifacts
7:25:02 AM: Started saving build plugins
7:25:02 AM: Finished saving build plugins
7:25:02 AM: Started saving pip cache
7:25:02 AM: Finished saving pip cache
7:25:02 AM: Started saving emacs cask dependencies
7:25:02 AM: Finished saving emacs cask dependencies
7:25:02 AM: Started saving maven dependencies
7:25:02 AM: Finished saving maven dependencies
7:25:02 AM: Started saving boot dependencies
7:25:03 AM: Creating deploy upload records
7:25:02 AM: Finished saving boot dependencies
7:25:02 AM: Started saving rust rustup cache
7:25:02 AM: Finished saving rust rustup cache
7:25:02 AM: Started saving go dependencies
7:25:03 AM: Finished saving go dependencies
7:25:03 AM: Build failed due to an internal system error: Build script returned non-zero exit code: 4
7:25:04 AM: Failing build: Failed to build site
7:25:04 AM: Failed during stage 'building site': Build script returned non-zero exit code: 4
7:25:04 AM: Finished processing build request in 6m8.418316525s

Build command: hugo --gc --minify

I made some changes which I revert to the build that was working, but its failing still.

ps. I have redeployed the site again (first as it take enormously long I cancelled). 3 failed, other hangs on Form processing for 12 minutes (!) but this time goes further and no errors (took 26 minutes altogether) but another one with minimal change failed again.

Hey @idarek,

You’ve had various successful deploys after the above. Do you still need help?

Yes, with various results.
Recently most of them passed however publishing is taking a lot of time, roughly 15-30 minutes each. Build sticking for a significant period of time after processing the forms, if not fail at that stage as above, and before starting Post-processing - header rules and others.

Since you’re using lossless compression for images, it might take time depending on the number of images you’re using. I’ve bumped the processing timeout for your site, so hopefully, you won’t have issues going forward.

Ok, I always used that and never saw an issue on my account or other accounts of other people. I will turn this off and see if that improve on next build

Hey @hrishikesh I have turned off asset optimisation on my employeer site and do clear cache and deploy.

Deploy failed, log below:

12:13:39 PM: Build ready to start
12:13:41 PM: build-image version: 122b31996ccaffd45d820a452d6227f8312110cc (focal)
12:13:41 PM: build-image tag: v4.5.3
12:13:41 PM: buildbot version: c68dbedb54f97d2ade6b8aa44f524f50c2bf9351
12:13:41 PM: Building without cache
12:13:41 PM: Starting to prepare the repo for build
12:13:42 PM: No cached dependencies found. Cloning fresh repo
12:13:42 PM: git clone https://github.com/idarek/afast_hugo
12:13:49 PM: Preparing Git Reference refs/heads/master
12:13:52 PM: Parsing package.json dependencies
12:13:53 PM: Starting build script
12:13:53 PM: Installing dependencies
12:13:53 PM: Python version set to 2.7
12:13:54 PM: Downloading and installing node v16.14.0...
12:13:54 PM: Downloading https://nodejs.org/dist/v16.14.0/node-v16.14.0-linux-x64.tar.xz...
12:13:55 PM: Computing checksum with sha256sum
12:13:55 PM: Checksums matched!
12:13:58 PM: Now using node v16.14.0 (npm v8.3.1)
12:13:58 PM: Started restoring cached build plugins
12:13:58 PM: Finished restoring cached build plugins
12:13:58 PM: Attempting ruby version 2.7.2, read from environment
12:14:00 PM: Using ruby version 2.7.2
12:14:00 PM: Using PHP version 8.0
12:14:00 PM: Installing Hugo 0.93.2
12:14:02 PM: hugo v0.93.2-643B5AE9+extended linux/amd64 BuildDate=2022-03-04T12:21:49Z VendorInfo=gohugoio
12:14:02 PM: Started restoring cached go cache
12:14:02 PM: Finished restoring cached go cache
12:14:02 PM: go version go1.16.5 linux/amd64
12:14:02 PM: go version go1.16.5 linux/amd64
12:14:02 PM: Installing missing commands
12:14:02 PM: Verify run directory
12:14:04 PM: ​
12:14:04 PM: ────────────────────────────────────────────────────────────────
12:14:04 PM:   Netlify Build                                                 
12:14:04 PM: ────────────────────────────────────────────────────────────────
12:14:04 PM: ​
12:14:04 PM: ❯ Version
12:14:04 PM:   @netlify/build 26.3.14
12:14:04 PM: ​
12:14:04 PM: ❯ Flags
12:14:04 PM:   baseRelDir: true
12:14:04 PM:   buildId: 6225f6f390d3cedf602c3bf1
12:14:04 PM:   deployId: 6225f6f390d3cedf602c3bf3
12:14:04 PM: ​
12:14:04 PM: ❯ Current directory
12:14:04 PM:   /opt/build/repo
12:14:04 PM: ​
12:14:04 PM: ❯ Config file
12:14:04 PM:   /opt/build/repo/netlify.toml
12:14:04 PM: ​
12:14:04 PM: ❯ Context
12:14:04 PM:   production
12:14:04 PM: ​
12:14:04 PM: ────────────────────────────────────────────────────────────────
12:14:04 PM:   1. build.command from netlify.toml                            
12:14:04 PM: ────────────────────────────────────────────────────────────────
12:14:04 PM: ​
12:14:04 PM: $ hugo --gc --minify
12:14:04 PM: Start building sites …
12:14:04 PM: hugo v0.93.2-643B5AE9+extended linux/amd64 BuildDate=2022-03-04T12:21:49Z VendorInfo=gohugoio
12:14:15 PM:                    |  EN
12:14:15 PM: -------------------+-------
12:14:15 PM:   Pages            | 1926
12:14:15 PM:   Paginator pages  |  149
12:14:15 PM:   Non-page files   | 1191
12:14:15 PM:   Static files     |   11
12:14:15 PM:   Processed images |    0
12:14:15 PM:   Aliases          |  971
12:14:15 PM:   Sitemaps         |    1
12:14:15 PM:   Cleaned          |    0
12:14:15 PM: Total in 11008 ms
12:14:15 PM: ​
12:14:15 PM: (build.command completed in 11.1s)
12:14:15 PM: ​
12:14:15 PM: ────────────────────────────────────────────────────────────────
12:14:15 PM:   2. Deploy site                                                
12:14:15 PM: ────────────────────────────────────────────────────────────────
12:14:15 PM: ​
12:14:15 PM: Starting to deploy site from 'public'
12:14:16 PM: Creating deploy tree asynchronously
12:14:16 PM: Creating deploy upload records
12:16:02 PM: Starting post processing
12:16:03 PM: Post processing - HTML
12:19:17 PM: ​
12:19:17 PM: ────────────────────────────────────────────────────────────────
12:19:17 PM:   Internal error during "Deploy site"                           
12:19:17 PM: ────────────────────────────────────────────────────────────────
12:19:17 PM: ​
12:19:17 PM:   Error message
12:19:17 PM:   Error: Deploy did not succeed: Failed to execute deploy: timed out while waiting to enter states [prepared, ready]
12:19:17 PM: ​
12:19:17 PM:   Error location
12:19:17 PM:   During Deploy site
12:19:17 PM:       at handleDeployError (file:///opt/buildhome/node-deps/node_modules/@netlify/build/src/plugins_core/deploy/buildbot_client.js:87:18)
12:19:17 PM:       at deploySiteWithBuildbotClient (file:///opt/buildhome/node-deps/node_modules/@netlify/build/src/plugins_core/deploy/buildbot_client.js:68:12)
12:19:17 PM:       at processTicksAndRejections (node:internal/process/task_queues:96:5)
12:19:17 PM:       at async coreStep (file:///opt/buildhome/node-deps/node_modules/@netlify/build/src/plugins_core/deploy/index.js:45:5)
12:19:17 PM:       at async fireCoreStep (file:///opt/buildhome/node-deps/node_modules/@netlify/build/src/steps/core_step.js:39:9)
12:19:17 PM:       at async tFireStep (file:///opt/buildhome/node-deps/node_modules/@netlify/build/src/time/main.js:20:59)
12:19:17 PM:       at async runStep (file:///opt/buildhome/node-deps/node_modules/@netlify/build/src/steps/run_step.js:88:7)
12:19:17 PM:       at async pReduce.index (file:///opt/buildhome/node-deps/node_modules/@netlify/build/src/steps/run_steps.js:91:11)
12:19:17 PM:       at async runSteps (file:///opt/buildhome/node-deps/node_modules/@netlify/build/src/steps/run_steps.js:51:7)
12:19:17 PM:       at async runBuild (file:///opt/buildhome/node-deps/node_modules/@netlify/build/src/core/main.js:610:7)
12:19:17 PM: ​
12:19:17 PM:   Resolved config
12:19:17 PM:   build:
12:19:17 PM:     command: hugo --gc --minify
12:19:17 PM:     commandOrigin: config
12:19:17 PM:     environment:
12:19:17 PM:       - ONEGRAPH_AUTHLIFY_TOKEN
12:19:17 PM:       - HUGO_VERSION
12:19:17 PM:       - HUGO_ENV
12:19:17 PM:       - HUGO_ENABLEGITINFO
12:19:17 PM:     publish: /opt/build/repo/public
12:19:17 PM:     publishOrigin: config
12:19:17 PM:   headers:
12:19:17 PM:     - for: /*
      values:
        Content-Security-Policy: 'base-uri ''self'' ''unsafe-inline'' ''unsafe-eval'' https: data:'
        Expect-CT: max-age=0
        Permissions-Policy: accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=()
        Referrer-Policy: strict-origin-when-cross-origin
        Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
        Vary: Accept-Encoding
        X-Content-Type-Options: nosniff
        X-Frame-Options: SAMEORIGIN
        X-XSS-Protection: 1; mode=block
    - for: /*.ico
      values:
        Cache-Control: public, max-age=31536000, immutable
    - for: /*.js
      values:
        Cache-Control: public, max-age=31536000, immutable
    - for: /downloads/*
      values:
        Cache-Control: public, max-age=31536000, immutable
    - for: /*.pdf
      values:
        Cache-Control: public, max-age=31536000, immutable
    - for: /*.css
      values:
        Cache-Control: public, max-age=31536000, immutable
    - for: /images/*
      values:
        Cache-Control: public, max-age=31536000, immutable
    - for: /*.jpg
      values:
        Cache-Control: public, max-age=31536000, immutable
    - for: /*.jpeg
      values:
        Cache-Control: public, max-age=31536000, immutable
    - for: /*.gif
      values:
        Cache-Control: public, max-age=31536000, immutable
    - for: /*.png
      values:
        Cache-Control: public, max-age=31536000, immutable
    - for: /*.webp
      values:
        Cache-Control: public, max-age=31536000, immutable
    - for: /*.svg
      values:
        Cache-Control: public, max-age=31536000, immutable
    - for: /*.html
      values:
        Cache-Control: public, max-age=0, must-revalidate
  redirects:
    - force: true
      from: https://andrewsfasteners.netlify.com
      status: 301
      to: https://www.andrewsfasteners.uk
    - force: true
      from: https://andrewsfasteners.netlify.com/*
      status: 301
      to: https://www.andrewsfasteners.uk/:splat
    - force: true
      from: https://andrewsfasteners.co.uk
      status: 301
      to: https://www.andrewsfasteners.uk
    - force: true
      from: https://www.andrewsfasteners.co.uk
      status: 301
      to: https://www.andrewsfasteners.uk
    - force: true
      from: https://www.andrewsfasteners.co.uk/*
      status: 301
      to: https://www.andrewsfasteners.uk/:splat
    - force: true
      from: https://afast.uk
      status: 301
      to: https://www.andrewsfasteners.uk/shortlinks
    - force: true
      from: https://afast.uk/*
      status: 301
      to: https://www.andrewsfasteners.uk/:splat
    - force: true
      from: https://www.afast.uk
      status: 301
      to: https://www.andrewsfasteners.uk/shortlinks
    - force: true
      from: https://www.afast.uk/*
      status: 301
      to: https://www.andrewsfasteners.uk/:splat
    - force: true
      from: https://afast.co.uk
      status: 301
      to: https://www.andrewsfasteners.uk/shortlinks
    - force: true
      from: https://afast.co.uk/*
      status: 301
      to: https://www.andrewsfasteners.uk/:splat
    - force: true
      from: https://www.afast.co.uk
      status: 301
      to: https://www.andrewsfasteners.uk/shortlinks
    - force: true
      from: https://www.afast.co.uk/*
      status: 301
      to: https://www.andrewsfasteners.uk/:splat
    - from: /collect
      status: 200
      to: https://www.google-analytics.com/collect
    - from: /rss
      to: /index.xml
    - from: /feed
      to: /index.xml
    - from: /atom
      to: /index.xml
    - from: /:context/rss
      to: /index.xml
    - from: /:context/feed
      to: /index.xml
    - from: /:context/atom
      to: /index.xml
    - from: /sitemap_index.xml
      to: /sitemap.xml
    - from: /my-account/
      to: /
    - from: /no-access/
      to: /
    - from: /blackfriday2015/
      to: /news/
    - from: /no_category
      to: /
    - from: /AutoDiscover/autodiscover.xml
      to: https://autodiscover-s.outlook.com/autodiscover/autodiscover.xml
    - from: /paypal/
      to: http://paypal.me/fasteners
    - from: /category/*
      to: /:splat
    - from: /news.php
      to: /news/
    - from: /wp-content/uploads/2014/08/Technical-Wall-Chart-for-pre-load-and-non-pre-load-fasteners.pdf
      to: /quality/technical-support/
    - from: /wp-content/uploads/2014/08/BS-EN-14399-HSFG-compare-as-an-alternative-to-ASTM-HSFG.pdf
      to: /quality/technical-support/
    - from: /wp-content/uploads/2014/08/Guidance-On-The-Tightening-of-Non-Pre-load-Fasteners.pdf
      to: /quality/technical-support/
    - from: /projects/40-portman-square
      to: /projects/
    - from: /projects/a-new-tower-of-london
      to: /projects/
    - from: /projects/a-slice-of-the-action-for-steel
      to: /projects/
    - from: /projects/activating-thermal-mass
      to: /projects/
    - from: /projects/africa-house-london
      to: /projects/
    - from: /projects/blackfriars-station-london
      to: /projects/
    - from: /projects/borough-high-street-bridge
      to: /projects/
    - from: /projects/bq-headquarter
      to: /projects/
    - from: /projects/bus-station-stoke-on-trent
      to: /projects/
    - from: /projects/cable-car-london
      to: /projects/
    - from: /projects/chester-headquarters
      to: /projects/
    - from: /projects/chesterfield-stadium
      to: /projects/
    - from: /projects/heathrow-airport-terminal-5
      to: /projects/
    - from: /projects/jarrold-bridge-norwich
      to: /projects/
    - from: /projects/jemstock-2-canary-wharf-london
      to: /projects/
    - from: /projects/lakeside-energy
      to: /projects/
    - from: /projects/leicester-tigers
      to: /projects/
    - from: /projects/m8-footbridge
      to: /projects/
    - from: /projects/neo-bankside-london
      to: /projects/
    - from: /projects/new-schools
      to: /projects/
    - from: /projects/newcastle-school
      to: /projects/
    - from: /projects/newport-station
      to: /projects/
    - from: /projects/olympic-park-2012
      to: /projects/
    - from: /projects/olympic-venues-on-track
      to: /projects/
    - from: /projects/other-structures
      to: /projects/other/
    - from: /projects/other-structures/africa-house-london
      to: /projects/
    - from: /projects/other-structures/cable-car-london
      to: /projects/
    - from: /projects/other-structures/chester-headquarters
      to: /projects/
    - from: /projects/other-structures/chesterfield-stadium
      to: /projects/
    - from: /projects/other-structures/steel-provides-architects-vision
      to: /projects/
    - from: /projects/other-structures/stonehenge-monument
      to: /projects/
    - from: /projects/other-structures/the-bridge-academy
      to: /projects/
    - from: /projects/quadrant-milton-keynes
      to: /projects/
    - from: /projects/redcar-leisure-and-community-heart
      to: /projects/
    - from: /projects/ryanair-hangar
      to: /projects/
    - from: /projects/seaside-college
      to: /projects/
    - from: /projects/shopping-centre
      to: /projects/
    - from: /projects/silverstone
      to: /projects/
    - from: /projects/steel-provides-architects-vision
      to: /projects/
    - from: /projects/steel-tower
      to: /projects/
    - from: /projects/stonehenge-monument
      to: /projects/
    - from: /projects/stonehenge-monument/1328
      to: /projects/
    - from: /projects/sussex-coast-college
      to: /projects/
    - from: /projects/teal-park-lincoln
      to: /projects/
    - from: /projects/the-bridge-academy
      to: /projects/
    - from: /projects/the-mall-blackburn
      to: /projects/
    - from: /projects/unison-headquarter
      to: /projects/
    - from: /projects/wimbledon-centre-court
      to: /projects/
    - force: true
      from: /shop/category/ce-15048/
      status: 301
      to: https://andrewsfasteners.square.site/shop/ce-15048-ukca/2
    - force: true
      from: /shop/category/ce-15048/bzp/
      status: 301
      to: https://andrewsfasteners.square.site/shop/bzp/12
    - force: true
      from: /shop/category/ce-15048/hdg/
      status: 301
      to: https://andrewsfasteners.square.site/shop/hdg/11
    - force: true
      from: /shop/category/ce-14399/
      status: 301
      to: https://andrewsfasteners.square.site/shop/ce-14399-ukca/3
    - force: true
      from: /shop/category/ce-14399/8-hdg-ce-14399/
      status: 301
      to: https://andrewsfasteners.square.site/shop/ce-14399-ukca/3
    - force: true
      from: /shop/category/ce-14399/self-colour-8-8/
      status: 301
      to: https://andrewsfasteners.square.site/shop/ce-14399-ukca/3
    - force: true
      from: /shop/category/dti/
      status: 301
      to: https://andrewsfasteners.square.site/shop/dti-14399/4
    - force: true
      from: /shop/category/sqsq-plates-cones/
      status: 301
      to: https://andrewsfasteners.square.site/shop/sqsq-bolts-plates-cones-extenders-wedges/5
    - force: true
      from: /shop/category/bolts-screws-sockets/
      status: 301
      to: https://andrewsfasteners.square.site/shop/bolts-screws-countersunk-socket-button-cap-shoulder/6
    - force: true
      from: /shop/category/bolts-screws-sockets/iso-4017/
      status: 301
      to: https://andrewsfasteners.square.site/shop/bolts-screws-countersunk-socket-button-cap-shoulder/6
    - force: true
      from: /shop/category/bolts-screws-sockets/countersunk-din-7991/
      status: 301
      to: https://andrewsfasteners.square.site/shop/bolts-screws-countersunk-socket-button-cap-shoulder/6
    - force: true
      from: /shop/category/bolts-screws-sockets/screws-din-933/
      status: 301
      to: https://andrewsfasteners.square.site/shop/bolts-screws-countersunk-socket-button-cap-shoulder/6
    - force: true
      from: /shop/category/bolts-screws-sockets/shoulder-fasteners/
      status: 301
      to: https://andrewsfasteners.square.site/shop/bolts-screws-countersunk-socket-button-cap-shoulder/6
    - force: true
      from: /shop/category/nuts-washers-springs/
      status: 301
      to: https://andrewsfasteners.square.site/shop/nuts-washers-springs/7
    - force: true
      from: /shop/category/nuts-washers-springs/washers/
      status: 301
      to: https://andrewsfasteners.square.site/shop/washers/20
    - force: true
      from: /shop/category/nuts-washers-springs/nuts/
      status: 301
      to: https://andrewsfasteners.square.site/shop/nuts/19
    - force: true
      from: /shop/category/studding-rod-anchor/
      status: 301
      to: https://andrewsfasteners.square.site/shop/studding-studbolt-shoulder-anchor-allthread/8
    - force: true
      from: /shop/category/studding-rod-anchor/studding/
      status: 301
      to: https://andrewsfasteners.square.site/shop/studding-allthread/14
    - force: true
      from: /shop/category/fixings/
      status: 301
      to: https://andrewsfasteners.square.site/shop/fixings/10
    - force: true
      from: /shop/category/fixings/throughbolts/
      status: 301
      to: https://andrewsfasteners.square.site/shop/throughbolts/21
Caching artifacts
12:19:17 PM: Started saving build plugins
12:19:17 PM: Finished saving build plugins
12:19:17 PM: Started saving pip cache
12:19:17 PM: Finished saving pip cache
12:19:17 PM: Started saving emacs cask dependencies
12:19:17 PM: Finished saving emacs cask dependencies
12:19:17 PM: Started saving maven dependencies
12:19:17 PM: Finished saving maven dependencies
12:19:17 PM: Started saving boot dependencies
12:19:17 PM: Finished saving boot dependencies
12:19:17 PM: Started saving rust rustup cache
12:19:17 PM: Finished saving rust rustup cache
12:19:17 PM: Started saving go dependencies
12:19:17 PM: Finished saving go dependencies
12:19:19 PM: Build failed due to an internal system error: Build script returned non-zero exit code: 4
12:19:19 PM: Creating deploy upload records
12:19:19 PM: Failing build: Failed to build site
12:19:20 PM: Failed during stage 'building site': Build script returned non-zero exit code: 4 (https://ntl.fyi/exit-code-4)
12:19:20 PM: Finished processing build request in 5m39.095319839s

So the issue visible there and on my site doesn’t look to be related to image compression.

hi there, one thing we can try is to give you more build time.

looking at your account, you’d need to add a credit card so we can automatically bill for more build minutes should you need them, which is a requirement for bumping up your build time, but once you add that, giving you more time is not a problem and will very likely fix the problem. let us know!

With whole respect, what you suggesting is totally inaccurate.

I understand that I am on a Starter (free) profile, but if any of my sites will become popular or will require an upgrade (and one or two will probably soon) to that extent that I will look to upgrade I doubt that I will stay with Netlify.

Firstly, it took 8 days to get any feedback.

I get that, that paying customers are served first, but if Netlify doesn’t build up decent support for each level, how do people suppose to trust your end, and make sure, when the time comes, they will get the proper level of service?

Going back to my issue. I haven’t changed anything and all failures go away after 2 days and haven’t seen them since then, hence that was an issue on your end that hasn’t been acknowledged. That’s once again your support is not what anybody would expect.

Sorry, but I am a bit disappointed with the approach and doubt that this forum is serving its purpose. In case of errors, mine and other issues are left alone until they go away on their own or somebody from your ens will suggest β€œadd a credit card so we can automatically bill for more build minutes” (seen that before).

BTW. I never need more minutes, and the failures were not related to that as stated in the topic, β€œinternal system error” is something that is not on user end.

Hey @idarek,
We seem to have gotten off on the wrong foot here. We were not pushing you to pay us if you are not interested in a higher build timeout. But our support team is required to ask for a card when we bump build time limits for reasons I’m sure you understand- with a higher time limit, there is a higher probability of people going over the build minutes allotment on the Starter plan. Some people are happy to do that if they have huge sites that take a long time to build or just aren’t interested in optimizing build times for whatever reason. If that’s not the case for you, it’s totally fine that you do not want to increase your build time limit, and in the case, we do not need your payment info now or in the future.

Since your deploys are working correctly now without changes, you are likely correct that the issue was on our end. We do always strive for transparency when we are seeing systemic issues and we have announced several incidents- more than we wish!- over the last few weeks, some of which have impacted our build system. You can read the gory details here: Netlify Status

Lastly, our team works very hard to reply to everyone in the forum as quickly as we can. With the recent incidents, we have had more on our plate than usual. I’m sorry to hear that we haven’t inspired trust in this thread, but I see that you’ve been a forum member for a few years now and I hope we’ve built enough trust over that time that you’ll stick around.

It sounds like your deploys are succeeding without issue now, but if I misunderstood, please let us know and we’ll take another look.

5 Likes