Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building Failed. #69

Closed
h2kyaw opened this issue Sep 26, 2023 · 1 comment
Closed

Building Failed. #69

h2kyaw opened this issue Sep 26, 2023 · 1 comment

Comments

@h2kyaw
Copy link

h2kyaw commented Sep 26, 2023

Debug log_

11:23:45 AM: Netlify Build                                                 
11:23:45 AM: ────────────────────────────────────────────────────────────────
11:23:45 AM: ​
11:23:45 AM: ❯ Version
11:23:45 AM:   @netlify/build 29.21.1
11:23:45 AM: ​
11:23:45 AM: ❯ Flags
11:23:45 AM:   baseRelDir: true
11:23:45 AM:   buildId: 651263bfcbf1430edabef215
11:23:45 AM:   deployId: 651263bfcbf1430edabef217
11:23:45 AM: ​
11:23:45 AM: ❯ Current directory
11:23:45 AM:   /opt/build/repo
11:23:45 AM: ​
11:23:45 AM: ❯ Config file
11:23:45 AM:   /opt/build/repo/netlify.toml
11:23:45 AM: ​
11:23:45 AM: ❯ Context
11:23:45 AM:   production
11:23:45 AM: ​
11:23:45 AM: ❯ Installing plugins
11:23:45 AM:    - @netlify/[email protected]
11:23:52 AM: ​
11:23:52 AM: ❯ Loading plugins
11:23:52 AM:    - @netlify/[email protected] from Netlify app
11:23:52 AM:    - ./plugins/[email protected] from netlify.toml
11:23:54 AM: ​
11:23:54 AM: ./plugins/keep-data-cache (onPreBuild event)                  
11:23:54 AM: ────────────────────────────────────────────────────────────────
11:23:54 AM: ​
11:23:54 AM: ​
11:23:54 AM: (./plugins/keep-data-cache onPreBuild completed in 7ms)
11:23:54 AM: ​
11:23:54 AM: build.command from netlify.toml                               
11:23:54 AM: ────────────────────────────────────────────────────────────────
11:23:54 AM: ​
11:23:54 AM: $ npm run build-production
11:23:54 AM: > [email protected] build-production
11:23:54 AM: > npm run test-pages && npm run build && npm run zip-results
11:23:54 AM: > [email protected] test-pages
11:23:54 AM: > node run-tests
11:23:55 AM: There are no known last run timestamps
11:23:55 AM: Skipping ksvblog (you told me to in your site config)
11:23:55 AM: > [email protected] build
11:23:55 AM: > npx @11ty/eleventy --quiet
11:23:56 AM: [11ty] Copied 2 files / Wrote 5 files in 0.11 seconds (v2.0.1)
11:23:56 AM: > [email protected] zip-results
11:23:56 AM: > node zip-results.js
11:23:56 AM: node:child_process:929
11:23:56 AM:     throw err;
11:23:56 AM:     ^
11:23:56 AM: Error: Command failed: zip -r -y /opt/build/repo/_site/results.zip results
11:23:56 AM:     at checkExecSyncError (node:child_process:890:11)
11:23:56 AM:     at Object.execFileSync (node:child_process:926:15)
11:23:56 AM:     at Object.zipSync (/opt/build/repo/node_modules/cross-zip/index.js:81:6)
11:23:56 AM:     at Object.<anonymous> (/opt/build/repo/zip-results.js:7:5)
11:23:56 AM:     at Module._compile (node:internal/modules/cjs/loader:1256:14)
11:23:56 AM:     at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
11:23:56 AM:     at Module.load (node:internal/modules/cjs/loader:1119:32)
11:23:56 AM:     at Module._load (node:internal/modules/cjs/loader:960:12)
11:23:56 AM:     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:86:12) {
11:23:56 AM:   status: 12,
11:23:56 AM:   signal: null,
11:23:56 AM:   output: [
11:23:56 AM:     null,
11:23:56 AM:     Buffer(131) [Uint8Array] [
11:23:56 AM:         9, 122, 105, 112,  32, 119,  97, 114, 110, 105, 110, 103,
11:23:56 AM:        58,  32, 110,  97, 109, 101,  32, 110, 111, 116,  32, 109,
11:23:56 AM:        97, 116,  99, 104, 101, 100,  58,  32, 114, 101, 115, 117,
11:23:56 AM:       108, 116, 115,  10,  10, 122, 105, 112,  32, 101, 114, 114,
11:23:56 AM:       111, 114,  58,  32,  78, 111, 116, 104, 105, 110, 103,  32,
11:23:56 AM:       116, 111,  32, 100, 111,  33,  32,  40, 116, 114, 121,  58,
11:23:56 AM:        32, 122, 105, 112,  32,  45, 114,  32,  45, 121,  32,  47,
11:23:56 AM:       111, 112, 116,  47,  98, 117, 105, 108, 100,  47, 114, 101,
11:23:56 AM:       112, 111,  47,  95,
11:23:56 AM:       ... 31 more items
11:23:56 AM:     ],
11:23:56 AM:     Buffer(0) [Uint8Array] []
11:23:56 AM:   ],
11:23:56 AM:   pid: 4195,
11:23:56 AM:   stdout: Buffer(131) [Uint8Array] [
11:23:56 AM:       9, 122, 105, 112,  32, 119,  97, 114, 110, 105, 110, 103,
11:23:56 AM:      58,  32, 110,  97, 109, 101,  32, 110, 111, 116,  32, 109,
11:23:56 AM:      97, 116,  99, 104, 101, 100,  58,  32, 114, 101, 115, 117,
11:23:56 AM:     108, 116, 115,  10,  10, 122, 105, 112,  32, 101, 114, 114,
11:23:56 AM:     111, 114,  58,  32,  78, 111, 116, 104, 105, 110, 103,  32,
11:23:56 AM:     116, 111,  32, 100, 111,  33,  32,  40, 116, 114, 121,  58,
11:23:56 AM:      32, 122, 105, 112,  32,  45, 114,  32,  45, 121,  32,  47,
11:23:56 AM:     111, 112, 116,  47,  98, 117, 105, 108, 100,  47, 114, 101,
11:23:56 AM:     112, 111,  47,  95,
11:23:56 AM:     ... 31 more items
11:23:56 AM:   ],
11:23:56 AM:   stderr: Buffer(0) [Uint8Array] []
11:23:56 AM: }
11:23:56 AM: Node.js v18.18.0
11:23:56 AM: ​
11:23:56 AM: "build.command" failed                                        
11:23:56 AM: ────────────────────────────────────────────────────────────────
11:23:56 AM: ​
11:23:56 AM:   Error message
11:23:56 AM:   Command failed with exit code 1: npm run build-production (https://ntl.fyi/exit-code-1)
11:23:56 AM: ​
11:23:56 AM:   Error location
11:23:56 AM:   In build.command from netlify.toml:
11:23:56 AM:   npm run build-production
11:23:56 AM: ​
11:23:56 AM:   Resolved config
11:23:56 AM:   build:
11:23:56 AM:     command: npm run build-production
11:23:56 AM:     commandOrigin: config
11:23:56 AM:     environment:
11:23:56 AM:       - PUPPETEER_CACHE_DIR
11:23:56 AM:     publish: /opt/build/repo/_site
11:23:56 AM:     publishOrigin: config
11:23:56 AM:   headers:
11:23:57 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
11:23:57 AM: Failing build: Failed to build site
11:23:58 AM: Finished processing build request in 36.886s
11:23:57 AM: Failed during stage "building site": Build script returned non-zero exit code: 2
@h2kyaw
Copy link
Author

h2kyaw commented Sep 26, 2023

nvm, I made new _data/results folder as #66 Mentioned.

@h2kyaw h2kyaw closed this as completed Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant