No worries, looks like it’s back to working on our end! Thank you for the help.
Hi, we seem to have this issue as well. all our builds succeed on github actions and sites that never used netlify-plugin-gatsby-cache can be deployed but our sites that did use it fail when deploying to netlify even after removing it from the build process - case with Netlify Support (376536)
Hi there,
we’re also experiencing this issue, we were using the “netlify-plugin-gatsby-cache”, which we’ve removed after seeing this thread but it’s still failing to build. But it looks like after reading some of the other replies that it’s something that Netlify has to resolve on their end. Any assistance would be greatly appreciated, thanks.
I’ve removed the pinned version of the netlify-plugin-gatsby-cache plugin, you should be unblocked. Please let us know if you’re still having issues.
I’ve just followed up on your ticket, feel free to respond there with any additional concerns.
thanks sid! i think this is fixed. our content people are out for the evening so im not going to build their stuff atm. ill follow up on the ticket in the am on their stuff but removing the pinned plugins from the one site fixed it. Thanks again!
It looks like the issue was caused by a leftover or automatically added plugin (netlify-plugin-gatsby-cache
) that attempted an invalid file operation. Since Netlify support removed the plugin for you, a fresh redeploy should fix the problem. Let us know if the error persists after redeployment.
Hi Matthew,
we’re unfortunately still experiencing this issue after attempting a redeploy, we’re not seeing this plugin enabled on our end at the moment, so we’re not sure where it’s being pulled from. Any help would be greatly appreciated.
Plugin "netlify-plugin-gatsby-cache" internal error
CpyError: Cannot copy from .cache/adapters/node_modules/.bin/download-msgpackr-prebuilds to /opt/build/cache/cwd/.cache/adapters/node_modules/.bin/download-msgpackr-prebuilds: EISDIR: illegal operation on a directory '/opt/build/repo/.cache/adapters/node_modules/.bin/download-msgpackr-prebuilds'
In "onPostBuild" event in "netlify-plugin-gatsby-cache" from netlify.toml at pMap.concurrency.concurrency (file:///opt/buildhome/node-deps/node_modules/cpy/index.js:261:12) at async file:///opt/buildhome/node-deps/node_modules/p-map/index.js:121:20
Error properties: { errno: -21, code: 'EISDIR', source: '/opt/build/repo/.cache/adapters/node_modules/.bin/download-msgpackr-prebuilds' }
@b-h It looks like this plugin is listed in your netlify.toml
. Could you remove it from there and redeploy?
After recreating my project from scratch and updating the gatsby template source code, I am not getting the error anymore.
Suddenly I’ve got similar error but related to a different plugin:
8:20:57 AM: Plugin "@netlify/plugin-gatsby" internal error
8:20:57 AM: ────────────────────────────────────────────────────────────────
8:20:57 AM:
8:20:57 AM: Error message
8:20:57 AM: CpyError: Cannot copy from `.cache/adapters/node_modules/.bin/download-msgpackr-prebuilds` to `/opt/build/cache/cwd/.cache/adapters/node_modules/.bin/download-msgpackr-prebuilds`: EISDIR: illegal operation on a directory '/opt/build/repo/.cache/adapters/node_modules/.bin/download-msgpackr-prebuilds'
8:20:57 AM:
8:20:57 AM: Plugin details
8:20:57 AM: Package: @netlify/plugin-gatsby
8:20:57 AM: Version: 1.0.3
8:20:57 AM: Repository: git+https://github.com/netlify/netlify-plugin-gatsby.git
8:20:57 AM: npm link: https://www.npmjs.com/package/@netlify/plugin-gatsby
8:20:57 AM: Report issues: https://github.com/netlify/netlify-plugin-gatsby/issues
8:20:57 AM:
8:20:57 AM: Error location
8:20:57 AM: In "onPostBuild" event in "@netlify/plugin-gatsby" from Netlify app
8:20:57 AM: at pMap.concurrency.concurrency (file:///opt/buildhome/node-deps/node_modules/cpy/index.js:261:12)
8:20:57 AM: at async file:///opt/buildhome/node-deps/node_modules/p-map/index.js:121:20
8:20:57 AM:
8:20:57 AM: Error properties
8:20:57 AM: {
8:20:57 AM: errno: -21,
8:20:57 AM: code: 'EISDIR',
8:20:57 AM: source: '/opt/build/repo/.cache/adapters/node_modules/.bin/download-msgpackr-prebuilds'
8:20:57 AM: }
Any help would be appreciated.
I’ve sent this to the helpdesk. You should hear back soon.
For future readers, please open a ticket if you are getting a similar error on Netlify Support