Deployment Error: /opt/build/repo/public: is a directory

Hi! I’m trying to deploy a site using netlify with Hugo, github.

I pushed my all hugo-theme files here (https://github.com/Yeonhoon/aether) in advance

I could not deploy my site, ‘Deploy log’ said

10:02:40 PM: Waiting for other deploys from your team to complete 10:03:36 PM: Build ready to start 10:03:38 PM: build-image version: ca811f47d4c1cbd1812d1eb6ecb0c977e86d1a1d 10:03:38 PM: build-image tag: v3.3.20 10:03:38 PM: buildbot version: be8ecf2af866e16fa4301cc5c14de2ccbbb21cf4 10:03:38 PM: Fetching cached dependencies 10:03:38 PM: Failed to fetch cache, continuing with build 10:03:38 PM: Starting to prepare the repo for build 10:03:38 PM: No cached dependencies found. Cloning fresh repo 10:03:38 PM: git clone https://github.com/Yeonhoon/aether 10:03:40 PM: Preparing Git Reference refs/heads/master 10:03:41 PM: Starting build script 10:03:41 PM: Installing dependencies 10:03:41 PM: Python version set to 2.7 10:03:43 PM: v12.18.0 is already installed. 10:03:44 PM: Now using node v12.18.0 (npm v6.14.4) 10:03:44 PM: Started restoring cached build plugins 10:03:44 PM: Finished restoring cached build plugins 10:03:44 PM: Attempting ruby version 2.7.1, read from environment 10:03:46 PM: Using ruby version 2.7.1 10:03:46 PM: Using PHP version 5.6 10:03:46 PM: 5.2 is already installed. 10:03:46 PM: Using Swift version 5.2 10:03:46 PM: Started restoring cached go cache 10:03:46 PM: Finished restoring cached go cache 10:03:46 PM: go version go1.14.4 linux/amd64 10:03:46 PM: go version go1.14.4 linux/amd64 10:03:46 PM: Installing missing commands 10:03:46 PM: Verify run directory 10:03:47 PM: ​ 10:03:47 PM: ┌─────────────────────────────┐ 10:03:47 PM: │ Netlify Build │ 10:03:47 PM: └─────────────────────────────┘ 10:03:47 PM: ​ 10:03:47 PM: ❯ Version 10:03:47 PM: @netlify/build 3.0.1 10:03:47 PM: ​ 10:03:47 PM: ❯ Flags 10:03:47 PM: deployId: 5f11a170d4a0f04622957564 10:03:47 PM: mode: buildbot 10:03:47 PM: ​ 10:03:47 PM: ❯ Current directory 10:03:47 PM: /opt/build/repo 10:03:47 PM: ​ 10:03:47 PM: ❯ Config file 10:03:47 PM: No config file was defined: using default values. 10:03:47 PM: ​ 10:03:47 PM: ❯ Context 10:03:47 PM: production 10:03:47 PM: ​ 10:03:47 PM: ┌───────────────────────────────────┐ 10:03:47 PM: │ 1. Build command from Netlify app │ 10:03:47 PM: └───────────────────────────────────┘ 10:03:47 PM: ​ 10:03:47 PM: $ hugo 10:03:48 PM: Building sites … ERROR 2020/07/17 13:03:48 failed to publish Resource: open /opt/build/repo/public: is a directory 10:03:48 PM: Total in 132 ms 10:03:48 PM: Error: Error building site: logged 1 error(s) 10:03:48 PM: ​ 10:03:48 PM: ┌─────────────────────────────┐ 10:03:48 PM: │ "build.command" failed │ 10:03:48 PM: └─────────────────────────────┘ 10:03:48 PM: ​ 10:03:48 PM: Error message 10:03:48 PM: Command failed with exit code 255: hugo 10:03:48 PM: ​ 10:03:48 PM: Error location 10:03:48 PM: In Build command from Netlify app: 10:03:48 PM: hugo 10:03:48 PM: ​ 10:03:48 PM: Resolved config 10:03:48 PM: build: 10:03:48 PM: command: hugo 10:03:48 PM: commandOrigin: ui 10:03:48 PM: publish: /opt/build/repo/public 10:03:48 PM: Caching artifacts 10:03:48 PM: Started saving build plugins 10:03:48 PM: Finished saving build plugins 10:03:48 PM: Started saving pip cache 10:03:48 PM: Finished saving pip cache 10:03:48 PM: Started saving emacs cask dependencies 10:03:48 PM: Finished saving emacs cask dependencies 10:03:48 PM: Started saving maven dependencies 10:03:48 PM: Finished saving maven dependencies 10:03:48 PM: Started saving boot dependencies 10:03:48 PM: Finished saving boot dependencies 10:03:48 PM: Started saving go dependencies 10:03:48 PM: Finished saving go dependencies 10:03:51 PM: Error running command: Build script returned non-zero exit code: 1 10:03:51 PM: Failing build: Failed to build site 10:03:51 PM: Failed during stage 'building site': Build script returned non-zero exit code: 1 10:03:51 PM: Finished processing build request in 13.689084686s

Could you let me know how to handle this error plz?

hi there, could you post the full log please?

Sure, I just edited it! Thanks!

hi there, i can’t actually see the full log, but this error does indicate you were trying to run multiple builds at once. Is this possible?