# Natively install Discourse in Arch Linux

**URL:** https://meta.discourse.org/t/natively-install-discourse-in-arch-linux/37647
**Category:** Self-hosting
**Created:** [January 8, 2016, 6:18pm UTC](https://meta.discourse.org/t/natively-install-discourse-in-arch-linux/37647 "2016-01-08T18:18:00Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![HLFH](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hlfh/32/122048_2.png) [@HLFH](https://meta.discourse.org/u/HLFH)
#### Post date: [January 8, 2016, 6:18pm UTC](https://meta.discourse.org/t/natively-install-discourse-in-arch-linux/37647/1 "2016-01-08T18:18:00Z")

</div>

Hi,

I’m using ruby 2.3.0p0 (2015-12-25 revision 53290) [x86\_64-linux].

I wanted to install Discourse, so after a

```plaintext
sudo -u discourse -s /usr/bin/bash -c "cd /srv/http/discourse; bundle install --no-cache --no-prune --deployment --without development test"

```

I was running:

```plaintext
sudo -u discourse -s /usr/bin/bash -c "cd /srv/http/discourse; bundle exec rake db:create db:migrate db:test:prepare RAILS_ENV=production"

```

then at the end, I got:

```
== Seed from /srv/http/discourse/db/fixtures/500_lounge_category.rb

== Seed from /srv/http/discourse/db/fixtures/501_meta_category.rb

== Seed from /srv/http/discourse/db/fixtures/502_staff_category.rb

== Seed from /srv/http/discourse/db/fixtures/999_settings.rb

== Seed from /srv/http/discourse/db/fixtures/999_topics.rb
rake aborted!
NoMethodError: undefined method `[]' for nil:NilClass
/srv/http/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.1.10/lib/active_record/tasks/database_tasks.rb:144:in `purge'
/srv/http/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.1.10/lib/active_record/railties/databases.rake:347:in `block (3 levels) in <top (required)>'
/srv/http/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.1.10/lib/active_record/railties/databases.rake:353:in `block (3 levels) in <top (required)>'
Tasks: TOP => db:test:load => db:test:purge

```

It’s with the Master version of Discourse I’m getting this issue and also with some previous tested versions like 1.3.2.

---

<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: [January 8, 2016, 6:31pm UTC](https://meta.discourse.org/t/natively-install-discourse-in-arch-linux/37647/2 "2016-01-08T18:31:19Z")

</div>

Are you following the only supported way to install discourse?

> <https://github.com/discourse/discourse/blob/main/docs/INSTALL-cloud.md>

---

<div class="post-metadata">

### Author: ![HLFH](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hlfh/32/122048_2.png) [@HLFH](https://meta.discourse.org/u/HLFH)
#### Post date: [January 8, 2016, 6:49pm UTC](https://meta.discourse.org/t/natively-install-discourse-in-arch-linux/37647/3 "2016-01-08T18:49:26Z")

</div>

No. I’m on ArchLinux. (It’s a bug to support only Discourse based on an Docker-Ubuntu image). So, could you officially support Discourse based on Docker-ArchLinux image? Or, could you support natively ArchLinux and remove the heavy Docker? I guess it’s a no.

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [January 8, 2016, 7:06pm UTC](https://meta.discourse.org/t/natively-install-discourse-in-arch-linux/37647/4 "2016-01-08T19:06:02Z")

</div>

Since Arch Linux supports Docker, Discourse should [run just fine on it](https://meta.discourse.org/t/arch-linux-and-discourse/26974).

---

<div class="post-metadata">

### Author: ![HLFH](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hlfh/32/122048_2.png) [@HLFH](https://meta.discourse.org/u/HLFH)
#### Post date: [January 8, 2016, 7:13pm UTC](https://meta.discourse.org/t/natively-install-discourse-in-arch-linux/37647/5 "2016-01-08T19:13:55Z")

</div>

The Docker image is based only on Ubuntu not on ArchLinux. [discourse\_docker/image/base/Dockerfile at master · discourse/discourse\_docker · GitHub](https://github.com/discourse/discourse_docker/blob/master/image/base/Dockerfile)

When we choose ArchLinux, we choose ArchLinux, not Ubuntu…

Seriously, you should support a Docker-ArchLinux image. And btw, it’ll be great to fix the bug above.Thanks 🙂

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [January 8, 2016, 7:15pm UTC](https://meta.discourse.org/t/natively-install-discourse-in-arch-linux/37647/6 "2016-01-08T19:15:25Z")

</div>

What you’re describing above is not a bug – you are simply not using the supported install method.

Why should you care about the operating system _inside_ the container?

---

<div class="post-metadata">

### Author: ![HLFH](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hlfh/32/122048_2.png) [@HLFH](https://meta.discourse.org/u/HLFH)
#### Post date: [January 8, 2016, 7:29pm UTC](https://meta.discourse.org/t/natively-install-discourse-in-arch-linux/37647/7 "2016-01-08T19:29:14Z")

</div>

> [@fefrei](#):
>
> What you’re describing above is not a bug – you are simply not using the supported install method.

It’s not an install method. When you use a container, you don’t really install it, you are just bloating your operating system with the bleeding-edge of virtualization and encouraging the laziness of some software developers that prefer their own environment to the environment of their potential users.

So, yes it’s a bug, and yes, it’s your choice to support only an Ubuntu-based Docker image that runs Discourse.

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [January 8, 2016, 7:31pm UTC](https://meta.discourse.org/t/natively-install-discourse-in-arch-linux/37647/8 "2016-01-08T19:31:25Z")

</div>

> [@HLFH](#):
>
> So, yes it’s a bug

If you want to see it like this, feel free to do so. You will be on your own, however: In this forum, we can only support the Docker-based installation.

---

<div class="post-metadata">

### Author: ![HLFH](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hlfh/32/122048_2.png) [@HLFH](https://meta.discourse.org/u/HLFH)
#### Post date: [January 8, 2016, 7:33pm UTC](https://meta.discourse.org/t/natively-install-discourse-in-arch-linux/37647/9 "2016-01-08T19:33:30Z")

</div>

Ok. I was using Flarum. I’ll probably migrate to NodeBB. 😭

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [January 8, 2016, 7:42pm UTC](https://meta.discourse.org/t/natively-install-discourse-in-arch-linux/37647/10 "2016-01-08T19:42:41Z")

</div>

Discourse is open source.

If you want to do things “your own way” there’s nothing stopping you from doing so.

The main issue is support. The Discourse team has a lot on it’s plate just helping those that are doing things the supported way.

Supporting non-Discourse-supported procedure sounds like a golden business opportunity for you.

---

<div class="post-metadata">

### Author: ![HLFH](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hlfh/32/122048_2.png) [@HLFH](https://meta.discourse.org/u/HLFH)
#### Post date: [January 8, 2016, 8:20pm UTC](https://meta.discourse.org/t/natively-install-discourse-in-arch-linux/37647/11 "2016-01-08T20:20:14Z")

</div>

For Discourse, I’m using only the ArchLinux package from the [ArchLinux AUR](https://aur.archlinux.org/packages/discourse/).

ArchLinux follows the KISS principle unlike Ruby on Rails, Ubuntu or Docker.

Nope, it’s not a golden business opportunity because I’ll [migrate to NodeBB](https://nodebb.org/) that supports ArchLinux.

And Flarum is also a great alternative to Discourse. But it’s currently in Beta and some issues are not fixed, so I’ll choose NodeBB. 😘

---

<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: [January 8, 2016, 8:35pm UTC](https://meta.discourse.org/t/natively-install-discourse-in-arch-linux/37647/12 "2016-01-08T20:35:40Z")

</div>


