# Invalid byte sequence error during install

**URL:** https://meta.discourse.org/t/invalid-byte-sequence-error-during-install/87430
**Category:** Self-hosting
**Created:** [May 14, 2018, 12:43pm UTC](https://meta.discourse.org/t/invalid-byte-sequence-error-during-install/87430 "2018-05-14T12:43:47Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![GoMezzo](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@GoMezzo](https://meta.discourse.org/u/GoMezzo)
#### Post date: [May 14, 2018, 12:43pm UTC](https://meta.discourse.org/t/invalid-byte-sequence-error-during-install/87430/1 "2018-05-14T12:43:47Z")

</div>

We tried to install discourse on Ubuntu 16.04 and everything went smoothly until we got this error. Anyone can figure out what is wrong and how to fix it?

```
Updates successful. Rebuilding in 5 seconds.Building appWARNING: We are about to start downloading the Discourse base imageThis process may take anywhere between a few minutes to an hour, depending on your network speedPlease be patientUnable to find image 'discourse/base:2.0.20180404' locally2.0.20180404: Pulling from discourse/base22dc81ace0ea: Pulling fs layer1a8b3c87dba3: Pulling fs layer91390a1c435a: Pulling fs layer07844b14977e: Pulling fs layerb78396653dae: Pulling fs layeref3e3cc07f1b: Pulling fs layer07844b14977e: Waitingb78396653dae: Waitingef3e3cc07f1b: Waiting1a8b3c87dba3: Verifying Checksum1a8b3c87dba3: Download complete91390a1c435a: Verifying Checksum91390a1c435a: Download complete07844b14977e: Verifying Checksum07844b14977e: Download completeb78396653dae: Verifying Checksumb78396653dae: Download complete22dc81ace0ea: Verifying Checksum22dc81ace0ea: Download complete22dc81ace0ea: Pull complete1a8b3c87dba3: Pull complete91390a1c435a: Pull complete07844b14977e: Pull completeb78396653dae: Pull completeef3e3cc07f1b: Verifying Checksumef3e3cc07f1b: Download completeef3e3cc07f1b: Pull completeDigest: sha256:745365df6e01943d48cbe4c59214c76ac302def2d00a07aff07d625b306bbeb7Status: Downloaded newer image for discourse/base:2.0.20180404Ensuring launcher is up to dateFetching originLauncher is up-to-datecd /pups &amp;&amp; git pull &amp;&amp; /pups/bin/pups --stdinAlready up-to-date.I, [2018-05-11T[15:33:59](http://llink.to/?u=https:%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DBN-aGctqafY%26t%3D56039s&amp;e=1e2d4541eb3bcabc984c1b935e42de0b).080291 #13] INFO -- :slight_smile:
loading --stdin/pups/lib/pups/cli.rb:15:in `split': invalid byte sequence in US-ASCII (ArgumentError) from /pups/lib/pups/cli.rb:15:in `run' from /pups/bin/pups:8:in `&lt;main&gt;

* FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than oneroot@tamigut:/var/discourse#

```

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [May 14, 2018, 12:47pm UTC](https://meta.discourse.org/t/invalid-byte-sequence-error-during-install/87430/2 "2018-05-14T12:47:39Z")

</div>

What is your system locale set to?

Enter `locale` in terminal to check what the defaults are set to.

---

<div class="post-metadata">

### Author: ![GoMezzo](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@GoMezzo](https://meta.discourse.org/u/GoMezzo)
#### Post date: [May 14, 2018, 12:57pm UTC](https://meta.discourse.org/t/invalid-byte-sequence-error-during-install/87430/3 "2018-05-14T12:57:54Z")

</div>

```
Sais "LANG=C
LANGUAGE=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=

```

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [May 14, 2018, 1:01pm UTC](https://meta.discourse.org/t/invalid-byte-sequence-error-during-install/87430/4 "2018-05-14T13:01:55Z")

</div>

Run the following command:

`sudo dpkg-reconfigure locales`

then select and enable `en_US.UTF-8 UTF-8` and default it to `en_US.UTF-8` on the next page.

after that, Run ./discourse-setup once again. this should be fixed.

---

<div class="post-metadata">

### Author: ![GoMezzo](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@GoMezzo](https://meta.discourse.org/u/GoMezzo)
#### Post date: [May 14, 2018, 1:24pm UTC](https://meta.discourse.org/t/invalid-byte-sequence-error-during-install/87430/5 "2018-05-14T13:24:39Z")

</div>

We tried, restarted but still get this error:

```
[2018-05-14T13:23:48.558704 #13] INFO -- : Loading --stdin
/pups/lib/pups/cli.rb:15:in `split': invalid byte sequence in US-ASCII (ArgumentError)
from /pups/lib/pups/cli.rb:15:in `run'
from /pups/bin/pups:8:in `&lt;main&gt;'

**FAILED TO BOOTSTRAP** please scroll up and look for earlier error messages, there may be more than one

```

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [May 14, 2018, 1:28pm UTC](https://meta.discourse.org/t/invalid-byte-sequence-error-during-install/87430/6 "2018-05-14T13:28:32Z")

</div>

Your `app.yml` has invalid data. Please fix it.

---

<div class="post-metadata">

### Author: ![GoMezzo](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@GoMezzo](https://meta.discourse.org/u/GoMezzo)
#### Post date: [May 14, 2018, 1:31pm UTC](https://meta.discourse.org/t/invalid-byte-sequence-error-during-install/87430/7 "2018-05-14T13:31:09Z")

</div>

What is app.yml? We used docker to download the latest release of Discouse and the server setup is totally new and fresh? We didnt do any modifications other than the local reconfig as suggested by Bhanu.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [May 14, 2018, 1:33pm UTC](https://meta.discourse.org/t/invalid-byte-sequence-error-during-install/87430/8 "2018-05-14T13:33:51Z")

</div>

SSH into the machine and then:

```
cd /var/discourse
nano containers/app.yml

```

That’s where all your config lives. You have a bad character there somewhere. Pasting the contents into [http://www.yamllint.com](http://www.yamllint.com) may help you find it.

---

<div class="post-metadata">

### Author: ![GoMezzo](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@GoMezzo](https://meta.discourse.org/u/GoMezzo)
#### Post date: [May 14, 2018, 3:59pm UTC](https://meta.discourse.org/t/invalid-byte-sequence-error-during-install/87430/9 "2018-05-14T15:59:27Z")

</div>

I solved it - the installation had added an ^ to the admin email.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [May 14, 2018, 9:28pm UTC](https://meta.discourse.org/t/invalid-byte-sequence-error-during-install/87430/10 "2018-05-14T21:28:43Z")

</div>


