# Github Continuous Deployment Error 255

**URL:** <https://answers.netlify.com/t/github-continuous-deployment-error-255/1604>\
**Category:** Support\
**Tags:** git\
**Created:** [June 23, 2019, 6:48pm UTC](https://answers.netlify.com/t/github-continuous-deployment-error-255/1604 "2019-06-23T18:48:03Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bgrakca](https://avatars.discourse-cdn.com/v4/letter/b/e480ec/32.png) [@Bgrakca](https://answers.netlify.com/u/Bgrakca)\
**Post date:** [June 23, 2019, 6:48pm UTC](https://answers.netlify.com/t/github-continuous-deployment-error-255/1604/1 "2019-06-23T18:48:03Z")

</div>

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

```auto
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.

---

<div class="post-metadata">

**Author:** ![funkydan2](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/funkydan2/32/369_2.png) [@funkydan2](https://answers.netlify.com/u/funkydan2)\
**Post date:** [June 23, 2019, 9:47pm UTC](https://answers.netlify.com/t/github-continuous-deployment-error-255/1604/2 "2019-06-23T21:47:56Z")

</div>

I’m a little confused. [The repository you’re building from](https://github.com/Bugrakca/my-personal-hugo-site) doesn’t have a hugo site source in it. I’m not exactly sure what these lines mean…

```auto
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.

---

<div class="post-metadata">

**Author:** ![Bgrakca](https://avatars.discourse-cdn.com/v4/letter/b/e480ec/32.png) [@Bgrakca](https://answers.netlify.com/u/Bgrakca)\
**Post date:** [June 24, 2019, 12:20am UTC](https://answers.netlify.com/t/github-continuous-deployment-error-255/1604/3 "2019-06-24T00:20:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![TenSketch](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/tensketch/32/2579_2.png) [@TenSketch](https://answers.netlify.com/u/TenSketch)\
**Post date:** [August 28, 2019, 8:52am UTC](https://answers.netlify.com/t/github-continuous-deployment-error-255/1604/4 "2019-08-28T08:52:43Z")

</div>

i’m getting the same error.

my repo link, it has the errorlog.md file

[https://github.com/TenSketch/mysite](https://github.com/TenSketch/mysite)

kindly let me know what is the issue

---

<div class="post-metadata">

**Author:** ![fool](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/fool/32/37_2.png) [@fool](https://answers.netlify.com/u/fool)\
**Post date:** [August 29, 2019, 6:39pm UTC](https://answers.netlify.com/t/github-continuous-deployment-error-255/1604/5 "2019-08-29T18:39:12Z")

</div>

If it’s the same error, the same fix is needed 🙂 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 [Netlify App](https://app.netlify.com/sites/tensketch/deploys/5d6643b0300b22000830520a) so our community can provide the best help for you.

---

<div class="post-metadata">

**Author:** ![wasim](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/wasim/32/38096_2.png) [@wasim](https://answers.netlify.com/u/wasim)\
**Post date:** [November 7, 2019, 12:18pm UTC](https://answers.netlify.com/t/github-continuous-deployment-error-255/1604/6 "2019-11-07T12:18:32Z")

</div>

Hi,

I have the same issue, I have applied the suggested method but it is not working on my end:

Theme: [https://themes.gohugo.io/hugonews/](https://themes.gohugo.io/hugonews/)  
Repository: [https://github.com/wasim-ullah/brightin.me](https://github.com/wasim-ullah/brightin.me)  
Log: [Netlify App](https://app.netlify.com/sites/brightinme/deploys/5dc40aee5b0dc6000a37c6c0)

---

<div class="post-metadata">

**Author:** ![Dennis](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/dennis/32/34_2.png) [@Dennis](https://answers.netlify.com/u/Dennis)\
**Post date:** [November 7, 2019, 6:08pm UTC](https://answers.netlify.com/t/github-continuous-deployment-error-255/1604/7 "2019-11-07T18:08:57Z")

</div>

Hi @wasim, it looks like your build is failing due to the hugo version being less than 0.57.0. You’ll want to follow the steps described in our [documentation on common configurations](https://docs.netlify.com/configure-builds/common-configurations/#hugo) to set the correct Hugo version for your build.

---

<div class="post-metadata">

**Author:** ![Stradichenko](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/stradichenko/32/4628_2.png) [@Stradichenko](https://answers.netlify.com/u/Stradichenko)\
**Post date:** [December 6, 2019, 2:25pm UTC](https://answers.netlify.com/t/github-continuous-deployment-error-255/1604/8 "2019-12-06T14:25:29Z")

</div>

What would be the right way to write the hugo version in the Deploy and Build Settings of Netlify? The current latest is: HUGO\_VERSION “0.60.1”.

Should I leave in the build blank:  
HUGO\_VERSION?  
hugo\_0.60.1?  
hugo?  
Does Netlify always work with the latest version?

---

<div class="post-metadata">

**Author:** ![Dennis](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/dennis/32/34_2.png) [@Dennis](https://answers.netlify.com/u/Dennis)\
**Post date:** [December 7, 2019, 3:45pm UTC](https://answers.netlify.com/t/github-continuous-deployment-error-255/1604/9 "2019-12-07T15:45:55Z")

</div>

You’ll want to create an environment variable HUGO\_VERSION with the value of `0.60.1` to explicitly set the version of hugo used in your builds. Let me know if that works for you.

---

<div class="post-metadata">

**Author:** ![Stradichenko](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/stradichenko/32/4628_2.png) [@Stradichenko](https://answers.netlify.com/u/Stradichenko)\
**Post date:** [December 19, 2019, 4:30am UTC](https://answers.netlify.com/t/github-continuous-deployment-error-255/1604/10 "2019-12-19T04:30:30Z")

</div>

It did but I don’t know how to write it from an already created site, since it only gives you 1 blank space. I had to erase the thing and do an advanced settings (2 blanks spaces for HUGO\_VERSION and 0.60.1 with the instructions you indicated. Which worked like a charm.
