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

Netlify deploy previews are failing to build #692

Closed
jmhbnz opened this issue Jun 4, 2023 · 2 comments · Fixed by #693
Closed

Netlify deploy previews are failing to build #692

jmhbnz opened this issue Jun 4, 2023 · 2 comments · Fixed by #693
Assignees
Labels
bug Something isn't working infrastructure Categorizes issue or PR as related to site infrastructure.

Comments

@jmhbnz
Copy link
Member

jmhbnz commented Jun 4, 2023

Recently our netlify deploy previews have been failing to build, example https://app.netlify.com/sites/etcd/deploys/647c5d107e85bc000792009c

Logs state:

9:45:30 PM: make: *** [Makefile:25: get-link-checker] Error 2
9:45:30 PM: ​
9:45:30 PM: "build.command" failed                                        
9:45:30 PM: ────────────────────────────────────────────────────────────────
9:45:30 PM: ​
9:45:30 PM:   Error message
9:45:30 PM:   Command failed with exit code 2: npm run build:preview (https://ntl.fyi/exit-code-2)
9:45:30 PM: ​
9:45:30 PM:   Error location
9:45:30 PM:   In build.command from netlify.toml:
9:45:30 PM:   npm run build:preview
9:45:30 PM: ​
9:45:30 PM:   Resolved config
9:45:30 PM:   build:
9:45:30 PM:     command: npm run build:preview
9:45:30 PM:     commandOrigin: config
9:45:30 PM:     environment:
9:45:30 PM:       - REVIEW_ID
9:45:30 PM:     publish: /opt/build/repo/public
9:45:30 PM:     publishOrigin: config
9:45:31 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
9:45:31 PM: Failing build: Failed to build site

However when I run npm install followed by npm run build:preview the process completes sucessfully.

@nate-double-u - Any ideas what might be going on here? If you can shed any light on what might be going wrong I'm happy to work on whatever fix is required 🙏🏻

@jmhbnz jmhbnz added bug Something isn't working infrastructure Categorizes issue or PR as related to site infrastructure. labels Jun 4, 2023
@jmhbnz jmhbnz self-assigned this Jun 4, 2023
@nate-double-u
Copy link
Contributor

It looks like the link checker is failing. As a workaround to get things going again we could disable it, but we should do an investigation as to why it's stopped (Especially since it seems to be working locally).

/cc @chalin

@chalin
Copy link
Contributor

chalin commented Jun 5, 2023

Looking into it now.

@chalin chalin self-assigned this Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working infrastructure Categorizes issue or PR as related to site infrastructure.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants