# Error: unexpected unclosed action in command

**URL:** <https://discourse.gohugo.io/t/error-unexpected-unclosed-action-in-command/36848>\
**Category:** support\
**Created:** [January 29, 2022, 2:51pm UTC](https://discourse.gohugo.io/t/error-unexpected-unclosed-action-in-command/36848 "2022-01-29T14:51:01Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![sudojarvis](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@sudojarvis](https://discourse.gohugo.io/u/sudojarvis)\
**Post date:** [January 29, 2022, 2:51pm UTC](https://discourse.gohugo.io/t/error-unexpected-unclosed-action-in-command/36848/1 "2022-01-29T14:51:02Z")

</div>

getting a parse error while running hugo server  
my footer.html file is below

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/3X/9/8/98731348391e27f29ed05f8cdb36ed18cc772565.png)

Link to the repo - [Link](https://github.com/abrahamalen/alen-abraham.github.io)

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [January 29, 2022, 3:14pm UTC](https://discourse.gohugo.io/t/error-unexpected-unclosed-action-in-command/36848/2 "2022-01-29T15:14:49Z")

</div>

You are more likely to receive a prompt and accurate response if you post a link to the public repository for your project.

See [https://discourse.gohugo.io/t/requesting-help/9132](https://discourse.gohugo.io/t/requesting-help/9132).

> Let us see your code
> 
> Include a **link to the source code repository** of your project, because we really need the _context_ of seeing your templates and partials to be able to help you. It is trivial to do a quick `git clone` on your repo, then run `hugo server` in your project, to help you out. On the other hand, **recreating your code from screenshots** , or sort of guessing at it, is not.
> 
> If you can’t share your repository for whatever reason, consider creating a dummy repo that you _can_ share, which reproduces the problem you’re experiencing.

---

<div class="post-metadata">

**Author:** ![sudojarvis](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@sudojarvis](https://discourse.gohugo.io/u/sudojarvis)\
**Post date:** [January 29, 2022, 3:28pm UTC](https://discourse.gohugo.io/t/error-unexpected-unclosed-action-in-command/36848/4 "2022-01-29T15:28:03Z")

</div>

I have added my repo link to the post

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [January 29, 2022, 3:30pm UTC](https://discourse.gohugo.io/t/error-unexpected-unclosed-action-in-command/36848/5 "2022-01-29T15:30:19Z")

</div>

I’m unable to reproduce the problem when I:

```bash
git clone --recurse-submodules https://github.com/abrahamalen/alen-abraham.github.io
cd alen-abraham.github.io/
hugo

```

---

<div class="post-metadata">

**Author:** ![sudojarvis](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@sudojarvis](https://discourse.gohugo.io/u/sudojarvis)\
**Post date:** [January 29, 2022, 3:38pm UTC](https://discourse.gohugo.io/t/error-unexpected-unclosed-action-in-command/36848/6 "2022-01-29T15:38:02Z")

</div>

I am not able to run **hugo serve** command

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [January 29, 2022, 3:39pm UTC](https://discourse.gohugo.io/t/error-unexpected-unclosed-action-in-command/36848/7 "2022-01-29T15:39:13Z")

</div>

.github/workflows/gh-pages.yml shows you’re building your site with v0.92.0 on gh pages.

What version of hugo are you running _locally_?

---

<div class="post-metadata">

**Author:** ![sudojarvis](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@sudojarvis](https://discourse.gohugo.io/u/sudojarvis)\
**Post date:** [January 29, 2022, 3:42pm UTC](https://discourse.gohugo.io/t/error-unexpected-unclosed-action-in-command/36848/8 "2022-01-29T15:42:37Z")

</div>

![image](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/3X/8/4/845651c97698bb86df6b15ffa75350df769cc71f.png)

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [January 29, 2022, 3:44pm UTC](https://discourse.gohugo.io/t/error-unexpected-unclosed-action-in-command/36848/9 "2022-01-29T15:44:36Z")

</div>

You need v0.81.0 or later to handle newlines in the middle of template actions:  
[https://github.com/gohugoio/hugo/releases/tag/v0.81.0](https://github.com/gohugoio/hugo/releases/tag/v0.81.0)

The current version is v0.92.1:  
[https://github.com/gohugoio/hugo/releases/tag/v0.92.1](https://github.com/gohugoio/hugo/releases/tag/v0.92.1)

You should _always_ run the same version locally.

---

<div class="post-metadata">

**Author:** ![sudojarvis](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@sudojarvis](https://discourse.gohugo.io/u/sudojarvis)\
**Post date:** [January 29, 2022, 3:53pm UTC](https://discourse.gohugo.io/t/error-unexpected-unclosed-action-in-command/36848/10 "2022-01-29T15:53:43Z")

</div>

So I should update my local hugo vestion to 92 right?

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [January 29, 2022, 3:55pm UTC](https://discourse.gohugo.io/t/error-unexpected-unclosed-action-in-command/36848/11 "2022-01-29T15:55:08Z")

</div>

Or 92.1, but update gh pages as well.

---

<div class="post-metadata">

**Author:** ![sudojarvis](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@sudojarvis](https://discourse.gohugo.io/u/sudojarvis)\
**Post date:** [January 29, 2022, 3:55pm UTC](https://discourse.gohugo.io/t/error-unexpected-unclosed-action-in-command/36848/12 "2022-01-29T15:55:55Z")

</div>

Can you help me out in doing these

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [January 29, 2022, 3:56pm UTC](https://discourse.gohugo.io/t/error-unexpected-unclosed-action-in-command/36848/13 "2022-01-29T15:56:37Z")

</div>

Open a separate topic if you need community assistance with upgrading.

---

<div class="post-metadata">

**Author:** ![sudojarvis](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@sudojarvis](https://discourse.gohugo.io/u/sudojarvis)\
**Post date:** [January 29, 2022, 4:00pm UTC](https://discourse.gohugo.io/t/error-unexpected-unclosed-action-in-command/36848/14 "2022-01-29T16:00:48Z")

</div>

Okay ❤

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [January 31, 2022, 4:01pm UTC](https://discourse.gohugo.io/t/error-unexpected-unclosed-action-in-command/36848/15 "2022-01-31T16:01:28Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
