BugZone: Nothing's perfect...

This is where our community discusses almost anything! While we're mainly a Cambodia expat discussion forum and talk about expat life here, we debate about almost everything. Even if you're a tourist passing through Southeast Asia and want to connect with expatriates living and working in Cambodia, this is the first section of our site that you should check out. Our members start their own discussions or post links to other blogs and/or news articles they find interesting and want to chat about. So join in the fun and start new topics, or feel free to comment on anything our community members have already started! We also have some Khmer members here as well, but English is the main language used on CEO. You're welcome to have a look around, and if you decide you want to participate, you can become a part our international expat community by signing up for a free account.
BOFH
Expatriate
Posts: 957
Joined: Wed Nov 19, 2014 10:27 am
Reputation: 3

Re: BugZone: Nothing's perfect...

Post by BOFH »

Seem familiar? :-)
Always Online keeps a limited version of your site online if your server goes down. Prior to using CloudFlare, if your server went down, your website most likely went offline, which meant that your visitors could not access your site.

With Always Online, your server goes down, CloudFlare will serve pages from our cache, so your visitors still see some of the pages they are trying to visit. Your visitors will see a message at the top of the page telling them that they are in offline browsing mode. When your server comes back online, CloudFlare will bump users back to regular browsing seamlessly.

If CloudFlare does not have the requested page in its cache, the visitor sees an error page letting them know that the website page they are requesting is offline.
https://www.cloudflare.com/always-online

Some pages and actions require the server to be accessible to be executed, for instance Cloudflare can't cache reply or preview actions. In this case, you would be able to browse the site but not post. My guess is that this is the problem you're all experiencing.

There's absolutely nothing that you can do on your end to make OD's server respond. The last time I checked, it was hosted on a shared environment, possibly it's running on a PHP-FPM instance with slightly misconfigured resource allocation.

Cloudflare was originally activated as a safe-measure against DDoS, so that OD could "hide" the actual location of the server. As I demonstrated earlier in this thread, the location of the server can still be found, and Cloudflare seems to be doing the site little to no favours. It's possible that Cloudflare is just exposing more symptoms of an otherwise unavailable (overloaded & misconfigured) server, for instance hitting PHP-FPM's pm.max_children setting too often.

In my experience, Cambodia periodically has terrible connectivity to Cloudflare servers. Especially when AAG breaks, overloading our Vietnam uplink.

If it's not Cloudflare, then most likely another (to me) unknown layer of cache.

Just my 2 cents of speculation.

Possible client side solution: Cloudflare bypass

Warning, doing this is a great way to get greeted by this message:
Spoiler:
You have been permanently banned from this board.

Please contact the Board Administrator for more information.

A ban has been issued on your IP address.
You may have to end your current session (logout) before doing this. Don't worry about the message though, my IP is obviously not banned.

If you wish to disable Cloudflare to see if it gets better, add an entry to your hosts file pointing the CEO domain (including www) to x.x.x.x The webserver is incorrectly configured to allow traffic from any sources, not only Cloudflare, so the site is perfectly accessible this way. It may be a good solution if the entire problem turns out to be connectivity problems between Cloudflare and OD's host. Google "hosts file <your platform>" if you don't know how to find or edit your hosts file.

Please note that the IP shouldn't be considered secret since it's publicly available by looking up the DNS MX record, which points to the "secret" location itself:

Code: Select all

$ dig mx cambodiaexpatsonline.com +short
10 dc-ccf565f2-mail.cambodiaexpatsonline.com.
$ dig dc-ccf565f2-mail.cambodiaexpatsonline.com +short
x.x.x.x
Last edited by BOFH on Fri Jun 26, 2015 1:15 pm, edited 1 time in total.
User avatar
Username Taken
Raven
Posts: 13930
Joined: Mon May 19, 2014 6:53 pm
Reputation: 6003
Cambodia

Re: BugZone: Nothing's perfect...

Post by Username Taken »

So, in the hosts file, we would add something like:

cambodiaexpatsonline.com x.x.x.x
http://www.cambodiaexpatsonline.com x.x.x.x

Would that be right?
BOFH
Expatriate
Posts: 957
Joined: Wed Nov 19, 2014 10:27 am
Reputation: 3

Re: BugZone: Nothing's perfect...

Post by BOFH »

Username Taken wrote:So, in the hosts file, we would add something like:

cambodiaexpatsonline.com x.x.x.x
http://www.cambodiaexpatsonline.com x.x.x.x

Would that be right?

Code: Select all

