`ENOENT` error when deleting a file
ehmicky opened this issue · 0 comments
ehmicky commented
The following error is happening is several builds:
Error: ENOENT: no such file or directory, unlink '/tmp/3723555fb8e4f6ee3ed2809c8ef4a685/css/styles.css'
There is no stack trace unfortunately.
The full build logs:
4:21:29 PM: Build ready to start
4:21:31 PM: build-image version: b0258b965567defc4a2d7e2f2dec2e00c8f73ad6
4:21:31 PM: build-image tag: v3.4.1
4:21:31 PM: buildbot version: fcbc7a79f7372e5995cf02954ef19fc48d20c871
4:21:31 PM: Fetching cached dependencies
4:21:32 PM: Starting to download cache of 12.1MB
4:21:32 PM: Finished downloading cache in 358.896451ms
4:21:32 PM: Starting to extract cache
4:21:32 PM: Finished extracting cache in 159.688483ms
4:21:32 PM: Finished fetching cache in 522.807772ms
4:21:32 PM: Starting to prepare the repo for build
4:21:32 PM: Preparing Git Reference refs/heads/master
4:21:34 PM: Starting build script
4:21:34 PM: Installing dependencies
4:21:34 PM: Python version set to 2.7
4:21:35 PM: Downloading and installing node v10.22.0...
4:21:35 PM: Downloading https://nodejs.org/dist/v10.22.0/node-v10.22.0-linux-x64.tar.xz...
4:21:36 PM: Computing checksum with sha256sum
4:21:36 PM: Checksums matched!
4:21:38 PM: Now using node v10.22.0 (npm v6.14.6)
4:21:38 PM: Started restoring cached build plugins
4:21:38 PM: Finished restoring cached build plugins
4:21:38 PM: Attempting ruby version 2.6.2, read from environment
4:21:40 PM: Using ruby version 2.6.2
4:21:40 PM: Using PHP version 5.6
4:21:40 PM: 5.2 is already installed.
4:21:40 PM: Using Swift version 5.2
4:21:40 PM: Started restoring cached go cache
4:21:40 PM: Finished restoring cached go cache
4:21:40 PM: Installing Go version 1.12
4:21:46 PM: unset GOOS;
4:21:46 PM: unset GOARCH;
4:21:46 PM: export GOROOT='/opt/buildhome/.gimme_cache/versions/go1.12.linux.amd64';
4:21:46 PM: export PATH="/opt/buildhome/.gimme_cache/versions/go1.12.linux.amd64/bin:${PATH}";
4:21:46 PM: go version >&2;
4:21:46 PM: export GIMME_ENV="/opt/buildhome/.gimme_cache/env/go1.12.linux.amd64.env"
4:21:46 PM: go version go1.12 linux/amd64
4:21:46 PM: Installing missing commands
4:21:46 PM: Verify run directory
4:21:47 PM:
4:21:47 PM: ┌─────────────────────────────┐
4:21:47 PM: │ Netlify Build │
4:21:47 PM: └─────────────────────────────┘
4:21:47 PM:
4:21:47 PM: ❯ Version
4:21:47 PM: @netlify/build 3.3.0
4:21:47 PM:
4:21:47 PM: ❯ Flags
4:21:47 PM: deployId: 5f50fbe9b549c60008b23ff9
4:21:47 PM: mode: buildbot
4:21:47 PM:
4:21:47 PM: ❯ Current directory
4:21:47 PM: /opt/build/repo
4:21:47 PM:
4:21:47 PM: ❯ Config file
4:21:47 PM: /opt/build/repo/netlify.toml
4:21:47 PM:
4:21:47 PM: ❯ Context
4:21:47 PM: production
4:21:47 PM:
4:21:47 PM: ❯ Loading plugins
4:21:47 PM: - netlify-plugin-image-optim@0.3.0 from netlify.toml
4:21:47 PM: - netlify-plugin-inline-critical-css@1.1.3 from netlify.toml
4:21:55 PM:
4:21:55 PM: ┌────────────────────────────────────────────────────────┐
4:21:55 PM: │ 1. onPostBuild command from netlify-plugin-image-optim │
4:21:55 PM: └────────────────────────────────────────────────────────┘
4:21:55 PM:
4:21:58 PM: │ File │ Before │ After │ Reduction │
4:21:58 PM: ├─────────────────────────────────────────┼───────────┼───────────┼───────────┤
4:21:58 PM: │ /assets/img/builder.jpeg │ 196.29 KB │ 196.29 KB │ 0 B │
4:21:58 PM: │ /assets/img/buildersm.jpg │ 41.06 KB │ 41.06 KB │ 0 B │
4:21:58 PM: │ /assets/img/close-icon.svg │ 333 B │ 215 B │ 118 B │
4:21:58 PM: │ /assets/img/digital-marketing.png │ 49.6 KB │ 16.63 KB │ 32.97 KB │
4:21:58 PM: │ /assets/img/kitwe-marketing-bg.jpeg │ 49.79 KB │ 49.79 KB │ 0 B │
4:21:58 PM: │ /assets/img/kitwe-marketing-bgs.jpg │ 10.78 KB │ 10.78 KB │ 0 B │
4:21:58 PM: │ /assets/img/marketing.jpg │ 513.78 KB │ 513.78 KB │ 0 B │
4:21:58 PM: │ /assets/img/responsive.png │ 113.71 KB │ 38.7 KB │ 75 KB │
4:21:58 PM: │ /assets/img/web-design4.jpeg │ 172.1 KB │ 172.1 KB │ 0 B │
4:21:58 PM: │ /assets/img/web-design4.jpg │ 219.67 KB │ 219.67 KB │ 0 B │
4:21:58 PM: │ /assets/img/web-design4s.jpg │ 33.5 KB │ 33.5 KB │ 0 B │
4:21:58 PM: │ /assets/img/web-designer-large.jpeg │ 240.91 KB │ 240.91 KB │ 0 B │
4:21:58 PM: │ /assets/img/web-designer-small.jpg │ 43.26 KB │ 43.26 KB │ 0 B │
4:21:58 PM: │ /assets/img/wood1.jpeg │ 353.81 KB │ 353.81 KB │ 0 B │
4:21:58 PM: │ /assets/img/zambia-1.png │ 1.64 KB │ 844 B │ 835 B │
4:21:58 PM: │ /assets/img/zambia-2.png │ 2.74 KB │ 1.75 KB │ 1006 B │
4:21:58 PM: │ /assets/img/zambia-3.png │ 3.67 KB │ 1.59 KB │ 2.07 KB │
4:21:58 PM: │ /assets/img/zambiaflag.png │ 1.8 KB │ 1.8 KB │ 0 B │
4:21:58 PM: │ /assets/img/portfolio/design-finish.jpg │ 10.26 KB │ 10.26 KB │ 0 B │
4:21:58 PM: │ /assets/img/portfolio/price-website.jpg │ 15.96 KB │ 15.96 KB │ 0 B │
4:21:58 PM: │ /assets/img/portfolio/web-design3.jpg │ 28.08 KB │ 28.08 KB │ 0 B │
4:21:58 PM: ┌────────────────────────────────────────┐
4:21:58 PM: │ Images optimized - 111.96 KB saved │
4:21:58 PM: └────────────────────────────────────────┘
4:21:58 PM:
4:21:58 PM: (netlify-plugin-image-optim onPostBuild completed in 2.8s)
4:21:58 PM:
4:21:58 PM: ┌────────────────────────────────────────────────────────────────┐
4:21:58 PM: │ 2. onPostBuild command from netlify-plugin-inline-critical-css │
4:21:58 PM: └────────────────────────────────────────────────────────────────┘
4:21:58 PM:
4:22:06 PM:
4:22:06 PM: ┌────────────────────────────────────────────────────────────┐
4:22:06 PM: │ Plugin "netlify-plugin-inline-critical-css" internal error │
4:22:06 PM: └────────────────────────────────────────────────────────────┘
4:22:06 PM:
4:22:06 PM: Error message
4:22:06 PM: UnhandledRejection: a promise was rejected but not handled: Error: ENOENT: no such file or directory, unlink '/tmp/3723555fb8e4f6ee3ed2809c8ef4a685/css/styles.css'
4:22:06 PM: Error: ENOENT: no such file or directory, unlink '/tmp/3723555fb8e4f6ee3ed2809c8ef4a685/css/styles.css'
4:22:06 PM:
4:22:06 PM: Plugin details
4:22:06 PM: Package: netlify-plugin-inline-critical-css
4:22:06 PM: Version: 1.1.3
4:22:06 PM: Repository: git+https://github.com/Tom-Bonnike/netlify-plugin-inline-critical-css.git
4:22:06 PM: npm link: https://www.npmjs.com/package/netlify-plugin-inline-critical-css
4:22:06 PM: Report issues: https://github.com/Tom-Bonnike/netlify-plugin-inline-critical-css/issues
4:22:06 PM:
4:22:06 PM: Error location
4:22:06 PM: In "onPostBuild" event in "netlify-plugin-inline-critical-css" from netlify.toml
4:22:06 PM:
4:22:06 PM: Error properties
4:22:06 PM: {
4:22:06 PM: errno: -2,
4:22:06 PM: code: 'ENOENT',
4:22:06 PM: syscall: 'unlink',
4:22:06 PM: path: '/tmp/3723555fb8e4f6ee3ed2809c8ef4a685/css/styles.css'
4:22:06 PM: }
4:22:06 PM:
4:22:06 PM: Resolved config
4:22:06 PM: plugins:
4:22:06 PM: - inputs: {}
4:22:06 PM: origin: config
4:22:06 PM: package: netlify-plugin-image-optim
4:22:06 PM: - inputs:
4:22:06 PM: extract: false
4:22:06 PM: minify: true
4:22:06 PM: origin: config
4:22:06 PM: package: netlify-plugin-inline-critical-css
4:22:06 PM: Caching artifacts
4:22:06 PM: Started saving build plugins
4:22:06 PM: Finished saving build plugins
4:22:06 PM: Started saving pip cache
4:22:06 PM: Finished saving pip cache
4:22:06 PM: Started saving emacs cask dependencies
4:22:06 PM: Finished saving emacs cask dependencies
4:22:06 PM: Started saving maven dependencies
4:22:06 PM: Finished saving maven dependencies
4:22:06 PM: Started saving boot dependencies
4:22:06 PM: Finished saving boot dependencies
4:22:06 PM: Started saving go dependencies
4:22:08 PM: Finished saving go dependencies
4:22:11 PM: Error running command: Build script returned non-zero exit code: 1
4:22:11 PM: Failing build: Failed to build site
4:22:11 PM: Failed during stage 'building site': Build script returned non-zero exit code: 1
4:22:11 PM: Finished processing build request in 39.723799525s
The commit/repo is here.
Do you know what might be happening?