# Can't rebuild app with UTF8

**URL:** https://meta.discourse.org/t/cant-rebuild-app-with-utf8/121377
**Category:** Support
**Created:** [June 26, 2019, 10:09am UTC](https://meta.discourse.org/t/cant-rebuild-app-with-utf8/121377 "2019-06-26T10:09:44Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Mikhail\_Degtjarev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikhail_degtjarev/32/137694_2.png) [@Mikhail\_Degtjarev](https://meta.discourse.org/u/Mikhail_Degtjarev)
#### Post date: [June 26, 2019, 10:09am UTC](https://meta.discourse.org/t/cant-rebuild-app-with-utf8/121377/1 "2019-06-26T10:09:44Z")

</div>

Hi everyone and thank you for great forum!

While trying to install akismet, running:  
`sudo ./launcher rebuild app`  
gives me such error:

```
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
(<unknown>): found a tab character that violate intendation while scanning a plain scalar at line 91 column 13 -e LANG=en_US.UTF-8
YAML syntax error. Please check your containers/*.yml config files.

```

in my /containers/app.yml I have:

```
## Which Git revision should this container use? (default: tests-passed)
  #version: tests-passed

env:
  LANG: en_US.UTF-8
  # DISCOURSE_DEFAULT_LOCALE: en

```

Please help me to solve this issue

---

<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: [June 26, 2019, 10:13am UTC](https://meta.discourse.org/t/cant-rebuild-app-with-utf8/121377/2 "2019-06-26T10:13:48Z")

</div>

You have a tab in your yml file and that’s a problem.

The surest solution is to delete your yml file and run discourse-setup again. Or you can find the tab and replace it with spaces.

---

<div class="post-metadata">

### Author: ![Mikhail\_Degtjarev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikhail_degtjarev/32/137694_2.png) [@Mikhail\_Degtjarev](https://meta.discourse.org/u/Mikhail_Degtjarev)
#### Post date: [June 26, 2019, 10:26am UTC](https://meta.discourse.org/t/cant-rebuild-app-with-utf8/121377/3 "2019-06-26T10:26:54Z")

</div>

Thank you!  
I find tab in config file, now I have another issue:

```
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
cd /pups && git pull && /pups/bin/pups --stdin
/usr/bin/docker: Error response from daemon: error while creating mount source path '/var/discourse/shared/standalone': mkdir /var/discourse: read-only file system.
260dedf1e96919078211b6e422ba8297749d9418d13f27f69caa79b41926f98a
**FAILED TO BOOTSTRAP** please scroll up and look for earlier error messages, there may be more than one

```

When I check free space it seems like that:

```
Filesystem Size Used Avail Use% Mounted on
udev 967M 0 967M 0% /dev
tmpfs 200M 1.2M 199M 1% /run
/dev/sda2 20G 12G 6.9G 64% /
tmpfs 997M 0 997M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 997M 0 997M 0% /sys/fs/cgroup
/dev/loop4 89M 89M 0 100% /snap/core/6964
/dev/loop2 89M 89M 0 100% /snap/core/7169
/dev/loop0 98M 98M 0 100% /snap/docker/372
/dev/loop3 98M 98M 0 100% /snap/docker/381
/dev/loop1 98M 98M 0 100% /snap/docker/384
overlay 20G 12G 6.9G 64% /var/lib/docker/overlay2/7b5dec9e6d798e61769cdf211805b730ef2a667d2ce955d32a4438a09041c7d0/merged
shm 512M 8.0K 512M 1% /var/lib/docker/containers/7a906ebdc5d850c808edebc2625f161099b93c43f6f539f0376e013af8558b34/mounts/shm
tmpfs 200M 0 200M 0% /run/user/1000

```

What can it be? I use Ubuntu 18.04

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [June 26, 2019, 11:33am UTC](https://meta.discourse.org/t/cant-rebuild-app-with-utf8/121377/4 "2019-06-26T11:33:42Z")

</div>

> [@Mikhail\_Degtjarev](#):
>
> mkdir /var/discourse: read-only file system

There’s something wrong with your docker installation, how was docker installed?

What’s the result of doing:

`docker info`

The last time I saw this error the user had installed docker both from get.docker and separately via apt.

> [@Mikhail\_Degtjarev](#):
>
> /dev/loop4 89M 89M 0 100% /snap/core/6964  
> /dev/loop2 89M 89M 0 100% /snap/core/7169  
> /dev/loop0 98M 98M 0 100% /snap/docker/372  
> /dev/loop3 98M 98M 0 100% /snap/docker/381  
> /dev/loop1 98M 98M 0 100% /snap/docker/384

Did you install it using snap? That isn’t supported.

---

<div class="post-metadata">

### Author: ![Mikhail\_Degtjarev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikhail_degtjarev/32/137694_2.png) [@Mikhail\_Degtjarev](https://meta.discourse.org/u/Mikhail_Degtjarev)
#### Post date: [June 26, 2019, 12:08pm UTC](https://meta.discourse.org/t/cant-rebuild-app-with-utf8/121377/5 "2019-06-26T12:08:43Z")

</div>

Here is docker info output:

```
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 1
Server Version: 18.06.1-ce
Storage Driver: aufs
 Root Dir: /var/snap/docker/common/var-lib-docker/aufs
 Backing Filesystem: extfs
 Dirs: 5
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 468a545b9edcd5932818eb9de8e72413e616e86e
runc version: N/A (expected: 69663f0bd4b60df09991c08812a60108003fa340)
init version: 949e6fa (expected: fec3683)
Security Options:
 apparmor
 seccomp
  Profile: default
Kernel Version: 4.15.0-52-generic
Operating System: Ubuntu Core 16
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.947GiB

ID: DPIA:C6E2:TFZY:6NRO:AOYZ:CHUV:ZPKC:KBYN:XXCA:IUMZ:D3FT:HRWS
Docker Root Dir: /var/snap/docker/common/var-lib-docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 22
 Goroutines: 44
 System Time: 2019-06-26T12:05:39.577235979Z
 EventsListeners: 0
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

```

I used this tutorial to install, using GIT:

> **[How To Install Discourse on Ubuntu 16.04 | DigitalOcean](https://www.digitalocean.com/community/tutorials/how-to-install-discourse-on-ubuntu-16-04)**
>
> Discourse is an open-source discussion platform. It can be used as a mailing list, a discussion forum, or a long-form chat room. In this tutorial, we’ll inst…

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [June 26, 2019, 1:01pm UTC](https://meta.discourse.org/t/cant-rebuild-app-with-utf8/121377/6 "2019-06-26T13:01:16Z")

</div>

We don’t support that installation method here, the only supported install is the [official install method](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md).

Your `docker info` confirms that docker was installed using snap. Your options are to either ask DigitalOcean for support as you’ve followed their method, or use the [official install](https://meta.discourse.org/t/142537?silent=true) method linked above.

---

<div class="post-metadata">

### Author: ![Mikhail\_Degtjarev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikhail_degtjarev/32/137694_2.png) [@Mikhail\_Degtjarev](https://meta.discourse.org/u/Mikhail_Degtjarev)
#### Post date: [June 26, 2019, 1:05pm UTC](https://meta.discourse.org/t/cant-rebuild-app-with-utf8/121377/7 "2019-06-26T13:05:30Z")

</div>

Oh, sure I will reinstall it, but please do you have official method for reinstalling? I am going to use CentOS and want to migrate container itself to new host.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [June 26, 2019, 1:06pm UTC](https://meta.discourse.org/t/cant-rebuild-app-with-utf8/121377/8 "2019-06-26T13:06:51Z")

</div>

The [official install](https://meta.discourse.org/t/142537?silent=true) suggests ubuntu, I’m afraid you’re going to have to figure out how installation on CentOS will differ by yourself.

The scope of community support is limited, but if you have a budget you could also post over on the #Marketplace to have a consultant take a look.

---

<div class="post-metadata">

### Author: ![Mikhail\_Degtjarev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikhail_degtjarev/32/137694_2.png) [@Mikhail\_Degtjarev](https://meta.discourse.org/u/Mikhail_Degtjarev)
#### Post date: [June 26, 2019, 1:08pm UTC](https://meta.discourse.org/t/cant-rebuild-app-with-utf8/121377/9 "2019-06-26T13:08:19Z")

</div>

Nevermind, if it is not Ubuntu issue but Snap, I will reinstall it. Thank you for your answer.

---

<div class="post-metadata">

### Author: ![Mikhail\_Degtjarev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikhail_degtjarev/32/137694_2.png) [@Mikhail\_Degtjarev](https://meta.discourse.org/u/Mikhail_Degtjarev)
#### Post date: [June 26, 2019, 11:14pm UTC](https://meta.discourse.org/t/cant-rebuild-app-with-utf8/121377/10 "2019-06-26T23:14:10Z")

</div>

As I tryed several ways to make [official install](https://meta.discourse.org/t/142537?silent=true) - it was no success.

1. If I use [official install](https://meta.discourse.org/t/142537?silent=true) and trying to restore backup using Web interface or CLI, I allways have FAILED state.

Then I think that it is good idea to remove docker and reinstall it. So I purge everything related docker by command:

```plaintext
sudo apt-get purge -y docker-engine docker docker.io docker-ce  
sudo apt-get autoremove -y --purge docker-engine docker docker.io docker-ce  

```

After I trying

```plaintext
wget -qO- https://get.docker.com/ | sh

```

Everything is fine and

```plaintext
docker info

```

Shows no trace of snap. But as I trying to launch

```plaintext
./launcher rebuild app

```

I receive same error regarding read-only filesystem and

```plaintext
docker info

```

shows snap traces in path.

How to re-snap it?

---

<div class="post-metadata">

### Author: ![schleifer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schleifer/32/86416_2.png) [@schleifer](https://meta.discourse.org/u/schleifer)
#### Post date: [June 27, 2019, 3:29am UTC](https://meta.discourse.org/t/cant-rebuild-app-with-utf8/121377/11 "2019-06-27T03:29:39Z")

</div>

> [@Mikhail\_Degtjarev](#):
>
> sudo apt-get

That will not remove a docker installed with snap.

Run `snap list | grep docker` to find the snap package name, and the `sudo snap remove ...` to uninstall it.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [July 27, 2019, 3:29am UTC](https://meta.discourse.org/t/cant-rebuild-app-with-utf8/121377/12 "2019-07-27T03:29:51Z")

</div>

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