Hello! I’m looking for help deploying my site which keeps failing during the “Build” step. Below is the error that I’m getting. I’ve tried everything in the code 134 article, and everything that ChatGPT could tell me, including changing the max-old-space-size
and everything works fine locally. All my images and files are very small (largest is 113 kb) and there’s only about 10 asset files total, so I’m clueless.
Any help is greatly appreciated! Let me know if I need to provide more information. Thanks in advance!
5:36:16 PM: Netlify Build
5:36:16 PM: ────────────────────────────────────────────────────────────────
5:36:16 PM:
5:36:16 PM: ❯ Version
5:36:16 PM: @netlify/build 29.31.1
5:36:16 PM:
5:36:16 PM: ❯ Flags
5:36:16 PM: apiHost: api.netlify.com
5:36:16 PM: baseRelDir: true
5:36:16 PM: branch: main
5:36:16 PM: buildId: 657e2628fcc4910297016c18
5:36:16 PM: buildbotServerSocket: /tmp/netlify-buildbot-socket
5:36:16 PM: cacheDir: /opt/build/cache
5:36:16 PM: cachedConfigPath: /tmp/netlify_config.json
5:36:16 PM: context: production
5:36:16 PM: cwd: /opt/build/repo
5:36:16 PM: deployId: 657e2628fcc4910297016c1a
5:36:16 PM: edgeFunctionsDistDir: /tmp/edge-657e2628fcc4910297016c1a
5:36:16 PM: featureFlags:
5:36:16 PM: - buildbot_zisi_system_log
5:36:16 PM: - edge_functions_cache_cli
5:36:16 PM: - edge_functions_system_logger
5:36:16 PM: framework: astro
5:36:16 PM: functionsDistDir: /tmp/zisi-657e2628fcc4910297016c1a
5:36:16 PM: mode: buildbot
5:36:16 PM: nodePath: /opt/buildhome/.nvm/versions/node/v18.19.0/bin/node
5:36:16 PM: repositoryRoot: /opt/build/repo
5:36:16 PM: saveConfig: true
5:36:16 PM: sendStatus: true
5:36:16 PM: siteId: 0575181a-6114-4f76-82a6-2e14b1e9d4d3
5:36:16 PM: statsd:
5:36:16 PM: host: 10.71.146.213
5:36:16 PM: port: 8125
5:36:16 PM: systemLogFile: 3
5:36:16 PM: testOpts:
5:36:16 PM: silentLingeringProcesses: ""
5:36:16 PM: tracing:
5:36:16 PM: baggage-file-path: /tmp/baggage.dump
5:36:16 PM: baggageFilePath: /tmp/baggage.dump
5:36:16 PM: enabled: false
5:36:16 PM: host: 10.71.146.213
5:36:16 PM: parent-span-id: f20544b14f3c13a1
5:36:16 PM: parentSpanId: f20544b14f3c13a1
5:36:16 PM: preloading-enabled: true
5:36:16 PM: preloadingEnabled: true
5:36:16 PM: sample-rate: 4
5:36:16 PM: sampleRate: 4
5:36:16 PM: trace-flags: 0
5:36:16 PM: trace-id: 248017ecda962babf5c14278760d4fad
5:36:16 PM: traceFlags: 0
5:36:16 PM: traceId: 248017ecda962babf5c14278760d4fad
5:36:16 PM:
5:36:16 PM: ❯ Current directory
5:36:16 PM: /opt/build/repo
5:36:16 PM:
5:36:16 PM: ❯ Config file
5:36:16 PM: /opt/build/repo/netlify.toml
5:36:16 PM:
5:36:16 PM: ❯ Resolved config
5:36:16 PM: build:
5:36:16 PM: command: npm run build
5:36:16 PM: commandOrigin: config
5:36:16 PM: environment:
5:36:16 PM: - NETLIFY_BUILD_DEBUG
5:36:16 PM: - NODE_OPTIONS
5:36:16 PM: publish: /opt/build/repo/dist
5:36:16 PM: publishOrigin: config
5:36:16 PM: headers:
5:36:16 PM: - for: /assets/*
values:
Cache-Control: public, max-age=31536000, immutable
headersOrigin: config
5:36:16 PM: ❯ Context
5:36:16 PM: production
5:36:16 PM:
5:36:16 PM: build.command from netlify.toml
5:36:16 PM: ────────────────────────────────────────────────────────────────
5:36:16 PM:
5:36:16 PM: $ npm run build
5:36:17 PM: > @onwidget/astrowind@0.9.8 build
5:36:17 PM: > astro build
5:36:18 PM: 10:36:18 PM [content] No content directory found. Skipping type generation.
5:36:18 PM: 10:36:18 PM [build] output target: static
5:36:18 PM: 10:36:18 PM [build] Collecting build info...
5:36:18 PM: 10:36:18 PM [build] Completed in 435ms.
5:36:18 PM: 10:36:18 PM [build] Building static entrypoints...
5:36:20 PM: ramosheLogo_dark.png referenced in /opt/build/repo/src/assets/styles/base.css didn"t resolve at build time, it will remain unchanged to be resolved at runtime
5:36:20 PM: ramosheLogo_light.png referenced in /opt/build/repo/src/assets/styles/base.css didn"t resolve at build time, it will remain unchanged to be resolved at runtime
10:36:20 PM [build] Completed in 2.16s.
5:36:20 PM:
5:36:20 PM: building client
5:36:20 PM: Completed in 23ms.
5:36:20 PM:
5:36:20 PM:
5:36:20 PM: generating static routes
5:36:21 PM: ▶ src/pages/index.astro
5:36:21 PM: └─ /index.html (+534ms)
5:36:21 PM: ▶ src/pages/thankyou.astro
5:36:21 PM: └─ /thankyou/index.html (+73ms)
5:36:21 PM: ▶ src/pages/contact.astro
5:36:21 PM: └─ /contact/index.html (+20ms)
5:36:21 PM: ▶ src/pages/cookies.astro
5:36:21 PM: └─ /cookies/index.html (+69ms)
5:36:21 PM: ▶ src/pages/privacy.astro
5:36:21 PM: └─ /privacy/index.html (+14ms)
5:36:21 PM: λ src/pages/rss.xml.ts
5:36:21 PM: └─ /rss.xml (+8ms)
5:36:21 PM: ▶ src/pages/terms.astro
5:36:21 PM: └─ /terms/index.html (+13ms)
5:36:21 PM: ▶ src/pages/404.astro
5:36:21 PM: └─ /404.html (+5ms)
5:36:21 PM: optimizing 6 images in batches of 32
5:36:21 PM: munmap_chunk(): invalid pointer
5:36:21 PM: Aborted (core dumped)
5:36:21 PM:
5:36:21 PM: "build.command" failed
5:36:21 PM: ────────────────────────────────────────────────────────────────
5:36:21 PM:
5:36:21 PM: Error message
5:36:21 PM: Command failed with exit code 134: npm run build (https://ntl.fyi/exit-code-134)
5:36:21 PM:
5:36:21 PM: Error location
5:36:21 PM: In build.command from netlify.toml:
5:36:21 PM: npm run build
5:36:21 PM:
5:36:21 PM: Resolved config
5:36:21 PM: build:
5:36:21 PM: command: npm run build
5:36:21 PM: commandOrigin: config
5:36:21 PM: environment:
5:36:21 PM: - NETLIFY_BUILD_DEBUG
5:36:21 PM: - NODE_OPTIONS
5:36:21 PM: publish: /opt/build/repo/dist
5:36:21 PM: publishOrigin: config
5:36:21 PM: headers:
5:36:22 PM: - for: /assets/*
values:
Cache-Control: public, max-age=31536000, immutable
headersOrigin: config
5:36:22 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
5:36:22 PM: Failing build: Failed to build site
5:36:22 PM: Finished processing build request in 1m0.641s
5:36:22 PM: Failed during stage "building site": Build script returned non-zero exit code: 2