Hi!
Recently, my netlify builds on my project started failing. I couldn’t deploy my site. Failed during stage ‘building site’: Build script returned non-zero exit code: 2 and there are 2 errors: “VipsJpeg: Corrupt JPEG data: premature end of data segment” and “Input buffer contains unsupported image format”
Log:
error There was an error in your GraphQL query:
11:32:49 PM: VipsJpeg: Corrupt JPEG data: premature end of data segment
11:32:49 PM: VipsJpeg: out of order read at line 656
11:32:49 PM: 138 | quality: 80
11:32:49 PM: 139 | )
11:32:49 PM: 140 | }
11:32:49 PM: 141 | }
11:32:49 PM: 142 | newsecAboutHeading
11:32:49 PM: 143 | newsecAboutText {
11:32:49 PM: 144 | newsecAboutText
11:32:49 PM: 145 | }
11:32:49 PM: 146 | newsecAboutLink
11:32:49 PM: 147 | newsecAboutBackgroundImage {
11:32:49 PM: > 148 | gatsbyImageData(
11:32:49 PM: | ^
11:32:49 PM: 149 | formats: [AUTO, WEBP]
11:32:49 PM: 150 | layout: CONSTRAINED
11:32:49 PM: 151 | width: 1000
11:32:49 PM: 152 | quality: 80
11:32:49 PM: 153 | )
11:32:49 PM: 154 | }
11:32:49 PM: 155 | }
11:32:49 PM: 156 | }
11:32:49 PM: 157 |
11:32:49 PM: File path: /opt/build/repo/src/templates/search.js
11:32:49 PM: Url path: /varastot/pietarsaari
11:32:49 PM: Plugin: none
11:32:49 PM:
11:32:49 PM:
11:32:49 PM: Error: VipsJpeg: Corrupt JPEG data: premature end of data segment
11:32:49 PM: VipsJpeg: out of order read at line 656
11:32:49 PM:
11:32:49 PM: error There was an error in your GraphQL query:
11:32:49 PM: Input buffer contains unsupported image format
11:32:49 PM: 124 | }
11:32:49 PM: 125 | contentfulEtusivu(activeVersion: {eq: "Kyllä"}) {
11:32:49 PM: 126 | newsecInfoHeading
11:32:49 PM: 127 | newsecInfoText {
11:32:49 PM: 128 | newsecInfoText
11:32:49 PM: 129 | }
11:32:49 PM: 130 | newsecInfoBalls {
11:32:49 PM: 131 | metric
11:32:49 PM: 132 | description
11:32:49 PM: 133 | icon {
11:32:49 PM: > 134 | gatsbyImageData(
11:32:49 PM: | ^
11:32:49 PM: 135 | formats: [AUTO, WEBP]
11:32:49 PM: 136 | layout: CONSTRAINED
11:32:49 PM: 137 | width: 150
11:32:49 PM: 138 | quality: 80
11:32:49 PM: 139 | )
11:32:49 PM: 140 | }
11:32:49 PM: 141 | }
11:32:49 PM: 142 | newsecAboutHeading
11:32:49 PM: 143 | newsecAboutText {
11:32:49 PM: 144 | newsecAboutText
11:32:49 PM: File path: /opt/build/repo/src/templates/search.js
11:32:49 PM: Url path: /toimitilat/hollola
11:32:49 PM: Plugin: none
11:32:49 PM:
11:32:49 PM:
11:32:49 PM: Error: Input buffer contains unsupported image format
11:32:49 PM:
11:32:49 PM: error There was an error in your GraphQL query:
11:32:49 PM: Input buffer contains unsupported image format
11:32:49 PM: 138 | quality: 80
11:32:49 PM: 139 | )
11:32:49 PM: 140 | }
11:32:49 PM: 141 | }
11:32:49 PM: 142 | newsecAboutHeading
11:32:49 PM: 143 | newsecAboutText {
11:32:49 PM: 144 | newsecAboutText
11:32:49 PM: 145 | }
11:32:49 PM: 146 | newsecAboutLink
11:32:49 PM: 147 | newsecAboutBackgroundImage {
11:32:49 PM: > 148 | gatsbyImageData(
11:32:49 PM: | ^
11:32:49 PM: 149 | formats: [AUTO, WEBP]
11:32:49 PM: 150 | layout: CONSTRAINED
11:32:49 PM: 151 | width: 1000
11:32:49 PM: 152 | quality: 80
11:32:49 PM: 153 | )
11:32:49 PM: 154 | }
11:32:49 PM: 155 | }
11:32:49 PM: 156 | }
11:32:49 PM: 157 |
11:32:49 PM: File path: /opt/build/repo/src/templates/search.js
11:32:49 PM: Url path: /toimitilat/hollola
11:32:49 PM: Plugin: none
11:32:49 PM:
11:32:49 PM:
11:32:49 PM: Error: Input buffer contains unsupported image format
11:32:49 PM:
11:32:49 PM: error An error occurred during parallel query running.
11:32:49 PM: Go here for troubleshooting tips: https://gatsby.dev/pqr-feedback
11:32:49 PM:
11:32:49 PM:
11:32:49 PM: Error: Worker exited before finishing task
11:32:49 PM:
11:32:49 PM: - index.js:117 ChildProcess.<anonymous>
11:32:49 PM: [repo]/[gatsby-worker]/dist/index.js:117:45
11:32:49 PM:
11:32:49 PM: - child_process.js:277 Process.ChildProcess._handle.onexit
11:32:49 PM: internal/child_process.js:277:12
11:32:49 PM:
11:32:49 PM:
11:32:49 PM: not finished run queries in workers - 1.989s
11:32:50 PM: npm ERR! code ELIFECYCLE
11:32:50 PM: npm ERR! errno 1
11:32:50 PM: npm ERR! toimitilahaku.fi@0.1.0 build: `gatsby build`
11:32:50 PM: npm ERR! Exit status 1
11:32:50 PM: npm ERR!
11:32:50 PM: npm ERR! Failed at the toimitilahaku.fi@0.1.0 build script.
11:32:50 PM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
11:32:50 PM: npm ERR! A complete log of this run can be found in:
11:32:50 PM: npm ERR! /opt/buildhome/.npm/_logs/2023-02-09T21_32_50_021Z-debug.log
11:32:50 PM:
11:32:50 PM: "build.command" failed
11:32:50 PM: ────────────────────────────────────────────────────────────────
11:32:50 PM:
11:32:50 PM: Error message
11:32:50 PM: Command failed with exit code 1: CI= npm run build (https://ntl.fyi/exit-code-1)
11:32:50 PM:
11:32:50 PM: Error location
11:32:50 PM: In Build command from Netlify app:
11:32:50 PM: CI= npm run build
11:32:50 PM:
11:32:50 PM: Resolved config