question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pages are not generated when building Gatsby V2

See original GitHub issue

Description

Sometimes when running gatsby build it seems as not all of our pages are generated but the build command does not report any errors. We have about ~20k pages, and there are approx 2/3 random pages that are missing sometimes

Steps to reproduce

Run gatsby build with new input data every hour for about a day, then suddenly some pages are not generated without any error code.

Expected result

All pages should be generated or gatsby should throw an error

Actual result

Some pages are missing in the final build

Environment

mhart/alpine-node:12.9

Sidenote, it seems as we have some memory issues as we occasionally run into the following error:

error Building static HTML failed for path \"/XXXX/yyyy/

However, running the build locally with the same input does not cause the same error at those times. It seems as that is the start of the problem, any builds after that but with the same .cache or public folder may risk of missing pages when building

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
marcus13371337commented, Mar 3, 2021

Yep, agree it’s hard to debug for both for us and even harder for you. I will try to get a minimal reproduction.

Not sure if it only happens on our build-server as I haven’t been rerunning the build-process over and over

0reactions
github-actions[bot]commented, May 5, 2021

Hey again!

It’s been 60 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m HUMAN_EMOTION_SORRY. Please feel free to comment on this issue or create a new one if you need anything else. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!

Thanks again for being part of the Gatsby community! 💪💜

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pages not generated in Gatsby v3 build · Issue #29946 - GitHub
If I do a clean develop run it generates the pages on first load and there's no error. For a clean build ,...
Read more >
Troubleshooting Common Errors - Gatsby
Problems with the cache · Errors with common plugin configurations. Installing plugins for styling results in Generating SSR bundle failed · Errors in...
Read more >
Gatsby not generate correct page - Stack Overflow
You are generating each page from the retrieved data and passing the id (to filter) in that template. Since you've moved the template...
Read more >
How to generate pages by createPages API with Gatsby.js
This tutorial will explore integrating Storyblok into a Gatsby.js site with createPages API and enabling the live preview in the Visual ...
Read more >
How To Use Static Files in Gatsby | DigitalOcean
This code serves as a Gatsby page component file that you will use to generate a public page at https://localhost/static-files-demo/ .
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found