# Install fails with port 80,443 on GCP

**URL:** <https://meta.discourse.org/t/install-fails-with-port-80-443-on-gcp/155313>\
**Category:** Self-hosting\
**Created:** [June 19, 2020, 5:17am UTC](https://meta.discourse.org/t/install-fails-with-port-80-443-on-gcp/155313 "2020-06-19T05:17:42Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wall-E](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wall-e/32/184438_2.png) [@Wall-E](https://meta.discourse.org/u/Wall-E)\
**Post date:** [June 19, 2020, 5:17am UTC](https://meta.discourse.org/t/install-fails-with-port-80-443-on-gcp/155313/1 "2020-06-19T05:17:42Z")

</div>

Hi,

I created a VM with GCP compute engine. My domain name is [solarnauts.net](http://solarnauts.net) (from Namecheap)  
I have created a DNS A-record, for the host I have put the subdomain [discourse.solarnauts.net](http://discourse.solarnauts.net) and for the value, the external IP of my VM.

When I run ./discourse-setup, I get the port 80 and 443 warnings (see down below).  
Despite add a firewall rule to my VM opening these 2 ports, i still get this error. What do you advise?

Thanks

`Checking your domain name . . .WARNING: Port 443 of computer does not appear to be accessible using hostname: discourse.solarnauts.net.WARNING: Connection to [http://discourse.solarnauts.net](http://discourse.solarnauts.net/) (port 80) also fails.This suggests that discourse.solarnauts.net resolves to some IP address that does not reach this machine where you are installing discourse.The first thing to do is confirm that discourse.solarnauts.net resolves to the IP address of this server.You usually do this at the same place you purchased the domain.If you are sure that the IP address resolves correctly, it could be a firewall issue.A web search for "open ports YOUR CLOUD SERVICE" might help.`

---

<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:** [June 19, 2020, 5:23am UTC](https://meta.discourse.org/t/install-fails-with-port-80-443-on-gcp/155313/2 "2020-06-19T05:23:17Z")

</div>

Try running  
`netstat -alpn | grep 80`  
on your gcp to find out if a webserver is already running on port 80

---

<div class="post-metadata">

**Author:** ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)\
**Post date:** [June 19, 2020, 5:24am UTC](https://meta.discourse.org/t/install-fails-with-port-80-443-on-gcp/155313/3 "2020-06-19T05:24:58Z")

</div>

there might be a little latency for the DNS record to propagate ?

---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [June 19, 2020, 5:53am UTC](https://meta.discourse.org/t/install-fails-with-port-80-443-on-gcp/155313/4 "2020-06-19T05:53:16Z")

</div>

Did you open 80 and 443?

---

<div class="post-metadata">

**Author:** ![Wall-E](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wall-e/32/184438_2.png) [@Wall-E](https://meta.discourse.org/u/Wall-E)\
**Post date:** [June 19, 2020, 12:45pm UTC](https://meta.discourse.org/t/install-fails-with-port-80-443-on-gcp/155313/6 "2020-06-19T12:45:05Z")

</div>

How much time does this typically take? I bought the domain 2 days ago and added the A-record yesterday. Any way to find out if it has propagated?

E.g. i tried this:

```plaintext
$ nslookup solarnauts.net
Server: 8.8.8.8
Address: 8.8.8.8#53

Non-authoritative answer:
Name: solarnauts.net
Address: 192.64.119.14

$ nslookup discourse.solarnauts.net
Server: 8.8.8.8
Address: 8.8.8.8#53

** server can't find discourse.solarnauts.net: NXDOMAIN

```

---

<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:** [June 19, 2020, 12:48pm UTC](https://meta.discourse.org/t/install-fails-with-port-80-443-on-gcp/155313/7 "2020-06-19T12:48:09Z")

</div>

For some reason, Your DNS records may not have been created properly. I still see namecheap parking dns records and nothing else on your domain `solarnauts.net`

---

<div class="post-metadata">

**Author:** ![Wall-E](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wall-e/32/184438_2.png) [@Wall-E](https://meta.discourse.org/u/Wall-E)\
**Post date:** [June 19, 2020, 12:49pm UTC](https://meta.discourse.org/t/install-fails-with-port-80-443-on-gcp/155313/8 "2020-06-19T12:49:40Z")

</div>

I created a firewall rule in GCP engine that opens both ports but I read there could be things more specific to container-optimized OS relating to Docker itself.

> <https://stackoverflow.com/questions/44620723/cant-connect-to-port-80-on-google-cloud-compute-instance-despite-firewall-rule>

---

<div class="post-metadata">

**Author:** ![Wall-E](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wall-e/32/184438_2.png) [@Wall-E](https://meta.discourse.org/u/Wall-E)\
**Post date:** [June 19, 2020, 12:52pm UTC](https://meta.discourse.org/t/install-fails-with-port-80-443-on-gcp/155313/9 "2020-06-19T12:52:00Z")

</div>

How did you check this?

---

<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:** [June 19, 2020, 12:52pm UTC](https://meta.discourse.org/t/install-fails-with-port-80-443-on-gcp/155313/10 "2020-06-19T12:52:55Z")

</div>

through a few online tools e.g.:  
`whatsmydns.net`  
`dnschecker.org`

---

<div class="post-metadata">

**Author:** ![Wall-E](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wall-e/32/184438_2.png) [@Wall-E](https://meta.discourse.org/u/Wall-E)\
**Post date:** [June 19, 2020, 12:54pm UTC](https://meta.discourse.org/t/install-fails-with-port-80-443-on-gcp/155313/11 "2020-06-19T12:54:27Z")

</div>

I tried with nslookup (see my earlier response to @Benjamin_D), is that doing the same check?

---

<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:** [June 19, 2020, 12:55pm UTC](https://meta.discourse.org/t/install-fails-with-port-80-443-on-gcp/155313/12 "2020-06-19T12:55:53Z")

</div>

nslookup is a local check from your own system, it can be influenced by a lot of factors including your system & router’s dns cache and your ISP’s dns resolver. that’s why I resorted to a 3rd party which checks through multiple PoPs to confirm if a dns records exists and what value it returns.

---

<div class="post-metadata">

**Author:** ![Wall-E](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wall-e/32/184438_2.png) [@Wall-E](https://meta.discourse.org/u/Wall-E)\
**Post date:** [June 19, 2020, 12:59pm UTC](https://meta.discourse.org/t/install-fails-with-port-80-443-on-gcp/155313/13 "2020-06-19T12:59:38Z")

</div>

Ok, so that means the problem is, for now not related to the firewall and i should look into Namecheap where i created the A-record? maybe it’s just a matter of waiting a bit longer? I created it less than 24 hours ago. Is that typical to need to wait longer?

---

<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:** [June 19, 2020, 1:02pm UTC](https://meta.discourse.org/t/install-fails-with-port-80-443-on-gcp/155313/14 "2020-06-19T13:02:04Z")

</div>

Newly created dns records usually start resolving in about 10 minutes. slower resolvers can take around 2-6 hours and in worst cases, 48 hours is the maximum it should take. I don’t have any prior experience with namecheap so I can’t really speak for them but most registrars’ dns propagators start resolving fairly quickly.

The thing that’s oddly suspicious about your setup is that there seems to be no change in the dns records anywhere so maybe your records weren’t created properly.

---

<div class="post-metadata">

**Author:** ![Wall-E](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wall-e/32/184438_2.png) [@Wall-E](https://meta.discourse.org/u/Wall-E)\
**Post date:** [June 19, 2020, 1:23pm UTC](https://meta.discourse.org/t/install-fails-with-port-80-443-on-gcp/155313/15 "2020-06-19T13:23:58Z")

</div>

@itsbhanusharma you nailed it.

On Namecheap, the “host” field, i entered the full address ‘[discourse.solarnauts.net](http://discourse.solarnauts.net)’ instead of just ‘discourse’.

And so i tested your dns checker with:  
‘[discourse.solarnauts.net.solarnauts.net](http://discourse.solarnauts.net.solarnauts.net)’, that one is fully propagated.

So i guess i just have to replace the host field by just ‘discourse’?..

---

<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:** [June 19, 2020, 1:25pm UTC](https://meta.discourse.org/t/install-fails-with-port-80-443-on-gcp/155313/16 "2020-06-19T13:25:20Z")

</div>

Yes, that should do the trick.

---

<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:** [July 19, 2020, 1:35pm UTC](https://meta.discourse.org/t/install-fails-with-port-80-443-on-gcp/155313/17 "2020-07-19T13:35:47Z")

</div>

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