# 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:** 4

<div class="post-metadata">

**Author:** ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
**Post date:** [2017 年 3 月 27 日午前 7:06 UTC](https://meta.discourse.org/t/letsencrypt-setup-does-not-seem-to-be-able-to-find-its-files-on-first-rebuild/59901/4 "2017-03-27T07:06:13Z")

</div>

Well after much head banging because bootstrapping from a fresh install to debug is sooo painfully slow, I found the 🐛 and squashed it in

[https://github.com/discourse/discourse\_docker/commit/659ab19e6fa2c8284a500da810bec00f02e6e2e3](https://github.com/discourse/discourse_docker/commit/659ab19e6fa2c8284a500da810bec00f02e6e2e3)

The web template was still generating a file which was moved into the base image. However, the commands in the file was blowing up because it was trying to `chmod` certain files that would have existed during the first run. As a result, the Let’s Encrypt was not being executed at all during the first run.

---

_[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)._
