# Letsencrypt setup does not seem to be able to find its files on first rebuild

**URL:** <https://meta.discourse.org/t/letsencrypt-setup-does-not-seem-to-be-able-to-find-its-files-on-first-rebuild/59901>\
**Category:** Bug\
**Created:** [2017 年 3 月 26 日午後 3:11 UTC](https://meta.discourse.org/t/letsencrypt-setup-does-not-seem-to-be-able-to-find-its-files-on-first-rebuild/59901 "2017-03-26T15:11:57Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)\
**Post date:** [2017 年 3 月 26 日午後 3:11 UTC](https://meta.discourse.org/t/letsencrypt-setup-does-not-seem-to-be-able-to-find-its-files-on-first-rebuild/59901/1 "2017-03-26T15:11:57Z")

</div>

I’ve seen this twice about a month ago, and just had it again when I was setting up a brand new forum using the guided `discourse-setup` wizard.

- I started a new digital ocean droplet running ubuntu 16
- I ran the git + docker setup command.
- I ran `apt-get upgrade`
- I made `/var/discourse`
- I cloned in the repo & started `./discourse-setup`
- I entered in proper values for admin email, letsencrypt email, smtp host, username, port, and password.
- I let it rebuild and came back the next morning.
- the site wouldn’t come up so I restarted the ubuntu host
- the site came up, I registered my user, but did not get an email.
- when I checked the logs I saw the problem I’m reporting:

many repeated logs for:

```plaintext
nginx: [emerg] BIO_new_file("/shared/ssl/share.MYDOMAINNAME.com.cer") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/shared/ssl/share.MYDOMAINNAME.com.cer','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: [emerg] BIO_new_file("/shared/ssl/share.MYDOMAINNAME.com.cer") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/shared/ssl/share.MYDOMAINNAME.com.cer','r') error:2006D080:BIO routines:BIO_new_file:no such file)

```

History tells me that if I rebuild the container the error will go away (I assume a symlink is missing, but don’t quite know just why the certificate can’t be found there.

---

_[View the full topic](https://meta.discourse.org/t/letsencrypt-setup-does-not-seem-to-be-able-to-find-its-files-on-first-rebuild/59901)._
