# Hosting Discourse on a Raspberry Pi?

**URL:** https://meta.discourse.org/t/hosting-discourse-on-a-raspberry-pi/117422
**Category:** Self-hosting
**Tags:** arm, hosting
**Created:** [May 10, 2019, 7:50pm UTC](https://meta.discourse.org/t/hosting-discourse-on-a-raspberry-pi/117422 "2019-05-10T19:50:40Z")
**Posts on this page:** 19
**Page:** 2

<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: [June 21, 2020, 7:21pm UTC](https://meta.discourse.org/t/hosting-discourse-on-a-raspberry-pi/117422/22 "2020-06-21T19:21:57Z")

</div>

In my opinion you are better off waiting for the eventual Raspberry Pi 5, which – if you graph forward the progress in Pi performance from 2, to 3, to 4 – should have enough oomph to run Discourse.

I’m not sure the x86 (x64?) dependencies are surmountable at the moment, either, but not a bad idea to look at that for longer term.

---

<div class="post-metadata">

### Author: ![balboah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/balboah/32/184387_2.png) [@balboah](https://meta.discourse.org/u/balboah)
#### Post date: [June 21, 2020, 7:29pm UTC](https://meta.discourse.org/t/hosting-discourse-on-a-raspberry-pi/117422/23 "2020-06-21T19:29:33Z")

</div>

A cluster of Pi 4 with the 64-bit quad core 1,5Ghz and possibly USB3 disks for storage (~300MB/s) or external blob store (S3 or GCP) and a CDN in front of those anonymous users must be a possible platform alternative 🙂 Future will tell!

---

<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 21, 2020, 7:39pm UTC](https://meta.discourse.org/t/hosting-discourse-on-a-raspberry-pi/117422/24 "2020-06-21T19:39:58Z")

</div>

> [@balboah](#):
>
> 536870912 bytes (537 MB, 512 MiB) copied, 2.31501 s, 232 MB/s

That’s not really a meaningful number on its own.

You didn’t specify which microSD card that was, but it’s in the same order of magnitude as a Lexar Professional 1800x, which can sustain sequential read speeds of ~300MB/s and writes approaching 250MB/s. Sequential reads and writes aren’t the problem with microSD though, you need to look at random reads/writes to get a real feel for what’s going to be happening with multiple users hitting the database and local assets.

Modern SSDs usually fall in the region of 500MB/s+ sequential reads and 475Mb/s+ sequential writes - which isn’t too far off the numbers above. The performance delta on random reads/write though is huge - the same SSD will pull up too 400MB/s on a 4KiBQ8T8 while the Lexar drops to low double-digits, at 15MB/s or thereabouts. Random writes are even worse, with SSD still sustaining as much as 300MB/s while a microSD gets nailed well into low single digits (2MB/s).

I’m a big fan of rPi, and use them in a bunch of places, but they’re still a long way from where we need them to be.

---

<div class="post-metadata">

### Author: ![balboah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/balboah/32/184387_2.png) [@balboah](https://meta.discourse.org/u/balboah)
#### Post date: [June 21, 2020, 7:50pm UTC](https://meta.discourse.org/t/hosting-discourse-on-a-raspberry-pi/117422/25 "2020-06-21T19:50:57Z")

</div>

It’s a USD $20 (in Sweden) sandisk 64GB card, rated A2 I believe. Just wanted to prove the pure sequential speed is not as bad as you made it sound 🙂

If it doesn’t work on the rPi even with external SSD on the USB3 ports, I’d assume running the database externally would fix that particular bottleneck. But I’m biased as I like the idea of getting an arm cluster up and running with the now real 1GBit/s NICs on Pi 4. I also like to challenge “it doesn’t work” mentality in general 😉

---

<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 21, 2020, 7:56pm UTC](https://meta.discourse.org/t/hosting-discourse-on-a-raspberry-pi/117422/26 "2020-06-21T19:56:07Z")

</div>

> [@balboah](#):
>
> I also like to challenge “it doesn’t work” mentality in general 😉

If you throw enough time, money and resources at anything you can make it work.

Requests to run Discourse on a Raspberry Pi over the past few years typically originate from users who have a Pi, and don’t want to spend anything beyond that. That’s effectively what we’re exploring here.

The moment you start bolting on external SSDs and offloading the database to a different system you aren’t really talking about hosting Discourse on a Raspberry Pi at all. 😉

---

<div class="post-metadata">

### Author: ![balboah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/balboah/32/184387_2.png) [@balboah](https://meta.discourse.org/u/balboah)
#### Post date: [June 21, 2020, 8:04pm UTC](https://meta.discourse.org/t/hosting-discourse-on-a-raspberry-pi/117422/27 "2020-06-21T20:04:44Z")

</div>

> [@Stephen](#):
>
> users who have a Pi, and don’t want to spend anything beyond that

Right. I agree you still usually get what you pay for 🙂

---

<div class="post-metadata">

### Author: ![Massym](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@Massym](https://meta.discourse.org/u/Massym)
#### Post date: [November 24, 2020, 10:30am UTC](https://meta.discourse.org/t/hosting-discourse-on-a-raspberry-pi/117422/28 "2020-11-24T10:30:06Z")

</div>

take a Raspberry PI 4 ram4 or ram8 😉 then take one MicroSD (INDUSTRIAL) up Amazzon… Ebay…  
write on Docker dal sito: [https://blog.hypriot.com/](https://blog.hypriot.com/) 🥰 🙂 precisely to the section: Download, latest version.  
once the image is written to SD, insert in the Raspberry PI and connect away SSH (Username Password for Docker SSH I’m: “pirate” “hypriot” → (User: pirate) (Pass: hypriot).) obviously after connecting SSH change the credentials to your liking from → sudo raspi-config, restart Raspberry.  
once restarted, connect with SSH and install “Discourse” following this guide: [https://linoxide.com/how-tos/install-discourse-docker-container/](https://linoxide.com/how-tos/install-discourse-docker-container/)😉 obviously you will start from the point 2) because Docker you installed it right from the start.

good fun.

---

<div class="post-metadata">

### Author: ![cron](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@cron](https://meta.discourse.org/u/cron)
#### Post date: [December 3, 2020, 10:49pm UTC](https://meta.discourse.org/t/hosting-discourse-on-a-raspberry-pi/117422/29 "2020-12-03T22:49:21Z")

</div>

Hi Massym,

I followed your instructions, installed hypriot, etc., but got the following error:

```
  $ ./launcher bootstrap app
  standard_init_linux.go:211: exec user process caused "exec format error"
  Your Docker installation is not working correctly

  See: https://meta.discourse.org/t/docker-error-on-bootstrap/13657/18?u=sam

```

Any thoughts?

Thank you.

---

<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: [December 3, 2020, 11:07pm UTC](https://meta.discourse.org/t/hosting-discourse-on-a-raspberry-pi/117422/30 "2020-12-03T23:07:41Z")

</div>

> [@Your Docker installation is not working correctly on Linux/ARM](https://meta.discourse.org/t/your-docker-installation-is-not-working-correctly-on-linux-arm/78876/5):
>
> Discourse isn’t supported in arm64 arch, only x86\_64.

---

<div class="post-metadata">

### Author: ![cron](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@cron](https://meta.discourse.org/u/cron)
#### Post date: [December 3, 2020, 11:25pm UTC](https://meta.discourse.org/t/hosting-discourse-on-a-raspberry-pi/117422/31 "2020-12-03T23:25:51Z")

</div>

I really appreciate your prompt reply, Rafael.

Apparently I was mistaken in inferring that Massym successfully got Discourse running on a Raspberry Pi 4 as rereading his post, he doesn’t specifically assert that. Big waste of time on my end, but at least a learning exercise.

What specific component within Discourse is not supported? I and I’m sure many others would be eager to get it working.

Thanks.

---

<div class="post-metadata">

### Author: ![marianord](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marianord/32/90502_2.png) [@marianord](https://meta.discourse.org/u/marianord)
#### Post date: [December 4, 2020, 2:39am UTC](https://meta.discourse.org/t/hosting-discourse-on-a-raspberry-pi/117422/32 "2020-12-04T02:39:48Z")

</div>

> [@cron](#):
>
> What specific component within Discourse is not supported?

I would go ahead and guess that Discourse is using images built for `x86_64` that being Redis, Ruby, PostgreSQL.

---

<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: [December 4, 2020, 3:08am UTC](https://meta.discourse.org/t/hosting-discourse-on-a-raspberry-pi/117422/33 "2020-12-04T03:08:07Z")

</div>

> [@cron](#):
>
> What specific component within Discourse is not supported? I and I’m sure many others would be eager to get it working.

It’s our V8/MiniRacer lib, that runs Javascript on the server.

Now that Apple introduced the M1 processor family I’m sure that we will get that working on ARM soon enough.

---

<div class="post-metadata">

### Author: ![ajo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ajo/32/115941_2.png) [@ajo](https://meta.discourse.org/u/ajo)
#### Post date: [January 18, 2021, 2:50pm UTC](https://meta.discourse.org/t/hosting-discourse-on-a-raspberry-pi/117422/34 "2021-01-18T14:50:16Z")

</div>

I’m looking forward to see that working. One of my forums, running on discourse, is the last item I have pending while moving into a rpi4 cluster, which consumes infinitely less power than the intel based server.

---

<div class="post-metadata">

### Author: ![ajo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ajo/32/115941_2.png) [@ajo](https://meta.discourse.org/u/ajo)
#### Post date: [February 3, 2021, 9:26am UTC](https://meta.discourse.org/t/hosting-discourse-on-a-raspberry-pi/117422/35 "2021-02-03T09:26:28Z")

</div>

Bump, were there any advances on the v8 gem for ARM?, I tried to compile the images, but always got stuck at that gem, it’s a little bit intricate , it fails mostly because the scripts will try to download X86\_64 tools (for the build) and run them in ARM…

---

<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: [February 3, 2021, 11:49pm UTC](https://meta.discourse.org/t/hosting-discourse-on-a-raspberry-pi/117422/36 "2021-02-03T23:49:27Z")

</div>

See:

> **[Tips and tricks for developing Rails applications on Apple Silicon](https://discuss.rubyonrails.org/t/tips-and-tricks-for-developing-rails-applications-on-apple-silicon/77089)**
>
> At Discourse we have been experimenting recently with getting our whole stack running natively on Apple’s new M1 machines. In the last few weeks things have come together and there are now a few of us using this setup for day-to-day development,...

---

<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: [February 14, 2021, 12:11am UTC](https://meta.discourse.org/t/hosting-discourse-on-a-raspberry-pi/117422/37 "2021-02-14T00:11:46Z")

</div>

ARM on the server (and in Ruby) will make a lot of progress very soon thanks to Apple’s amazing M1 chip finally appearing in a real laptop.

But the Raspberry Pi itself – even the much improved 4 – is woefully underpowered to be a server. Per [this post](https://www.raspberrypi.org/forums/viewtopic.php?t=262638) and the Speedometer 2.0 results…

> 3B+ Buster 32-bit kernel  
> 9.49/9.66/9.46 = **9.54** Chromium
> 
> 4B4 Buster 64-bit kernel (32 bit had equal results)  
> 17.2/17.0/17.1 = **17.1** Chromium
> 
> OnePlus 7 Pro smartphone (Snapdragon 855, 8GB RAM, Android/Oxygen OS 10)  
> 36.3/35.9/36.8 = **36.3** Chrome
> 
> HP Chromebook x2 (dual core M3-7Y30)  
> 68.2/68.6/68.0 = **68.3** Chrome OS 78
> 
> Legion Y520 budget gaming laptop (i7-7700HQ Win10x64)  
> 87.4/86.8/87.3 = **87.2** Chrome

Based on those numbers, I hypothesize that a theoretical future Raspberry Pi 5, if it ..

- at _least_ doubles performance over the Pi 4
- has a mini M.2 SSD of some kind for storage, not an SD card

.. could _maybe_ be a viable Discourse server for a very low traffic Discourse forum?

---

<div class="post-metadata">

### Author: ![ajo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ajo/32/115941_2.png) [@ajo](https://meta.discourse.org/u/ajo)
#### Post date: [February 15, 2021, 9:07pm UTC](https://meta.discourse.org/t/hosting-discourse-on-a-raspberry-pi/117422/38 "2021-02-15T21:07:35Z")

</div>

Soon to be seen, I have been running other rails applications on rpi4 and I was happy about the performance, but I must admit they were much simpler than discourse.

---

<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: [December 7, 2021, 2:08pm UTC](https://meta.discourse.org/t/hosting-discourse-on-a-raspberry-pi/117422/39 "2021-12-07T14:08:54Z")

</div>

This is now supported

> **[Discourse on a Raspberry Pi](https://blog.discourse.org/2021/12/2021-12-07-discourse-on-a-raspberry-pi/)**
>
> Running a production instance of Discourse in a $35 Raspberry Pi 4

---

<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: [December 7, 2021, 2:08pm UTC](https://meta.discourse.org/t/hosting-discourse-on-a-raspberry-pi/117422/40 "2021-12-07T14:08:57Z")

</div>



[Previous page](https://meta.discourse.org/t/hosting-discourse-on-a-raspberry-pi/117422.md?page=1)
