캐시 설정 충돌로 인한 Cloudflare 로그인 및 로그아웃 오류

커뮤니티 회원 여러분께,

starorigin.net의 Discourse 포럼에 영향을 미치는 중대한 문제에 대한 도움을 요청드립니다. 사용자들은 심각한 로그인/로그아웃 버그를 경험하고 있으며, 이로 인해 커뮤니티 활동이 마비 상태입니다. 로그아웃을 시도하면 페이지가 새로고침되지만 완전히 로그아웃되지 않으며, "로그아웃되었습니다"라는 메시지와 함께 문제를 해결하지 못하는 새로고침 버튼이 표시됩니다. 또한 새 브라우저나 시크릿 모드에서 로그인하거나 로그아웃하는 것도 문제가 있습니다.

우리는 브라우저 캐시 삭제, 다른 브라우저 및 기기 사용, 업데이트 확인 등 여러 문제 해결 단계를 시도했습니다. 최근에 설치된 플러그인과 테마가 문제를 일으키고 있다고 의심하고 있지만, 이를 제거하고 컨테이너를 재빌드해도 문제가 지속되고 있습니다.

여러분의 전문 지식과 도움을 진심으로 감사드립니다. 통찰력이나 해결책이 있으시면 회신해 주십시오.

도와주셔서 감사합니다.

이 문제는 해결되었습니다.

모두의 지원과 조언에 감사드립니다. 특히 @denvergeeks 님은 제 웹사이트에 가입하고 로그인하여 오류를 정확히 파악하고 문제를 해결하는 데 열정적으로 도움을 주셨습니다. 이 문제의 절반은 제 실수와 부주의 때문이었습니다. Cloudflare의 캐시 설정과 서버 관리 패널인 1Panel의 캐시 설정 사이에 충돌이 있었기 때문입니다. 1Panel 서버 관리 패널에서 캐시 스위치를 끄자 제 웹사이트가 정상적으로 돌아왔습니다. 도움을 주신 모든 분들께 깊이 감사드립니다!

Just wondering, does it happen in safe mode?

안전 모드에서도 이 버그가 여전히 심각하게 존재합니다. 또한, 관리자 계정으로 로그아웃하면 자동으로 일반 사용자 계정으로 리디렉션되고, "로그아웃되었습니다."라는 메시지가 포함된 창이 나타납니다. 게다가 며칠 전에 새 서버로 마이그레이션을 했는데, 이것이 관련이 있는지 확실하지 않습니다.

After registering on your site and then signing out, here are my screenshots.

Reloading the page after logging out just continues to result in the same messages while I can still see my avatar there in the header.



After several minutes (after logging out) I reloaded the page again and this time I seem to be logged out.

So then I tried logging in again, and after that I still see the Login button…

Several minutes later I reload the page again but no change I am still not logged in.

I switch to Desktop mode (I am doing all this in Chrome on iPhone 13 Pro) and here is the screenshot…

Now several minutes later I tried again to Login but cannot login and continue to see the saw as the last screenshot.

제가 현재 겪고 있는 문제가 정확히 이것입니다! 방금 제 계정에 로그인하려고 했을 때, 심지어 실수로 여러분의 계정 인터페이스로 리다이렉트되었습니다. 이런 일이 발생하는 원인을 전혀 알 수 없습니다. 커뮤니티 데이터를 백업한 후, 컨테이너를 삭제하고 이미지를 다시 가져와 컨테이너를 재구축한 뒤 백업을 복원해 보겠습니다. 이렇게 하면 문제가 해결될지 확인해 보려고 합니다.

That’s kinda spooky!

What are you seeing in the browser developer tools console?

Is this on a supported install, set up using our official installation at discourse/docs/INSTALL.md at main · discourse/discourse · GitHub?

계정에 로그인하려고 했을 때 브라우저의 개발자 모드에서 오류가 보고되었습니다:

Mixed Content: 'https://starorigin.net/t/topic/50’의 페이지는 HTTPS로 로드되었지만, 비보안 폰트 'http://starorigin.net/fonts/Lora-Bold.ttf?v=0.0.12’를 요청했습니다. 이 요청은 차단되었습니다. 콘텐츠는 HTTPS로 서빙되어야 합니다.
chunk.ea1861026282343f4c7d.d41d8cd9.js:1

계정에서 로그아웃을 시도했을 때에도 오류가 보고되었습니다:

