okawaffles / OkayuCDN

A File Upload Server based around Nekomata Okayu.
https://okayu.okawaffles.com
Other
2 stars 0 forks source link

521 Error on Firefox Mobile only? #34

Closed tacobella03 closed 6 months ago

tacobella03 commented 6 months ago

This is a weird bug i found trying to access the stable okayu.okawaffles.com website. When trying to access the stable website on a Firefox Mobile Browser, i would be greeted with a cloudfare 521 Error (shown below) Screenshot_2024-03-25-04-26-27-92_3aea4af51f236e4932235fdada7d1643

This was only happening on the Stable Server and did not happen onany of the other browsers i have installed on my phone. The Nightly server worked and allowed me to go on it on Firefox browser but not stable. The 521 Error occurs when the origin web server refuses connections from Cloudflare, meaning its a server side issue but is strange that it only happens on one browser. Below is the same page loaded on the Default chrome browser on mobile image

I will check in a few hours to see if the same issue persists since im not sure what is happening.

(i probably should have made the photos/screenshots smaller)

okawaffles commented 6 months ago

Hi. thank you for reporting this issue. this will be looked into. for future reference, rather than opening an issue on github, please email oka@waffle.moe to report webserver issues. this repository is for issues on the software of OkayuCDN, and the hosting is up to the hoster and can change based on use case.

The 521 Error occurs when the origin web server refuses connections from Cloudflare, meaning its a server side issue

while this can be true in some scenarios, requests from Firefox mobile are not reaching the server (access log is shown below). this means that it is an issue on cloudflare's end. i will check into my cloudflare settings to see if i possibly changed a setting on accident, but if not, it's not an issue i can control. image

I've grabbed your IP from the full access log and grep'd to check, and it appears that none of your requests are reaching nginx from Firefox mobile either.

tacobella03 commented 6 months ago

Yes, of course i'll email you next time if there are any webserver issues. I have emailed before regarding a different server issue but never got a response but the issue was fixed the next day so i assumed you did see it but never responded. Thanks for looking into this and i will be sure to email if there are ever Webserver issues i encounter in the future.

okawaffles commented 6 months ago

The Arona system at https://okayu_arona.waffle.moe (which runs under indifferent configuration to OkayuCDN) can be reached by Firefox mobile. I will compare the two site configurations tomorrow if I have time.

tacobella03 commented 6 months ago

I have a short question about emailing.

for future reference, rather than opening an issue on github, please email oka@waffle.moe to report webserver issues. this repository is for issues on the software of OkayuCDN

If i have a general question about the website, or something i don't think is an issue but did happen on the website, should i contact you via email first? i have something i want to ask but since it wasn't an issue i wasn't sure how to get in contact, if i should email or something else.

okawaffles commented 6 months ago

If the question or issue is unrelated to the software development of OkayuCDN, it's better to email.

tacobella03 commented 6 months ago

Alright, thank you.

okawaffles commented 6 months ago

It seems that Firefox mobile does not try and upgrade requests to HTTPS automatically, and always assumes HTTP if you do not specify. I have enabled automatic HTTPS rewrites in Cloudflare and the issue should be resolved now.