This repository was archived by the owner on Jan 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Deploy failed due to an error in netlify-plugin-image-optim plugin. #33
Copy link
Copy link
Open
Description
Hello I tried to install image optim on Hugo v 0.69.2
and I tried to deploy it I got the error bellow also I tried to install it manually then also I got the same error here is my repo mistrysiddh
Plugin "netlify-plugin-image-optim" internal error
Error: Error in file: public/favicon.png
spawn /opt/build/repo/node_modules/optipng-bin/vendor/optipng ENOENT
In "onPostBuild" event in "netlify-plugin-image-optim" from netlify.toml and package.json at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19) at onErrorNT (internal/child_process.js:469:16) at processTicksAndRejections (internal/process/task_queues.js:84:21)
Error properties: { errno: 'ENOENT', code: 'ENOENT', syscall: 'spawn /opt/build/repo/node_modules/optipng-bin/vendor/optipng', path: '/opt/build/repo/node_modules/optipng-bin/vendor/optipng', spawnargs: [ '-strip', 'all', '-clobber', '-o', 3, '-out', '/tmp/ab939e58-8d09-40cb-a20a-6a08cf8924b8', '-fix', '/tmp/e7532af3-315b-437b-bd41-3079030a0859' ], killed: false, stdout: '', stderr: '', failed: true, signal: null, cmd: '/opt/build/repo/node_modules/optipng-bin/vendor/optipng -strip all -clobber -o 3 -out /tmp/ab939e58-8d09-40cb-a20a-6a08cf8924b8 -fix /tmp/e7532af3-315b-437b-bd41-3079030a0859', timedOut: false }
Deploy log
8:31:57 PM: Build ready to start
8:31:59 PM: build-image version: 53b83b6bede2920f236b25b6f5a95334320dc849
8:31:59 PM: build-image tag: v3.6.0
8:31:59 PM: buildbot version: 7d7f8cd4cc19a5205bae0ea8df58feec103fed05
8:31:59 PM: Building without cache
8:31:59 PM: Starting to prepare the repo for build
8:31:59 PM: No cached dependencies found. Cloning fresh repo
8:31:59 PM: git clone https://github.com/mrfoxie/mistrysiddh
8:32:03 PM: Preparing Git Reference refs/heads/master
8:32:06 PM: Starting build script
8:32:06 PM: Installing dependencies
8:32:06 PM: Python version set to 2.7
8:32:08 PM: v12.18.0 is already installed.
8:32:08 PM: Now using node v12.18.0 (npm v6.14.4)
8:32:08 PM: Started restoring cached build plugins
8:32:08 PM: Finished restoring cached build plugins
8:32:08 PM: Attempting ruby version 2.7.1, read from environment
8:32:10 PM: Using ruby version 2.7.1
8:32:10 PM: Using PHP version 5.6
8:32:10 PM: Installing Hugo 0.69.2
8:32:12 PM: Hugo Static Site Generator v0.69.2-EC9DCF30/extended linux/amd64 BuildDate: 2020-04-24T07:57:53Z
8:32:12 PM: Started restoring cached go cache
8:32:12 PM: Finished restoring cached go cache
8:32:12 PM: go version go1.14.4 linux/amd64
8:32:12 PM: go version go1.14.4 linux/amd64
8:32:12 PM: Installing missing commands
8:32:12 PM: Verify run directory
8:32:13 PM:
8:32:13 PM: ────────────────────────────────────────────────────────────────
8:32:13 PM: Netlify Build
8:32:13 PM: ────────────────────────────────────────────────────────────────
8:32:13 PM:
8:32:13 PM: ❯ Version
8:32:13 PM: @netlify/build 8.0.5
8:32:13 PM:
8:32:13 PM: ❯ Flags
8:32:13 PM: deployId: 6005a2e5ab6d7263c6aa77da
8:32:13 PM: mode: buildbot
8:32:14 PM:
8:32:14 PM: ❯ Current directory
8:32:14 PM: /opt/build/repo
8:32:14 PM:
8:32:14 PM: ❯ Config file
8:32:14 PM: /opt/build/repo/netlify.toml
8:32:14 PM:
8:32:14 PM: ❯ Context
8:32:14 PM: production
8:32:14 PM:
8:32:14 PM: ❯ Installing plugins
8:32:14 PM: - @netlify/[email protected]
8:32:14 PM: - [email protected]
8:32:17 PM:
8:32:17 PM: ❯ Loading plugins
8:32:17 PM: - @netlify/[email protected] from Netlify app
8:32:17 PM: - [email protected] from Netlify app
8:32:17 PM: - [email protected] from netlify.toml and package.json
8:32:19 PM:
8:32:19 PM: ────────────────────────────────────────────────────────────────
8:32:19 PM: 1. Build command from Netlify app
8:32:19 PM: ────────────────────────────────────────────────────────────────
8:32:19 PM:
8:32:19 PM: $ hugo
8:32:26 PM: Building sites …
8:32:26 PM: | EN | KO
8:32:26 PM: -------------------+-----+------
8:32:26 PM: Pages | 214 | 16
8:32:26 PM: Paginator pages | 3 | 0
8:32:26 PM: Non-page files | 0 | 0
8:32:26 PM: Static files | 192 | 192
8:32:26 PM: Processed images | 0 | 0
8:32:26 PM: Aliases | 55 | 1
8:32:26 PM: Sitemaps | 2 | 1
8:32:26 PM: Cleaned | 0 | 0
8:32:26 PM: Total in 6416 ms
8:32:26 PM:
8:32:26 PM: (build.command completed in 6.5s)
8:32:26 PM:
8:32:26 PM: ────────────────────────────────────────────────────────────────
8:32:26 PM: 2. onPostBuild command from @netlify/plugin-sitemap
8:32:26 PM: ────────────────────────────────────────────────────────────────
8:32:26 PM:
8:32:26 PM: Creating sitemap from files...
8:32:26 PM: Sitemap Built! sitemap.xml
8:32:26 PM:
8:32:26 PM: (@netlify/plugin-sitemap onPostBuild completed in 128ms)
8:32:26 PM:
8:32:26 PM: ────────────────────────────────────────────────────────────────
8:32:26 PM: 3. onPostBuild command from netlify-plugin-image-optim
8:32:26 PM: ────────────────────────────────────────────────────────────────
8:32:26 PM:
8:32:28 PM:
8:32:28 PM: ────────────────────────────────────────────────────────────────
8:32:28 PM: Plugin "netlify-plugin-image-optim" internal error
8:32:28 PM: ────────────────────────────────────────────────────────────────
8:32:28 PM:
8:32:28 PM: Error message
8:32:28 PM: Error: Error in file: public/favicon.png
8:32:28 PM:
8:32:28 PM: spawn /opt/build/repo/node_modules/optipng-bin/vendor/optipng ENOENT
8:32:28 PM:
8:32:28 PM: Plugin details
8:32:28 PM: Package: netlify-plugin-image-optim
8:32:28 PM: Version: 0.4.0
8:32:28 PM: Repository: git+https://github.com/chrisdwheatley/netlify-plugin-image-optim.git
8:32:28 PM: npm link: https://www.npmjs.com/package/netlify-plugin-image-optim
8:32:28 PM: Report issues: https://github.com/chrisdwheatley/netlify-plugin-image-optim/issues
8:32:28 PM:
8:32:28 PM: Error location
8:32:28 PM: In "onPostBuild" event in "netlify-plugin-image-optim" from netlify.toml and package.json
8:32:28 PM: at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
8:32:28 PM: at onErrorNT (internal/child_process.js:469:16)
8:32:28 PM: at processTicksAndRejections (internal/process/task_queues.js:84:21)
8:32:28 PM:
8:32:28 PM: Error properties
8:32:28 PM: {
8:32:28 PM: errno: 'ENOENT',
8:32:28 PM: code: 'ENOENT',
8:32:28 PM: syscall: 'spawn /opt/build/repo/node_modules/optipng-bin/vendor/optipng',
8:32:28 PM: path: '/opt/build/repo/node_modules/optipng-bin/vendor/optipng',
8:32:28 PM: spawnargs: [
8:32:28 PM: '-strip',
8:32:28 PM: 'all',
8:32:28 PM: '-clobber',
8:32:28 PM: '-o',
8:32:28 PM: 3,
8:32:28 PM: '-out',
8:32:28 PM: '/tmp/ab939e58-8d09-40cb-a20a-6a08cf8924b8',
8:32:28 PM: '-fix',
8:32:28 PM: '/tmp/e7532af3-315b-437b-bd41-3079030a0859'
8:32:28 PM: ],
8:32:28 PM: killed: false,
8:32:28 PM: stdout: '',
8:32:28 PM: stderr: '',
8:32:28 PM: failed: true,
8:32:28 PM: signal: null,
8:32:28 PM: cmd: '/opt/build/repo/node_modules/optipng-bin/vendor/optipng -strip all -clobber -o 3 -out /tmp/ab939e58-8d09-40cb-a20a-6a08cf8924b8 -fix /tmp/e7532af3-315b-437b-bd41-3079030a0859',
8:32:28 PM: timedOut: false
8:32:28 PM: }
8:32:28 PM:
8:32:28 PM: Resolved config
8:32:28 PM: build:
8:32:28 PM: command: hugo
8:32:28 PM: commandOrigin: ui
8:32:28 PM: environment:
8:32:28 PM: - HUGO_VERSION
8:32:28 PM: publish: /opt/build/repo/public
8:32:28 PM: plugins:
8:32:28 PM: - inputs: {}
8:32:28 PM: origin: ui
8:32:28 PM: package: '@netlify/plugin-sitemap'
8:32:28 PM: - inputs: {}
8:32:28 PM: origin: ui
8:32:28 PM: package: netlify-plugin-submit-sitemap
8:32:28 PM: - inputs: {}
8:32:28 PM: origin: config
8:32:28 PM: package: netlify-plugin-image-optim
8:32:28 PM: Caching artifacts
8:32:28 PM: Started saving node modules
8:32:28 PM: Finished saving node modules
8:32:28 PM: Started saving build plugins
8:32:28 PM: Finished saving build plugins
8:32:28 PM: Started saving pip cache
8:32:28 PM: Finished saving pip cache
8:32:28 PM: Started saving emacs cask dependencies
8:32:28 PM: Finished saving emacs cask dependencies
8:32:28 PM: Started saving maven dependencies
8:32:28 PM: Finished saving maven dependencies
8:32:28 PM: Started saving boot dependencies
8:32:28 PM: Finished saving boot dependencies
8:32:28 PM: Started saving rust rustup cache
8:32:28 PM: Finished saving rust rustup cache
8:32:28 PM: Started saving rust cargo bin cache
8:32:28 PM: Finished saving rust cargo bin cache
8:32:28 PM: Started saving go dependencies
8:32:28 PM: Finished saving go dependencies
8:32:31 PM: Build failed due to a plugin error: Build script returned non-zero exit code: 3
8:32:31 PM: Failing build: Failed to build site
8:32:31 PM: Failed during stage 'building site': Build script returned non-zero exit code: 3
8:32:31 PM: Finished processing build request in 32.456450735s
Metadata
Metadata
Assignees
Labels
No labels