gatsby build build hangs indefinitely when there are 0 pages/queries

Created on 2 Apr 2019  Β·  12Comments  Β·  Source: gatsbyjs/gatsby

Description

in circleci, my build hangs in machine and docker builds. in either case, it's a linux os:

+ DEBUG='gats*,cow*'
+ yarn build --verbose
yarn run v1.13.0
$ gatsby build --verbose
verbose 0.401 set gatsby_log_level: "verbose"
verbose 0.403 set gatsby_executing_command: "build"
verbose 0.404 loading local command from: /home/circleci/project/node_modules/gatsby/dist/commands/build.js
verbose 1.73 running command: build
success open and validate gatsby-configs β€” 0.005 s
success load plugins β€” 0.086 s
success onPreInit β€” 0.022 s
success delete html and css files from previous builds β€” 0.005 s
success initialize cache β€” 0.008 s
success copy gatsby files β€” 0.017 s
success onPreBootstrap β€” 0.009 s
success source and transform nodes β€” 0.023 s
success building schema β€” 0.089 s
success createPages β€” 0.000 s
success createPagesStatefully β€” 0.017 s
success onPreExtractQueries β€” 0.000 s
success update schema β€” 0.008 s
success extract queries from components β€” 0.008 s 
# and nothing else.  hangs.

Steps to reproduce

Expected result

success Building static HTML for pages

Actual result

hangs. works on osx!

Environment

+ npx gatsby info

  System:
    OS: Linux 4.4 Debian GNU/Linux 9 (stretch) 9 (stretch)
    CPU: (36) x64 Intel(R) Xeon(R) Platinum 8124M CPU @ 3.00GHz
    Shell: 4.4.12 - /bin/bash
  Binaries:
    Node: 11.9.0 - /usr/local/bin/node
    Yarn: 1.13.0 - /usr/local/bin/yarn
    npm: 6.5.0 - /usr/local/bin/npm
  Languages:
    Python: 2.7.13 - /usr/bin/python
stale? confirmed bug

All 12 comments

It looks like it's hanging in running graphql queries step. Not quite sure what could cause this, will try to reproduce on linux

I definitely can reproduce with your repo in ubuntu VM - will investigate.

One note, is that this doesn't happen with starters, so there has to be something specific in your site (or some dependencies in your site)

And also I can reproduce this on OSX as well - so doesn't seem linux specific. It most likely are some dependency changes - you don't have lock file checked in your repo, so those will use newest packages possible, but locally you probably have lock file that pins it to some version where it works

hmmmm you have 0 pages in your site. This is definitely bug in gatsby and we shouldn't get stuck when there is 0 pages. But after adding single page to it - it works.

Hiya!

This issue has gone quiet. Spooky quiet. πŸ‘»

We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here.

If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!

Thanks for being a part of the Gatsby community! πŸ’ͺπŸ’œ

Hiya!

This issue has gone quiet. Spooky quiet. πŸ‘»

We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here.

If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!

Thanks for being a part of the Gatsby community! πŸ’ͺπŸ’œ

Just got this issue on my netlify build.

Hey again!

It’s been 30 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 reopen 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!

oh @gatsbot you little eager closing troll ;) still an issue.

@cdaringe Remove .cache folder and try again. It will work.

@eadistar, since last time I suffered the issue, purging the cache did not work

clearing cache worked for me! thanks

i have this issue when our mono-repo's other project folders contain node_modules. If i delete them, it builds the pages and continues normally. I've tried using gatsby-plugin-exclude to ignore the files, but it doesn't help.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  Β·  3Comments

signalwerk picture signalwerk  Β·  3Comments

Oppenheimer1 picture Oppenheimer1  Β·  3Comments

benstr picture benstr  Β·  3Comments

3CordGuy picture 3CordGuy  Β·  3Comments