After updating website wont come back online

After updating the website via ssh and rebuilding the app the website is down and won’t come up, anyone know what’s causing the issue and how to fix?

Hey @Noba, your screenshot contained your SMTP password! You should change it ASAP. I’ve hidden your topic for now.

Regarding your problem: It looks like you are using Cloudflare, so the following solution should work for you as well.

https://meta.discourse.org/t/discourse-fails-to-load-due-to-incorrect-cloudflare-settings/128251/5?u=gerhard

i tried that method but it seems to still havent fixed the issue

I was curious why there is an unusual number of reports related to Cloudflare issues lately, so I gave it a try myself. It seems to work quite well. All I had to do was change the DNS entry to “Proxied”, switch the SSL setting from “Flexible” to “Full (strict)”, add the cloudflare.template.yml to app.yml and rebuild the container.


:bulb: Click on the image – it is a rather large and long screenshot.

@Zyniker I didn’t have to switch to TLS 1.2. You might want to recheck your settings and see if something else is different.

@Noba Could you please try to rebuild your container again just to rule out any issues with that?

cd /var/discourse
git pull
./launcher rebuild app

You might also want to check the nginx error log. You can find it on the host at /var/discourse/shared/standalone/log/var-log/nginx/error.log

I tried this way but changed the cloudflare settings according to you. Also added cloudflare.template.yml and also rebuild the container app. But still, the website is not loading. I checked the error logs and it’s showing

nginx: [emerg] cannot load certificate “/shared/ssl/website.com_ecc.cer”: PEM_r ead_bio_X509_AUX() failed (SSL: error:0909006C:PEM routines:get_name:no start li ne:Expecting: TRUSTED CERTIFICATE)

아직 누군가 이 문제를 해결했나요? 저는 사이트들에 discourse 드롭렛을 사용 중이고, app.tml에 cloudflare 템플릿을 추가하고 cloudflare을 strict로 설정했는데도 안 됩니다.

또 다른 드롭렛에 ubuntu를 실행 중이고, 거기에 discourse를 설치했는데 그건 잘 동작합니다. 문제가 되는 것은 전용 discourse 드롭렛뿐이네요. 좀 이상하네요.

위에서 말씀하신 내용을 설명해 주시겠습니까? 원클릭 설치를 말씀하시는 건가요?

실제로 그렇습니다. 원클릭 설치로 만든 모든 포럼이 최신 업데이트를 적용한 후 521 오류가 발생하고 있습니다. Discourse가 설치된 Ubuntu 드롭렛은 문제없습니다.

제3자 패키지에 대해서는 여기서 지원하지 않습니다. 해당 문제는 DigitalOcean에 도움을 요청하셔야 합니다.

위에서 언급하신 대로, 공식 가이드를 따라 설치하면 잘 작동합니다.

방화벽이 뭔가 모든 것을 차단하고 있는 것 같은데, 화이트리스트를 적용한 뒤에는 524 에러가 나네요. 앞으로는 원클릭 방식은 절대 안 쓸 겁니다. 우분투만 영원히 쓸 거예요.