# Getting error when setting up Let's Encrypt SSL on GCP

**URL:** https://meta.discourse.org/t/getting-error-when-setting-up-lets-encrypt-ssl-on-gcp/75007
**Category:** Self-hosting
**Created:** [11월 29, 2017, 11:52오전 UTC](https://meta.discourse.org/t/getting-error-when-setting-up-lets-encrypt-ssl-on-gcp/75007 "2017-11-29T11:52:00Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![WallBB](https://avatars.discourse-cdn.com/v4/letter/w/ecc23a/32.png) [@WallBB](https://meta.discourse.org/u/WallBB)
#### Post date: [11월 29, 2017, 11:52오전 UTC](https://meta.discourse.org/t/getting-error-when-setting-up-lets-encrypt-ssl-on-gcp/75007/1 "2017-11-29T11:52:00Z")

</div>

Hello,  
I am trying to setup Lets Encrypt SSL, so while installing discourse, I tried setting the email for Lets encrypt but I got below error :-

* * *

_Checking your domain name . . ._  
_WARNING:: This server does not appear to be accessible at [domainex.com:443](http://domainex.com:443)._  
_A connection to [http://domainex.com](http://domainex.com) (port 80) also fails._  
_This suggests that [domainex.com](http://domainex.com) resolves to the wrong IP address_  
_or that traffic is not being routed to your server._  
_Google: “open ports YOUR CLOUD SERVICE” for information for resolving this problem._  
_You should probably answer “n” at the next prompt and disable Let’s Encrypt._  
_This test might not work for all situations,_  
_so if you can access Discourse at [http://domainex.com](http://domainex.com), you might try anyway._

* * *

The above is the error message from discourse install, there might be anything missing in my GCP config.  
I installed without SSL now but can anyone tell me what might be the issue

---

<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: [11월 29, 2017, 12:20오후 UTC](https://meta.discourse.org/t/getting-error-when-setting-up-lets-encrypt-ssl-on-gcp/75007/2 "2017-11-29T12:20:39Z")

</div>

Your discourse server is not at [http://domainex.com/](http://domainex.com/). Click the link you included.

You’ll need to update your DNS to make it point to your discourse server.

If there is something that could make that message more clear, please suggest it.

---

<div class="post-metadata">

### Author: ![WallBB](https://avatars.discourse-cdn.com/v4/letter/w/ecc23a/32.png) [@WallBB](https://meta.discourse.org/u/WallBB)
#### Post date: [11월 29, 2017, 12:23오후 UTC](https://meta.discourse.org/t/getting-error-when-setting-up-lets-encrypt-ssl-on-gcp/75007/3 "2017-11-29T12:23:27Z")

</div>

Hi Jay,  
that is an just an example link

---

<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: [11월 29, 2017, 12:27오후 UTC](https://meta.discourse.org/t/getting-error-when-setting-up-lets-encrypt-ssl-on-gcp/75007/4 "2017-11-29T12:27:18Z")

</div>

Then it’s impossible to diagnose.

Is it the case that your DNS does point to your server and the ports are open?and you can access discourse with your hostname? If so, you can ignore those warnings

> [@WallBB](#):
>
> you might try anyway

And see what happens. I don’t know under what conditions the test the script does might fail to connect to itself, but there could be some.

---

<div class="post-metadata">

### Author: ![WallBB](https://avatars.discourse-cdn.com/v4/letter/w/ecc23a/32.png) [@WallBB](https://meta.discourse.org/u/WallBB)
#### Post date: [11월 29, 2017, 12:38오후 UTC](https://meta.discourse.org/t/getting-error-when-setting-up-lets-encrypt-ssl-on-gcp/75007/5 "2017-11-29T12:38:29Z")

</div>

Hi pfaffman,  
I am able to access my domain and see the Congratulations page on discourse in http scenario, only thing is I get Error host not found if I try to access the account activate link. But this is a different issue.

Now regarding the original issue, I pasted the exact message from discourse install. I updated my first message so that it is better disguised. Sorry for confusion, but the above error mentioned in first post only appears if I try to setup Lets Encrypt email in discourse install. I am currently not having SSL certificate installed, so do you think that might be the problem ?

---

<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: [11월 29, 2017, 12:42오후 UTC](https://meta.discourse.org/t/getting-error-when-setting-up-lets-encrypt-ssl-on-gcp/75007/6 "2017-11-29T12:42:33Z")

</div>

> [@WallBB](#):
>
> only thing is I get Error host not found if I try to access the account activate link. But this is a different issue.

I suspect that is the same issue.

If you can’t share your domain name, I can’t help.

One possibility is that you have two A records.

---

<div class="post-metadata">

### Author: ![WallBB](https://avatars.discourse-cdn.com/v4/letter/w/ecc23a/32.png) [@WallBB](https://meta.discourse.org/u/WallBB)
#### Post date: [11월 29, 2017, 12:46오후 UTC](https://meta.discourse.org/t/getting-error-when-setting-up-lets-encrypt-ssl-on-gcp/75007/7 "2017-11-29T12:46:35Z")

</div>

Hi Jay,  
I do have two A records, one is www and one is without www in GCP.  
Should I delete www ?

---

<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: [11월 29, 2017, 12:49오후 UTC](https://meta.discourse.org/t/getting-error-when-setting-up-lets-encrypt-ssl-on-gcp/75007/8 "2017-11-29T12:49:08Z")

</div>

I mean that you may have two A records for your hostname. Only the hostname that you put in app.yml is checked by the script.

If you think your DNS is right you can try enabling let’s encrypt. The evidence that I have is that you have something wrong.

---

<div class="post-metadata">

### Author: ![WallBB](https://avatars.discourse-cdn.com/v4/letter/w/ecc23a/32.png) [@WallBB](https://meta.discourse.org/u/WallBB)
#### Post date: [11월 29, 2017, 1:01오후 UTC](https://meta.discourse.org/t/getting-error-when-setting-up-lets-encrypt-ssl-on-gcp/75007/9 "2017-11-29T13:01:31Z")

</div>

Ah, hostname was incorrect 🙂  
If I just rename the hostname, it should work pfaffman or I need to use launcher ?

---

<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: [11월 29, 2017, 1:08오후 UTC](https://meta.discourse.org/t/getting-error-when-setting-up-lets-encrypt-ssl-on-gcp/75007/10 "2017-11-29T13:08:01Z")

</div>

Just run disourse-setup again.

---

<div class="post-metadata">

### Author: ![Antichrist](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/antichrist/32/159976_2.png) [@Antichrist](https://meta.discourse.org/u/Antichrist)
#### Post date: [10월 22, 2019, 12:21오후 UTC](https://meta.discourse.org/t/getting-error-when-setting-up-lets-encrypt-ssl-on-gcp/75007/11 "2019-10-22T12:21:23Z")

</div>

미래에 이 글을 보고 같은 문제를 겪는 다른 사람들을 위해.  
저는 Ubuntu에서 방화벽을 통해 포트를 활성화해야 했습니다.  
sudo ufw allow 443/tcp
