Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

ENOTDIR error #19

Open
Open
@ehmicky

Description

@ehmicky

The following error is happening in some builds:

7:56:26 PM: Build ready to start
7:56:28 PM: build-image version: 30f629161c0736b1a3ecd8b418e5eeffab5c0faf
7:56:28 PM: build-image tag: v3.3.14
7:56:28 PM: buildbot version: a383ed3390159974f55f285b04457b44cb49efb0
7:56:28 PM: Fetching cached dependencies
7:56:28 PM: Starting to download cache of 254.3KB
7:56:28 PM: Finished downloading cache in 65.817082ms
7:56:28 PM: Starting to extract cache
7:56:28 PM: Failed to fetch cache, continuing with build
7:56:28 PM: Starting to prepare the repo for build
7:56:29 PM: No cached dependencies found. Cloning fresh repo
7:56:29 PM: git clone https://github.com/r-token/ryantoken.com
7:56:31 PM: Preparing Git Reference refs/heads/master
7:56:33 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'Output/index.html' versus 'index.html' in the Netlify UI
7:56:33 PM: Starting build script
7:56:33 PM: Installing dependencies
7:56:34 PM: Downloading and installing node v10.21.0...
7:56:34 PM: Downloading https://nodejs.org/dist/v10.21.0/node-v10.21.0-linux-x64.tar.xz...
7:56:35 PM: Computing checksum with sha256sum
7:56:35 PM: Checksums matched!
7:56:37 PM: Now using node v10.21.0 (npm v6.14.4)
7:56:37 PM: Started restoring cached build plugins
7:56:37 PM: Finished restoring cached build plugins
7:56:37 PM: Attempting ruby version 2.6.2, read from environment
7:56:39 PM: Using ruby version 2.6.2
7:56:39 PM: Using PHP version 5.6
7:56:39 PM: 5.2 is already installed.
7:56:39 PM: Using Swift version 5.2
7:56:39 PM: Started restoring cached go cache
7:56:39 PM: Finished restoring cached go cache
7:56:39 PM: go version go1.12 linux/amd64
7:56:39 PM: go version go1.12 linux/amd64
7:56:39 PM: Installing missing commands
7:56:39 PM: Verify run directory
7:56:40 PM: ​
7:56:40 PM: ┌─────────────────────────────┐
7:56:40 PM: │        Netlify Build        │
7:56:40 PM: └─────────────────────────────┘
7:56:41 PM: ​
7:56:41 PM: ❯ Version
7:56:41 PM:   @netlify/build 1.0.16
7:56:41 PM: ​
7:56:41 PM: ❯ Flags
7:56:41 PM:   mode: buildbot
7:56:41 PM: ​
7:56:41 PM: ❯ Current directory
7:56:41 PM:   /opt/build/repo/Output
7:56:41 PM: ​
7:56:41 PM: ❯ Config file
7:56:41 PM:   No config file was defined: using default values.
7:56:41 PM: ​
7:56:41 PM: ❯ Context
7:56:41 PM:   production
7:56:41 PM: ​
7:56:41 PM: ❯ Loading plugins
7:56:41 PM:    - netlify-plugin-image-optim@0.3.0 from Netlify app
7:56:42 PM: ​
7:56:42 PM: ┌────────────────────────────────────────────────────────┐
7:56:42 PM: │ 1. onPostBuild command from netlify-plugin-image-optim │
7:56:42 PM: └────────────────────────────────────────────────────────┘
7:56:42 PM: ​
7:56:42 PM: ​
7:56:42 PM: ┌────────────────────────────────────────────────────┐
7:56:42 PM: │ Plugin "netlify-plugin-image-optim" internal error │
7:56:42 PM: └────────────────────────────────────────────────────┘
7:56:42 PM: ​
7:56:42 PM:   Error message
7:56:42 PM:   Error: ENOTDIR: not a directory, stat '/opt/build/repo/Output/index.html/**/*.{gif,jpg,jpeg,png,svg}'
7:56:42 PM: ​
7:56:42 PM:   Plugin details
7:56:42 PM:   Package:        netlify-plugin-image-optim
7:56:42 PM:   Version:        0.3.0
7:56:42 PM:   Repository:     git+https://github.com/chrisdwheatley/netlify-plugin-image-optim.git
7:56:42 PM:   npm link:       https://www.npmjs.com/package/netlify-plugin-image-optim
7:56:42 PM:   Report issues:  https://github.com/chrisdwheatley/netlify-plugin-image-optim/issues
7:56:42 PM: ​
7:56:42 PM:   Error location
7:56:42 PM:   In "onPostBuild" event in "netlify-plugin-image-optim" from Netlify app
7:56:42 PM: ​
7:56:42 PM:   Error properties
7:56:42 PM:   {
7:56:42 PM:     errno: -20,
7:56:42 PM:     code: 'ENOTDIR',
7:56:42 PM:     syscall: 'stat',
7:56:42 PM:     path: '/opt/build/repo/Output/index.html/**/*.{gif,jpg,jpeg,png,svg}'
7:56:42 PM:   }
7:56:42 PM: ​
7:56:42 PM:   Resolved config
7:56:42 PM:   build:
7:56:42 PM:     base: /opt/build/repo/Output
7:56:42 PM:     publish: /opt/build/repo/Output/index.html
7:56:42 PM:   plugins:
7:56:42 PM:     - inputs: {}
7:56:42 PM:       origin: ui
7:56:42 PM:       package: netlify-plugin-image-optim
7:56:42 PM: Caching artifacts
7:56:42 PM: Started saving build plugins
7:56:42 PM: Finished saving build plugins
7:56:42 PM: Started saving pip cache
7:56:42 PM: Finished saving pip cache
7:56:42 PM: Started saving emacs cask dependencies
7:56:42 PM: Finished saving emacs cask dependencies
7:56:42 PM: Started saving maven dependencies
7:56:42 PM: Finished saving maven dependencies
7:56:42 PM: Started saving boot dependencies
7:56:42 PM: Finished saving boot dependencies
7:56:42 PM: Started saving go dependencies
7:56:42 PM: Finished saving go dependencies
7:56:45 PM: Error running command: Build script returned non-zero exit code: 1
7:56:45 PM: Failing build: Failed to build site
7:56:46 PM: Failed during stage 'building site': Build script returned non-zero exit code: 1
7:56:46 PM: Finished processing build request in 17.545908067s

The repository is this one.
Do you know what the error might be?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions