# Rebuild appears to work, but site is not loading properly

**URL:** https://meta.discourse.org/t/rebuild-appears-to-work-but-site-is-not-loading-properly/320934
**Category:** Self-hosting
**Created:** [August 9, 2024, 5:07pm UTC](https://meta.discourse.org/t/rebuild-appears-to-work-but-site-is-not-loading-properly/320934 "2024-08-09T17:07:17Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![keith2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/keith2/32/438898_2.png) [@keith2](https://meta.discourse.org/u/keith2)
#### Post date: [August 9, 2024, 5:07pm UTC](https://meta.discourse.org/t/rebuild-appears-to-work-but-site-is-not-loading-properly/320934/1 "2024-08-09T17:07:17Z")

</div>

How do I properly troubleshoot it?

It looks like I might have an issue with letsencrypt not being able to renew the certificate.

 ![image](https://global.discourse-cdn.com/meta/original/4X/9/1/c/91ca9ee20b9240fa143d219307bd0ae53444c695.png)

When running `.launcher logs app` the logs mention checking `/shared/letsencrypt`, but that directory doesn’t exist. I do have `/shared/standalone/letsencrypt`.

![image](https://global.discourse-cdn.com/meta/original/4X/c/1/4/c1444211cd4e99f76951df347290ac7c3aa2f830.png)

Is it possible an upgrade changed the directory structure at some point and something isn’t pointing to the correct path now?

---

<div class="post-metadata">

### Author: ![keith2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/keith2/32/438898_2.png) [@keith2](https://meta.discourse.org/u/keith2)
#### Post date: [August 9, 2024, 5:55pm UTC](https://meta.discourse.org/t/rebuild-appears-to-work-but-site-is-not-loading-properly/320934/2 "2024-08-09T17:55:32Z")

</div>

Is this template incorrect?

```plaintext
  LETSENCRYPT_DIR: "/shared/letsencrypt"
  DISCOURSE_FORCE_HTTPS: true

hooks:
  after_ssl:
    - exec:
       cmd:
         - if [-z "$LETSENCRYPT_ACCOUNT_EMAIL"]; then echo "LETSENCRYPT_ACCOUNT_EMAIL ENV variable is required and has not been set."; exit 1; fi
         - /bin/bash -c "if [[! \"$LETSENCRYPT_ACCOUNT_EMAIL\" =~ ([^@]+)@([^\.]+) ]]; then echo \"LETSENCRYPT_ACCOUNT_EMAIL is not a valid email address\"; exit 1; fi"

    - exec:
       cmd:
         - cd /root && git clone --branch 3.0.6 --depth 1 https://github.com/acmesh-official/acme.sh.git && cd /root/acme.sh
         - touch /var/spool/cron/crontabs/root
         - install -d -m 0755 -g root -o root $LETSENCRYPT_DIR
         - cd /root/acme.sh && LE_WORKING_DIR="${LETSENCRYPT_DIR}" ./acme.sh --install --log "${LETSENCRYPT_DIR}/acme.sh.log"
         - cd /root/acme.sh && LE_WORKING_DIR="${LETSENCRYPT_DIR}" ./acme.sh --upgrade --auto-upgrade
         - cd /root/acme.sh && LE_WORKING_DIR="${LETSENCRYPT_DIR}" ./acme.sh --set-default-ca --server letsencrypt

    - file:
       path: "/etc/nginx/letsencrypt.conf"
       contents: |
        user www-data;
        worker_processes auto;
        daemon on;

        events {
          worker_connections 768;
          # multi_accept on;

```

---

<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: [August 9, 2024, 5:59pm UTC](https://meta.discourse.org/t/rebuild-appears-to-work-but-site-is-not-loading-properly/320934/3 "2024-08-09T17:59:08Z")

</div>

It looks like you did something to make it so that it failed to renew the cert and now you’re rate limited. Someone recently did this by blocking port 80.

A work-around is to request a cert for an additional hostname as described in [Set up Let’s Encrypt with multiple domains / redirects](https://meta.discourse.org/t/set-up-let-s-encrypt-with-multiple-domains-redirects/56685)

---

<div class="post-metadata">

### Author: ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)
#### Post date: [August 9, 2024, 10:58pm UTC](https://meta.discourse.org/t/rebuild-appears-to-work-but-site-is-not-loading-properly/320934/4 "2024-08-09T22:58:13Z")

</div>

> [@keith2](#):
>
> the logs mention checking `/shared/letsencrypt`

I believe that path would exist within the container, not on your main machine.
