# Self-hosting

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

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

**Page:** 34

---

## [Precompiling assets takes 20 minutes](https://meta.discourse.org/t/precompiling-assets-takes-20-minutes/291156)

<div class="topic-metadata">

**Author:** [@zoul](https://meta.discourse.org/u/zoul)\
**Replies:** 18\
**Last updated:** [January 31, 2024, 2:07pm UTC](https://meta.discourse.org/t/precompiling-assets-takes-20-minutes/291156 "2024-01-31T14:07:41Z")

</div>

I am rebuilding the image on a Digital Ocean droplet and something takes ages: I, \[2024-01-10T09:47:14.854311 #1\] INFO -- : \> cd /var/www/discourse && su discourse -c 'bundle exec rake themes:update assets:precompile' …

---

## [Build and Run on different machine?](https://meta.discourse.org/t/build-and-run-on-different-machine/292718)

<div class="topic-metadata">

**Author:** [@Creatures\_Prehistori](https://meta.discourse.org/u/Creatures_Prehistori)\
**Replies:** 2\
**Last updated:** [January 31, 2024, 3:33am UTC](https://meta.discourse.org/t/build-and-run-on-different-machine/292718 "2024-01-31T03:33:05Z")

</div>

I want to build in machineA , then commit Docker image , run it on machineB . MachineB in China, there are many network error when build on machineB. So I want to build it on HK machineA,then run it on machineB

---

## [Discourse installed in UNRAID Ubuntu Server VM behind NPM reverse proxy not resolving hostname](https://meta.discourse.org/t/discourse-installed-in-unraid-ubuntu-server-vm-behind-npm-reverse-proxy-not-resolving-hostname/293313)

<div class="topic-metadata">

**Author:** [@randyp](https://meta.discourse.org/u/randyp)\
**Replies:** 10\
**Last updated:** [January 30, 2024, 6:08pm UTC](https://meta.discourse.org/t/discourse-installed-in-unraid-ubuntu-server-vm-behind-npm-reverse-proxy-not-resolving-hostname/293313 "2024-01-30T18:08:40Z")

</div>

Hey everyone! I have read various posts on here to no avail so I figured I would explain my current setup in detail in hopes that someone may have some feedback for me to resolve the Issue. I’m currently running an Unra…

---

## [Deploy custom Discourse repository via docker](https://meta.discourse.org/t/deploy-custom-discourse-repository-via-docker/293422)

<div class="topic-metadata">

**Author:** [@maaatt](https://meta.discourse.org/u/maaatt)\
**Replies:** 6\
**Last updated:** [January 30, 2024, 9:38am UTC](https://meta.discourse.org/t/deploy-custom-discourse-repository-via-docker/293422 "2024-01-30T09:38:32Z")

</div>

I made some changes to the original discourse project and pushed them to my personal repository. Now I would like to use the “discourse\_docker” project to deploy to my server. Of course the “discourse\_docker” project w…

---

## [Upgrade failing](https://meta.discourse.org/t/upgrade-failing/293464)

<div class="topic-metadata">

**Author:** [@honzao](https://meta.discourse.org/u/honzao)\
**Replies:** 2\
**Last updated:** [January 30, 2024, 2:07pm UTC](https://meta.discourse.org/t/upgrade-failing/293464 "2024-01-30T14:07:24Z")

</div>

Hi, I am testing Discourse upgrade from version 3.0.3 to 3.0.4. After the upgrade Discourse is running, but after login to the system most of the pages/requests end up with 500 error. In log files I see two different e…

---

## [Discourse startup issue](https://meta.discourse.org/t/discourse-startup-issue/293388)

<div class="topic-metadata">

**Author:** [@agf1997](https://meta.discourse.org/u/agf1997)\
**Replies:** 5\
**Last updated:** [January 30, 2024, 12:04pm UTC](https://meta.discourse.org/t/discourse-startup-issue/293388 "2024-01-30T12:04:23Z")

</div>

Just noticed that I was due for a discourse update so I performed an update with no issue. The dashboard notified me that I should disable the footnote plugin and rebuild the app. After doing that, I now get an endless…

---

## [502 bad gateway](https://meta.discourse.org/t/502-bad-gateway/292930)

<div class="topic-metadata">

**Author:** [@stokedcrf](https://meta.discourse.org/u/stokedcrf)\
**Replies:** 4\
**Last updated:** [January 29, 2024, 9:36pm UTC](https://meta.discourse.org/t/502-bad-gateway/292930 "2024-01-29T21:36:32Z")

</div>

Good morning everyone! About a week ago my installation of Discourse may have updated. I’m not 100% sure, but all I know is whenever I would visit the site I’d get a 502 error issued by nginx. This was your typical doc…

---

## [Job exception: getaddrinfo: Temporary failure in name resolution](https://meta.discourse.org/t/job-exception-getaddrinfo-temporary-failure-in-name-resolution/293249)

<div class="topic-metadata">

**Author:** [@paojiao](https://meta.discourse.org/u/paojiao)\
**Replies:** 1\
**Last updated:** [January 29, 2024, 2:51pm UTC](https://meta.discourse.org/t/job-exception-getaddrinfo-temporary-failure-in-name-resolution/293249 "2024-01-29T14:51:40Z")

</div>

Hello everyone, after adding CDN to my forum, I found that I couldn’t send emails. I’m not sure if it’s due to the forum or CDN issue. The error message is as shown above /usr/local/lib/ruby/3.2.0/socket.rb:231:in \`geta…

---

## [OpenAI Azure endoint support for gpt-4-32k?](https://meta.discourse.org/t/openai-azure-endoint-support-for-gpt-4-32k/292076)

<div class="topic-metadata">

**Author:** [@peyrusse](https://meta.discourse.org/u/peyrusse)\
**Replies:** 8\
**Last updated:** [January 29, 2024, 8:59am UTC](https://meta.discourse.org/t/openai-azure-endoint-support-for-gpt-4-32k/292076 "2024-01-29T08:59:56Z")

</div>

Hello, I’m encountering an issue with the OpenAI Azure endpoint. It seems not to be working as expected for the following URL: https://\*\*\*.openai.azure.com/openai/deployments/DEPLOYMENT\_NAME/chat/completions?api-versio…

---

## [Backup failure when temp backup file is moved to backups/default directory](https://meta.discourse.org/t/backup-failure-when-temp-backup-file-is-moved-to-backups-default-directory/293183)

<div class="topic-metadata">

**Author:** [@ckshen](https://meta.discourse.org/u/ckshen)\
**Replies:** 4\
**Last updated:** [January 29, 2024, 12:51am UTC](https://meta.discourse.org/t/backup-failure-when-temp-backup-file-is-moved-to-backups-default-directory/293183 "2024-01-29T00:51:48Z")

</div>

The creation of the temporary backup file went smoothly. Its when the file is moved from /var/www/discourse/tmp/backups/default/ to /var/www/discourse/public/backups/default/ that issues surface. \[2024-01-28 05:47:54\]…

---

## [Error "Net::ReadTimeout with #\<TCPSocket:(closed)\>"](https://meta.discourse.org/t/error-net-readtimeout-with-tcpsocket-closed/293188)

<div class="topic-metadata">

**Author:** [@Gonerdot](https://meta.discourse.org/u/Gonerdot)\
**Replies:** 7\
**Last updated:** [January 28, 2024, 2:50pm UTC](https://meta.discourse.org/t/error-net-readtimeout-with-tcpsocket-closed/293188 "2024-01-28T14:50:29Z")

</div>

I had to change the smtp server to a third-party one (mail.ru). I’ve set everything up, but when I try to send a test letter I get this error. What could be the problem?

---

## [Removed CDN, but discourse still points to it in browser cache?](https://meta.discourse.org/t/removed-cdn-but-discourse-still-points-to-it-in-browser-cache/292864)

<div class="topic-metadata">

**Author:** [@sweetbeems](https://meta.discourse.org/u/sweetbeems)\
**Replies:** 2\
**Last updated:** [January 28, 2024, 3:44am UTC](https://meta.discourse.org/t/removed-cdn-but-discourse-still-points-to-it-in-browser-cache/292864 "2024-01-28T03:44:36Z")

</div>

I unfortunately changed my discourse server’s ip address, which has caused issues with my cloudfront domain. So, I commented out DISCOURSE\_CDN\_URL from the yaml file and rebuilt. However, when I go to the discourse app …

---

## [Installing other sites on subdomains](https://meta.discourse.org/t/installing-other-sites-on-subdomains/292934)

<div class="topic-metadata">

**Author:** [@Gonerdot](https://meta.discourse.org/u/Gonerdot)\
**Replies:** 1\
**Last updated:** [January 26, 2024, 9:39pm UTC](https://meta.discourse.org/t/installing-other-sites-on-subdomains/292934 "2024-01-26T21:39:17Z")

</div>

I’m a complete noob when it comes to working with servers and just this week I started learning how to work with them. I spent a long time choosing cms for my first website and I really like Discourse. But I have 2 mor…

---

## [Error altering user password when building Postgres container](https://meta.discourse.org/t/error-altering-user-password-when-building-postgres-container/293069)

<div class="topic-metadata">

**Author:** [@ewd910](https://meta.discourse.org/u/ewd910)\
**Replies:** 2\
**Last updated:** [January 26, 2024, 6:18pm UTC](https://meta.discourse.org/t/error-altering-user-password-when-building-postgres-container/293069 "2024-01-26T18:18:00Z")

</div>

After postgres is successfully installed in the container, the launcher script tries to change the password of the discourse user. However I get this error Pups::ExecError: su - postgres -c 'psql discourse' failed with …

---

## [Issues with Discourse Migration and App Startup](https://meta.discourse.org/t/issues-with-discourse-migration-and-app-startup/268795)

<div class="topic-metadata">

**Author:** [@Alvin\_Fang](https://meta.discourse.org/u/Alvin_Fang)\
**Replies:** 2\
**Last updated:** [January 26, 2024, 5:35pm UTC](https://meta.discourse.org/t/issues-with-discourse-migration-and-app-startup/268795 "2024-01-26T17:35:34Z")

</div>

I’m currently in the process of migrating my Discourse forum from one server to another. Both servers are running Linux CentOS 7.9. I have followed the steps to bootstrap the app using ./launcher bootstrap app, but I en…

---

## [Discourse & Cloudflare](https://meta.discourse.org/t/discourse-cloudflare/236677)

<div class="topic-metadata">

**Author:** [@oopsyscoops](https://meta.discourse.org/u/oopsyscoops)\
**Replies:** 48\
**Last updated:** [January 26, 2024, 7:07am UTC](https://meta.discourse.org/t/discourse-cloudflare/236677 "2024-01-26T07:07:36Z")

</div>

There’s a lot of back and forth in this community about using Cloudflare. Some people say it works just fine without any problems and others warn that the sky will fall if they use it. Either way, most of this info is ve…

---

## [Discourse Build Error: “An error occurred while installing rbtrace (0.5.1), and Bundler cannot continue](https://meta.discourse.org/t/discourse-build-error-an-error-occurred-while-installing-rbtrace-0-5-1-and-bundler-cannot-continue/289530)

<div class="topic-metadata">

**Author:** [@Victor\_Berridge](https://meta.discourse.org/u/Victor_Berridge)\
**Replies:** 20\
**Last updated:** [January 25, 2024, 6:30am UTC](https://meta.discourse.org/t/discourse-build-error-an-error-occurred-while-installing-rbtrace-0-5-1-and-bundler-cannot-continue/289530 "2024-01-25T06:30:38Z")

</div>

For the past few weeks or so, we cannot rebuild our Discourse forum software. Each time, we get this Bundler error: occurred while installing rbtrace (0.5.1), and Bundler cannot continue. FAILED --------------------…

---

## [Discourse Ram usage?](https://meta.discourse.org/t/discourse-ram-usage/292763)

<div class="topic-metadata">

**Author:** [@yakoman](https://meta.discourse.org/u/yakoman)\
**Replies:** 2\
**Last updated:** [January 24, 2024, 12:55pm UTC](https://meta.discourse.org/t/discourse-ram-usage/292763 "2024-01-24T12:55:19Z")

</div>

I was using Digital Ocean 2GB RAM 1 CPU Droplet. Discourse’s ram usage was 95%. I switched to the 4gb ram 2 cpu plan of OVH VPS, the ram usage is 93%. I don’t understand how this happens even though I upgraded my ram? Th…

---

## [SMTP help - different servers and subdomain](https://meta.discourse.org/t/smtp-help-different-servers-and-subdomain/292400)

<div class="topic-metadata">

**Author:** [@Chukwithak](https://meta.discourse.org/u/Chukwithak)\
**Replies:** 4\
**Last updated:** [January 23, 2024, 9:27pm UTC](https://meta.discourse.org/t/smtp-help-different-servers-and-subdomain/292400 "2024-01-23T21:27:40Z")

</div>

Domain is on an AWS Server. Discourse is at a subdomain on a Digital Ocean droplet. Cloudflare is in control. I’m using Mailgun for the discourse because my main site is running on google workspace. Should mailgun be…

---

## [Starter VPS](https://meta.discourse.org/t/starter-vps/292075)

<div class="topic-metadata">

**Author:** [@AntonioJrM](https://meta.discourse.org/u/AntonioJrM)\
**Replies:** 5\
**Last updated:** [January 22, 2024, 7:04pm UTC](https://meta.discourse.org/t/starter-vps/292075 "2024-01-22T19:04:33Z")

</div>

Hello, i want to start my community for my blog. I have a shared hosting, but Discourse need a VPS. Is this good? Configuratore VPS | OVHcloud Italia I have to launch the community as a test for my users, I don’t kno…

---

## [Can I upload discourse backup file to different domain address?](https://meta.discourse.org/t/can-i-upload-discourse-backup-file-to-different-domain-address/292511)

<div class="topic-metadata">

**Author:** [@Sunder](https://meta.discourse.org/u/Sunder)\
**Replies:** 2\
**Last updated:** [January 22, 2024, 4:12pm UTC](https://meta.discourse.org/t/can-i-upload-discourse-backup-file-to-different-domain-address/292511 "2024-01-22T16:12:40Z")

</div>

I need to move my discourse to another domain. Ex: Righ now my discourse running under https://xyz.com but now i want to move it completely different domain like https://abc.com so please guide me how can i do it.

---

## [Transition problem](https://meta.discourse.org/t/transition-problem/292282)

<div class="topic-metadata">

**Author:** [@Scart](https://meta.discourse.org/u/Scart)\
**Replies:** 17\
**Last updated:** [January 21, 2024, 6:33pm UTC](https://meta.discourse.org/t/transition-problem/292282 "2024-01-21T18:33:32Z")

</div>

I was installing forum on a remote server, then added my main site to the server via CPanel for remote servers so moved from regular NameCheap hosting to a remote server, then I got the forum site down and I can’t even r…

---

## [Is this possible?](https://meta.discourse.org/t/is-this-possible/292390)

<div class="topic-metadata">

**Author:** [@Chukwithak](https://meta.discourse.org/u/Chukwithak)\
**Replies:** 1\
**Last updated:** [January 20, 2024, 11:42pm UTC](https://meta.discourse.org/t/is-this-possible/292390 "2024-01-20T23:42:39Z")

</div>

Context, I dont have access to everything and trying to make it work. We’re a small NPO and the gentlemen that helped me get started has kind of disappeared. I think he’s on vacation, but not sure. I cant migrate out of …

---

## [A fork of discourse docker repo for China](https://meta.discourse.org/t/a-fork-of-discourse-docker-repo-for-china/193668)

<div class="topic-metadata">

**Author:** [@SettingDust](https://meta.discourse.org/u/SettingDust)\
**Replies:** 2\
**Last updated:** [January 20, 2024, 4:05pm UTC](https://meta.discourse.org/t/a-fork-of-discourse-docker-repo-for-china/193668 "2024-01-20T16:05:40Z")

</div>

It’s use the hub.fastgit.org instead of github.com for clone rapidly. The fastgit.org is a github proxy site in China. Fastgit Run git remote set-url origin https://hub.fastgit.org/SettingDust/discourse\_docker\_china i…

---

## [./launcher rebuild app failed. How to fix this?](https://meta.discourse.org/t/launcher-rebuild-app-failed-how-to-fix-this/292345)

<div class="topic-metadata">

**Author:** [@Dotila\_Li](https://meta.discourse.org/u/Dotila_Li)\
**Replies:** 8\
**Last updated:** [January 20, 2024, 3:28pm UTC](https://meta.discourse.org/t/launcher-rebuild-app-failed-how-to-fix-this/292345 "2024-01-20T15:28:35Z")

</div>

Terminal message: FAILED -------------------- Pups::ExecError: cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-math.git failed with return #\<Process::Status: pid 281 exit 128\> Location…

---

## [Error when migrating to an external postgres instance](https://meta.discourse.org/t/error-when-migrating-to-an-external-postgres-instance/291992)

<div class="topic-metadata">

**Author:** [@Morpheus636](https://meta.discourse.org/u/Morpheus636)\
**Replies:** 11\
**Last updated:** [January 18, 2024, 11:40pm UTC](https://meta.discourse.org/t/error-when-migrating-to-an-external-postgres-instance/291992 "2024-01-18T23:40:14Z")

</div>

I set up my forums using discourse-docker with the default self-contained config. I need to switch over to using a separate postgres server. I ran a backup, then modified app.yml, rebuilt and attempted to restore from t…

---

## [Activation Email Not Received for Discourse Admin Account, After Registering User in The Forum](https://meta.discourse.org/t/activation-email-not-received-for-discourse-admin-account-after-registering-user-in-the-forum/292050)

<div class="topic-metadata">

**Author:** [@Kuldeep\_Kumhar](https://meta.discourse.org/u/Kuldeep_Kumhar)\
**Replies:** 4\
**Last updated:** [January 18, 2024, 4:48pm UTC](https://meta.discourse.org/t/activation-email-not-received-for-discourse-admin-account-after-registering-user-in-the-forum/292050 "2024-01-18T16:48:01Z")

</div>

I successfully set up Discourse on my AWS instance using the AWS Lightsail service. Currently, I am attempting to register my admin account on the Discourse forum, and it is sending an activation link to the email addres…

---

## [Facing issue while setting up discourse on my aws ec2 instance ubuntu20, ebs 30gb ram 1gb](https://meta.discourse.org/t/facing-issue-while-setting-up-discourse-on-my-aws-ec2-instance-ubuntu20-ebs-30gb-ram-1gb/291679)

<div class="topic-metadata">

**Author:** [@Kuldeep\_Kumhar](https://meta.discourse.org/u/Kuldeep_Kumhar)\
**Replies:** 11\
**Last updated:** [January 18, 2024, 7:53am UTC](https://meta.discourse.org/t/facing-issue-while-setting-up-discourse-on-my-aws-ec2-instance-ubuntu20-ebs-30gb-ram-1gb/291679 "2024-01-18T07:53:13Z")

</div>

2024-01-14 22:15:13.479 UTC \[4179\] LOG: using stale statistics instead of current ones because stats collector is not responding node:events:492 throw er; // Unhandled 'error' event ^ Error: write EPIPE …

---

## [CloudFlare and Real IP](https://meta.discourse.org/t/cloudflare-and-real-ip/291736)

<div class="topic-metadata">

**Author:** [@bitwelder](https://meta.discourse.org/u/bitwelder)\
**Replies:** 7\
**Last updated:** [January 17, 2024, 4:12pm UTC](https://meta.discourse.org/t/cloudflare-and-real-ip/291736 "2024-01-17T16:12:50Z")

</div>

I have been trying to get real ips to show up in Discourse without much success. I have add the cloudflare yml to my setup and have validated the discourse.conf in the container has the correct lines: set\_real\_ip\_from 1…

---

## [Just under 200 MB free RAM?](https://meta.discourse.org/t/just-under-200-mb-free-ram/291812)

<div class="topic-metadata">

**Author:** [@Jagster](https://meta.discourse.org/u/Jagster)\
**Replies:** 3\
**Last updated:** [January 16, 2024, 10:17pm UTC](https://meta.discourse.org/t/just-under-200-mb-free-ram/291812 "2024-01-16T22:17:54Z")

</div>

I know, I know — this is more like basics of \*nix, but because VPS has only Discourse and amount on RAM dictates if everything goes smoothly that’s the reason for such newu-class question. 8 GB RAM, no swap. Why free -m …

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

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