Github Continuous Deployment Error 255

Hello,
Im trying to use Github for CI but it doesn’t work.

9:31:02 PM: Build ready to start
9:31:05 PM: build-image version: 9e0f207a27642d0115b1ca97cd5e8cebbe492f63
9:31:05 PM: build-image tag: v3.3.2
9:31:05 PM: buildbot version: 75cd99f62ada9e21edea53208e8baf0eab85a045
9:31:05 PM: Fetching cached dependencies
9:31:05 PM: Failed to fetch cache, continuing with build
9:31:05 PM: Starting to prepare the repo for build
9:31:06 PM: No cached dependencies found. Cloning fresh repo
9:31:06 PM: git clone https://github.com/Bugrakca/my-personal-hugo-site
9:31:06 PM: Preparing Git Reference refs/heads/master
9:31:06 PM: Starting build script
9:31:06 PM: Installing dependencies
9:31:08 PM: Downloading and installing node v10.16.0...
9:31:08 PM: Downloading https://nodejs.org/dist/v10.16.0/node-v10.16.0-linux-x64.tar.xz...
9:31:09 PM: 
##
9:31:09 PM:   3.0%
9:31:09 PM: 
########################################################
9:31:09 PM: ####              83.4%
9:31:09 PM: 
############################
9:31:09 PM: ############################################ 100.0%
9:31:09 PM: Computing checksum with sha256sum
9:31:09 PM: Checksums matched!
9:31:12 PM: Now using node v10.16.0 (npm v6.9.0)
9:31:12 PM: Attempting ruby version 2.6.2, read from environment
9:31:13 PM: Using ruby version 2.6.2
9:31:14 PM: Using PHP version 5.6
9:31:14 PM: Started restoring cached go cache
9:31:14 PM: Finished restoring cached go cache
9:31:14 PM: unset GOOS;
9:31:14 PM: unset GOARCH;
9:31:14 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.12.linux.amd64';
9:31:14 PM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
9:31:14 PM: go version >&2;
9:31:14 PM: export GIMME_ENV='/opt/buildhome/.gimme/env/go1.12.linux.amd64.env';
9:31:14 PM: go version go1.12 linux/amd64
9:31:14 PM: Installing missing commands
9:31:14 PM: Verify run directory
9:31:14 PM: Executing user command: hugo --gc --minify
9:31:14 PM: Building sites …
9:31:14 PM: Total in 0 ms
9:31:14 PM: Error: Error building site: open /opt/build/repo/content: no such file or directory
9:31:14 PM: Skipping functions preparation step: no functions directory set
9:31:14 PM: Caching artifacts
9:31:14 PM: Started saving pip cache
9:31:14 PM: Finished saving pip cache
9:31:14 PM: Started saving emacs cask dependencies
9:31:14 PM: Finished saving emacs cask dependencies
9:31:14 PM: Started saving maven dependencies
9:31:14 PM: Finished saving maven dependencies
9:31:14 PM: Started saving boot dependencies
9:31:14 PM: Finished saving boot dependencies
9:31:14 PM: Started saving go dependencies
9:31:14 PM: Finished saving go dependencies
9:31:17 PM: Error running command: Build script returned non-zero exit code: 255
9:31:17 PM: failed during stage 'building site': Build script returned non-zero exit code: 255
9:31:17 PM: Failing build: Failed to build site
9:31:17 PM: Finished processing build request in 11.977556739s
9:31:17 PM: Shutting down logging, 0 messages pending

Every time, I’m getting these error, every time. Same as before. Is there any posibility to fix this error?

Tried:

  1. I tried create netlify.toml and fill inside the file to Hugo commands.
  2. I tried to use environment variable section in Build & Deploy. (Added to variable HUGO_VERSION)

I’m using Hugo v0.55.6/extended version.

Thank you.

I’m a little confused. The repository you’re building from doesn’t have a hugo site source in it. I’m not exactly sure what these lines mean…

9:31:17 PM: Error running command: Build script returned non-zero exit code: 255
9:31:17 PM: failed during stage 'building site': Build script returned non-zero exit code: 255

but I’m guessing it’s hugo throwing an error because it can’t find a valid directory config.toml and directory structure to build the site.

1 Like

Thank you for your reply. Works perfectly now! Thank you.

1 Like

i’m getting the same error.

my repo link, it has the errorlog.md file

https://github.com/TenSketch/mysite

kindly let me know what is the issue

If it’s the same error, the same fix is needed :slight_smile: I see that you got your builds working in the meantime so I guess you figured that out?

In the future please start with a link to your build logs like https://app.netlify.com/sites/tensketch/deploys/5d6643b0300b22000830520a so our community can provide the best help for you.