Git Lab to Netlify error

Hello,

I am newbie with Hugo and I need some help.

I try to put my hugo to netlify via GitLab but I’ve got this error :

12:53:43 AM: Build ready to start
12:53:45 AM: build-image version: 9e0f207a27642d0115b1ca97cd5e8cebbe492f63
12:53:45 AM: build-image tag: v3.3.2
12:53:45 AM: buildbot version: ef8d0929ed0baabafd8bbb7d0b021e1fc24180c0
12:53:45 AM: Fetching cached dependencies
12:53:45 AM: Failed to fetch cache, continuing with build
12:53:45 AM: Starting to prepare the repo for build
12:53:46 AM: No cached dependencies found. Cloning fresh repo
12:53:46 AM: git clone git@gitlab.com:ygharbi/simplonprodbloghugo
12:53:47 AM: Preparing Git Reference refs/heads/master
12:53:48 AM: Found netlify.toml. Overriding site configuration
12:53:48 AM: Starting build script
12:53:48 AM: Installing dependencies
12:53:49 AM: Downloading and installing node v10.16.1…
12:53:50 AM: Downloading https://nodejs.org/dist/v10.16.1/node-v10.16.1-linux-x64.tar.xz
12:53:51 AM: 0.0%
12:53:51 AM: 0.9%
12:53:51 AM:

3.7%

12:53:51 AM:

6.2

12:53:51 AM: %
12:53:51 AM:

12:53:51 AM: 9.0%
12:53:51 AM:
########
12:53:51 AM: 12.4%
12:53:51 AM:
########### 16
12:53:51 AM: .5%
12:53:51 AM:
############### 21.5%
12:53:51 AM:
################### 27.5%
12:53:51 AM:
########################
12:53:51 AM: 34.6%
12:53:52 AM:
###########################
12:53:52 AM: 37.6%
12:53:52 AM:
###########################
12:53:52 AM: 37.7%
12:53:52 AM:
############################
12:53:52 AM: 39.6%
12:53:52 AM:
##################################
12:53:52 AM: 47.3%
12:53:52 AM:
#######################################
12:53:52 AM: 54.8%
12:53:52 AM:
############################################## 64.4%
12:53:52 AM:
###################################################### 76.0%
12:53:52 AM:
################################################################ 89.
12:53:52 AM: 6%
12:53:52 AM:
########################################################################
12:53:52 AM: 100.0%
12:53:52 AM: Computing checksum with sha256sum
12:53:53 AM: Checksums matched!
12:53:55 AM: Now using node v10.16.1 (npm v6.9.0)
12:53:55 AM: Attempting ruby version 2.6.2, read from environment
12:53:56 AM: Using ruby version 2.6.2
12:53:57 AM: Using PHP version 5.6
12:53:57 AM: Installing Hugo 0.56.1
12:53:59 AM: Hugo Static Site Generator v0.56.1-0AD218AF/extended linux/amd64 BuildDate: 2019-07-28T15:03:09Z
12:53:59 AM: Started restoring cached go cache
12:53:59 AM: Finished restoring cached go cache
12:53:59 AM: unset GOOS;
12:53:59 AM: unset GOARCH;
12:53:59 AM: export GOROOT=’/opt/buildhome/.gimme/versions/go1.12.linux.amd64’;
12:53:59 AM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
12:53:59 AM: go version >&2;
12:53:59 AM: export GIMME_ENV=’/opt/buildhome/.gimme/env/go1.12.linux.amd64.env’;
12:53:59 AM: go version go1.12 linux/amd64
12:53:59 AM: Installing missing commands
12:53:59 AM: Verify run directory
12:53:59 AM: Executing user command: hugo
12:53:59 AM: Error: module “” not found; either add it as a Hugo Module or store it in “/opt/build/repo/themes”.: module does not exist
12:53:59 AM: Skipping functions preparation step: no functions directory set
12:53:59 AM: Caching artifacts
12:53:59 AM: Started saving pip cache
12:53:59 AM: Finished saving pip cache
12:53:59 AM: Started saving emacs cask dependencies
12:53:59 AM: Finished saving emacs cask dependencies
12:53:59 AM: Started saving maven dependencies
12:53:59 AM: Finished saving maven dependencies
12:53:59 AM: Started saving boot dependencies
12:53:59 AM: Finished saving boot dependencies
12:53:59 AM: Started saving go dependencies
12:53:59 AM: Finished saving go dependencies
12:54:01 AM: Error running command: Build script returned non-zero exit code: 255
12:54:01 AM: Failing build: Failed to build site
12:54:01 AM: failed during stage ‘building site’: Build script returned non-zero exit code: 255
12:54:01 AM: Finished processing build request in 16.505592584s

Can You help me please :slight_smile:

Your repo is private, so you’ll only get limited help; we can’t see much from the error.

That could be it.

Aside from that, your build script needs refining/to be thrown in a dumpster and caught on :fire:. :slight_smile: Why ya installing PHP and Ruby for? That’s weird.

Share yer repo, and we’ll get to the bottom of it. :slight_smile:

You probably have a theme = "" in your config.

1 Like

Thank You guys !!! The problem was theme = “” on my config :+1:

1 Like