Home
Support Forums

Segmentation fault on build

Hi I’m getting a segmentation fault on build

I’m using nextjs export to generate a static site.

Site name: https://thirsty-wozniak-e8488e.netlify.app/

build log:
9:51:46 AM: Build ready to start
9:51:48 AM: build-image version: d84c79427e8f83c1ba17bcdd7b3fe38059376b68
9:51:48 AM: build-image tag: v3.6.1
9:51:48 AM: buildbot version: d8e1c13dfa09a710800c3bc5ceee4ff2d6548477
9:51:48 AM: Building without cache
9:51:48 AM: Starting to prepare the repo for build
9:51:48 AM: No cached dependencies found. Cloning fresh repo
9:51:48 AM: git clone https://github.com/Rynhardf/solar-delight
9:51:50 AM: Preparing Git Reference refs/heads/main
9:51:51 AM: Starting build script
9:51:51 AM: Installing dependencies
9:51:51 AM: Python version set to 2.7
9:51:52 AM: Downloading and installing node v14.16.0…
9:51:53 AM: Downloading https://nodejs.org/dist/v14.16.0/node-v14.16.0-linux-x64.tar.xz
9:51:53 AM: Computing checksum with sha256sum
9:51:53 AM: Checksums matched!
9:51:56 AM: Now using node v14.16.0 (npm v6.14.11)
9:51:56 AM: Started restoring cached build plugins
9:51:56 AM: Finished restoring cached build plugins
9:51:56 AM: Attempting ruby version 2.7.1, read from environment
9:51:57 AM: Using ruby version 2.7.1
9:51:58 AM: Using PHP version 5.6
9:51:58 AM: Started restoring cached node modules
9:51:58 AM: Finished restoring cached node modules
9:51:58 AM: Installing NPM modules using NPM version 6.14.11
9:52:08 AM: npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I’ll try to do my best with it!
9:52:08 AM: > sharp@0.27.2 install /opt/build/repo/node_modules/sharp
9:52:08 AM: > (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
9:52:10 AM: info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.10.5/libvips-8.10.5-linux-x64.tar.br
9:52:13 AM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
9:52:13 AM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})
9:52:13 AM: added 570 packages from 424 contributors and audited 571 packages in 13.987s
9:52:13 AM: 78 packages are looking for funding
9:52:13 AM: run npm fund for details
9:52:13 AM: found 0 vulnerabilities
9:52:13 AM: NPM modules installed
9:52:13 AM: Started restoring cached go cache
9:52:13 AM: Finished restoring cached go cache
9:52:13 AM: go version go1.14.4 linux/amd64
9:52:13 AM: go version go1.14.4 linux/amd64
9:52:13 AM: Installing missing commands
9:52:13 AM: Verify run directory
9:52:15 AM: ​
9:52:15 AM: ────────────────────────────────────────────────────────────────
9:52:15 AM: Netlify Build
9:52:15 AM: ────────────────────────────────────────────────────────────────
9:52:15 AM: ​
9:52:15 AM: ❯ Version
9:52:15 AM: @netlify/build 9.8.6
9:52:15 AM: ​
9:52:15 AM: ❯ Flags
9:52:15 AM: deployId: 60487a92fcf4caba323eb448
9:52:15 AM: mode: buildbot
9:52:15 AM: ​
9:52:15 AM: ❯ Current directory
9:52:15 AM: /opt/build/repo
9:52:15 AM: ​
9:52:15 AM: ❯ Config file
9:52:15 AM: No config file was defined: using default values.
9:52:15 AM: ​
9:52:15 AM: ❯ Context
9:52:15 AM: production
9:52:15 AM: ​
9:52:15 AM: ────────────────────────────────────────────────────────────────
9:52:15 AM: 1. Build command from Netlify app
9:52:15 AM: ────────────────────────────────────────────────────────────────
9:52:15 AM: ​
9:52:15 AM: $ npm run build
9:52:15 AM: > solar-delight@0.1.0 build /opt/build/repo
9:52:15 AM: > node optimizeImages && next build && next export
9:52:18 AM: warn - No build cache found. Please configure build caching for faster rebuilds. Read more: no-cache | Next.js
9:52:18 AM: info - Creating an optimized production build…
9:52:45 AM: info - Compiled successfully
9:52:45 AM: info - Collecting page data…
9:52:47 AM: info - Generating static pages (0/8)
9:52:48 AM: info - Generating static pages (2/8)
9:52:49 AM: info - Generating static pages (4/8)
9:52:49 AM: info - Generating static pages (6/8)
9:52:50 AM: info - Generating static pages (8/8)
9:52:50 AM: info - Finalizing page optimization…
9:52:50 AM: Page Size First Load JS
9:52:50 AM: ┌ ● / 11.1 kB 94.2 kB
9:52:50 AM: ├ └ css/e170a066face504d9656.css 1.06 kB
9:52:50 AM: ├ /_app 0 B 63.4 kB
9:52:50 AM: ├ ○ /404 3.03 kB 66.4 kB
9:52:50 AM: ├ ● /about-us 362 B 70 kB
9:52:50 AM: ├ ● /blog 315 B 70 kB
9:52:50 AM: ├ ● /calculator 1.89 kB 71.6 kB
9:52:50 AM: ├ ● /gallery 786 B 70.5 kB
9:52:50 AM: └ ● /services 3.31 kB 86.4 kB
9:52:50 AM: + First Load JS shared by all 63.4 kB
9:52:50 AM: ├ chunks/commons.9aa62c.js 13.4 kB
9:52:50 AM: ├ chunks/framework.d2e618.js 42.1 kB
9:52:50 AM: ├ chunks/main.f8e7b8.js 6.64 kB
9:52:50 AM: ├ chunks/pages/_app.4457f5.js 561 B
9:52:50 AM: ├ chunks/webpack.50bee0.js 751 B
9:52:50 AM: └ css/58d8dbcd0bb30ce4e3d2.css 2.64 kB
9:52:50 AM: λ (Lambda) server-side renders at runtime (uses getInitialProps or getServerSideProps)
9:52:50 AM: ○ (Static) automatically rendered as static HTML (uses no initial props)
9:52:50 AM: ● (SSG) automatically generated as static HTML + JSON (uses getStaticProps)
9:52:50 AM: (ISR) incremental static regeneration (uses revalidate in getStaticProps)
9:52:51 AM: info - using build directory: /opt/build/repo/.next
9:52:51 AM: info - Copying “static build” directory
9:52:51 AM: info - No “exportPathMap” found in “next.config.js”. Generating map from “./pages”
9:52:51 AM: info - Launching 7 workers
9:52:51 AM: info - Exporting (0/7)
9:52:51 AM: info - Copying “public” directory
9:52:52 AM: info - Exporting (1/7)
9:52:52 AM: info - Exporting (3/7)
9:52:52 AM: info - Exporting (5/7)
9:52:53 AM: info - Exporting (7/7)
9:52:53 AM: Export successful. Files written to /opt/build/repo/out
9:52:53 AM: Segmentation fault (core dumped)
9:52:53 AM: npm ERR! code ELIFECYCLE
9:52:53 AM: npm ERR! errno 139
9:52:53 AM: npm ERR! solar-delight@0.1.0 build: node optimizeImages && next build && next export
9:52:53 AM: npm ERR! Exit status 139
9:52:53 AM: npm ERR!
9:52:53 AM: npm ERR! Failed at the solar-delight@0.1.0 build script.
9:52:53 AM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
9:52:53 AM: npm ERR! A complete log of this run can be found in:
9:52:53 AM: npm ERR! /opt/buildhome/.npm/_logs/2021-03-10T07_52_53_409Z-debug.log
9:52:53 AM: ​
9:52:53 AM: ────────────────────────────────────────────────────────────────
9:52:53 AM: “build.command” failed
9:52:53 AM: ────────────────────────────────────────────────────────────────
9:52:53 AM: ​
9:52:53 AM: Error message
9:52:53 AM: Command failed with exit code 139: npm run build
9:52:53 AM: ​
9:52:53 AM: Error location
9:52:53 AM: In Build command from Netlify app:
9:52:53 AM: npm run build
9:52:53 AM: ​
9:52:53 AM: Resolved config
9:52:53 AM: build:
9:52:53 AM: command: npm run build
9:52:53 AM: commandOrigin: ui
9:52:53 AM: environment:
9:52:53 AM: - NODE_VERSION
9:52:53 AM: publish: /opt/build/repo/out
9:52:53 AM: Caching artifacts
9:52:53 AM: Started saving node modules
9:52:53 AM: Finished saving node modules
9:52:53 AM: Started saving build plugins
9:52:53 AM: Finished saving build plugins
9:52:53 AM: Started saving pip cache
9:52:53 AM: Finished saving pip cache
9:52:53 AM: Started saving emacs cask dependencies
9:52:53 AM: Finished saving emacs cask dependencies
9:52:53 AM: Started saving maven dependencies
9:52:53 AM: Finished saving maven dependencies
9:52:53 AM: Started saving boot dependencies
9:52:53 AM: Finished saving boot dependencies
9:52:53 AM: Started saving rust rustup cache
9:52:53 AM: Finished saving rust rustup cache
9:52:53 AM: Started saving go dependencies
9:52:53 AM: Finished saving go dependencies
9:52:56 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
9:52:56 AM: Failing build: Failed to build site
9:52:56 AM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2
9:52:56 AM: Finished processing build request in 1m8.586844649s

