# Docker launcher fails with message «/pups/lib/pups/cli.rb:15:in \`split': invalid byte sequence in US-ASCII» then container \*.yml file contains non-ASCII symbols

**URL:** https://meta.discourse.org/t/docker-launcher-fails-with-message-pups-lib-pups-cli-rb-15-in-split-invalid-byte-sequence-in-us-ascii-then-container-yml-file-contains-non-ascii-symbols/29224
**Category:** Bug
**Tags:** docker
**Created:** [25 مايو 2015، 4:37م UTC](https://meta.discourse.org/t/docker-launcher-fails-with-message-pups-lib-pups-cli-rb-15-in-split-invalid-byte-sequence-in-us-ascii-then-container-yml-file-contains-non-ascii-symbols/29224 "2015-05-25T16:37:56Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![dmitry\_fedyuk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dmitry_fedyuk/32/293153_2.png) [@dmitry\_fedyuk](https://meta.discourse.org/u/dmitry_fedyuk)
#### Post date: [25 مايو 2015، 4:37م UTC](https://meta.discourse.org/t/docker-launcher-fails-with-message-pups-lib-pups-cli-rb-15-in-split-invalid-byte-sequence-in-us-ascii-then-container-yml-file-contains-non-ascii-symbols/29224/1 "2015-05-25T16:37:57Z")

</div>

Non-ASCII symbols in container \*.yml file are needed for:

- `DISCOURSE_HOSTNAME` as [internationalized domain name](https://en.wikipedia.org/wiki/Internationalized_domain_name)
- to make comments/notes

But now it fails:

 ![](https://global.discourse-cdn.com/meta/original/3X/4/e/4e1329428a98940f2b3d1fecba193d10f8bd8cc1.png) 

> root /usr/local/discourse # ./launcher rebuild app  
> Ensuring discourse docker is up to date  
> Fetching origin  
> Discourse Docker is up-to-date  
> Stopping old container

- /usr/bin/docker stop -t 10 app  
app  
cd /pups && git pull && /pups/bin/pups --stdin  
From [GitHub - discourse/pups: Simple yaml based bootstrapper for Linux machines · GitHub](https://github.com/SamSaffron/pups)  
8d972ab..7d741e1 master → origin/master  
Updating 8d972ab..7d741e1  
Fast-forward  
README.md | 16 ++++++++++++++++  
1 file changed, 16 insertions(+)  
I, [2015-05-25T15:15:11.528613 #41] 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 `’  
06ed9e81b57dd6311fbe5b8d4e81228db044dc677c72ec25110952c757964ac4  
FAILED TO BOOTSTRAP

Maybe it can be fixed in [pups/lib/pups/cli.rb at master · discourse/pups · GitHub](https://github.com/SamSaffron/pups/blob/master/lib/pups/cli.rb#L15:)

by adding the line like

```plaintext
conf = conf.encode("UTF-8")

```

before the line

```plaintext
split = conf.split("_FILE_SEPERATOR_")

```

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [25 مايو 2015، 9:29م UTC](https://meta.discourse.org/t/docker-launcher-fails-with-message-pups-lib-pups-cli-rb-15-in-split-invalid-byte-sequence-in-us-ascii-then-container-yml-file-contains-non-ascii-symbols/29224/2 "2015-05-25T21:29:59Z")

</div>

I would not force encoding, instead amend launcher to pass the utf text.

---

<div class="post-metadata">

### Author: ![pl3bs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pl3bs/32/37266_2.png) [@pl3bs](https://meta.discourse.org/u/pl3bs)
#### Post date: [9 يونيو 2015، 8:13م UTC](https://meta.discourse.org/t/docker-launcher-fails-with-message-pups-lib-pups-cli-rb-15-in-split-invalid-byte-sequence-in-us-ascii-then-container-yml-file-contains-non-ascii-symbols/29224/3 "2015-06-09T20:13:11Z")

</div>

> [@sam](#):
>
> I would not force encoding, instead amend launcher to pass the utf text.

How exactly to go about this?

Someone had an “é” in their hostname earlier today and the same error came up.

I tried changing a few settings within the yaml file to france, but same error occurred.

Which setting to change, and where?

I tried to change:

 ![](https://global.discourse-cdn.com/meta/original/4X/4/9/9/499696fd2b4c005e0c7ca1632ee9ced8b02c373c.png)  
from .english to france

and

 ![](https://global.discourse-cdn.com/meta/original/4X/7/c/9/7c999c05ab8eaa6eb880f6affda1aaf9d36da9c4.png)  
to fr\_FR.UTF-8

separately and in combination.

---

<div class="post-metadata">

### Author: ![pl3bs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pl3bs/32/37266_2.png) [@pl3bs](https://meta.discourse.org/u/pl3bs)
#### Post date: [10 يونيو 2015، 12:50م UTC](https://meta.discourse.org/t/docker-launcher-fails-with-message-pups-lib-pups-cli-rb-15-in-split-invalid-byte-sequence-in-us-ascii-then-container-yml-file-contains-non-ascii-symbols/29224/4 "2015-06-10T12:50:26Z")

</div>

Is there no easy answer here? I tried hacking in the launcher some as well, no dice.

I can convert the format in php before it ever touches the yaml/launcher, but would think this a last option. Am advertising in other languages across the globe, and would rather offer than limit.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [21 يوليو 2022، 5:33ص UTC](https://meta.discourse.org/t/docker-launcher-fails-with-message-pups-lib-pups-cli-rb-15-in-split-invalid-byte-sequence-in-us-ascii-then-container-yml-file-contains-non-ascii-symbols/29224/8 "2022-07-21T05:33:54Z")

</div>

لم يعد بالإمكان إعادة إنتاجه.
