# The problem install local ubuntu discourse

**URL:** https://meta.discourse.org/t/the-problem-install-local-ubuntu-discourse/359644
**Category:** Support
**Created:** [March 31, 2025, 2:12pm UTC](https://meta.discourse.org/t/the-problem-install-local-ubuntu-discourse/359644 "2025-03-31T14:12:54Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tom\_Elon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tom_elon/32/496724_2.png) [@tom\_Elon](https://meta.discourse.org/u/tom_Elon)
#### Post date: [March 31, 2025, 2:12pm UTC](https://meta.discourse.org/t/the-problem-install-local-ubuntu-discourse/359644/1 "2025-03-31T14:12:54Z")

</div>

after I install discourse in localhost, I use ./discourse-setup. the app build successfully.  
but, when I modify app.yml, I add a row "

```plaintext
templates:
  - "templates/postgres.template.yml"
  - "templates/redis.template.yml"
  - "templates/web.template.yml

```

```plaintext
"
  *- "templates/web.china.template.yml"*

```

"then ./launcher rebuild app.yml. there is always a problem.  
I question chatgpt\grok and deepseek, i can’t solve the problem finally. Here is the certain issue:

```plaintext
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && sudo -H -E -u discourse bash -c '
  set -o errexit
  if [$(git rev-parse --is-shallow-repository) == "true"]; then
      git remote set-branches --add origin main
      git remote set-branches origin tests-passed
      git fetch --depth 1 origin tests-passed
  else
      git fetch --tags --prune-tags --prune --force origin
  fi
' failed with return #<Process::Status: pid 145 exit 128>
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"code", "cmd"=>["sudo -H -E -u discourse git clean -f", "sudo -H -E -u discourse bash -c '\n set -o errexit\n if [$(git rev-parse --is-shallow-repository) == \"true\"]; then\n git remote set-branches --add origin main\n git remote set-branches origin $version\n git fetch --depth 1 origin $version\n else\n git fetch --tags --prune-tags --prune --force origin\n fi\n'", "sudo -H -E -u discourse bash -c '\n set -o errexit\n if [[$(git symbolic-ref --short HEAD) == $version]] ; then\n git pull\n else\n git -c advice.detachedHead=false checkout $version\n fi\n'", "sudo -H -E -u discourse git config user.discourse-version $version", "mkdir -p tmp", "chown discourse:www-data tmp", "mkdir -p tmp/pids", "mkdir -p tmp/sockets", "touch tmp/.gitkeep", "mkdir -p /shared/log/rails", "bash -c \"touch -a /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log\"", "bash -c \"ln -s /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log $home/log\"", "bash -c \"mkdir -p /shared/{uploads,backups}\"", "bash -c \"ln -s /shared/{uploads,backups} $home/public\"", "bash -c \"mkdir -p /shared/tmp/{backups,restores}\"", "bash -c \"ln -s /shared/tmp/{backups,restores} $home/tmp\"", "chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp", "[! -d public/plugins] || find public/plugins/ -maxdepth 1 -xtype l -delete"]}

```

Is there a superman help me? I want to build a traing and Q&A system for my work

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [March 31, 2025, 8:50pm UTC](https://meta.discourse.org/t/the-problem-install-local-ubuntu-discourse/359644/3 "2025-03-31T20:50:23Z")

</div>

> [@tom\_Elon](#):
>
> ```plaintext
> templates:
> - "templates/postgres.template.yml"
> - "templates/redis.template.yml"
> - "templates/web.template.yml"
> - "templates/web.china.template.yml"
> 
> ```

Make sure that the formatting of the extra template is exactly like the ones above it. You has asterisks in your code above. I can’t tell if it’s what you’re putting in your `app.yml` or not.

---

<div class="post-metadata">

### Author: ![tom\_Elon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tom_elon/32/496724_2.png) [@tom\_Elon](https://meta.discourse.org/u/tom_Elon)
#### Post date: [April 1, 2025, 12:15am UTC](https://meta.discourse.org/t/the-problem-install-local-ubuntu-discourse/359644/4 "2025-04-01T00:15:13Z")

</div>

yes maybe the formatting problem ,the “…china…yml” row code is typing, i forget the asterisks. i will try again. thank you

---

<div class="post-metadata">

### Author: ![tom\_Elon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tom_elon/32/496724_2.png) [@tom\_Elon](https://meta.discourse.org/u/tom_Elon)
#### Post date: [April 1, 2025, 12:19am UTC](https://meta.discourse.org/t/the-problem-install-local-ubuntu-discourse/359644/5 "2025-04-01T00:19:08Z")

</div>

I just change the language in localazition and refresh, ooh. because i see some guide to build the discourse language , so i try this way . i waste time it is bad
