Deploy Failed on netlify

hello what could cause this problem: 10:22:15 AM: Error: Error building site: process: readAndProcessContent: open /opt/build/repo/public/LICENSE: no such file or directory

im facing this issue on netlify every time i push a new article or changes

here is the full deploy log 10:21:58 AM: Build ready to start 10:22:00 AM: build-image version: b0258b965567defc4a2d7e2f2dec2e00c8f73ad6 10:22:00 AM: build-image tag: v3.4.1 10:22:00 AM: buildbot version: f208f75f13b26c64ea911ee34a5b41383e73cc40 10:22:00 AM: Fetching cached dependencies 10:22:01 AM: Starting to download cache of 92.6MB 10:22:02 AM: Finished downloading cache in 1.425730195s 10:22:02 AM: Starting to extract cache 10:22:04 AM: Finished extracting cache in 2.777853412s 10:22:04 AM: Finished fetching cache in 4.23081303s 10:22:04 AM: Starting to prepare the repo for build 10:22:05 AM: Preparing Git Reference refs/heads/master 10:22:06 AM: Starting build script 10:22:06 AM: Installing dependencies 10:22:06 AM: Python version set to 2.7 10:22:07 AM: Started restoring cached node version 10:22:10 AM: Finished restoring cached node version 10:22:11 AM: v12.18.0 is already installed. 10:22:11 AM: Now using node v12.18.0 (npm v6.14.4) 10:22:11 AM: Started restoring cached build plugins 10:22:11 AM: Finished restoring cached build plugins 10:22:12 AM: Attempting ruby version 2.7.1, read from environment 10:22:13 AM: Using ruby version 2.7.1 10:22:13 AM: Using PHP version 5.6 10:22:13 AM: 5.2 is already installed. 10:22:13 AM: Using Swift version 5.2 10:22:13 AM: Installing Hugo 0.74.0 10:22:14 AM: Hugo Static Site Generator v0.74.0-D2B11626/extended linux/amd64 BuildDate: 2020-07-13T10:39:17Z 10:22:14 AM: Started restoring cached go cache 10:22:14 AM: Finished restoring cached go cache 10:22:14 AM: go version go1.14.4 linux/amd64 10:22:14 AM: go version go1.14.4 linux/amd64 10:22:14 AM: Installing missing commands 10:22:14 AM: Verify run directory 10:22:15 AM: ​ 10:22:15 AM: ┌─────────────────────────────┐ 10:22:15 AM: │ Netlify Build │ 10:22:15 AM: └─────────────────────────────┘ 10:22:15 AM: ​ 10:22:15 AM: ❯ Version 10:22:15 AM: @netlify/build 4.5.2 10:22:15 AM: ​ 10:22:15 AM: ❯ Flags 10:22:15 AM: deployId: 5f75adc61a1c210008065604 10:22:15 AM: mode: buildbot 10:22:15 AM: ​ 10:22:15 AM: ❯ Current directory 10:22:15 AM: /opt/build/repo 10:22:15 AM: ​ 10:22:15 AM: ❯ Config file 10:22:15 AM: /opt/build/repo/netlify.toml 10:22:15 AM: ​ 10:22:15 AM: ❯ Context 10:22:15 AM: production 10:22:15 AM: ​ 10:22:15 AM: ┌────────────────────────────────────┐ 10:22:15 AM: │ 1. build.command from netlify.toml │ 10:22:15 AM: └────────────────────────────────────┘ 10:22:15 AM: ​ 10:22:15 AM: $ hugo --gc --minify 10:22:15 AM: Building sites … Total in 31 ms 10:22:15 AM: Error: Error building site: process: readAndProcessContent: open /opt/build/repo/public/LICENSE: no such file or directory 10:22:15 AM: ​ 10:22:15 AM: ┌─────────────────────────────┐ 10:22:15 AM: │ "build.command" failed │ 10:22:15 AM: └─────────────────────────────┘ 10:22:15 AM: ​ 10:22:15 AM: Error message 10:22:15 AM: Command failed with exit code 255: hugo --gc --minify 10:22:15 AM: ​ 10:22:15 AM: Error location 10:22:15 AM: In build.command from netlify.toml: 10:22:15 AM: hugo --gc --minify 10:22:15 AM: ​ 10:22:15 AM: Resolved config 10:22:15 AM: build: 10:22:15 AM: command: hugo --gc --minify 10:22:15 AM: commandOrigin: config 10:22:15 AM: environment: 10:22:15 AM: - HUGO_VERSION 10:22:15 AM: - HUGO_ENV 10:22:15 AM: - HUGO_ENABLEGITINFO 10:22:15 AM: processing: 10:22:15 AM: css: 10:22:15 AM: bundle: true 10:22:15 AM: minify: true 10:22:15 AM: html: 10:22:15 AM: pretty_urls: true 10:22:15 AM: images: 10:22:15 AM: compress: true 10:22:15 AM: js: 10:22:15 AM: bundle: true 10:22:15 AM: minify: true 10:22:15 AM: skip_processing: false 10:22:15 AM: publish: /opt/build/repo/public 10:22:15 AM: headers: 10:22:15 AM: - for: '*.js' 10:22:15 AM: values: 10:22:15 AM: Cache-Control: 'public, max-age=31536000' 10:22:15 AM: - for: '*.webp' 10:22:15 AM: values: 10:22:15 AM: Cache-Control: 'public, max-age=31536000' 10:22:15 AM: Caching artifacts 10:22:15 AM: Started saving build plugins 10:22:15 AM: Finished saving build plugins 10:22:15 AM: Started saving pip cache 10:22:15 AM: Finished saving pip cache 10:22:15 AM: Started saving emacs cask dependencies 10:22:15 AM: Finished saving emacs cask dependencies 10:22:15 AM: Started saving maven dependencies 10:22:16 AM: Finished saving maven dependencies 10:22:16 AM: Started saving boot dependencies 10:22:16 AM: Finished saving boot dependencies 10:22:16 AM: Started saving go dependencies 10:22:16 AM: Finished saving go dependencies 10:22:16 AM: Error running command: Build script returned non-zero exit code: 2 10:22:16 AM: Failing build: Failed to build site 10:22:16 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2 10:22:16 AM: Finished processing build request in 15.556810675s

this is my repo : https://github.com/SamHamou/Animoo

Delete this file or rename it to LICENSE.md or similar.

1 Like

thank you the issue was fixed

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.