It seems as if the nextjs build and export worked and that something went wrong after that.

Please let me know if I can provide any more info to help solve the problem

Try changing Node Version or change to Yarn.

Thank you for the reply.

I tried node 10, 11, 12, 13, 14, 15 and I tried Yarn.

Unfortunately I still get a segmentation fault.

I’ve realised the problem only exists on Ubuntu. It exports perfectly on windows.

Hi, @Rynhardf. The segfault is being caused by running out of memory. It isn’t caused by Ubuntu. It is caused the by the build system VM having less memory than your local system does.

There is only a guarantee of 3 GiB of memory for the build image. You might get as much as 6 GiB but 3 is the most that is promised.

Note, you can run the build in a local instance the build image VM to see how much memory it is using:

However, you can also likely profile the build in your existing local build system to see the memory use as well. The memory use should be similar regardless of OS with node.

If there are other questions about this, please let us know.

Thank you @luke

I also thought it could be memory but if I run it locally on a Ubuntu VM with 16gb memory it still gives the segmentation falut.

I have found a work around. The sharp image library was causing the fault, I used another library instead.

1 Like

Some more information in case someone is searching for segmentation fault on a build using Parcel v2.
I was also having this issue and tried upgrading to Sharp 0.29.0. (Sharp is used by the Parcel image transformer @parcel/transformer-image). That didn’t work. I removed all of the instances where I was resizing and converting to webP and my build started working. I added back just one resize and segmentation fault happened again.

