Closed guybowden closed 4 years ago
hmm — at first blush this looks like Gatsby got out of sync with itself somehow
if this were my site, I would:
npm outdated
to see if there are any packages that need updatesnpm update
to bump them to latestif that doesn't work, let me know and we can dig deeper into this
thanks!
I haven't seen any additional reports of this failure, and my sites are building properly, so I'm going to close this. please let me know if you're still hitting this issue!
I am encountering this issue at the moment. building on Netlify, trying to empty cache and rebuild, and seeing this part of the output:
3:53:04 PM: Fetch Contentful data: 14896.313ms
3:53:15 PM: success Checking for changed pages - 0.000s
3:53:15 PM: success source and transform nodes - 25.252s
3:53:19 PM: success building schema - 4.163s
3:53:20 PM: error "gatsby-node.js" threw an error while running the createPages lifecycle:
3:53:20 PM: ENOENT: no such file or directory, open '/opt/build/repo/.cache/contentful/assets/dunkin-2e781274fe09ee94ecf97835fb78087c.png'
this is rather frustrating, as I had hoped removing a previous asset that had been throwing the same error and replacing it with a new one would solve the issue. but alas, here we are. All of the contentful assets have been published -- I am going to see if removing the GATSBY_EXPERIMENTAL_PAGE_BUILD_ON_DATA_CHANGES
flag will at least allow a publish without issue.
removing the flag didn't help 😢
@imnotdannorton does it build if you disable this plugin? if a clear cache isn't working, that feels like it might be a contentful issue?
@jlengstorf thanks for the reply; I guess that's where I am getting confused, if Gatsby is getting the reference to this item from Contentful (where it does in fact exist, although the filename when uploaded does not have the hash at the end), what part of the build process is causing it to fail? the server trying to download it and put it in this build repo?
I commented here because I thought it had something to do with the cache, but it appears to have the same issue regardless whether or not it's enabled. I opened another issue earlier with the full logs here: https://github.com/gatsbyjs/gatsby/issues/28804
Just trying to debug what service is acting strange and how to go about adjusting. Seems odd that making a change to an asset in Contentful would cause this error. Thanks again!
unfortunately I don't know enough about how the Contentful plugin works to be useful here. if I had to guess, the plugin has some logic to generate assets and it's skipping the generation for some reason but tracking as if it's been generated?
good luck!
I'm not sure if this is a Gatsby issue, a netlify build issue, or this plugin, but I'm now seeing errors like this on cache enabled builds:
I have tried it without this plugin and it works fine. I've also tried it without netlify builds beta enabled and it works fine.
Local builds with and without
.cache
also work fine.Relevant gatsby deps:
Full build log below