# Installation failing on CentOS 7.3

**URL:** <https://meta.discourse.org/t/installation-failing-on-centos-7-3/58209>\
**Category:** Product Support\
**Created:** [March 2, 2017, 5:42am UTC](https://meta.discourse.org/t/installation-failing-on-centos-7-3/58209 "2017-03-02T05:42:39Z")\
**Posts on this page:** 11\
**Page:** 1

## AI-generated summary

DanielMarquard is encountering a Discourse installation failure on CentOS 7.3 using Docker 1.13.1, with errors related to missing files during `chown` operations. [codinghorror](/t/-/58209/2) suspects Docker issues common on RHEL-based systems. [mpalmer](/t/-/58209/3) suggests checking a related thread, which points to an XFS filesystem limitation: lack of `d_type` support. Daniel confirms his filesystem is XFS with `Supports d_type: false` in `docker info` [6](/t/-/58209/6). He notes he’s using the official CentOS AMI on AWS, which he can’t modify. [mpalmer](/t/-/58209/7) clarifies this isn’t a Docker bug but a kernel-level incompatibility, and advises reporting it to AWS. Daniel agrees to contact his AWS account manager [8](/t/-/58209/8). [kraml](/t/-/58209/9) notes solutions were already provided in the original thread, and [mpalmer](/t/-/58209/10) wryly attributes the issue to "A. W. S." — Amazon Web Services.

<div class="post-metadata">

**Author:** ![DanielMarquard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danielmarquard/32/74010_2.png) [@DanielMarquard](https://meta.discourse.org/u/DanielMarquard)\
**Post date:** [March 2, 2017, 5:42am UTC](https://meta.discourse.org/t/installation-failing-on-centos-7-3/58209/1 "2017-03-02T05:42:39Z")

</div>

I’ve never had a problem running Discourse on CentOS in the past, but I’m suddenly unable to build it for some reason on a new CentOS 7.3 EC2 instance.

While building, the errors begin with:

```plaintext
I, [2017-03-02T05:29:38.051256 #13] INFO -- : > cd /var/www/discourse && chown -R discourse /var/www/discourse
chown: cannot access '/var/www/discourse/app/assets/javascripts/discourse/helpers/max-usernames.js.es6': No such file or directory
chown: cannot access '/var/www/discourse/lib/locale_file_walker.rb': No such file or directory

```

…and the build fails with:

```plaintext
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && chown -R discourse /var/www/discourse failed with return #<Process::Status: pid 275 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:108:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"web", "cmd"=>["gem update bundler", "chown -R discourse $home"]}

```

Although not my usual approach, I followed the supported directions and continued to get identical errors. Here are the supported steps I’ve used on CentOS 7.3 with Docker 1.13.1 (build 092cba3) to reproduce the errors:

```sh
mkdir /var/discourse
git clone https://github.com/discourse/discourse_docker.git /var/discourse
cd /var/discourse
./discourse-setup

```

---

<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:** [March 2, 2017, 5:45am UTC](https://meta.discourse.org/t/installation-failing-on-centos-7-3/58209/2 "2017-03-02T05:45:21Z")

</div>

As usual I suspect Docker issues. Notorious under Red Hat or clones. What filesystem is being used? `docker info` and all that.

---

<div class="post-metadata">

**Author:** ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)\
**Post date:** [March 2, 2017, 5:48am UTC](https://meta.discourse.org/t/installation-failing-on-centos-7-3/58209/3 "2017-03-02T05:48:37Z")

</div>

Does [Discourse on CentOS 7.3](https://meta.discourse.org/t/discourse-on-centos-7-3/57851) help you at all?

---

<div class="post-metadata">

**Author:** ![DanielMarquard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danielmarquard/32/74010_2.png) [@DanielMarquard](https://meta.discourse.org/u/DanielMarquard)\
**Post date:** [March 2, 2017, 5:59am UTC](https://meta.discourse.org/t/installation-failing-on-centos-7-3/58209/4 "2017-03-02T05:59:42Z")

</div>

> [@codinghorror](#):
>
> As usual I suspect Docker issues. Notorious under Red Hat or clones. What filesystem is being used? docker info and all that.

Hmm. All my Dockerfiles play well with CentOS, but maybe that’s because I develop against RHEL-type distros exclusively.

> [@mpalmer](#):
>
> Does [Discourse on CentOS 7.3](https://meta.discourse.org/t/discourse-on-centos-7-3/57851) help you at all?

Maybe. This didn’t show up when I searched, but looks promising. What does “ftype” refer to? My `dump` and `fsck` values are both `0`.

`cat /etc/fstab`:

```plaintext
UUID=ef6ba050-6cdc-416a-9380-c14304d0d206 / xfs defaults 0 0

```

This is the officially-supported AMI on AWS, by the way.

---

<div class="post-metadata">

**Author:** ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)\
**Post date:** [March 2, 2017, 6:02am UTC](https://meta.discourse.org/t/installation-failing-on-centos-7-3/58209/5 "2017-03-02T06:02:09Z")

</div>

> [@DanielMarquard](#):
>
> All my Dockerfiles play well with CentOS

Do you ever do a `chmod`, `chown`, or similar in your Dockerfile? Most dockerfiles I’ve seen do absolutely everything as `root`, so they don’t hit this particular bug.

> [@DanielMarquard](#):
>
> What does “ftype” refer to?

It’s a filesystem-creation-time option. According to [the source post](https://meta.discourse.org/t/bootstrap-fails-on-centos-7/48927/20):

> [@Bootstrap fails on CentOS 7](https://meta.discourse.org/t/bootstrap-fails-on-centos-7/48927/20):
>
> On newer docker verision (1.13?) with docker info you can see support d\_type = false

So what does `docker info` have to say on your system?

---

<div class="post-metadata">

**Author:** ![DanielMarquard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danielmarquard/32/74010_2.png) [@DanielMarquard](https://meta.discourse.org/u/DanielMarquard)\
**Post date:** [March 2, 2017, 6:18am UTC](https://meta.discourse.org/t/installation-failing-on-centos-7-3/58209/6 "2017-03-02T06:18:50Z")

</div>

> [@mpalmer](#):
>
> Do you ever do a chmod, chown, or similar in your Dockerfile?

Nope.

> [@mpalmer](#):
>
> So what does docker info have to say on your system?

My `docker info` shows that `d_type` support is not enabled.

```plaintext
[root@ip-172-31-60-203 discourse]# docker info
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 1
Server Version: 1.13.1
Storage Driver: overlay
 Backing Filesystem: xfs
 Supports d_type: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: aa8187dbd3b7ad67d8e5e3a15115d3eef43a7ed1
runc version: 9df8b306d01f59d3a8029be411de015b7304dd8f
init version: 949e6fa
Security Options:
 seccomp
  Profile: default
Kernel Version: 3.10.0-514.6.2.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 3.451 GiB
Name: ip-172-31-60-203.ec2.internal
ID: 24CD:XYZA:QWO7:N3IL:DJVP:4KB3:AM4M:EFI7:WEQL:KHVD:JB2Z:ZGRZ
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false
[root@ip-172-31-60-203 discourse]# cat /etc/centos-release
CentOS Linux release 7.3.1611 (Core)
[root@ip-172-31-60-203 discourse]# nano /etc/fstab
[root@ip-172-31-60-203 discourse]# docker info
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 1
Server Version: 1.13.1
Storage Driver: overlay
 Backing Filesystem: xfs
 Supports d_type: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: aa8187dbd3b7ad67d8e5e3a15115d3eef43a7ed1
runc version: 9df8b306d01f59d3a8029be411de015b7304dd8f
init version: 949e6fa
Security Options:
 seccomp
  Profile: default
Kernel Version: 3.10.0-514.6.2.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 3.451 GiB
Name: ip-172-31-60-203.ec2.internal
ID: 24CD:XYZA:QWO7:N3IL:DJVP:4KB3:AM4M:EFI7:WEQL:KHVD:JB2Z:ZGRZ
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

```

> [@mpalmer](#):
>
> It’s a filesystem-creation-time option.

The best practice for using CentOS with EC2 is to use the officially-supported AMIs, so I’m not sure I have control over that. At least one of the issues in that post referenced a fix, but I’m running the latest Docker build from their official Yum repository, so I assume that either that fix isn’t apparent in my build or I’m running into an unresolved issue.

---

<div class="post-metadata">

**Author:** ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)\
**Post date:** [March 2, 2017, 6:26am UTC](https://meta.discourse.org/t/installation-failing-on-centos-7-3/58209/7 "2017-03-02T06:26:01Z")

</div>

> [@DanielMarquard](#):
>
> The best practice for using CentOS with EC2 is to use the officially-supported AMIs, so I’m not sure I have control over that.

Time to report a bug against that AMI, then.

> [@DanielMarquard](#):
>
> At least one of the issues in that post included a fix

The two issues linked to in [this post](https://meta.discourse.org/t/bootstrap-fails-on-centos-7/48927/20) were #9572 (filed in 2014 and not XFS specific) and #27358 which was acknowledged as not a Docker bug (and which led to the change to make it obvious in `docker info` that `Supports d_type: false`).

> [@DanielMarquard](#):
>
> I’m running into an unresolved issue

This is not a bug in Docker. You are running a configuration that does not work, and absent some changes to the kernel, _cannot_ work. Your options are as previously described in [this post](https://meta.discourse.org/t/bootstrap-fails-on-centos-7/48927/20).

---

<div class="post-metadata">

**Author:** ![DanielMarquard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danielmarquard/32/74010_2.png) [@DanielMarquard](https://meta.discourse.org/u/DanielMarquard)\
**Post date:** [March 2, 2017, 6:27am UTC](https://meta.discourse.org/t/installation-failing-on-centos-7-3/58209/8 "2017-03-02T06:27:59Z")

</div>

> [@mpalmer](#):
>
> Time to report a bug against that AMI, then.

I’ll reach out to my account manager at Amazon tomorrow. Thanks for the help.

---

<div class="post-metadata">

**Author:** ![kraml](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kraml/32/68627_2.png) [@kraml](https://meta.discourse.org/u/kraml)\
**Post date:** [March 2, 2017, 6:38am UTC](https://meta.discourse.org/t/installation-failing-on-centos-7-3/58209/9 "2017-03-02T06:38:21Z")

</div>

I’ve already included solutions in my original post, anything stopped you from doing that?

---

<div class="post-metadata">

**Author:** ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)\
**Post date:** [March 2, 2017, 8:07am UTC](https://meta.discourse.org/t/installation-failing-on-centos-7-3/58209/10 "2017-03-02T08:07:37Z")

</div>

Three little letters: A. W. S.

---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [September 5, 2022, 6:12am UTC](https://meta.discourse.org/t/installation-failing-on-centos-7-3/58209/14 "2022-09-05T06:12:04Z")

</div>

Closed on September 5, 2022, 6:12am UTC


