# Issue with installation in an Ubuntu 22.04 VM

**URL:** https://meta.discourse.org/t/issue-with-installation-in-an-ubuntu-22-04-vm/289335
**Category:** Self-hosting
**Created:** [December 20, 2023, 3:04pm UTC](https://meta.discourse.org/t/issue-with-installation-in-an-ubuntu-22-04-vm/289335 "2023-12-20T15:04:23Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![mrhassan60](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mrhassan60/32/350082_2.png) [@mrhassan60](https://meta.discourse.org/u/mrhassan60)
#### Post date: [December 20, 2023, 3:04pm UTC](https://meta.discourse.org/t/issue-with-installation-in-an-ubuntu-22-04-vm/289335/1 "2023-12-20T15:04:23Z")

</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/discourse · GitHub](https://github.com/discourse/discourse/blob/main/docs/INSTALL-cloud.md), but after completing the steps, I don’t see anything on my web browser (I get the message “This site can’t be reached”). I opted for the Brevo solution for SMTP.

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [December 20, 2023, 4:46pm UTC](https://meta.discourse.org/t/issue-with-installation-in-an-ubuntu-22-04-vm/289335/2 "2023-12-20T16:46:18Z")

</div>

Hi, welcome 👋

Did the build process end without errors?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [December 20, 2023, 6:31pm UTC](https://meta.discourse.org/t/issue-with-installation-in-an-ubuntu-22-04-vm/289335/3 "2023-12-20T18:31:27Z")

</div>

Do you have your DNS pointing to the server? DId you run `discourse-setup`? What is the URL?

---

<div class="post-metadata">

### Author: ![mrhassan60](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mrhassan60/32/350082_2.png) [@mrhassan60](https://meta.discourse.org/u/mrhassan60)
#### Post date: [December 21, 2023, 8:54am UTC](https://meta.discourse.org/t/issue-with-installation-in-an-ubuntu-22-04-vm/289335/4 "2023-12-21T08:54:00Z")

</div>

Yes, DNS pointing server (I can ping with hostname), i run and use commande ./discourse-setup and url is [http://forum.crio-dauphine.dynv6.net](http://forum.crio-dauphine.dynv6.net)  
but sometimes I get an nginx page that displays for 2 minutes.

---

<div class="post-metadata">

### Author: ![mrhassan60](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mrhassan60/32/350082_2.png) [@mrhassan60](https://meta.discourse.org/u/mrhassan60)
#### Post date: [December 21, 2023, 10:31am UTC](https://meta.discourse.org/t/issue-with-installation-in-an-ubuntu-22-04-vm/289335/5 "2023-12-21T10:31:09Z")

</div>

I have an end message :

```plaintext
, [2023-12-21T10:19:01.450496 #1] INFO -- : Terminating async processes
I, [2023-12-21T10:19:01.481983 #1] INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/13/bin/postmaster -D /etc/postgresql/13/main pid: 56
I, [2023-12-21T10:19:01.493459 #1] INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 125
2023-12-21 10:19:01.493 UTC [56] LOG: received fast shutdown request
125:signal-handler (1703153941) Received SIGTERM scheduling shutdown...
125:M 21 Dec 2023 10:19:01.509 # User requested shutdown...
125:M 21 Dec 2023 10:19:01.509 * Saving the final RDB snapshot before exiting.
125:M 21 Dec 2023 10:19:01.515 * DB saved on disk
2023-12-21 10:19:01.553 UTC [56] LOG: aborting any active transactions
125:M 21 Dec 2023 10:19:01.569 # Redis is now ready to exit, bye bye...
2023-12-21 10:19:01.844 UTC [56] LOG: background worker "logical replication launcher" (PID 65) exited with exit code 1
2023-12-21 10:19:02.147 UTC [60] LOG: shutting down
2023-12-21 10:19:02.675 UTC [56] LOG: database system is shut down
sha256:82b631cd7bcf53be0ac50326b816f4b538913cb8f7cefdfa9b6e183e42f0d952
27a8cacb031be6d76894e19fb488d534e1e8298abc4e2f8f38ade078653621b8

+ /usr/bin/docker run --shm-size=512m -d --restart=always -e LANG=en_US.UTF-8 -e RAILS_ENV=production -e UNICORN_WORKERS=4 -e UNICORN_SIDEKIQS=1 -e RUBY_GC_HEAP_GROWTH_MAX_SLOTS=40000 -e RUBY_GC_HEAP_INIT_SLOTS=400000 -e RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR=1.5 -e DISCOURSE_DB_SOCKET=/var/run/postgresql -e DISCOURSE_DB_HOST= -e DISCOURSE_DB_PORT= -e LETSENCRYPT_DIR=/shared/letsencrypt -e DISCOURSE_FORCE_HTTPS=true -e LC_ALL=en_US.UTF-8 -e LANGUAGE=en_US.UTF-8 -e DISCOURSE_HOSTNAME=forum.crio-dauphine.dynv6.net -e DISCOURSE_DEVELOPER_EMAILS=hassan.mahmood@dauphine.psl.eu -e DISCOURSE_SMTP_ADDRESS=smtp-relay.brevo.com -e DISCOURSE_SMTP_PORT=587 -e DISCOURSE_SMTP_USER_NAME=hassan.mahmood@dauphine.psl.eu -e DISCOURSE_SMTP_PASSWORD=J7YKTUfxhpZBkGaN -e DISCOURSE_SMTP_DOMAIN=forum.crio-dauphine.dynv6.net -e DISCOURSE_NOTIFICATION_EMAIL=noreply@forum.crio-dauphine.dynv6.net -e LETSENCRYPT_ACCOUNT_EMAIL=me@example.com -h forum-app -e DOCKER_HOST_IP=172.17.0.1 --name app -t -p 80:80 -p 443:443 -v /var/discourse/shared/standalone:/shared -v /var/discourse/shared/standalone/log/var-log:/var/log --mac-address 02:96:f4:e6:e7:14 local_discourse/app /sbin/boot
db41dedf0fc70e0be04d202626b0203c824e0a12b9322129fc1450362f05c891

```

---

<div class="post-metadata">

### Author: ![mrhassan60](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mrhassan60/32/350082_2.png) [@mrhassan60](https://meta.discourse.org/u/mrhassan60)
#### Post date: [December 21, 2023, 10:32am UTC](https://meta.discourse.org/t/issue-with-installation-in-an-ubuntu-22-04-vm/289335/6 "2023-12-21T10:32:51Z")

</div>

but docker conteiner is running :

```plaintext
root@forum:/var/discourse# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
db41dedf0fc7 local_discourse/app "/sbin/boot" About a minute ago Up About a minute 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp app

```

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [December 21, 2023, 12:02pm UTC](https://meta.discourse.org/t/issue-with-installation-in-an-ubuntu-22-04-vm/289335/7 "2023-12-21T12:02:19Z")

</div>

Pinging `forum.crio-dauphine.dynv6.net` gives me a local address, likely one that connects to a router. 🤔

---

<div class="post-metadata">

### Author: ![mrhassan60](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mrhassan60/32/350082_2.png) [@mrhassan60](https://meta.discourse.org/u/mrhassan60)
#### Post date: [December 21, 2023, 12:55pm UTC](https://meta.discourse.org/t/issue-with-installation-in-an-ubuntu-22-04-vm/289335/8 "2023-12-21T12:55:41Z")

</div>

VM ubuntu ip address is 192.168.0.115/24, i use a IP private for testing

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [December 21, 2023, 2:20pm UTC](https://meta.discourse.org/t/issue-with-installation-in-an-ubuntu-22-04-vm/289335/9 "2023-12-21T14:20:42Z")

</div>

Unless you comment out the let’s encrypt and ssl templates it will fail because there is no certificate.

And I’m not sure if it’s possible to run without https anymore.

---

<div class="post-metadata">

### Author: ![mrhassan60](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mrhassan60/32/350082_2.png) [@mrhassan60](https://meta.discourse.org/u/mrhassan60)
#### Post date: [December 22, 2023, 8:57am UTC](https://meta.discourse.org/t/issue-with-installation-in-an-ubuntu-22-04-vm/289335/10 "2023-12-22T08:57:53Z")

</div>

Hello;

It works, I followed a youtube video ([https://www.youtube.com/watch?v=EaUIsIYivE8](https://www.youtube.com/watch?v=EaUIsIYivE8)), I did the step done in the video and I left the line checked (#) for the https let’s encrypt part on the app.yml file.

---

<div class="post-metadata">

### Author: ![mrhassan60](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mrhassan60/32/350082_2.png) [@mrhassan60](https://meta.discourse.org/u/mrhassan60)
#### Post date: [December 22, 2023, 10:17am UTC](https://meta.discourse.org/t/issue-with-installation-in-an-ubuntu-22-04-vm/289335/11 "2023-12-22T10:17:58Z")

</div>

Thank you for hepls

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [January 21, 2024, 10:18am UTC](https://meta.discourse.org/t/issue-with-installation-in-an-ubuntu-22-04-vm/289335/12 "2024-01-21T10:18:06Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
