Difficulty loading Meta from China due to CDN being blocked


(Joseph Coates) #1

Does Discourse Meta have any dependencies from Google? I can’t load meta from China without a VPN. Its obviously not blocked because the domain resolves. It just gets hung up somewhere.

I have the latest stable discourse running on my site and can load it no problem in China. Just a bit concerned that there might be a dependency that will be later incorporated in the stable release and cause me problems in the future.


(Rafael dos Santos Silva) #2

There are no dependencies from Google URLs, and they will never be. (Meta does use Google Analytics, but that fails gracefully.)

It is running from AWS US-WEST I believe (and Cloudfront CDN) so maybe it’s that? Can you pinpoint the exact resource that fails? Can you share a repro with cURL ?


(Joseph Coates) #3

Hmmm… Just tried to see, but now it loads without vpn. Must have been something in the initial download. Still doesn’t work on other devices without vpn.

EDIT: Ok, found the problem. Seems to be the CDN.

Here’s the console error message:
Failed to register/update a ServiceWorker for scope ‘https://meta.discourse.org/’: Load failed with status 404 for script ‘https://meta.discourse.org/push-service-worker.js’.

Loading failed for the <script> with source “https://meta-s3-cdn.freetls.fastly.net/assets/ember_jquery-27e777857b8c0730dacfe09cb11711365d21a5db4f9ee0b85d494e4259cf6cda.br.js”.


#4

Yup, can confirm that the fastly CDN content on Meta is blocked in China.

I just kinda assumed that this is normal :man_shrugging:

curl: (7) Failed to connect to meta-s3-cdn.freetls.fastly.net port 443: Operation timed out

^ with my limited curl knowledge, I’m not sure if this is something you need


(Rafael dos Santos Silva) #5

Yeah, not sure we can do something about this :man_shrugging:.


(Joseph Coates) #6

I don’t think anyone would expect you to… Its just your site, not the product. These kinds of things get broken a lot with China’s firewall. Thanks for the help.


(Viorela) #7

Bumping into this topic since it’s the most recent regarding China firewall blocking our Discourse forum.

Since our forum is hosted by Discourse, our colleagues from China would like to set up their own forum (like they currently do with the official website) and my question would be if it’s better to be hosted by Discourse or self hosted?


(Sam Saffron) #8

Our hosted customers do not use fastly, they use keycdn so this issue is not relevant, we have some customers located in China who have not reported any issues to us.


(Viorela) #9

Thank you, Sam. I will pass this info.