x.x.x.x cambodiaexpatsonline.com www.cambodiaexpatsonline.com
Depending on your platform you may have to purge local DNS cache somehow, on Windows I guess that's more or less a reboot.
User avatar
Username Taken
Raven
Posts: 13930
Joined: Mon May 19, 2014 6:53 pm
Reputation: 6003
Cambodia

Re: BugZone: Nothing's perfect...

Post by Username Taken »

Cut and pasted your code into the hosts file. Cleared the cache. And now its seems I'm banned from the site!

Roll back . . . . .
BOFH
Expatriate
Posts: 957
Joined: Wed Nov 19, 2014 10:27 am
Reputation: 3

Re: BugZone: Nothing's perfect...

Post by BOFH »

Username Taken wrote:Cut and pasted your code into the hosts file. Cleared the cache. And now its seems I'm banned from the site!

Roll back . . . . .
Don't worry, you're not banned :-) Did you try logging out before? I mentioned this in the post by the way, nothing to be scared of.

Edit: Just tested it, indeed no difference. I'll see if I can come up with a workaround anyway, will report back if I find something.
User avatar
Username Taken
Raven
Posts: 13930
Joined: Mon May 19, 2014 6:53 pm
Reputation: 6003
Cambodia

Re: BugZone: Nothing's perfect...

Post by Username Taken »

Yes I logged out.
Anyway I just ran through it all again, this time rebooting. And still didn't work.

So it didn't work for you either?
Could it be that the CEO server only accepts connections from Cloudflare?
User avatar
General Mackevili
The General
Posts: 18418
Joined: Tue May 06, 2014 5:24 pm
Reputation: 3408
Location: The Kingdom
Contact:
United States of America

Re: BugZone: Nothing's perfect...

Post by General Mackevili »

Thx guys... OD is also going to look into it and see what, if any, other changes were made when he changed the theme settings last week.
"Life is too important to take seriously."

"Life does not cease to be funny when people die any more than it ceases to be serious when people laugh."

Have a story or an anonymous news tip for CEO? Need advertising? CONTACT ME

Cambodia Expats Online is the most popular community in the country. JOIN TODAY

Follow CEO on social media:

Facebook
Twitter
YouTube
Google+
Instagram
BOFH
Expatriate
Posts: 957
Joined: Wed Nov 19, 2014 10:27 am
Reputation: 3

Re: BugZone: Nothing's perfect...

Post by BOFH »

Don't see why this would have anything to do with themes.

I notice the server is still available at times when Cloudflare can't reach it. Disabling Cloudflare for the domain would solve the problem.
User avatar
General Mackevili
The General
Posts: 18418
Joined: Tue May 06, 2014 5:24 pm
Reputation: 3408
Location: The Kingdom
Contact:
United States of America

Re: BugZone: Nothing's perfect...

Post by General Mackevili »

BOFH wrote:Don't see why this would have anything to do with themes.

I notice the server is still available at times when Cloudflare can't reach it. Disabling Cloudflare for the domain would solve the problem.
I'm not sure that it does, but it all started acting funny again at the same time he flipped the themes. We'll see what he comes up with.
"Life is too important to take seriously."

"Life does not cease to be funny when people die any more than it ceases to be serious when people laugh."

Have a story or an anonymous news tip for CEO? Need advertising? CONTACT ME

Cambodia Expats Online is the most popular community in the country. JOIN TODAY

Follow CEO on social media:

Facebook
Twitter
YouTube
Google+
Instagram
OrangeDragon
Site Admin
Posts: 4193
Joined: Fri May 02, 2014 8:05 pm
Reputation: 17
United States of America

Re: BugZone: Nothing's perfect...

Post by OrangeDragon »

General Mackevili wrote:
BOFH wrote:Don't see why this would have anything to do with themes.

I notice the server is still available at times when Cloudflare can't reach it. Disabling Cloudflare for the domain would solve the problem.
I'm not sure that it does, but it all started acting funny again at the same time he flipped the themes. We'll see what he comes up with.
It has everything to do with themes. There's something wrong in one of the mods in the old one that's causing apache to chew up a shitton of memory. It resets apache, thus making the site unavailable while it does so, and yet the server is still reachable.

I've switched guest user and bots back to the new theme for the general to take some of the load off... the rest of the user base could help him out by switching themselves.
Post Reply Previous topicNext topic
  • Similar Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: Ahrefs [Bot], Alex, Arget, Bing [Bot], Google [Bot], JaredEvermore, Joakim, Old8404, Random Dude, ron100, Semrush [Bot], SINUS, Spigzy and 741 guests