One thing that I’m curious about though is I tried using macOS’s time to profile the memory usage and it showed under 800MB. This is well below the 3GB Netlify claims they use.

If you’re interested, here’s the command I used: /usr/bin/time -l npm run build

1 Like

Hi there, @aakoch :wave:

Thanks for sharing the command you used, it will definitely be beneficial to future Forums members who encounter something similar.

Hi, @aakoch. If the site’s build process is triggering a segfault due to out of memory (OOM) issues, we will do our best to make recommendations about debugging.

Would you please send us a link to a deploy which ran into one of these OOM errors?

Also, what version are you using for Parcel and all its dependencies? Would you please post your package.json here?

I ask because this sounds like a known issue and I see your comment about it here:

Did you try the PARCEL_WORKERS=0 environment variable workaround mentioned in that thread? If so, what were the results?

I mean, you can help, but I think it’s a Sharp issue, so I’m not expecting anything.

I can do better than sending you one link! :stuck_out_tongue:
:drum:

The first time it happened:
https://app.netlify.com/sites/adamkoch/deploys/61272afb31a4740008a5d579

And me trying it again (with no changes):
(link removed - see below) 61272b8e263a8a6b1c640496

And again… (what is it they say about doing the same thing but expecting different results? :crazy_face:):
(link removed - see below) 61272c1c350af1787137067b

I undid some stuff and tried again:
https://app.netlify.com/sites/adamkoch/deploys/612736497ec14a0007335204

