# Generation of pages fails on Gitlab

**URL:** <https://discourse.gohugo.io/t/generation-of-pages-fails-on-gitlab/20456>\
**Category:** support\
**Created:** [August 27, 2019, 12:07pm UTC](https://discourse.gohugo.io/t/generation-of-pages-fails-on-gitlab/20456 "2019-08-27T12:07:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cerrone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/cerrone/32/7764_2.png) [@cerrone](https://discourse.gohugo.io/u/cerrone)\
**Post date:** [August 27, 2019, 12:07pm UTC](https://discourse.gohugo.io/t/generation-of-pages-fails-on-gitlab/20456/1 "2019-08-27T12:07:21Z")

</div>

I have not made an update for about 3 months. Everything worked back then.

Now I just added new .md files, ie. content, changed a couple of lines in a shortcode file and now the site gets generated and deployed like this on Gitlab:

 ![03](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/2X/3/33981841f6592c13e1ec643c661c95bfa489b0d5.png)

There are supposed to be blog posts showing up. I have already reverted back to the previous commit, but I get the same issue. I have not changed anything in the config, nor on Gitlab.

`# .gitlab-ci.yml`

```auto
image: monachus/hugo

variables:
  GIT_SUBMODULE_STRATEGY: recursive

pages:
  script:
  - hugo
  artifacts:
    paths:
    - public
  only:
  - master

```

This config for gitlab has also not changed. Just verified that it’s still the same (from the Docs)

Does anyone have any clues what’s happening? Thanks you.

---

<div class="post-metadata">

**Author:** ![jakejarvis](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jakejarvis/32/10028_2.png) [@jakejarvis](https://discourse.gohugo.io/u/jakejarvis)\
**Post date:** [August 27, 2019, 12:25pm UTC](https://discourse.gohugo.io/t/generation-of-pages-fails-on-gitlab/20456/2 "2019-08-27T12:25:27Z")

</div>

Maybe try changing to `monachus/hugo:v0.56.3` just to troubleshoot? This exact problem happened to me as well after updating to 0.57.0. This probably isn’t applicable to you, but just for reference I added these lines to `config.toml` a while ago (can’t remember why, to be honest) and removing them fixed this for me:

```
[taxonomies]
  tag = ""
  category = ""

```

It could also have to do with the [changes](https://github.com/gohugoio/hugo/releases/tag/v0.57.2) to `.Pages` even though this was apparently reverted for now in 0.57.2. I [updated my `list.html`](https://github.com/jakejarvis/jarv.is/commit/71d892949cb22b4cf20c79465cb1dd37673d080c#diff-3db8db7226d7f28bb43b59ce30ad6157) as well to be safe.

Sorry I can’t be more help but I thought I should document my personal solution on here just in case it applies. 🙂

---

<div class="post-metadata">

**Author:** ![cerrone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/cerrone/32/7764_2.png) [@cerrone](https://discourse.gohugo.io/u/cerrone)\
**Post date:** [August 27, 2019, 12:32pm UTC](https://discourse.gohugo.io/t/generation-of-pages-fails-on-gitlab/20456/3 "2019-08-27T12:32:38Z")

</div>

Fixed! Awesome, Jake! Thank you.

Adding `v0.56.3` fixed the issue.

---

<div class="post-metadata">

**Author:** ![jakejarvis](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jakejarvis/32/10028_2.png) [@jakejarvis](https://discourse.gohugo.io/u/jakejarvis)\
**Post date:** [August 27, 2019, 12:35pm UTC](https://discourse.gohugo.io/t/generation-of-pages-fails-on-gitlab/20456/4 "2019-08-27T12:35:05Z")

</div>

No problem! You’ll probably want to upgrade to a newer version at some point so I’d still try to figure this out but I’m glad your site is back up and running for now!

---

<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 27, 2019, 7:02pm UTC](https://discourse.gohugo.io/t/generation-of-pages-fails-on-gitlab/20456/5 "2019-08-27T19:02:35Z")

</div>

@cerrone, @jakejarvis solved upgrade issues for ya, but if you want to know why the newer version is nerfing yer site, make sure to share your code repo. 🙂

---

<div class="post-metadata">

**Author:** ![davidsneighbour](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/davidsneighbour/32/24507_2.png) [@davidsneighbour](https://discourse.gohugo.io/u/davidsneighbour)\
**Post date:** [August 28, 2019, 11:39am UTC](https://discourse.gohugo.io/t/generation-of-pages-fails-on-gitlab/20456/6 "2019-08-28T11:39:17Z")

</div>

You did solve the problem by downgrading to an older version, congratulations 😉

If you want to solve the problem: I think it might be that you range over `.Site.Pages` but should range over `.Site.RegularPages`. Search for these here on the forum. That was the reason for most “suddenly empty posts” in 0.57.