Mixed Content: 'https://starorigin.net/'의 페이지는 HTTPS로 로드되었지만, 비보안 이미지 'http://starorigin.net/uploads/default/original/1X/c9eda24b3c8cae88b2287cd3d700e7a3c1eaa87d.svg’를 요청했습니다. 이 요청은 차단되었습니다. 콘텐츠는 HTTPS로 서빙되어야 합니다.
starorigin.net/:1 Mixed Content: 'https://starorigin.net/'의 페이지는 HTTPS로 로드되었지만, 비보안 요소 'http://starorigin.net/uploads/default/optimized/1X/e5b35745d255cb00fd1111ac078d95a13229adc6_2_512x512.png’를 요청했습니다. 이 요청은 자동으로 HTTPS로 업그레이드되었습니다. 자세한 내용은 https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html을 참조하세요.

Chrome 브라우저가 제안을 제공했지만, 그 의미가 정확히 무엇인지 잘 모르겠습니다:

Mixed content: 사이트의 보안을 강화하려면 모든 리소스를 HTTPS를 통해 로드하세요.
초기 HTML 페이지는 안전한 HTTPS 연결을 통해 로드되었지만, 이미지, 스타일시트, 스크립트와 같은 일부 리소스는 비보안 HTTP 연결을 통해 액세스되고 있습니다. 사이트 전체의 보안을 강화하기 위해 비보안 리소스의 사용이 제한됩니다.

이 문제를 해결하려면 모든 리소스를 안전한 HTTPS 연결을 통해 로드하세요.

Now on my Windows 11 desktop (also in Chrome)…

I logged in to your site again, and first see this (logged in, but someone else’s account)…

Then refresh a few more times and see this… (again, logged in, but in someone else’s account)…

There are many topics about mixed content errors.

Here’s one solution:

But there must be a reason some content isn’t loaded through HTTPS, as it should be the default with a standard install.

며칠 전 새 서버로 이동을 완료했습니다. 진행 과정은 다음과 같습니다: 공식 문서의 단계에 따라 이미지를 가져오고, 컨테이너를 생성한 뒤 컨테이너 내부로 진입했습니다. 그 다음 app.yml 파일을 생성하고, 기존 서버의 app.yml 파일 내용을 새 서버로 복사했습니다. 이후 커뮤니티 백업 데이터를 새 서버의 기본 백업 디렉터리에 업로드했습니다. 마지막으로 컨테이너를 재구성했습니다. 이 단계를 따름으로써 새 서버로의 이동을 성공적으로 마쳤습니다. 그러나 하루 뒤 새 플러그인을 설치하려고 시도했을 때 이 버그가 발생했습니다. 새로 설치한 플러그인을 모두 제거했지만 버그는 여전히 존재하며, 해결 방법을 찾지 못하고 있습니다.

After a few more minutes, your site refreshed itself and then I see this in the console…

I refresh the page once again and then see this (those errors now disappeared)…

방금 몇 분 전에, 위 게시글의 친구의 조언을 따라 HTTPS를 강제로 활성화했습니다.

콘솔에서 오류가 보고되었습니다:

[PLUGIN discourse-tooltips]
“비추천 알림: reopen을(를) 사용하여 topic-list를 수정하는 것은 더 이상 권장되지 않습니다. 대신 값 변환기 topic-list-columns와 기타 새로운 topic-list 플러그인 API를 사용하세요. [Discourse v3.4.0.beta3-dev부터 비추천됨] [deprecation id: discourse.hbr-topic-list-overrides]”
이 플러그인과 관련이 있는 것 같기도 합니다.

문제가 어디서 발생하는지 파악한 것 같습니다. 이 플러그인이 더 이상 지원되지 않는(deprecated) 것으로 보이므로, 제거해 보고 결과를 확인해 보겠습니다.

I don’t believe so, that’s just a developer awareness deprecation warning for an api it is using, that is now deprecated. It is not an error. That specific API will not be removed until Q2.

Interesting… Just now I freshly opened your site (but did not Login) in Firefox (which I have never used yet to go to your site, or even at all this morning), and even without logging in I see there that I am logged in as that same other user…

Then, a few minutes later the page refreshed itself again and it shows as logged out…

Then, I see these errors in the Firefox browser console…

And then following another refresh, these…

In Brave browser I see this…

Could this discussion be related:

네, 말씀하신 대로 이것은 플러그인의 문제가 아닙니다. 현재 이 문제를 정확히 파악하고 해결하는 것은 아직 어렵습니다.

I tried logging in again (using Brave) and got this (I see I am logged in with my correct user avatar)…

But then after I refresh the page again I am logged out…

I also go to the User listing page and see that I am not listed there as a user…

Then refresh the page again and I see my user as logged in again…

Then immediately I click to go to the User listing page, but I am still not listed as a user (even though I can still see my correct avatar in the header)…