Remember, it worked on my machine so I really had no clue what was wrong.

Parcel detailed report didn’t help:
https://app.netlify.com/sites/adamkoch/deploys/61274109c1cee7000881ac89

Turned on Netlify debug:
https://app.netlify.com/sites/adamkoch/deploys/61274172fe6d4880c8ff8913

Upgraded Sharp library:
https://app.netlify.com/sites/adamkoch/deploys/61274447260ce600088a3cbb

And only when I removed the image manipulation did I finally get a successful build:
https://app.netlify.com/sites/adamkoch/deploys/6127451ce3ef190008498b82

I didn’t think to try the PARCEL_WORKERS on your build servers. (It was late. :grinning:)

Here’s my package.json for the last failed build:

{
  "name": "adamkoch.com",
  "version": "0.6.2",
  "description": "Adam Koch homepage",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "parcel ./src/index.pug './src/**/index.pug' --open",
    "watch": "parcel ./src/index.pug './src/**/index.pug'",
    "build": "cp -R src/assets/* dist/ && parcel build ./src/index.pug './src/**/index.pug'",
    "clean": "rm -rf ./dist/",
    "postversion": "jq '.version' package.json | xargs -I{} tar -a -cf archive/{}.bz2 dist/* && git push && git push --tags"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/aakoch/adamkoch.com.git"
  },
  "keywords": [
    "adam",
    "koch",
    "software"
  ],
  "author": "Adam Koch",
  "license": "ISC",
  "bugs": {
    "url": "https://github.com/aakoch/adamkoch.com/issues"
  },
  "homepage": "https://github.com/aakoch/adamkoch.com#readme",
  "devDependencies": {
    "@parcel/packager-raw-url": "v2.0.0-rc.0",
    "@parcel/transformer-image": "^2.0.0-rc.0",
    "@parcel/transformer-pug": "v2.0.0-rc.0",
    "@parcel/transformer-sass": "v2.0.0-rc.0",
    "@parcel/transformer-vue": "v2.0.0-rc.0",
    "@parcel/transformer-webmanifest": "v2.0.0-rc.0",
    "fontawesome-subset": "^2.0.0",
    "parcel": "^2.0.0-rc.0",
    "sharp": "^0.29.0"
  },
  "alias": {
    "vue": "./node_modules/vue/dist/vue.esm-bundler.js"
  },
  "dependencies": {
    "@fortawesome/fontawesome-free": "^5.15.4",
    "@popperjs/core": "^2.9.2",
    "blueimp-md5": "^2.18.0",
    "bootstrap": "^5.0.2",
    "html2pug": "^4.0.0",
    "vue": "^3.2.4",
    "vue-router": "^4.0.11"
  }
}

Again, I’m not asking for anything here and you are free to work on other people’s issues. I mean, I’m only using the free account. :wink:


Well, I had to remove some links because “…new users can only put 6 links in a post.”.

Well, shoot. I just learned that the builds I linked to are private and since when I linked the repo it was private I don’t have the option to allow access.

Thanks to @coelmay for the help… indirectly… to another person… on another thread. :slight_smile:

I’ll post the last deploy log here shortly.

1 Like

Something’s wrong with the copy button. I clicked it, it said “Copied” but all I get when I paste is:

Loading
2:35:35 AM: Build ready to start
2:35:37 AM: build-image version: fa439ad1ab9393b2c0d449d8d7c033927683f4b0
2:35:37 AM: build-image tag: v4.3.0
2:35:37 AM: buildbot version: d2795bf5a96b85e585e90944f15f15381ce164a7
2:35:37 AM: Fetching cached dependencies
2:35:37 AM: Starting to download cache of 340.1MB
2:35:45 AM: Finished downloading cache in 8.105311868s
2:35:45 AM: Starting to extract cache
2:35:55 AM: Finished extracting cache in 9.4777231s
2:35:55 AM: Finished fetching cache in 17.669889282s
2:35:55 AM: Starting to prepare the repo for build
2:35:55 AM: Preparing Git Reference refs/heads/main
2:35:57 AM: Parsing package.json dependencies
2:35:57 AM: 
​
❯ Initial build environment
baseRelDir: true
branch: main
context: production
cwd: /opt/build/repo
featureFlags: []
mode: buildbot
repositoryRoot: /opt/build/repo
siteId: 43f18666-4027-4030-92e3-e2b99449b68e
​
❯ UI build settings
baseRelDir: true
build:
  command: npm run build
  environment:
    - NETLIFY_BUILD_DEBUG
  publish: dist
