# Self-hosting

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

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

**Page:** 101

---

## [Messing up with installation](https://meta.discourse.org/t/messing-up-with-installation/154675)

<div class="topic-metadata">

**Author:** [@Devansh\_Khetan](https://meta.discourse.org/u/Devansh_Khetan)\
**Replies:** 2\
**Last updated:** [June 13, 2020, 2:19am UTC](https://meta.discourse.org/t/messing-up-with-installation/154675 "2020-06-13T02:19:19Z")

</div>

I just build a droplet from digital ocean with Discourse as 1 click app. I also purchased my domain from Godaddy and transferred DNS to digital ocean networking. Now I am puzzled how to proceed on console and also mes…

---

## [Nginx configuration for Discourse forum over Tor](https://meta.discourse.org/t/nginx-configuration-for-discourse-forum-over-tor/136750)

<div class="topic-metadata">

**Author:** [@prostasia](https://meta.discourse.org/u/prostasia)\
**Replies:** 9\
**Last updated:** [June 12, 2020, 10:09pm UTC](https://meta.discourse.org/t/nginx-configuration-for-discourse-forum-over-tor/136750 "2020-06-12T22:09:38Z")

</div>

Hello all, I would like to configure Discourse to be a Tor hidden service using nginx. Here is the configuration that I am trying in nginx (it doesn’t work, “server not found”): server { listen unix:/var/run/nginx-…

---

## [Question on using Open-Source version of Discourse](https://meta.discourse.org/t/question-on-using-open-source-version-of-discourse/154622)

<div class="topic-metadata">

**Author:** [@Devansh\_Khetan](https://meta.discourse.org/u/Devansh_Khetan)\
**Replies:** 1\
**Last updated:** [June 12, 2020, 5:32am UTC](https://meta.discourse.org/t/question-on-using-open-source-version-of-discourse/154622 "2020-06-12T05:32:52Z")

</div>

Hi I am making a website named Dwe. It’s a Designing forum that designs things for free and we are also uploading are website’s source code on Github. But we want to show ads on our Home, about, Contact pages. So are…

---

## [Can Anyone tell that can we install discourse on Github Pages or Netlify](https://meta.discourse.org/t/can-anyone-tell-that-can-we-install-discourse-on-github-pages-or-netlify/154481)

<div class="topic-metadata">

**Author:** [@Devansh\_Khetan](https://meta.discourse.org/u/Devansh_Khetan)\
**Replies:** 4\
**Last updated:** [June 11, 2020, 9:25am UTC](https://meta.discourse.org/t/can-anyone-tell-that-can-we-install-discourse-on-github-pages-or-netlify/154481 "2020-06-11T09:25:16Z")

</div>

If this is not possible can someone guide me on how I can get free VPS to install discourse? Because I don’t have an initial investment for my site.

---

## [Search 502 errors in 2.5.0.beta6](https://meta.discourse.org/t/search-502-errors-in-2-5-0-beta6/154050)

<div class="topic-metadata">

**Author:** [@ravenzachary](https://meta.discourse.org/u/ravenzachary)\
**Replies:** 7\
**Last updated:** [June 11, 2020, 6:22am UTC](https://meta.discourse.org/t/search-502-errors-in-2-5-0-beta6/154050 "2020-06-11T06:22:47Z")

</div>

I just upgraded to 2.5.0.beta6. After the successful upgrade completed, all searches fail resulting in the following message after an extended period of think time (animating circle): I have tried rebooting the se…

---

## [Unable to connect to PostgreSQL despite configuration](https://meta.discourse.org/t/unable-to-connect-to-postgresql-despite-configuration/154449)

<div class="topic-metadata">

**Author:** [@Crell](https://meta.discourse.org/u/Crell)\
**Replies:** 5\
**Last updated:** [June 10, 2020, 8:18pm UTC](https://meta.discourse.org/t/unable-to-connect-to-postgresql-despite-configuration/154449 "2020-06-10T20:18:41Z")

</div>

Hi all. I have a fresh 2.4.5 install, not upgrade. When I try to run any database-interacting Rake command, I get this error: rake aborted! PG::ConnectionBad: could not connect to server: No such file or directory …

---

## [GlobalSetting.use\_s3? - false](https://meta.discourse.org/t/globalsetting-use-s3-false/145088)

<div class="topic-metadata">

**Author:** [@eextra](https://meta.discourse.org/u/eextra)\
**Replies:** 3\
**Last updated:** [June 10, 2020, 6:47am UTC](https://meta.discourse.org/t/globalsetting-use-s3-false/145088 "2020-06-10T06:47:10Z")

</div>

Try to solve the problem with file migration to s3. The first thing is that the command returns GlobalSetting.use\_s3? false And now the question. If loading new images works (i.e. S3 is set well) then what causes thi…

---

## [Hello from Gitpod! (installing on google cloud + automated dev setup)](https://meta.discourse.org/t/hello-from-gitpod-installing-on-google-cloud-automated-dev-setup/128783)

<div class="topic-metadata">

**Author:** [@jankeromnes](https://meta.discourse.org/u/jankeromnes)\
**Replies:** 23\
**Last updated:** [June 9, 2020, 2:36pm UTC](https://meta.discourse.org/t/hello-from-gitpod-installing-on-google-cloud-automated-dev-setup/128783 "2020-06-09T14:36:30Z")

</div>

Hello Discourse community! :wave: I work on gitpod.io, a free one-click IDE for GitHub. We currently use Spectrum for our community, but we have some troubles with it and we’d love to stand up a Discourse instance to pl…

---

## [How to set redis DB ID in Docker container?](https://meta.discourse.org/t/how-to-set-redis-db-id-in-docker-container/56267)

<div class="topic-metadata">

**Author:** [@TomekB](https://meta.discourse.org/u/TomekB)\
**Replies:** 6\
**Last updated:** [June 9, 2020, 8:08am UTC](https://meta.discourse.org/t/how-to-set-redis-db-id-in-docker-container/56267 "2020-06-09T08:08:07Z")

</div>

I have one data container and I would like to use several web\_only containers (several forums on separate servers). How to I pass a DB ID to web\_only container so that multiple forums use their own cache? Without this t…

---

## [Did I get this right. \`launcher run\` does not use a current running container?](https://meta.discourse.org/t/did-i-get-this-right-launcher-run-does-not-use-a-current-running-container/154117)

<div class="topic-metadata">

**Author:** [@EricGT](https://meta.discourse.org/u/EricGT)\
**Replies:** 5\
**Last updated:** [June 8, 2020, 8:21pm UTC](https://meta.discourse.org/t/did-i-get-this-right-launcher-run-does-not-use-a-current-running-container/154117 "2020-06-08T20:21:42Z")

</div>

In trying to understand launcher run, e.g. groot@galaxy:/var/discourse$ sudo ./launcher run app whoami If a site is up and running the above command would not enter that site and start bash to run the command whoami bu…

---

## [How can I configure external nginx with discourse](https://meta.discourse.org/t/how-can-i-configure-external-nginx-with-discourse/154201)

<div class="topic-metadata">

**Author:** [@rainmanjam](https://meta.discourse.org/u/rainmanjam)\
**Replies:** 3\
**Last updated:** [June 8, 2020, 4:07pm UTC](https://meta.discourse.org/t/how-can-i-configure-external-nginx-with-discourse/154201 "2020-06-08T16:07:14Z")

</div>

I’m following these instructions to setup Discourse outside of docker: I’m using Digital Ocean and want to use their implementation. They use a CA cert for connecting. How can I modify discourse.conf to include a CA c…

---

## [Please document supported distros](https://meta.discourse.org/t/please-document-supported-distros/154087)

<div class="topic-metadata">

**Author:** [@koala](https://meta.discourse.org/u/koala)\
**Replies:** 14\
**Last updated:** [June 8, 2020, 12:25pm UTC](https://meta.discourse.org/t/please-document-supported-distros/154087 "2020-06-08T12:25:33Z")

</div>

Hi, I’m running Discourse on Ubuntu 16.04. As it is going out of support next year, I’m researching what to do with my Discourse VM. Only mentions Ubuntu 18.04, which is less than ideal (but it’s fine!) given that 20…

---

## [Error after Upgrading](https://meta.discourse.org/t/error-after-upgrading/153907)

<div class="topic-metadata">

**Author:** [@HB9GSL](https://meta.discourse.org/u/HB9GSL)\
**Replies:** 4\
**Last updated:** [June 7, 2020, 2:49pm UTC](https://meta.discourse.org/t/error-after-upgrading/153907 "2020-06-07T14:49:45Z")

</div>

Hello I got the following error after upgrading. THe Webpage gives me 502 Bad Gateway. FAILED -------------------- Pups::ExecError: su postgres -c 'psql discourse -c "alter schema public owner to discourse;"' failed wi…

---

## [Subfolder rewrites (but doesn't redirect) to main domain after 2.5.0.beta6](https://meta.discourse.org/t/subfolder-rewrites-but-doesnt-redirect-to-main-domain-after-2-5-0-beta6/153664)

<div class="topic-metadata">

**Author:** [@pierrepierre](https://meta.discourse.org/u/pierrepierre)\
**Replies:** 4\
**Last updated:** [June 6, 2020, 12:48pm UTC](https://meta.discourse.org/t/subfolder-rewrites-but-doesnt-redirect-to-main-domain-after-2-5-0-beta6/153664 "2020-06-06T12:48:33Z")

</div>

I have 2 containers (1 discourse and 1WordPress) and an Nginx reverse proxy routing traffic to WordPress: any URLs without /community after mydomain . com Discourse: when the URL is mydomain . com/community. It has be…

---

## [Error upgrading Discourse - gem conflict](https://meta.discourse.org/t/error-upgrading-discourse-gem-conflict/152294)

<div class="topic-metadata">

**Author:** [@schungx](https://meta.discourse.org/u/schungx)\
**Replies:** 8\
**Last updated:** [June 5, 2020, 2:18pm UTC](https://meta.discourse.org/t/error-upgrading-discourse-gem-conflict/152294 "2020-06-05T14:18:24Z")

</div>

Trying to upgrade, but got stuck on this error: I, \[2020-05-22T05:14:06.527007 #1\] INFO -- : \> cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' rake aborted! Gem::ConflictError: Unable to activate…

---

## [Restore problem: relation "theme\_fields" does not exist](https://meta.discourse.org/t/restore-problem-relation-theme-fields-does-not-exist/95500)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 10\
**Last updated:** [June 5, 2020, 2:38pm UTC](https://meta.discourse.org/t/restore-problem-relation-theme-fields-does-not-exist/95500 "2020-06-05T14:38:57Z")

</div>

@tgxworld, I think this is in your wheelhouse. Trying to restore a backup from Discourse 2.1.0.beta5 - https://github.com/discourse/discourse version 8da2d8df3d5f7196f1c267b8a664597a725241ac or "Discourse 2.1.0.beta5 - …

---

## [Launcher run works different than enter and run command](https://meta.discourse.org/t/launcher-run-works-different-than-enter-and-run-command/100197)

<div class="topic-metadata">

**Author:** [@iurisilvio](https://meta.discourse.org/u/iurisilvio)\
**Replies:** 7\
**Last updated:** [June 3, 2020, 11:41pm UTC](https://meta.discourse.org/t/launcher-run-works-different-than-enter-and-run-command/100197 "2020-06-03T23:41:40Z")

</div>

Entering app context and running my command works as expected. /var/discourse# ./launcher enter app /var/www/discourse# discourse disable\_restore Restore are now forbidden. Enable them with \`enable\_restore\` I expected …

---

## [Generate https links in port 80](https://meta.discourse.org/t/generate-https-links-in-port-80/153448)

<div class="topic-metadata">

**Author:** [@anton21m](https://meta.discourse.org/u/anton21m)\
**Replies:** 20\
**Last updated:** [June 5, 2020, 8:18am UTC](https://meta.discourse.org/t/generate-https-links-in-port-80/153448 "2020-06-05T08:18:08Z")

</div>

I need to implement the server so that it listens to port 80 but gives links in https. How can I solve this problem? my configuration now works like this and all the links are in http: expose: # - “443:443” # https -…

---

## [Should I also rebuild my data container when upgrading](https://meta.discourse.org/t/should-i-also-rebuild-my-data-container-when-upgrading/153900)

<div class="topic-metadata">

**Author:** [@Luca\_Prete](https://meta.discourse.org/u/Luca_Prete)\
**Replies:** 3\
**Last updated:** [June 5, 2020, 8:13am UTC](https://meta.discourse.org/t/should-i-also-rebuild-my-data-container-when-upgrading/153900 "2020-06-05T08:13:58Z")

</div>

@sam thanks for the guidance. Quicik question: we’re using the version with two separate containers. We’ve just upgraded discourse to the latest version through the UI. Now we see the message that suggests to do git pu…

---

## [I entered the wrong admin email address during initial setup](https://meta.discourse.org/t/i-entered-the-wrong-admin-email-address-during-initial-setup/74241)

<div class="topic-metadata">

**Author:** [@Costas](https://meta.discourse.org/u/Costas)\
**Replies:** 37\
**Last updated:** [June 5, 2020, 6:41am UTC](https://meta.discourse.org/t/i-entered-the-wrong-admin-email-address-during-initial-setup/74241 "2020-06-05T06:41:34Z")

</div>

I have a couple of test sites running Discourse just with IP’s at present and I have been testing Elastic Email (EE). Seems ok so far but I haven’t done the domain verification SPF stuff yet. I want to change the admin…

---

## [Can't Access Installation Set Up in Browser](https://meta.discourse.org/t/cant-access-installation-set-up-in-browser/153845)

<div class="topic-metadata">

**Author:** [@abgeter](https://meta.discourse.org/u/abgeter)\
**Replies:** 21\
**Last updated:** [June 4, 2020, 6:50pm UTC](https://meta.discourse.org/t/cant-access-installation-set-up-in-browser/153845 "2020-06-04T18:50:12Z")

</div>

Hi all, I’m having trouble installing Discourse after setting it up through digital ocean. I’ve gone through all of the steps through the quick installation guide and following videos. Once the terminal lets me know tha…

---

## [Docker Discourse Host OS Standard Operating Procedures](https://meta.discourse.org/t/docker-discourse-host-os-standard-operating-procedures/153494)

<div class="topic-metadata">

**Author:** [@EricGT](https://meta.discourse.org/u/EricGT)\
**Replies:** 0\
**Last updated:** [June 1, 2020, 6:16pm UTC](https://meta.discourse.org/t/docker-discourse-host-os-standard-operating-procedures/153494 "2020-06-01T18:16:45Z")

</div>

There are many how to posts which are great but there is one I can not find or does not exist that includes: For those self-hosting, how to configure the host OS, such as Ubuntu, for only hosting the Docker container. O…

---

## [Update failed (postgresql)](https://meta.discourse.org/t/update-failed-postgresql/153713)

<div class="topic-metadata">

**Author:** [@noezDE](https://meta.discourse.org/u/noezDE)\
**Replies:** 7\
**Last updated:** [June 3, 2020, 5:54pm UTC](https://meta.discourse.org/t/update-failed-postgresql/153713 "2020-06-03T17:54:13Z")

</div>

Doing the newest update (incl. postgresql) result in an error: root@community:/var/discourse# ./launcher rebuild app Ensuring launcher is up to date Fetching origin Launcher is up-to-date Stopping old container + /…

---

## [Is creating a second app.yml-like file enough for multisite?](https://meta.discourse.org/t/is-creating-a-second-app-yml-like-file-enough-for-multisite/145362)

<div class="topic-metadata">

**Author:** [@kuba-orlik](https://meta.discourse.org/u/kuba-orlik)\
**Replies:** 3\
**Last updated:** [June 3, 2020, 5:17pm UTC](https://meta.discourse.org/t/is-creating-a-second-app-yml-like-file-enough-for-multisite/145362 "2020-06-03T17:17:25Z")

</div>

I’m attempting to create a second instance of Discourse on my machine that would be served on a different domain via a reverse proxy. Would it be OK if I just copied the current app.yml file to app2.yml file, changed wh…

---

## [Redis Error after upgrade](https://meta.discourse.org/t/redis-error-after-upgrade/153648)

<div class="topic-metadata">

**Author:** [@carlb](https://meta.discourse.org/u/carlb)\
**Replies:** 13\
**Last updated:** [June 3, 2020, 10:16am UTC](https://meta.discourse.org/t/redis-error-after-upgrade/153648 "2020-06-03T10:16:25Z")

</div>

Hi, After upgrading via the web front end I can no longer access my site. Havent changed anything, just clicked the upgrade button! The errors suggest issues connecting to redis. Ive done a lot of searching but found no…

---

## [Cannot send mail with Discourse on new install but can from command line (on digital ocean)](https://meta.discourse.org/t/cannot-send-mail-with-discourse-on-new-install-but-can-from-command-line-on-digital-ocean/103058)

<div class="topic-metadata">

**Author:** [@StevenBee](https://meta.discourse.org/u/StevenBee)\
**Replies:** 8\
**Last updated:** [June 1, 2020, 6:54pm UTC](https://meta.discourse.org/t/cannot-send-mail-with-discourse-on-new-install-but-can-from-command-line-on-digital-ocean/103058 "2020-06-01T18:54:46Z")

</div>

I’ve just installed a new Ubuntu 18.04 droplet on Digital Ocean and installed Discourse manually through The Official Discourse Guide. I cannot for the life of me figure out how to get mail working, so I cannot log in t…

---

## [Hostname not accessible](https://meta.discourse.org/t/hostname-not-accessible/149898)

<div class="topic-metadata">

**Author:** [@Lxm](https://meta.discourse.org/u/Lxm)\
**Replies:** 10\
**Last updated:** [May 31, 2020, 3:59pm UTC](https://meta.discourse.org/t/hostname-not-accessible/149898 "2020-05-31T15:59:33Z")

</div>

Sorry, I have no idea what i am doing. At the configuration I have tried the following to no avail: discourse..org host..org www..org What is my hostname supposed to be? If someone goes to www..org now, the forum i …

---

## [Failed upgrade from 2.5.0beta4 to 2.5.0beta5](https://meta.discourse.org/t/failed-upgrade-from-2-5-0beta4-to-2-5-0beta5/153305)

<div class="topic-metadata">

**Author:** [@dpb](https://meta.discourse.org/u/dpb)\
**Replies:** 5\
**Last updated:** [May 30, 2020, 12:38pm UTC](https://meta.discourse.org/t/failed-upgrade-from-2-5-0beta4-to-2-5-0beta5/153305 "2020-05-30T12:38:20Z")

</div>

Hello there, the upgrade from 2.5.0beta4 to 2.5.0beta5 failed. A docker container upgrade was noted (when I attempted the upgrade through the web UI, and then I hit the page “You are running an old version of the Disco…

---

## [Is it possible to connect to the database directly from a separate app?](https://meta.discourse.org/t/is-it-possible-to-connect-to-the-database-directly-from-a-separate-app/152695)

<div class="topic-metadata">

**Author:** [@AstonJ](https://meta.discourse.org/u/AstonJ)\
**Replies:** 9\
**Last updated:** [May 29, 2020, 6:01pm UTC](https://meta.discourse.org/t/is-it-possible-to-connect-to-the-database-directly-from-a-separate-app/152695 "2020-05-29T18:01:26Z")

</div>

The app would be outside of the Discourse Docker container but on the same server. If so, would anyone be able to share some details on how to do this or point me to a guide or directions please? Would there also be any…

---

## [Slow Sidekiq + Postmaster using 95%+ CPU (32 cores) after Postgresql Version Upgrade](https://meta.discourse.org/t/slow-sidekiq-postmaster-using-95-cpu-32-cores-after-postgresql-version-upgrade/152983)

<div class="topic-metadata">

**Author:** [@markersocial](https://meta.discourse.org/u/markersocial)\
**Replies:** 22\
**Last updated:** [May 29, 2020, 1:10pm UTC](https://meta.discourse.org/t/slow-sidekiq-postmaster-using-95-cpu-32-cores-after-postgresql-version-upgrade/152983 "2020-05-29T13:10:56Z")

</div>

So I did an upgrade today and the postgresql version seems to have been updated in the process. Since doing this, this issue (or similar) has returned (old topic is closed now): I tried what solved this issue before: c…

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

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