BugZone: Nothing's perfect...

This is a part of our Cambodia forums to chat about anything, whether it relates to Cambodia or not. This discussion forum is at the top of our site because it's usually the busiest part of the expat community chatter with random topics on just about everything, including expat life, Khmer politics, Cambodian blogs we have or have come across, or whatever else our members want to discuss. Whether you're an expatriate, tourist, Cambodian or random traveler just passing through South East Asia, you are welcome to talk about anything or start new topics yourselves.
User avatar
BOFH
Expatriate
Posts: 957
Joined: Wed Nov 19, 2014 10:27 am
Karma: 0

Re: BugZone: Nothing's perfect...

Postby BOFH » Fri Jun 26, 2015 1:00 pm

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" onclick="window.open(this.href);return false;

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: 6796
Joined: Mon May 19, 2014 6:53 pm
Karma: 224
Contact:
Cambodia

Re: BugZone: Nothing's perfect...

Postby Username Taken » Fri Jun 26, 2015 1:39 pm

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

cambodiaexpatsonline.com x.x.x.x
http://www.cambodiaexpatsonline.com" onclick="window.open(this.href);return false; x.x.x.x

Would that be right?
... give 'em a quick, short, sharp shock ...

https://BooksAboutCambodia.com
User avatar
BOFH
Expatriate
Posts: 957
Joined: Wed Nov 19, 2014 10:27 am
Karma: 0

Re: BugZone: Nothing's perfect...

Postby BOFH » Fri Jun 26, 2015 1:48 pm

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

cambodiaexpatsonline.com x.x.x.x
http://www.cambodiaexpatsonline.com" onclick="window.open(this.href);return false; 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: 6796
Joined: Mon May 19, 2014 6:53 pm
Karma: 224
Contact:
Cambodia

Re: BugZone: Nothing's perfect...

Postby Username Taken » Fri Jun 26, 2015 2:52 pm

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

Roll back . . . . .
... give 'em a quick, short, sharp shock ...

https://BooksAboutCambodia.com
User avatar
BOFH
Expatriate
Posts: 957
Joined: Wed Nov 19, 2014 10:27 am
Karma: 0

Re: BugZone: Nothing's perfect...

Postby BOFH » Fri Jun 26, 2015 2:54 pm

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: 6796
Joined: Mon May 19, 2014 6:53 pm
Karma: 224
Contact:
Cambodia

Re: BugZone: Nothing's perfect...

Postby Username Taken » Fri Jun 26, 2015 3:13 pm

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?
... give 'em a quick, short, sharp shock ...

https://BooksAboutCambodia.com
User avatar
General Mackevili
GONK
Posts: 12279
Joined: Tue May 06, 2014 5:24 pm
Karma: 174
Location: The Kingdom
Contact:
United States of America

Re: BugZone: Nothing's perfect...

Postby General Mackevili » Fri Jun 26, 2015 4:16 pm

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."

Looking for the best deals on hotels and guesthouses in Cambodia?

Book through Agoda:

Phnom Penh
Siem Reap
Sihanoukville
Kampot
Koh Rong
User avatar
BOFH
Expatriate
Posts: 957
Joined: Wed Nov 19, 2014 10:27 am
Karma: 0

Re: BugZone: Nothing's perfect...

Postby BOFH » Fri Jun 26, 2015 4:34 pm

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
GONK
Posts: 12279
Joined: Tue May 06, 2014 5:24 pm
Karma: 174
Location: The Kingdom
Contact:
United States of America

Re: BugZone: Nothing's perfect...

Postby General Mackevili » Fri Jun 26, 2015 4:40 pm

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."

Looking for the best deals on hotels and guesthouses in Cambodia?

Book through Agoda:

Phnom Penh
Siem Reap
Sihanoukville
Kampot
Koh Rong
User avatar
OrangeDragon
Site Admin
Posts: 4189
Joined: Fri May 02, 2014 8:05 pm
Karma: 7
United States of America

Re: BugZone: Nothing's perfect...

Postby OrangeDragon » Sat Jun 27, 2015 2:54 pm

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.


  • Advertisement
Booking.com

  • Similar Topics
    Replies
    Views
    Last post

Return to “General Chatter”



Who is online

Users browsing this forum: dude, Mira C and 342 guests