# Git Lab to Netlify error

**URL:** <https://discourse.gohugo.io/t/git-lab-to-netlify-error/19993>\
**Category:** support\
**Created:** [August 3, 2019, 11:13pm UTC](https://discourse.gohugo.io/t/git-lab-to-netlify-error/19993 "2019-08-03T23:13:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yassuke](https://avatars.discourse-cdn.com/v4/letter/y/a5b964/32.png) [@Yassuke](https://discourse.gohugo.io/u/Yassuke)\
**Post date:** [August 3, 2019, 11:13pm UTC](https://discourse.gohugo.io/t/git-lab-to-netlify-error/19993/1 "2019-08-03T23:13:55Z")

</div>

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](mailto: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](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 🙂

---

<div class="post-metadata">

**Author:** ![maiki](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/maiki/32/16384_2.png) [@maiki](https://discourse.gohugo.io/u/maiki)\
**Post date:** [August 3, 2019, 11:31pm UTC](https://discourse.gohugo.io/t/git-lab-to-netlify-error/19993/2 "2019-08-03T23:31:07Z")

</div>

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

> [@Yassuke](#):
>
> 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

That could be it.

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

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

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [August 4, 2019, 7:36am UTC](https://discourse.gohugo.io/t/git-lab-to-netlify-error/19993/3 "2019-08-04T07:36:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Yassuke](https://avatars.discourse-cdn.com/v4/letter/y/a5b964/32.png) [@Yassuke](https://discourse.gohugo.io/u/Yassuke)\
**Post date:** [August 5, 2019, 9:00am UTC](https://discourse.gohugo.io/t/git-lab-to-netlify-error/19993/4 "2019-08-05T09:00:57Z")

</div>

Thank You guys !!! The problem was theme = “” on my config 👍

---

<div class="post-metadata">

**Author:** ![maiki](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/maiki/32/16384_2.png) [@maiki](https://discourse.gohugo.io/u/maiki)\
**Post date:** [October 2, 2019, 7:14pm UTC](https://discourse.gohugo.io/t/git-lab-to-netlify-error/19993/6 "2019-10-02T19:14:54Z")

</div>