​
❯ Resolved build environment
branch: main
buildDir: /opt/build/repo
context: production
env: []
​
❯ Resolved config
build:
  command: npm run build
  commandOrigin: ui
  environment:
    - NETLIFY_BUILD_DEBUG
  publish: /opt/build/repo/dist
  publishOrigin: ui

2:35:57 AM: Starting build script
2:35:57 AM: Installing dependencies
2:35:57 AM: Python version set to 2.7
2:35:58 AM: Started restoring cached node version
2:36:00 AM: Finished restoring cached node version
2:36:00 AM: Attempting node version 'v15.4.0' from .node-version
2:36:00 AM: v15.4.0 is already installed.
2:36:01 AM: Now using node v15.4.0 (npm v7.0.15)
2:36:01 AM: Started restoring cached build plugins
2:36:01 AM: Finished restoring cached build plugins
2:36:01 AM: Attempting ruby version 2.7.2, read from environment
2:36:02 AM: Using ruby version 2.7.2
2:36:03 AM: Using PHP version 8.0
2:36:03 AM: Started restoring cached node modules
2:36:03 AM: Finished restoring cached node modules
2:36:03 AM: Installing NPM modules using NPM version 7.0.15
2:36:32 AM: added 37 packages, removed 2 packages, changed 3 packages, and audited 996 packages in 29s
2:36:32 AM: 140 packages are looking for funding
2:36:32 AM:   run `npm fund` for details
2:36:33 AM: 3 moderate severity vulnerabilities
2:36:33 AM: Some issues need review, and may require choosing
2:36:33 AM: a different dependency.
2:36:33 AM: Run `npm audit` for details.
2:36:33 AM: NPM modules installed
2:36:33 AM: Started restoring cached go cache
2:36:34 AM: Finished restoring cached go cache
2:36:34 AM: Installing Go version 1.14.4
2:36:34 AM: unset GOOS;
2:36:34 AM: unset GOARCH;
2:36:34 AM: export GOROOT='/opt/buildhome/.gimme_cache/versions/go1.14.4.linux.amd64';
2:36:34 AM: export PATH="/opt/buildhome/.gimme_cache/versions/go1.14.4.linux.amd64/bin:${PATH}";
2:36:34 AM: go version >&2;
2:36:34 AM: export GIMME_ENV='/opt/buildhome/.gimme_cache/env/go1.14.4.linux.amd64.env';
2:36:34 AM: go version go1.14.4 linux/amd64
2:36:34 AM: Installing missing commands
2:36:34 AM: Verify run directory
2:36:36 AM: ​
2:36:36 AM: ────────────────────────────────────────────────────────────────
2:36:36 AM:   Netlify Build                                                 
2:36:36 AM: ────────────────────────────────────────────────────────────────
2:36:36 AM: ​
2:36:36 AM: ❯ Version
2:36:36 AM:   @netlify/build 18.5.0
2:36:36 AM: ​
2:36:36 AM: ❯ Flags
2:36:36 AM:   apiHost: api.netlify.com
2:36:36 AM:   baseRelDir: true
2:36:36 AM:   branch: main
2:36:36 AM:   buildId: 61274447260ce600088a3cb9
2:36:36 AM:   buildbotServerSocket: /tmp/netlify-buildbot-socket
2:36:36 AM:   cacheDir: /opt/build/cache
2:36:36 AM:   cachedConfigPath: /tmp/netlify_config.json
2:36:36 AM:   context: production
2:36:36 AM:   cwd: /opt/build/repo
2:36:36 AM:   deployId: 61274447260ce600088a3cbb
2:36:36 AM:   featureFlags:
2:36:36 AM:     - zisiEsbuildDynamicImports
2:36:36 AM:   framework: parcel
2:36:36 AM:   functionsDistDir: /tmp/zisi-61274447260ce600088a3cbb
2:36:36 AM:   mode: buildbot
2:36:36 AM:   nodePath: /opt/buildhome/.nvm/versions/node/v15.4.0/bin/node
2:36:36 AM:   repositoryRoot: /opt/build/repo
2:36:36 AM:   saveConfig: true
2:36:36 AM:   sendStatus: true
2:36:36 AM:   siteId: 43f18666-4027-4030-92e3-e2b99449b68e
2:36:36 AM:   statsd:
2:36:36 AM:     host: datadog-agent
2:36:36 AM:     port: 8125
2:36:36 AM:   testOpts:
2:36:36 AM:     silentLingeringProcesses: ''
2:36:36 AM: ​
2:36:36 AM: ❯ Current directory
2:36:36 AM:   /opt/build/repo
2:36:36 AM: ​
2:36:36 AM: ❯ Config file
2:36:36 AM:   No config file was defined: using default values.
2:36:36 AM: ​
2:36:36 AM: ❯ Resolved config
2:36:36 AM:   build:
2:36:36 AM:     command: npm run build
2:36:36 AM:     commandOrigin: ui
2:36:36 AM:     environment:
2:36:36 AM:       - NETLIFY_BUILD_DEBUG
2:36:36 AM:     publish: /opt/build/repo/dist
2:36:36 AM:     publishOrigin: ui
2:36:36 AM: ​
2:36:36 AM: ❯ Context
2:36:36 AM:   production
2:36:36 AM: ​
2:36:36 AM: ────────────────────────────────────────────────────────────────
2:36:36 AM:   1. Build command from Netlify app                             
2:36:36 AM: ────────────────────────────────────────────────────────────────
2:36:36 AM: ​
2:36:36 AM: $ npm run build
2:36:36 AM: > adamkoch.com@0.6.2 build
2:36:36 AM: > cp -R src/assets/* dist/ && parcel build ./src/index.pug './src/**/index.pug'
2:36:37 AM: Building...
2:36:51 AM: Bundling...
2:36:51 AM: Packaging & Optimizing...
2:37:09 AM: ✨ Built in 32.52s
2:37:09 AM: dist/index.html                                              34.31 KB    17.46s
2:37:09 AM: dist/cropped-brainscan-copy-2.94b0a7e6.jpg                   40.72 KB    12.04s
2:37:09 AM: dist/apple-touch-icon.b4dcf083.png                           32.24 KB     5.65s
2:37:09 AM: dist/favicon-32x32.f71f739d.png                                1.8 KB    12.04s
2:37:09 AM: dist/favicon-16x16.2724783a.png                                 677 B     5.65s
2:37:09 AM: dist/site.webmanifest                                           296 B    12.05s
2:37:09 AM: dist/android-chrome-192x192.6e9cef1e.png                     35.99 KB     5.65s
2:37:09 AM: dist/android-chrome-512x512.7feb339a.png                    218.69 KB    12.04s
2:37:09 AM: dist/index.089237ca.css                                     217.33 KB    17.31s
2:37:09 AM: dist/cropped-brainscan-copy-2.94b0a7e6.jpg                   40.72 KB    12.04s
2:37:09 AM: dist/fa-brands-400.e4f790e7.eot                             131.15 KB     5.65s
2:37:09 AM: dist/fa-brands-400.e4f790e7.eot                             131.15 KB    12.04s
2:37:09 AM: dist/fa-brands-400.0b52c614.woff2                            74.94 KB     5.65s
2:37:09 AM: dist/fa-brands-400.a0b02584.woff                             87.88 KB    12.04s
2:37:09 AM: dist/fa-brands-400.81da6092.ttf                             130.85 KB     5.65s
2:37:09 AM: dist/fa-brands-400.068b1299.svg                              463.6 KB    13.94s
2:37:09 AM: dist/fa-regular-400.530b4f61.eot                             33.24 KB     5.65s
2:37:09 AM: dist/fa-regular-400.530b4f61.eot                             33.24 KB    12.04s
2:37:09 AM: dist/fa-regular-400.5bedcec6.woff2                           12.91 KB     5.65s
2:37:09 AM: dist/fa-regular-400.09c79cc5.woff                            15.89 KB    12.04s
2:37:09 AM: dist/fa-regular-400.963ebff5.ttf                             32.95 KB     5.65s
2:37:09 AM: dist/fa-regular-400.a55d9c35.svg                            101.79 KB    13.94s
2:37:09 AM: dist/fa-solid-900.6b1a037a.eot                              198.27 KB     5.65s
2:37:09 AM: dist/fa-solid-900.6b1a037a.eot                              198.27 KB    12.04s
2:37:09 AM: dist/fa-solid-900.6002b354.woff2                             76.43 KB     5.65s
2:37:09 AM: dist/fa-solid-900.80005ece.woff                              99.27 KB    12.04s
2:37:09 AM: dist/fa-solid-900.67ecc626.ttf                              197.99 KB     5.65s
2:37:09 AM: dist/fa-solid-900.45f46c3e.svg                               648.4 KB    13.94s
2:37:09 AM: dist/index.c0ba1f2b.js                                       84.04 KB    14.93s
2:37:09 AM: dist/index.ce28c923.js                                      124.98 KB    13.63s
2:37:09 AM: dist/design/index.html                                       37.88 KB    17.46s
2:37:09 AM: dist/Canadian_Maple_Leaf.f14223f0.png                         7.59 KB    12.04s
2:37:09 AM: dist/oak_leaf.19d50620.png                                    5.04 KB     5.65s
2:37:09 AM: dist/oak_leaf2.e0c27bf8.png                                   6.39 KB    12.04s
2:37:09 AM: dist/ornament.8890977b.png                                    8.94 KB     5.65s
2:37:09 AM: dist/snowman.7a815672.png                                    10.26 KB    12.04s
2:37:09 AM: dist/A_words_20181008.9112d575.png                           82.44 KB     5.65s
2:37:09 AM: dist/A_words_20181008.2x.e1bb03d1.png                       161.95 KB    12.04s
2:37:09 AM: dist/A_words_20200217.4393da6d.png                          100.42 KB     5.65s
2:37:09 AM: dist/A_words_20200217.2x.ea60cae5.png                       214.12 KB    12.04s
2:37:09 AM: dist/design3_80.b6cc38d3.webp                               303.67 KB     5.65s
2:37:09 AM: dist/design3_80.2x.be281a80.webp                            566.15 KB    12.04s
2:37:09 AM: dist/design3_80.d2a6bd63.png                                118.04 KB     5.65s
2:37:09 AM: dist/design3_80.b7f121bd.png                                382.81 KB    12.04s
2:37:09 AM: dist/quote.fc4c35c5.webp                                     17.85 KB     5.65s
2:37:09 AM: dist/quote.fc4c35c5.webp                                     17.85 KB    12.04s
2:37:09 AM: dist/quote.32f1021c.png                                      59.42 KB     5.65s
2:37:09 AM: dist/quote.cad525ba.png                                     175.38 KB    12.04s
2:37:09 AM: dist/sonshine.4503ef01.webp                                  40.47 KB     5.65s
2:37:09 AM: dist/sonshine.4503ef01.webp                                  40.47 KB    12.04s
2:37:09 AM: dist/sonshine.81cbb1f0.png                                   25.75 KB     5.65s
2:37:09 AM: dist/sonshine.bd7e488e.png                                   69.18 KB    12.04s
2:37:09 AM: dist/design/index.6461d37c.js                                76.73 KB    14.93s
2:37:09 AM: dist/jq/index.html                                           36.65 KB    15.14s
2:37:09 AM: dist/past_projects/index.html                                48.29 KB    17.45s
2:37:09 AM: dist/headphone_table_holder.7a640315.png                     459.5 KB    12.04s
2:37:09 AM: dist/laptop_stand_preview.d5c1c82e.png                       21.14 KB     5.65s
2:37:09 AM: dist/AA_battery_holder.d7c4f532.jpeg                        227.36 KB    12.04s
2:37:09 AM: dist/IMG_7004.b3ed3679.JPG                                  219.13 KB     5.65s
2:37:09 AM: dist/turkish_spindle.94bf2ce1.jpg                            42.75 KB    12.04s
2:37:09 AM: dist/chair_piece_rendering.fae1cb59.png                     661.85 KB    12.46s
2:37:09 AM: dist/chair_piece_installed.53d00573.jpg                     934.69 KB    12.46s
2:37:09 AM: dist/pop_can_holder.30eb7aa1.jpg                            581.46 KB    12.46s
2:37:09 AM: dist/IMG_7050.9c218701.JPG                                  199.75 KB    12.46s
2:37:09 AM: dist/monitor_arm_5_v22.a950cb20.jpg                          28.22 KB    12.46s
2:37:09 AM: dist/car_phone_plug_iphone_outside.775f0e4f.png             452.34 KB    12.46s
2:37:09 AM: dist/car_phone_plug_iphone_v31.dd708fd9.png                 352.32 KB    12.46s
2:37:09 AM: dist/mobius_ball_v7.aeffef11.png                            255.43 KB    12.47s
2:37:09 AM: dist/posts/index.html                                        35.27 KB    17.45s
2:37:09 AM: dist/posts/index.3f5b0585.js                                226.83 KB    14.93s
2:37:09 AM: dist/projects/index.html                                     35.97 KB    17.45s
2:37:09 AM: dist/tech/index.html                                         35.87 KB    17.45s
2:37:09 AM: dist/projects/swampfan/index.html                            35.23 KB    17.45s
2:37:09 AM: dist/2009/07/25/white-space-and-character-160/index.html     33.31 KB    17.45s
2:37:09 AM: dist/char160test.html                                         1.58 KB    17.45s
2:37:09 AM: Segmentation fault
2:37:09 AM: npm ERR! code 139
2:37:09 AM: npm ERR! path /opt/build/repo
2:37:09 AM: npm ERR! command failed
2:37:09 AM: npm ERR! command sh -c cp -R src/assets/* dist/ && parcel build ./src/index.pug './src/**/index.pug'
2:37:09 AM: npm ERR! A complete log of this run can be found in:
2:37:09 AM: npm ERR!     /opt/buildhome/.npm/_logs/2021-08-26T07_37_09_461Z-debug.log
2:37:09 AM: ​
2:37:09 AM: ────────────────────────────────────────────────────────────────
2:37:09 AM:   "build.command" failed                                        
2:37:09 AM: ────────────────────────────────────────────────────────────────
2:37:09 AM: ​
2:37:09 AM:   Error message
2:37:09 AM:   Command failed with exit code 139: npm run build
2:37:09 AM: ​
2:37:09 AM:   Error location
2:37:09 AM:   In Build command from Netlify app:
2:37:09 AM:   npm run build
2:37:09 AM: ​
2:37:09 AM:   Resolved config
2:37:09 AM:   build:
2:37:09 AM:     command: npm run build
2:37:09 AM:     commandOrigin: ui
2:37:09 AM:     environment:
2:37:09 AM:       - NETLIFY_BUILD_DEBUG
2:37:09 AM:     publish: /opt/build/repo/dist
2:37:09 AM:     publishOrigin: ui
2:37:09 AM: Caching artifacts
2:37:09 AM: Started saving node modules
2:37:09 AM: Finished saving node modules
2:37:09 AM: Started saving build plugins
2:37:09 AM: Finished saving build plugins
2:37:09 AM: Started saving pip cache
2:37:09 AM: Finished saving pip cache
2:37:09 AM: Started saving emacs cask dependencies
2:37:09 AM: Finished saving emacs cask dependencies
2:37:09 AM: Started saving maven dependencies
2:37:09 AM: Finished saving maven dependencies
2:37:09 AM: Started saving boot dependencies
2:37:09 AM: Finished saving boot dependencies
2:37:09 AM: Started saving rust rustup cache
2:37:10 AM: Finished saving rust rustup cache
2:37:10 AM: Started saving go dependencies
2:37:11 AM: Finished saving go dependencies
2:37:11 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
2:37:11 AM: Creating deploy upload records
2:37:11 AM: Failing build: Failed to build site
2:37:11 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2
2:37:11 AM: Finished processing build request in 1m34.101965414s

Hi @aakoch,

It appears that you’ve already posted on the GitHub issue linked above.

While we don’t know what’s causing this exactly, we’d be definitely interested to know what works for you.

1 Like