Can't reach site

I’m having trouble reaching my discourse site. I was in the process of moving it to a new domain, but stopped and undid my changes and it hasn’t come back up. I followed this thread to change the domain and then undid everything in reverse order.

https://discourse.brandywinereef.com

When attempting to run ./discourse-setup I get:

Checking your domain name . . .
WARNING: Port 443 of computer does not appear to be accessible using hostname: 443.
WARNING: Connection to http://443 (port 80) also fails.

This suggests that 443 resolves to some IP address that does not reach this
machine where you are installing discourse.

Checking with ufw status returns:

Status: active

To Action From


22/tcp LIMIT Anywhere
80/tcp ALLOW Anywhere
443/tcp ALLOW Anywhere
22/tcp (v6) LIMIT Anywhere (v6)
80/tcp (v6) ALLOW Anywhere (v6)
443/tcp (v6) ALLOW Anywhere (v6)

I manually cleared out and then requested the Let’s Encrypt cert again. Still nothing.

Any ideas?

1 Like

It looks like your hostname is incorrectly configured in your app.yml, it sees it as empty.

1 Like

Here’s the top of the app.yml. Looks like hostname is there…?

templates:
    - templates/postgres.template.yml
    - templates/redis.template.yml
    - templates/web.template.yml
    - templates/web.ratelimited.template.yml
    - templates/web.ssl.template.yml
    - templates/web.letsencrypt.ssl.template.yml
expose:
    - '80:80'
    - '443:443'
params:
    db_default_text_search_config: pg_catalog.english
    db_shared_buffers: 128MB
    version: tests-passed
env:
    LANG: en_US.UTF-8
    UNICORN_WORKERS: 2
    DISCOURSE_HOSTNAME: discourse.brandywinereereef.club

There are a few other versions in that folder that I’m guessing are backups and an import.yml also

1 Like

You have an extra ree in the Hostname: discourse.brandywinereereef.club

6 Likes

Oh FFS… good catch! I’ll fix that and rebuild.

2 Likes

That was it. Solved!

Thanks @awlogan

2 Likes

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