# New installation on Fedora 23 - FAILED RuntimeError: cd /var/www/discourse && su discourse -c

**URL:** https://meta.discourse.org/t/new-installation-on-fedora-23-failed-runtimeerror-cd-var-www-discourse-su-discourse-c/41220
**Category:** Self-hosting
**Created:** [17 maart 2016 om 18:28 UTC](https://meta.discourse.org/t/new-installation-on-fedora-23-failed-runtimeerror-cd-var-www-discourse-su-discourse-c/41220 "2016-03-17T18:28:51Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![philip\_rhoades](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/philip_rhoades/32/114647_2.png) [@philip\_rhoades](https://meta.discourse.org/u/philip_rhoades)
#### Post date: [17 maart 2016 om 18:28 UTC](https://meta.discourse.org/t/new-installation-on-fedora-23-failed-runtimeerror-cd-var-www-discourse-su-discourse-c/41220/1 "2016-03-17T18:28:51Z")

</div>

People,

I am trying to do an installation on a new DO server with Fedora 23 x86\_64 but get a long way into:

```plaintext
./launcher bootstrap app

```

before it finally stops with:

```plaintext
FAILED
--------------------
RuntimeError: cd /var/www/discourse && su discourse -c 'bundle exec rake assets:precompile' failed with return #<Process::Status: pid 1290 exit 137>

```

I found only one mention of this for a guy who was trying to install on CentOS and he gave up and used something else . .

Suggestions?

Thanks,  
Phil.

---

<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: [17 maart 2016 om 19:16 UTC](https://meta.discourse.org/t/new-installation-on-fedora-23-failed-runtimeerror-cd-var-www-discourse-su-discourse-c/41220/2 "2016-03-17T19:16:55Z")

</div>

I’m afraid Fedora might not be supported. Does it support the latest version of Docker?

Anyway, why don’t you use the recommended Ubuntu? It’ll be much easier.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [18 maart 2016 om 00:13 UTC](https://meta.discourse.org/t/new-installation-on-fedora-23-failed-runtimeerror-cd-var-www-discourse-su-discourse-c/41220/3 "2016-03-18T00:13:07Z")

</div>

Make sure Docker is installed correctly. What does `docker info` and `docker version` report? That’s critical.

---

<div class="post-metadata">

### Author: ![philip\_rhoades](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/philip_rhoades/32/114647_2.png) [@philip\_rhoades](https://meta.discourse.org/u/philip_rhoades)
#### Post date: [18 maart 2016 om 01:55 UTC](https://meta.discourse.org/t/new-installation-on-fedora-23-failed-runtimeerror-cd-var-www-discourse-su-discourse-c/41220/5 "2016-03-18T01:55:01Z")

</div>

> [@codinghorror](#):
>
> docker info

Containers: 0  
Images: 6  
Server Version: 1.9.1  
Storage Driver: devicemapper  
Pool Name: docker-252:1-787310-pool  
Pool Blocksize: 65.54 kB  
Base Device Size: 107.4 GB  
Backing Filesystem: xfs  
Data file: /dev/loop0  
Metadata file: /dev/loop1  
Data Space Used: 1.538 GB  
Data Space Total: 107.4 GB  
Data Space Available: 28.62 GB  
Metadata Space Used: 1.606 MB  
Metadata Space Total: 2.147 GB  
Metadata Space Available: 2.146 GB  
Udev Sync Supported: true  
Deferred Removal Enabled: false  
Deferred Deletion Enabled: false  
Deferred Deleted Device Count: 0  
Data loop file: /var/lib/docker/devicemapper/devicemapper/data  
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata  
Library Version: 1.02.107 (2015-09-05)  
Execution Driver: native-0.2  
Logging Driver: journald  
Kernel Version: 4.2.3-300.fc23.x86\_64  
Operating System: Fedora 23 (Cloud Edition)  
CPUs: 1  
Total Memory: 993.5 MiB  
Name: philsdoms3  
ID: EP3H:QFNK:4ORJ:ICRC:PPK7:JEYQ:3D5S:USWE:Z4NQ:SCKD:5WS6:SRXH

> [@codinghorror](#):
>
> docker version

Client:  
Version: 1.9.1  
API version: 1.21  
Package version: docker-1.9.1-6.git6ec29ef.fc23.x86\_64  
Go version: go1.5.3  
Git commit: 7206621  
Built: Mon Jan 25 20:52:22 UTC 2016  
OS/Arch: linux/amd64

Server:  
Version: 1.9.1  
API version: 1.21  
Package version: docker-1.9.1-6.git6ec29ef.fc23.x86\_64  
Go version: go1.5.3  
Git commit: 7206621  
Built: Mon Jan 25 20:52:22 UTC 2016  
OS/Arch: linux/amd64

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [18 maart 2016 om 01:58 UTC](https://meta.discourse.org/t/new-installation-on-fedora-23-failed-runtimeerror-cd-var-www-discourse-su-discourse-c/41220/6 "2016-03-18T01:58:36Z")

</div>

Devicemapper is non starter, fails spectacularly under load and causes corruption. We block setup if we detect devicemapper. You need aufs or another better supported docker filesystem.

---

<div class="post-metadata">

### Author: ![philip\_rhoades](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/philip_rhoades/32/114647_2.png) [@philip\_rhoades](https://meta.discourse.org/u/philip_rhoades)
#### Post date: [18 maart 2016 om 02:19 UTC](https://meta.discourse.org/t/new-installation-on-fedora-23-failed-runtimeerror-cd-var-www-discourse-su-discourse-c/41220/7 "2016-03-18T02:19:56Z")

</div>

I just tried installing on my personal Fedora 23 x86\_64 workstation and it worked fine there - OK, I will have a look at the differences between the two setups and your suggestions.

Thanks!  
Phil.

---

<div class="post-metadata">

### Author: ![philip\_rhoades](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/philip_rhoades/32/114647_2.png) [@philip\_rhoades](https://meta.discourse.org/u/philip_rhoades)
#### Post date: [18 maart 2016 om 02:50 UTC](https://meta.discourse.org/t/new-installation-on-fedora-23-failed-runtimeerror-cd-var-www-discourse-su-discourse-c/41220/8 "2016-03-18T02:50:43Z")

</div>

> [@philip\_rhoades](#):
>
> the differences between the two setups

Was:

device-mapper-multipath-0.4.9-80.fc23.x86\_64  
device-mapper-multipath-libs-0.4.9-80.fc23.x86\_64

but installing them as well did not help but at least I got a different error message and I then I realised there was no swap on the new DO server so I created a 2Gb swap file and then everything installed OK!

Thanks,  
Phi.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [18 maart 2016 om 04:08 UTC](https://meta.discourse.org/t/new-installation-on-fedora-23-failed-runtimeerror-cd-var-www-discourse-su-discourse-c/41220/9 "2016-03-18T04:08:41Z")

</div>

Devicemapper will corrupt your install over time. We block install on devicemapper for that reason.

---

<div class="post-metadata">

### Author: ![philip\_rhoades](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/philip_rhoades/32/114647_2.png) [@philip\_rhoades](https://meta.discourse.org/u/philip_rhoades)
#### Post date: [18 maart 2016 om 04:19 UTC](https://meta.discourse.org/t/new-installation-on-fedora-23-failed-runtimeerror-cd-var-www-discourse-su-discourse-c/41220/10 "2016-03-18T04:19:54Z")

</div>

I found instructions here:

> <https://serverfault.com/questions/514932/aufs-missing-in-redhat-fedora-is-there-an-alternative-way-of-stacking-directori>

but I have not had to build a kernel for many, many years - I think I am well past that interest . .

This:

> **[aufs](https://en.wikipedia.org/wiki/Aufs)**
>
> aufs (short for advanced multi-layered unification filesystem) implements a union mount for Linux file systems. The name originally stood for AnotherUnionFS until version 2.
> Developed by Junjiro Okajima in 2006, aufs is a complete rewrite of the earlier UnionFS. It aimed to improve reliability and performance, but also introduced some new concepts, like writable branch balancing, and other improvements – some of which are now implemented in the UnionFS 2.x branch.
> aufs was rejected for merging ...

says:

‘aufs was rejected merging into mainline Linux. Its code was criticized for being “dense, unreadable, and uncommented”.[3] Instead, OverlayFS was merged in the Linux kernel [1][4] After several attempts, the author has given it up’

which does not give me any enthusiasm for aufs either . .

P.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [18 maart 2016 om 04:21 UTC](https://meta.discourse.org/t/new-installation-on-fedora-23-failed-runtimeerror-cd-var-www-discourse-su-discourse-c/41220/11 "2016-03-18T04:21:20Z")

</div>

Then use overlayfs, but if you use devicemapper your docker filesystem will randomly corrupt. If that is your idea of a good time, go for it. Have fun.

---

<div class="post-metadata">

### Author: ![philip\_rhoades](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/philip_rhoades/32/114647_2.png) [@philip\_rhoades](https://meta.discourse.org/u/philip_rhoades)
#### Post date: [18 maart 2016 om 04:23 UTC](https://meta.discourse.org/t/new-installation-on-fedora-23-failed-runtimeerror-cd-var-www-discourse-su-discourse-c/41220/12 "2016-03-18T04:23:35Z")

</div>

> [@codinghorror](#):
>
> if you use devicemapper your docker filesystem will randomly corrupt

Are you saying this is a general comment wrt to docker or just docker + discourse? I have only been using docker lightly so far but have had no problems . .

---

<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: [18 maart 2016 om 05:01 UTC](https://meta.discourse.org/t/new-installation-on-fedora-23-failed-runtimeerror-cd-var-www-discourse-su-discourse-c/41220/13 "2016-03-18T05:01:23Z")

</div>

Device mapper issues have nothing to do with Discourse.

Redhat team get very upset when we mention that it just does not work for us, but release after release they say there are no bugs left, and each time we keep seeing Discourse users complain about corruption due to device mapper.

---

<div class="post-metadata">

### Author: ![philip\_rhoades](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/philip_rhoades/32/114647_2.png) [@philip\_rhoades](https://meta.discourse.org/u/philip_rhoades)
#### Post date: [18 maart 2016 om 05:12 UTC](https://meta.discourse.org/t/new-installation-on-fedora-23-failed-runtimeerror-cd-var-www-discourse-su-discourse-c/41220/14 "2016-03-18T05:12:12Z")

</div>

> [@sam](#):
>
> we keep seeing Discourse users complain about corruption due to device mapper

Then you didn’t really answer my question - do any non-Discourse Fedora users see this problem?

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [18 maart 2016 om 05:26 UTC](https://meta.discourse.org/t/new-installation-on-fedora-23-failed-runtimeerror-cd-var-www-discourse-su-discourse-c/41220/15 "2016-03-18T05:26:40Z")

</div>

Just set the Docker daemon to use overlayfs, it works just fine.

---

<div class="post-metadata">

### Author: ![philip\_rhoades](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/philip_rhoades/32/114647_2.png) [@philip\_rhoades](https://meta.discourse.org/u/philip_rhoades)
#### Post date: [18 maart 2016 om 05:28 UTC](https://meta.discourse.org/t/new-installation-on-fedora-23-failed-runtimeerror-cd-var-www-discourse-su-discourse-c/41220/16 "2016-03-18T05:28:58Z")

</div>

@riking,

OK, I will have a look at that but I still haven’t had an answer to my question . .

Thanks,  
Phil.

---

<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: [18 maart 2016 om 05:31 UTC](https://meta.discourse.org/t/new-installation-on-fedora-23-failed-runtimeerror-cd-var-www-discourse-su-discourse-c/41220/17 "2016-03-18T05:31:27Z")

</div>

> [@philip\_rhoades](#):
>
> Then you didn’t really answer my question - do any non-Discourse Fedora users see this problem?

No idea but plenty of bug reports in Docker’s issue tracker [Issues · moby/moby · GitHub](https://github.com/docker/docker/labels/area%2Fstorage%2Fdevicemapper)

---

<div class="post-metadata">

### Author: ![philip\_rhoades](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/philip_rhoades/32/114647_2.png) [@philip\_rhoades](https://meta.discourse.org/u/philip_rhoades)
#### Post date: [18 maart 2016 om 05:33 UTC](https://meta.discourse.org/t/new-installation-on-fedora-23-failed-runtimeerror-cd-var-www-discourse-su-discourse-c/41220/18 "2016-03-18T05:33:37Z")

</div>

@sam,

OK, thanks.

Phil.

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [21 maart 2016 om 18:34 UTC](https://meta.discourse.org/t/new-installation-on-fedora-23-failed-runtimeerror-cd-var-www-discourse-su-discourse-c/41220/19 "2016-03-21T18:34:16Z")

</div>

It’s probably this bug, devicemapper seems to be unable to free deleted files until you delete the container: [Delete data in a container devicemapper can not free used space · Issue #18867 · moby/moby · GitHub](https://github.com/docker/docker/issues/18867)

Which is catastrophic for any long-lived server that uses temporary files in any capacity at all.
