# Self-hosting

**URL:** https://meta.discourse.org/c/support/self-hosting/31.md?page=35

[Latest](https://meta.discourse.org/latest.md) · [Categories](https://meta.discourse.org/categories.md) · [Tags](https://meta.discourse.org/tags.md)

**Page:** 36

---

## [Best practices for customizing deployment](https://meta.discourse.org/t/best-practices-for-customizing-deployment/290048)

<div class="topic-metadata">

**Author:** [@aas](https://meta.discourse.org/u/aas)\
**Replies:** 2\
**Last updated:** [December 30, 2023, 12:14am UTC](https://meta.discourse.org/t/best-practices-for-customizing-deployment/290048 "2023-12-30T00:14:17Z")

</div>

It is common to edit app.yml in order to tweak Discourse settings. Additionally, in How to avoid throttling limits with admin API key? - #7 by aas I discovered that I need to modify the nginx config to avoid rate-limiti…

---

## [Cloud storage and cdn](https://meta.discourse.org/t/cloud-storage-and-cdn/289993)

<div class="topic-metadata">

**Author:** [@thomson\_spratt](https://meta.discourse.org/u/thomson_spratt)\
**Replies:** 1\
**Last updated:** [December 29, 2023, 4:47am UTC](https://meta.discourse.org/t/cloud-storage-and-cdn/289993 "2023-12-29T04:47:49Z")

</div>

I’m posting because I can’t find an updated version. I’m thinking of using discourse with wasabi/backblaze and a CDN like cloudflare. I’d appreciate a guide or tutorial on the above. Thank you for reading during this …

---

## [Rebuild failed - FAILED TO BOOTSTRAP](https://meta.discourse.org/t/rebuild-failed-failed-to-bootstrap/289514)

<div class="topic-metadata">

**Author:** [@AstonJ](https://meta.discourse.org/u/AstonJ)\
**Replies:** 20\
**Last updated:** [December 28, 2023, 8:26pm UTC](https://meta.discourse.org/t/rebuild-failed-failed-to-bootstrap/289514 "2023-12-28T20:26:47Z")

</div>

Been a while since this forum was updated, getting this message after a git pull and rebuild: FAILED -------------------- Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle install --retry 3 --jobs 4' fai…

---

## [Migrate Discourse broke S3 images](https://meta.discourse.org/t/migrate-discourse-broke-s3-images/289962)

<div class="topic-metadata">

**Author:** [@dylanb](https://meta.discourse.org/u/dylanb)\
**Replies:** 2\
**Last updated:** [December 28, 2023, 5:08pm UTC](https://meta.discourse.org/t/migrate-discourse-broke-s3-images/289962 "2023-12-28T17:08:56Z")

</div>

Apologies… One more issue after migrating my site after failed upload. Everything seems to be working except images. Stored images don’t work, upload images gives an error. I was using S3, and it seems like something d…

---

## [Possible bug with mail: certificate verify failed (unable to get local issuer certificate)](https://meta.discourse.org/t/possible-bug-with-mail-certificate-verify-failed-unable-to-get-local-issuer-certificate/289707)

<div class="topic-metadata">

**Author:** [@AstonJ](https://meta.discourse.org/u/AstonJ)\
**Replies:** 5\
**Last updated:** [December 27, 2023, 2:56am UTC](https://meta.discourse.org/t/possible-bug-with-mail-certificate-verify-failed-unable-to-get-local-issuer-certificate/289707 "2023-12-27T02:56:07Z")

</div>

Set up a discourse install on a new server and had issues with mail (certificate verify failed (unable to get local issuer certificate)) even though I could send/receive email from the same address via my Mac and iPhone …

---

## [Failed install on ubuntu 22.04](https://meta.discourse.org/t/failed-install-on-ubuntu-22-04/289745)

<div class="topic-metadata">

**Author:** [@John7](https://meta.discourse.org/u/John7)\
**Replies:** 1\
**Last updated:** [December 25, 2023, 8:44pm UTC](https://meta.discourse.org/t/failed-install-on-ubuntu-22-04/289745 "2023-12-25T20:44:02Z")

</div>

I’m trying to install discourse on a fresh ubuntu server and its not working. I’m following the guide on the github Full log root@website1-2:/var/discourse# ./discourse-setup Failed to find docker or docker.io on your …

---

## [Local-Network Only Discourse](https://meta.discourse.org/t/local-network-only-discourse/289569)

<div class="topic-metadata">

**Author:** [@red2](https://meta.discourse.org/u/red2)\
**Replies:** 7\
**Last updated:** [December 24, 2023, 10:22pm UTC](https://meta.discourse.org/t/local-network-only-discourse/289569 "2023-12-24T22:22:36Z")

</div>

Hello, I am interested in creating a Discourse forum for use at one location on one network. This is because the forum does not need to be (nor should it be) accessible externally. I’ve seen couple of topics which sound …

---

## [Background saving terminated with success](https://meta.discourse.org/t/background-saving-terminated-with-success/289649)

<div class="topic-metadata">

**Author:** [@matei12345gr](https://meta.discourse.org/u/matei12345gr)\
**Replies:** 1\
**Last updated:** [December 23, 2023, 8:34pm UTC](https://meta.discourse.org/t/background-saving-terminated-with-success/289649 "2023-12-23T20:34:54Z")

</div>

I’m trying to follow this guide : discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub But its when I run the build command, its stuck on Background saving terminated with success and doesnt want to co…

---

## [Issue with installation in an Ubuntu 22.04 VM](https://meta.discourse.org/t/issue-with-installation-in-an-ubuntu-22-04-vm/289335)

<div class="topic-metadata">

**Author:** [@mrhassan60](https://meta.discourse.org/u/mrhassan60)\
**Replies:** 10\
**Last updated:** [December 22, 2023, 10:17am UTC](https://meta.discourse.org/t/issue-with-installation-in-an-ubuntu-22-04-vm/289335 "2023-12-22T10:17:58Z")

</div>

Hi, I’m a beginner and I’d like to try installing Discourse for a project, but I’m having trouble installing Discourse in a Ubuntu 22.04 VM. I followed the tutorial at discourse/docs/INSTALL-cloud.md at main · discourse/…

---

## [Can't rebuild app stuck extracting one layer](https://meta.discourse.org/t/cant-rebuild-app-stuck-extracting-one-layer/289390)

<div class="topic-metadata">

**Author:** [@LOCOSP](https://meta.discourse.org/u/LOCOSP)\
**Replies:** 3\
**Last updated:** [December 21, 2023, 1:34am UTC](https://meta.discourse.org/t/cant-rebuild-app-stuck-extracting-one-layer/289390 "2023-12-21T01:34:06Z")

</div>

Hi, Im trying to change domain name for my instance and after I’ve change app.yml I did ./launcher rebuild app ( but last time I ran out of storage and that killed my VM. After recovering VM I’m still trying run ./laun…

---

## [Hanging on app rebuild](https://meta.discourse.org/t/hanging-on-app-rebuild/289481)

<div class="topic-metadata">

**Author:** [@heyrocker](https://meta.discourse.org/u/heyrocker)\
**Replies:** 2\
**Last updated:** [December 21, 2023, 10:48pm UTC](https://meta.discourse.org/t/hanging-on-app-rebuild/289481 "2023-12-21T22:48:40Z")

</div>

I’m in the process of moving to a new Droplet using this guide I’ve gotten to where I need to rebuild, and it goes along fine for a while before getting here: 110:M 21 Dec 2023 17:29:25.029 \* Background saving starte…

---

## [Does discourse launcher / docker use the local postgresql and redis servers?](https://meta.discourse.org/t/does-discourse-launcher-docker-use-the-local-postgresql-and-redis-servers/289398)

<div class="topic-metadata">

**Author:** [@dalu74](https://meta.discourse.org/u/dalu74)\
**Replies:** 3\
**Last updated:** [December 21, 2023, 1:15am UTC](https://meta.discourse.org/t/does-discourse-launcher-docker-use-the-local-postgresql-and-redis-servers/289398 "2023-12-21T01:15:30Z")

</div>

Today I installed discourse on a new host, via docker, more or less via this thread: The pre-install document says that Postgresql13+ Ruby 3.2+ and Redis 7 should be installed. Or actually is just says “Software requi…

---

## [Bottom line: Is Discourse now $12/month minimum on DigitalOcean? 😔 \[Not yet! 🙂\]](https://meta.discourse.org/t/bottom-line-is-discourse-now-12-month-minimum-on-digitalocean-not-yet/287786)

<div class="topic-metadata">

**Author:** [@pearsonified](https://meta.discourse.org/u/pearsonified)\
**Replies:** 23\
**Last updated:** [December 18, 2023, 8:32pm UTC](https://meta.discourse.org/t/bottom-line-is-discourse-now-12-month-minimum-on-digitalocean-not-yet/287786 "2023-12-18T20:32:50Z")

</div>

This is my 5th time setting up Discourse, and in each of the previous 4 attempts, I’ve been able to use the $6/month Droplet to get the job done. But now DO says life with Discourse starts at the $12/month price point. …

---

## [Unable to locate Gemfile when installing Algolia plugin](https://meta.discourse.org/t/unable-to-locate-gemfile-when-installing-algolia-plugin/288948)

<div class="topic-metadata">

**Author:** [@ontologize](https://meta.discourse.org/u/ontologize)\
**Replies:** 4\
**Last updated:** [December 17, 2023, 11:11pm UTC](https://meta.discourse.org/t/unable-to-locate-gemfile-when-installing-algolia-plugin/288948 "2023-12-17T23:11:47Z")

</div>

Summary In the process of installing the Algolia plugin, when I go to perform the first index, I receive the error Could not locate Gemfile or .bundle/ directory when running the command LOAD\_PLUGINS=1 bundle exec rail…

---

## [Update Fails with Unexpected Error During Rebuild](https://meta.discourse.org/t/update-fails-with-unexpected-error-during-rebuild/288718)

<div class="topic-metadata">

**Author:** [@TroyaNO](https://meta.discourse.org/u/TroyaNO)\
**Replies:** 9\
**Last updated:** [December 16, 2023, 1:10am UTC](https://meta.discourse.org/t/update-fails-with-unexpected-error-during-rebuild/288718 "2023-12-16T01:10:23Z")

</div>

Hi Everyone, I’m stuck with a Discourse update issue. The rebuild command fails, and I can’t complete the update. It’s related to the bundle install step… FAILED Pups::ExecError: cd /var/www/discourse && su discourse -…

---

## [Docker not found](https://meta.discourse.org/t/docker-not-found/288799)

<div class="topic-metadata">

**Author:** [@dooooove](https://meta.discourse.org/u/dooooove)\
**Replies:** 2\
**Last updated:** [December 15, 2023, 2:12pm UTC](https://meta.discourse.org/t/docker-not-found/288799 "2023-12-15T14:12:12Z")

</div>

I prepared the rebuild app after installing the plugin, but strangely, it failed. Here is the code: (Sorry, this issue may be foolish, I am a complete beginner) ubuntu@VM-4-2-ubuntu:/var/discourse$ ./launcher rebuild ap…

---

## [Need help in installation](https://meta.discourse.org/t/need-help-in-installation/288608)

<div class="topic-metadata">

**Author:** [@HardikJade](https://meta.discourse.org/u/HardikJade)\
**Replies:** 3\
**Last updated:** [December 14, 2023, 7:06pm UTC](https://meta.discourse.org/t/need-help-in-installation/288608 "2023-12-14T19:06:56Z")

</div>

Hey I install discourse and follow advance developer guide But I am getting this error

---

## [Trouble with Google Bucket for backup](https://meta.discourse.org/t/trouble-with-google-bucket-for-backup/139959)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 4\
**Last updated:** [December 14, 2023, 6:39pm UTC](https://meta.discourse.org/t/trouble-with-google-bucket-for-backup/139959 "2023-12-14T18:39:16Z")

</div>

On a site where backups and uploads to Google buckets was working, the backup page now says: Failed to access backup storage: A header or query you provided requested a function that is not implemented. I thought that …

---

## [502 Bad Gateway after online rebuild of tests-passed Production just now](https://meta.discourse.org/t/502-bad-gateway-after-online-rebuild-of-tests-passed-production-just-now/288705)

<div class="topic-metadata">

**Author:** [@merefield](https://meta.discourse.org/u/merefield)\
**Replies:** 4\
**Last updated:** [December 14, 2023, 5:36pm UTC](https://meta.discourse.org/t/502-bad-gateway-after-online-rebuild-of-tests-passed-production-just-now/288705 "2023-12-14T17:36:57Z")

</div>

Restarting the server, restarting the container, console rebuilding doesn’t help. Container is up as I can ./launcher enter app Got a bunch of these in logs, ideas on how to investigate redis failure? Error connecting…

---

## [Discourse + DigitalOcean + Mailjet setup](https://meta.discourse.org/t/discourse-digitalocean-mailjet-setup/287773)

<div class="topic-metadata">

**Author:** [@pearsonified](https://meta.discourse.org/u/pearsonified)\
**Replies:** 34\
**Last updated:** [December 14, 2023, 3:35pm UTC](https://meta.discourse.org/t/discourse-digitalocean-mailjet-setup/287773 "2023-12-14T15:35:14Z")

</div>

Before flaming me, please note I’ve read through nearly every post on these forums about Discourse + Mailjet, but nothing has answered my specific question. During the setup process, Discourse wants the following inform…

---

## [How to make the gem installation in discourse-ai use the gem image source modified in web.china.template.yml?](https://meta.discourse.org/t/how-to-make-the-gem-installation-in-discourse-ai-use-the-gem-image-source-modified-in-web-china-template-yml/288645)

<div class="topic-metadata">

**Author:** [@sober](https://meta.discourse.org/u/sober)\
**Replies:** 9\
**Last updated:** [December 14, 2023, 2:35am UTC](https://meta.discourse.org/t/how-to-make-the-gem-installation-in-discourse-ai-use-the-gem-image-source-modified-in-web-china-template-yml/288645 "2023-12-14T02:35:47Z")

</div>

problem When I was in China, I wanted to change the gem mirror source. At discourse-ai of fork, I modified the gem mirror source information in Gemfile and gemfile. lock, but the log display was still downloaded from htt…

---

## [FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory](https://meta.discourse.org/t/fatal-error-reached-heap-limit-allocation-failed-javascript-heap-out-of-memory/288543)

<div class="topic-metadata">

**Author:** [@mholt](https://meta.discourse.org/u/mholt)\
**Replies:** 5\
**Last updated:** [December 13, 2023, 4:27pm UTC](https://meta.discourse.org/t/fatal-error-reached-heap-limit-allocation-failed-javascript-heap-out-of-memory/288543 "2023-12-13T16:27:41Z")

</div>

Rebuild failure: "extconf failed, exit code 1" -- due to old Docker? I’m getting this too, and now our forum is offline :thinking:

---

## [AI Plugin Build Error - 'bundle exec rake db:migrate' failed](https://meta.discourse.org/t/ai-plugin-build-error-bundle-exec-rake-db-migrate-failed/288104)

<div class="topic-metadata">

**Author:** [@dfriestedt](https://meta.discourse.org/u/dfriestedt)\
**Replies:** 9\
**Last updated:** [December 13, 2023, 2:08am UTC](https://meta.discourse.org/t/ai-plugin-build-error-bundle-exec-rake-db-migrate-failed/288104 "2023-12-13T02:08:17Z")

</div>

I recently tried to install the AI plugin and got the following error on build. FAILED -------------------- Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #\<P…

---

## [I can't start a Discourse](https://meta.discourse.org/t/i-cant-start-a-discourse/287894)

<div class="topic-metadata">

**Author:** [@Wleksion](https://meta.discourse.org/u/Wleksion)\
**Replies:** 42\
**Last updated:** [December 13, 2023, 5:26am UTC](https://meta.discourse.org/t/i-cant-start-a-discourse/287894 "2023-12-13T05:26:37Z")

</div>

failed with return #\<Process::Status: pid 147 exit 128\> Location of failure: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups/exec\_command.rb:132:in \`spawn' exec failed with the params {"cd"=\>"$home", "hook"=\>"co…

---

## [Installing Discourse on windows using Docker Desktop](https://meta.discourse.org/t/installing-discourse-on-windows-using-docker-desktop/288251)

<div class="topic-metadata">

**Author:** [@ISMAIL\_BELHOUSSAINE](https://meta.discourse.org/u/ISMAIL_BELHOUSSAINE)\
**Replies:** 4\
**Last updated:** [December 12, 2023, 3:35pm UTC](https://meta.discourse.org/t/installing-discourse-on-windows-using-docker-desktop/288251 "2023-12-12T15:35:53Z")

</div>

Hello all, Using a windows corporate laptop, i cant really have WSL on my pc without admin rights. I was wondering if it is possible to use Discourse only using Docker Desktop without WSL ? I dont want my website to be …

---

## [Need tips on making my forum faster](https://meta.discourse.org/t/need-tips-on-making-my-forum-faster/284345)

<div class="topic-metadata">

**Author:** [@codergautam](https://meta.discourse.org/u/codergautam)\
**Replies:** 19\
**Last updated:** [December 11, 2023, 3:32pm UTC](https://meta.discourse.org/t/need-tips-on-making-my-forum-faster/284345 "2023-12-11T15:32:11Z")

</div>

My forum is scoring very badly in Lighthouse performance category and is being penalized on Google Im wondering is there any way to improve this speed? my site has around 2k members, 100k posts, and 5k topics. I a…

---

## [Error An unexpected error occurred: "https://registry.yarnpkg.com/ember-template-lint/-/ember-template-lint-5.11.2.tgz: ETIMEDOUT"](https://meta.discourse.org/t/error-an-unexpected-error-occurred-https-registry-yarnpkg-com-ember-template-lint-ember-template-lint-5-11-2-tgz-etimedout/288177)

<div class="topic-metadata">

**Author:** [@sober](https://meta.discourse.org/u/sober)\
**Replies:** 4\
**Last updated:** [December 11, 2023, 12:38pm UTC](https://meta.discourse.org/t/error-an-unexpected-error-occurred-https-registry-yarnpkg-com-ember-template-lint-ember-template-lint-5-11-2-tgz-etimedout/288177 "2023-12-11T12:38:43Z")

</div>

I recently upgraded and found that this installation always failed, and finally found that there was a problem with the ssl security link certificate of this link, causing the link to not install, not a network issue …

---

## [Data Backup](https://meta.discourse.org/t/data-backup/288160)

<div class="topic-metadata">

**Author:** [@Wleksion](https://meta.discourse.org/u/Wleksion)\
**Replies:** 5\
**Last updated:** [December 10, 2023, 6:27pm UTC](https://meta.discourse.org/t/data-backup/288160 "2023-12-10T18:27:14Z")

</div>

Discourse is not working, how do I back up my data using terminal?

---

## [Page loads hung / infinite load](https://meta.discourse.org/t/page-loads-hung-infinite-load/282093)

<div class="topic-metadata">

**Author:** [@ToddZ](https://meta.discourse.org/u/ToddZ)\
**Replies:** 6\
**Last updated:** [December 9, 2023, 9:36pm UTC](https://meta.discourse.org/t/page-loads-hung-infinite-load/282093 "2023-12-09T21:36:50Z")

</div>

Since installation (standard supported Docker install) I’ve been running into frequent failures to load a page. The page retains the header and side menu, but the content area sits blank with just the loading spinner. It…

---

## [Can't load site in Safari](https://meta.discourse.org/t/cant-load-site-in-safari/287770)

<div class="topic-metadata">

**Author:** [@A5AA](https://meta.discourse.org/u/A5AA)\
**Replies:** 7\
**Last updated:** [December 8, 2023, 7:36am UTC](https://meta.discourse.org/t/cant-load-site-in-safari/287770 "2023-12-08T07:36:08Z")

</div>

Hi everyone. Sorry for my silly question :sob: I set up discourse at the subdomain name www.pila.cc. I use a CNAME record and redirect pila.cc to www.pila.cc. Here are all the records: I can’t load my site in Safari…

[Previous page](https://meta.discourse.org/c/support/self-hosting/31.md?page=34)

[Next page](https://meta.discourse.org/c/support/self-hosting/31.md?page=36)
