Skip to content

EPERM: operation not permitted #35086

@herecydev

Description

@herecydev

Preliminary Checks

Description

This can be replicated on multiple windows devices, although the error is random; sometimes it throws and sometimes the build is succesful. At a guess maybe 10-15% of the time we can see this.

This seems to only exhibit since 4.8.0+ so possibly related to typescript additions, looks like parcel is generating files in that area? gatsby clean is also not helping

Untitled

Reproduction Link

https://github.com/gatsbyjs/gatsby

Steps to Reproduce

  1. gatsby build

Expected Result

Does not fail

Actual Result

Fails

Environment

System:
    OS: Windows 10 10.0.19042
    CPU: (16) x64 AMD Ryzen 9 5950X 16-Core Processor            
  Binaries:
    Node: 16.14.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 3.1.0 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 8.3.1 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (98.0.1108.55)
  npmPackages:
    gatsby: ^4.9.2 => 4.9.2 
    gatsby-cypress: 2.9.0 => 2.9.0 
    gatsby-plugin-google-tagmanager: ^4.9.0 => 4.9.0 
    gatsby-plugin-image: ^2.9.0 => 2.9.0 
    gatsby-plugin-newrelic: ^2.2.2 => 2.2.2 
    gatsby-plugin-react-helmet: ^5.9.0 => 5.9.0 
    gatsby-plugin-remove-generator: ^1.2.0 => 1.2.0 
    gatsby-plugin-sharp: ^4.9.0 => 4.9.0 
    gatsby-plugin-sitemap: ^5.9.0 => 5.9.0 
    gatsby-plugin-styled-components: ^5.9.0 => 5.9.0 
    gatsby-plugin-webpack-bundle-analyser-v2: 1.1.26 => 1.1.26 
    gatsby-source-filesystem: ^4.9.0 => 4.9.0 
    gatsby-transformer-remark: ^5.9.0 => 5.9.0 
    gatsby-transformer-sharp: ^4.9.0 => 4.9.0 
  npmGlobalPackages:
    gatsby-cli: 4.5.2

Config Flags

PARALLEL_SOURCING: true,
PRESERVE_FILE_DOWNLOAD_CACHE: true,

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: confirmedIssue with steps to reproduce the bug that’s been verified by at least one reviewer.type: bugAn issue or pull request relating to a bug in Gatsby

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions