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

Build stuck at createPagesStatefully #3813

Closed
Graham42 opened this issue Feb 2, 2018 · 12 comments
Closed

Build stuck at createPagesStatefully #3813

Graham42 opened this issue Feb 2, 2018 · 12 comments

Comments

@Graham42
Copy link
Contributor

Graham42 commented Feb 2, 2018

Description

Build never finishes, gets stuck at createPagesStatefully

Environment

Gatsby version: 1.9.177
Node.js version: 8.9.4
Operating System: Ubuntu 16.04.3

File contents (if changed):

Nothing was changed.

Actual result

Build was stuck for 10 minutes until I killed it. Log:

success delete html files from previous builds — 0.040 s
success open and validate gatsby-config.js — 0.004 s
success copy gatsby files — 0.015 s
success onPreBootstrap — 0.005 s
success source and transform nodes — 0.014 s
success building schema — 0.068 s
success createLayouts — 0.023 s
success createPages — 0.000 s
⠐ createPagesStatefully^C

Expected behavior

Site should build.

Steps to reproduce

1. npm install -g gatsby

2. gatsby new gatsby-site && cd gatsby-site

3. gatsby build

@dannywils
Copy link
Contributor

Same behavior on Windows 10 (node v8.9.4)

@tomazy
Copy link
Contributor

tomazy commented Feb 2, 2018

Looks like this commit is the culprit: 6bbc0d1

@nsimonson
Copy link
Contributor

nsimonson commented Feb 2, 2018

@monsieurnebo
Copy link
Contributor

monsieurnebo commented Feb 2, 2018

Same here, our deployment via CircleCI is stuck since gatsby v1.9.177.

#!/bin/bash -eo pipefail
npm run build:dist

> @foo/bar@1.0.3 build:dist /home/circleci/project
> ./scripts/dist.sh

Running Gatsby's Webpack
 - Env  : development
 - Path : 
 - URI  : https://dev.foobar.fr
success delete html files from previous builds — 0.054 s
success open and validate gatsby-config.js — 0.007 s
success copy gatsby files — 0.023 s
success onPreBootstrap — 0.007 s
success source and transform nodes — 0.024 s
success building schema — 0.129 s
success createLayouts — 0.009 s
success createPages — 0.001 s
Too long with no output (exceeded 10m0s)

🚨

@situplastik
Copy link

situplastik commented Feb 2, 2018

Same error. I think as @tomazy and @nsimonson that the problem is this commit: 6bbc0d1

@Graham42
Copy link
Contributor Author

Graham42 commented Feb 2, 2018

Would be good to have some integration tests to prevent something like this from happening in the future... should I open a separate issue for that?

@m-allanson
Copy link
Contributor

@Graham42 There's plans for this but it's still a work in progress: #3242

@rdricco
Copy link

rdricco commented Feb 2, 2018

Same here on Gitlab CI.

@mpolinowski
Copy link

+1 Downgrading gatsby to v1.9.167 solved it for me. Thx m-allanson for the tip

@calcsam
Copy link
Contributor

calcsam commented Feb 2, 2018

Fixed here: 7bb93fe

@calcsam calcsam closed this as completed Feb 2, 2018
@Graham42
Copy link
Contributor Author

Graham42 commented Feb 2, 2018

Thanks all for the quick resolution.

@monsieurnebo
Copy link
Contributor

Thanks!

This was referenced Sep 5, 2021
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

10 participants