# Hugo and Cloudflare Pages

**URL:** <https://discourse.gohugo.io/t/hugo-and-cloudflare-pages/33801>\
**Category:** support\
**Created:** [July 13, 2021, 2:07am UTC](https://discourse.gohugo.io/t/hugo-and-cloudflare-pages/33801 "2021-07-13T02:07:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![quietlight](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/quietlight/32/14386_2.png) [@quietlight](https://discourse.gohugo.io/u/quietlight)\
**Post date:** [July 13, 2021, 2:07am UTC](https://discourse.gohugo.io/t/hugo-and-cloudflare-pages/33801/1 "2021-07-13T02:07:13Z")

</div>

My Hugo site has suddenly stopped building on cloudflare pages, only 1 paragraph of text has changed since my last build 8 days ago and it builds fine on my home machine with

```auto
$NODE_ENV=production hugo --minify

```

The the node stuff is because of tailwind css and postcss. Error below.

Thanks in advance for any pointers or ideas.  
David

```auto
13:55:59.577	Installing Hugo 0.84.0
13:56:00.472	hugo v0.84.0-2C4689F7B+extended linux/amd64 BuildDate=2021-06-18T17:14:27Z VendorInfo=gohugoio
13:56:00.474	Started restoring cached go cache
13:56:00.477	Finished restoring cached go cache
13:56:00.502	go version go1.14.4 linux/amd64
13:56:00.507	go version go1.14.4 linux/amd64
13:56:00.508	Installing missing commands
13:56:00.508	Verify run directory
13:56:00.508	Executing user command: hugo --minify
13:56:00.540	Start building sites … 
13:56:00.540	hugo v0.84.0-2C4689F7B+extended linux/amd64 BuildDate=2021-06-18T17:14:27Z VendorInfo=gohugoio
13:56:05.730	Total in 5200 ms
13:56:05.730	Error: Error copying static files: chtimes /opt/buildhome/repo/public/: operation not permitted
13:56:05.735	Failed: build command exited with code: 255

```

---

<div class="post-metadata">

**Author:** ![alcarazr](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/alcarazr/32/11576_2.png) [@alcarazr](https://discourse.gohugo.io/u/alcarazr)\
**Post date:** [July 13, 2021, 7:51am UTC](https://discourse.gohugo.io/t/hugo-and-cloudflare-pages/33801/2 "2021-07-13T07:51:00Z")

</div>

Try [this update](https://gohugo.io/news/0.84.4-relnotes/), more [here](https://discourse.gohugo.io/t/hugo-0-84-4-released/33648).

---

<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:** [July 13, 2021, 8:10am UTC](https://discourse.gohugo.io/t/hugo-and-cloudflare-pages/33801/3 "2021-07-13T08:10:11Z")

</div>

> [@alcarazr](#):
>
> Try [this update](https://gohugo.io/news/0.84.4-relnotes/), more [here](https://discourse.gohugo.io/t/hugo-0-84-4-released/33648).

No, the above is another error.

> [@quietlight](#):
>
> ```auto
> 13:56:05.730	Error: Error copying static files: chtimes /opt/buildhome/repo/public/: operation not permitted
> 
> ```

You should really ask Cloudflare about this – not permitting `chtimes` on their output folder does not make sense.

That said, you can probably work around it by

```auto
hugo --noTimes

```

---

<div class="post-metadata">

**Author:** ![quietlight](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/quietlight/32/14386_2.png) [@quietlight](https://discourse.gohugo.io/u/quietlight)\
**Post date:** [July 13, 2021, 8:46pm UTC](https://discourse.gohugo.io/t/hugo-and-cloudflare-pages/33801/4 "2021-07-13T20:46:50Z")

</div>

Ok, thanks a million for the insights. I have something to work with now.

I must say I love Hugo, it is a little harder to pick up than Jekyll, but the site I built is conceptually a lot simpler. Its very easy to set up tailwind with Hugo and that was the main reason I changed. I especially love using cue (another go ecosystem project) to build a big json config file I use for something, though technically I could do that with Jekyll too.

Thanks Hugo team.  
David

---

<div class="post-metadata">

**Author:** ![quietlight](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/quietlight/32/14386_2.png) [@quietlight](https://discourse.gohugo.io/u/quietlight)\
**Post date:** [July 13, 2021, 9:36pm UTC](https://discourse.gohugo.io/t/hugo-and-cloudflare-pages/33801/5 "2021-07-13T21:36:26Z")

</div>

Thanks, I upgraded to Hugo 0.85.0 on my machine and with the environment variable on Cloudflare Pages. That solved the problem without using the --noTimes flag.

Regards  
David
