# $4.5 Alicloud can't get discourse to work

**URL:** https://meta.discourse.org/t/4-5-alicloud-cant-get-discourse-to-work/87959
**Category:** Self-hosting
**Created:** [May 20, 2018, 9:53pm UTC](https://meta.discourse.org/t/4-5-alicloud-cant-get-discourse-to-work/87959 "2018-05-20T21:53:52Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![seasiri](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/seasiri/32/119769_2.png) [@seasiri](https://meta.discourse.org/u/seasiri)
#### Post date: [May 20, 2018, 9:53pm UTC](https://meta.discourse.org/t/4-5-alicloud-cant-get-discourse-to-work/87959/1 "2018-05-20T21:53:52Z")

</div>

Hello, @codinghorror  
Let’s start with my renting server spec: $4.5 Alicloud 1gb RAM & 1 CPU

1. My DNS A-record point to server public ip where I also use this ip for ssh.
2. I follow this already [discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md)
3. discourse setup

```plaintext
Hostname for your Discourse? **discourse.example.com<-- same as DNS**
Email address for admin account(s)? [me@example.com,you@example.com]: 
SMTP server address? [smtp.example.com]: 
SMTP port? [587]: 
SMTP user name? [user@example.com]: 
SMTP password? [pa$word]: 
Let's Encrypt account email? (ENTER to skip) [me@example.com]: 

```

After access URL ip only and `discourse.example.com`, it doesn’t connect me to admin setup page. I am very sad now and will sleep. Hope someone here can guide me through this infinite loop hole that I stuck in. Please!

\*\* something worth mention: I believe I setup SMTP incorrectly, I can rebuild by fixing app file later, but first let get to the first setup welcome page first.

I am depressed. T\_T

Sincerely,  
Sea

---

<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: [May 20, 2018, 9:58pm UTC](https://meta.discourse.org/t/4-5-alicloud-cant-get-discourse-to-work/87959/2 "2018-05-20T21:58:23Z")

</div>

> [@seasiri](#):
>
> After access URL ip only and `discourse.example.com`, it doesn’t connect me to admin setup page

Either you don’t know the IP or the ports are firewalled and nothing can connect to the server. You can try

telnet localhost 80

---

<div class="post-metadata">

### Author: ![seasiri](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/seasiri/32/119769_2.png) [@seasiri](https://meta.discourse.org/u/seasiri)
#### Post date: [May 20, 2018, 10:02pm UTC](https://meta.discourse.org/t/4-5-alicloud-cant-get-discourse-to-work/87959/3 "2018-05-20T22:02:19Z")

</div>

I guess we can solve it together so I can sleep better today. It returns this @pfaffman

```
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.

```

For public ip, I run this in terminal:

```
dig +short myip.opendns.com @resolver1.opendns.com

```

There for I should have the public IP to do A-record in DNS service provider.  
What do I did wrong? T\_T

---

<div class="post-metadata">

### Author: ![seasiri](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/seasiri/32/119769_2.png) [@seasiri](https://meta.discourse.org/u/seasiri)
#### Post date: [May 21, 2018, 4:46am UTC](https://meta.discourse.org/t/4-5-alicloud-cant-get-discourse-to-work/87959/4 "2018-05-21T04:46:23Z")

</div>

Any possible help from someone I am here now online ready to continue solving this please stop by and help will be much appreciated. LOVE!

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [May 21, 2018, 4:57am UTC](https://meta.discourse.org/t/4-5-alicloud-cant-get-discourse-to-work/87959/5 "2018-05-21T04:57:03Z")

</div>

Do you know the public IP of your server?  
if so, Can you confirm if your A record is created correct?  
At the very last, Are you hosting any other website on the same server?

---

<div class="post-metadata">

### Author: ![seasiri](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/seasiri/32/119769_2.png) [@seasiri](https://meta.discourse.org/u/seasiri)
#### Post date: [May 21, 2018, 5:02am UTC](https://meta.discourse.org/t/4-5-alicloud-cant-get-discourse-to-work/87959/6 "2018-05-21T05:02:44Z")

</div>

@itsbhanusharma  
Thank you for great great reply. I am waiting for someone here to help me fix in realtime. I have attached photo for clearer understanding. Am I doing it right?

 ![1526878885837](https://global.discourse-cdn.com/meta/original/3X/1/a/1a245676159e69e2af4eb98f164fabf030d26b5e.jpg) ![1526878866521](https://global.discourse-cdn.com/meta/original/3X/8/f/8fec3fc4a9bfc54d8817ee96a8e574a1c3b3a322.jpg)

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [May 21, 2018, 5:06am UTC](https://meta.discourse.org/t/4-5-alicloud-cant-get-discourse-to-work/87959/7 "2018-05-21T05:06:59Z")

</div>

So You’re managing dns from cloudflare.  
I’m assuming your nameservers are successfully propagated and pinging `discourse.example.com` returns this same IP.

If all these above conditions are met, I’d be interested in checking the server itself if it has everything set up correctly. First step will be trying to check if server has the necessary ports open and if alicloud requires some additional rules to be created in your account to enable public access on ports 80 & 443.

---

<div class="post-metadata">

### Author: ![seasiri](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/seasiri/32/119769_2.png) [@seasiri](https://meta.discourse.org/u/seasiri)
#### Post date: [May 21, 2018, 5:12am UTC](https://meta.discourse.org/t/4-5-alicloud-cant-get-discourse-to-work/87959/8 "2018-05-21T05:12:24Z")

</div>

@itsbhanusharma  
I love discourse. I LOVE! We almost there I believe. Be with me sir! 😍

 ![1526879354308](https://global.discourse-cdn.com/meta/original/3X/b/5/b5aa7da28c26aff6205bc75c373be2ac586a8365.jpg) ![1526879408358](https://global.discourse-cdn.com/meta/original/3X/4/6/46ddbe9f0cb6bb04a7eb1246f339a3af01c4700c.jpg) ![1526879451854](https://global.discourse-cdn.com/meta/original/3X/6/a/6a649f5155e0373e4264e18306bef47086fc37f4.jpg)

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [May 21, 2018, 5:15am UTC](https://meta.discourse.org/t/4-5-alicloud-cant-get-discourse-to-work/87959/9 "2018-05-21T05:15:14Z")

</div>

I don’t think you have to add any address field access or authorization object.

Allow inbound access to SSH (22) HTTP (80) and HTTPS (443) that should suffice for now.

In the authorization object try something that represents more public (maybe 0.0.0.0)

Wait! Why does it says “Intranet” for NIC??

Ps: I did some homework for you and found this!

> **[Access control - Alibaba Cloud](https://www.alibabacloud.com/help/en/vpc/access-control)**
>
> What are the access control methods for a VPC,Virtual Private Cloud:Alibaba Cloud provides two key access control mechanisms for network isolation at the instance or vSwitch level within a virtual private cloud (VPC), security groups and network...

Turns out you need to set authorization object to 0.0.0.0/0 for public access.

---

<div class="post-metadata">

### Author: ![seasiri](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/seasiri/32/119769_2.png) [@seasiri](https://meta.discourse.org/u/seasiri)
#### Post date: [May 21, 2018, 6:14am UTC](https://meta.discourse.org/t/4-5-alicloud-cant-get-discourse-to-work/87959/10 "2018-05-21T06:14:22Z")

</div>

@itsbhanusharma

Thank you you made my day! I have successfully open setup admin page for Discourse.  
Now, I am working mailgun and forward it to gmail.

- All Mx record, TXT record and, Cname is green status on mailgun.

**Problem:**

- Sending email from outside domain to mailgun (custom-domain) mailgun server never forward it to my gmail. even though I setup route to forward to my outside mail correct and all DNS record are green.

Help me as you wish.!

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [May 21, 2018, 6:16am UTC](https://meta.discourse.org/t/4-5-alicloud-cant-get-discourse-to-work/87959/11 "2018-05-21T06:16:18Z")

</div>

> [@seasiri](#):
>
> Sending email from outside domain to mailgun (custom-domain) mailgun server never forward it to my gmail. even though I setup route to forward to my outside mail correct and all DNS record are green.

can you give me an example of what you’re trying to achieve? I seriously can’t understand your issue!

---

<div class="post-metadata">

### Author: ![seasiri](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/seasiri/32/119769_2.png) [@seasiri](https://meta.discourse.org/u/seasiri)
#### Post date: [May 21, 2018, 1:27pm UTC](https://meta.discourse.org/t/4-5-alicloud-cant-get-discourse-to-work/87959/12 "2018-05-21T13:27:47Z")

</div>

@itsbhanusharma  
I have successfully install discourse server + mailgun + gmail. It is the best of the best. Thank you!
