• Login
  • Register
Hello There, Guest!

Username:

Password:

Remember me

Lost PW Lost Password?

Advanced Search
  • Rules
  • Staff
  • Wiki
  • Free Companies
  • Linkshells
  • Calendar
  • Chat
  • Gallery
  • Donate
home Hydaelyn Role-Players → Final Fantasy 14 → FFXIV News v
« Previous 1 … 6 7 8 9 10 … 22 Next »
→

Recent forum error pages


RPC has moved! These pages have been kept for historical purposes

Please be sure to visit https://ffxiv-roleplayers.com/ directly for the new page.

Recent forum error pages
Threaded Mode | Linear Mode
Pages (2): 1 2 Next »

FreelanceWizardv
FreelanceWizard
Find all posts by this user
Visit this user's website
Random RPer #258
*****

Offline
Posts:2,319
Joined:Sep 2010
Character:L'yhta Mahre
Linkshell:Mysterium
Server:Balmung
Reputation: 317 Timezone:UTC-6
Recent forum error pages |
#1
11-04-2014, 09:17 PM
Some of you have, I'm sure, noticed the seemingly random error pages you've been getting on the forums over the last couple of weeks. This isn't a server performance issue, but rather a PHP incompatibility buried deep in our MyBB installation. I'm currently trying to debug the issue, which is challenging because it's seemingly random. PHP crashes in the same place each time, but what's provoking the crash isn't something I've been able to repeat.

In the meantime, I'm tweaking our server to "hide" the issue by forcing it to retry requests that fail, since that generally causes the error to go away (remember, it's random Smile ). This tweaking is a bit delicate and might result in some weird errors (like the "out of memory" ones yesterday night Tongue ). I'll update this thread with additional information as I get it. Meanwhile, if you can repeatedly produce an nginx error page, I'd love to know what you're doing to do it. Just drop me a PM with the details.

Thanks as always for your patience!

The Freelance Wizard
Quality RP at low, low prices!
((about me | about L'yhta Mahre | L'yhta's desk | about Mysterium, the Ivory Tower: a heavy RP society of mages))
Quote this message in a reply
FreelanceWizardv
FreelanceWizard
Find all posts by this user
Visit this user's website
Random RPer #258
*****

Offline
Posts:2,319
Joined:Sep 2010
Character:L'yhta Mahre
Linkshell:Mysterium
Server:Balmung
Reputation: 317 Timezone:UTC-6
RE: Recent forum error pages |
#2
11-06-2014, 12:23 PM
I believe I've isolated the issue and corrected it; we're not getting tons of segmentation faults now. Smile Without going into all the brutal details, it turns out the reputation system, of all things, does some weird stuff with shared memory that I had to tweak some settings to handle now that people's reputation numbers are getting into triple digits.

I'm going to do a bit more tweaking on our FastCGI pools to undo the things I did for debugging, and I'll of course continue to monitor the situation. For now, though, I think we're back to normal.

The Freelance Wizard
Quality RP at low, low prices!
((about me | about L'yhta Mahre | L'yhta's desk | about Mysterium, the Ivory Tower: a heavy RP society of mages))
Quote this message in a reply
Tierganv
Tiergan
Find all posts by this user
Grump Catte
*****

Offline
Posts:1,115
Joined:Oct 2010
Character:Tiergan Vashir
Linkshell:Astral Agents
Server:Balmung
Reputation: 307
RE: Recent forum error pages |
#3
11-06-2014, 12:35 PM
Glad to hear that things are okay now! I was really starting to worry.

Tiergan's Wiki || Tiergan's Tumblr
Quote this message in a reply
Unnamed Mercenaryv
Unnamed Mercenary
Find all posts by this user
Grumpy Garlean

Offline
Posts:3,760
Joined:Apr 2014
Linkshell:A Variety
Server:Balmung
Reputation: 517 Timezone:UTC-8
RE: Recent forum error pages |
#4
11-06-2014, 12:39 PM
Interesting.

If it's not a security hole, could we get the brutal details? There's a fondness for seeing the explanation for these things, even if the only language I can program effectively in is Java.

Franz'sWiki | Rostnais (WIP)| IC-ish/OOC Tumblr | RPC Chat
RPC Staff Team | Staff Contact and Feedback/Requests/Support
Quote this message in a reply
FreelanceWizardv
FreelanceWizard
Find all posts by this user
Visit this user's website
Random RPer #258
*****

Offline
Posts:2,319
Joined:Sep 2010
Character:L'yhta Mahre
Linkshell:Mysterium
Server:Balmung
Reputation: 317 Timezone:UTC-6
RE: Recent forum error pages |
#5
11-06-2014, 12:56 PM
Sure. Smile Gory technical details ahoy:

Basically, the post reputation system tries to compute the reputations of everyone it sees on a page, and it does this not by loading a counter from the database, but by pulling in the whole database table for reputation entries and running a computation on that. Since I loosened up the reputation system, this table has grown, and it was exceeding the APC (the opcode/data cache) shared memory limit. PHP's response to this was to throw a fatal error and crash with a segmentation fault (because in the world of PHP, any fatal error is a segmentation fault). It was seemingly random because the reputation code is called in a lot of different places, some rather unexpected, and you could actually stuff the table into APC if not a lot of other things had already been put in there (like, say, user sessions).

I was only able to work this out by tweaking the FastCGI process manager and nginx to try to capture those errors and the core dumps. The solution was to increase PHP's maximum memory and the size of the shared memory space for APC. Merely turning off APC wasn't sufficient (since the board was grabbing the table more than once and blowing itself up), nor was just turning up the maximum script memory.

Now, in terms of how I'd do it if I were writing the code, I'd do one of two things, depending on how my database server behaved. Keeping the reputation entries in a table is a fine idea, and if the DB server can do quick computations on query (as, say, MS SQL Server and Oracle can -- not that anything in Oracle is "quick" per se Smile ), I'd just have it do the aggregation and return a single number to me, something like:

select count(postrep.*) from users
inner join postrep on users.user_id = postrep.user_id
group by postrep.user_id
where postrep.user_id = @user

I could then kick that over to the server using ExecuteScalar or the equivalent and quickly get an answer back. For getting multiple reputation counts at once, I might instead put postrep.user_id in the select statement and filter the results in the script. LINQ, for instance, makes that super-easy, depending on whether you want to use the Join, Intersect, or Where operators.

For something like MySQL, where aggregations at the database aren't fast, or a NoSQL/in-memory store where you really can't do any aggregations, I'd create a field in the users table to hold the current post reputation count for each user and increment it whenever someone got a new reputation bump. Then, I'd just pull the reputation counts out of the user table.

Of course, this being MyBB, I can't really do it how I'd want to and still be able to upgrade the code, so I'm stuck with watching logs and debugging when weird stuff happens. Smile

The Freelance Wizard
Quality RP at low, low prices!
((about me | about L'yhta Mahre | L'yhta's desk | about Mysterium, the Ivory Tower: a heavy RP society of mages))
Quote this message in a reply
FreelanceWizardv
FreelanceWizard
Find all posts by this user
Visit this user's website
Random RPer #258
*****

Offline
Posts:2,319
Joined:Sep 2010
Character:L'yhta Mahre
Linkshell:Mysterium
Server:Balmung
Reputation: 317 Timezone:UTC-6
RE: Recent forum error pages |
#6
11-07-2014, 11:57 PM
And to follow up...

The errors and extreme slowness we experienced this afternoon were due to a MySQL thing I've fixed. (As they say in the Lean world, every time you lower the water level, you end up hitting some new rocks. Smile )

Show Content
Technical details
We use SSD storage for our RDS instance, which has something like an IOPS (IOs per second) limit. It can burst to obscene levels (3000 or so IOPS), but the actual normal IOPS depends on how much storage you have allocated. You get 3 IOPS per GB. Bursting is based on a limited set of IOPS credits, and when you run out, RDS locks you down to your purchased rate. You regain credits over time based on the amount of storage you allocate. For reasons of my bank account, I try to keep the allocated storage on RDS to a relatively low level, since I pay $0.115 per GB allocated.

I had 20 GB allocated, which is 60 IOPS. I based this on the server monitoring by Amazon. I did not, however, zoom in far enough to see how our average IOPS is impacted minute to minute (lazy Freelance, you should know better!).

At this point, any DBAs around can see where this is going...

When I fixed the aforementioned PHP problem, our PHP throughput went up a lot. This meant our database IOPS usage went up a lot (more pages processed = more DB queries = more IOPS). We burned through our credit usage and, predictably, this ground MySQL to a halt, and ground the site to a halt.

The fix was for me to allocate more storage to handle our real IOPS, after doing some poking around in the Cloudwatch monitoring to work it out. We now have enough storage to have the necessary IOPS so that the server won't melt down under load.

I also noticed one more error that might've been causing some grief to people, albeit rarely. Sometimes web browsers ask for weird things, and the response from PHP can have large headers. Our nginx header buffers were too small to support this, which might've caused error pages to appear. I've rejiggered the buffer allocation to use fewer, bigger buffers to fix this.

The Freelance Wizard
Quality RP at low, low prices!
((about me | about L'yhta Mahre | L'yhta's desk | about Mysterium, the Ivory Tower: a heavy RP society of mages))
Quote this message in a reply
Bluev
Blue
Find all posts by this user
Visit this user's website
ERP Hater
*****

Offline
Posts:901
Joined:Apr 2013
Character:Jet'a Vann, Blue
Linkshell:Tales of Hydaelyn
Server:Balmung
Reputation: 131
RE: Recent forum error pages |
#7
12-06-2014, 05:39 PM
I seem unable to access the wiki in any shape or form at the moment. Does that have anything to do with these errors?

To be an interesting, intriguing, well-written character, there needs to be something to allow the audience to relate to them. That is what the problem is with who wants their character to be "perfect". Perfect characters will never be strong, and strong characters will never be perfect, because WE (those who read, who watch, who RP) are not perfect.

"What makes a strong character is how they deal with their flaws, their fears, their turmoils, their troubles that get in the way. That's what makes them relatable." -- N.C.
Quote this message in a reply
FreelanceWizardv
FreelanceWizard
Find all posts by this user
Visit this user's website
Random RPer #258
*****

Offline
Posts:2,319
Joined:Sep 2010
Character:L'yhta Mahre
Linkshell:Mysterium
Server:Balmung
Reputation: 317 Timezone:UTC-6
RE: Recent forum error pages |
#8
12-06-2014, 07:18 PM
It's likely related to our switch to https. What browser and OS are you using?

The Freelance Wizard
Quality RP at low, low prices!
((about me | about L'yhta Mahre | L'yhta's desk | about Mysterium, the Ivory Tower: a heavy RP society of mages))
Quote this message in a reply
Bluev
Blue
Find all posts by this user
Visit this user's website
ERP Hater
*****

Offline
Posts:901
Joined:Apr 2013
Character:Jet'a Vann, Blue
Linkshell:Tales of Hydaelyn
Server:Balmung
Reputation: 131
RE: Recent forum error pages |
#9
12-06-2014, 11:17 PM
(12-06-2014, 07:18 PM)FreelanceWizard Wrote: It's likely related to our switch to https. What browser and OS are you using?

Opera 12.17 , Windows 7

I noticed that if I copy and paste the wiki address on google chrome, I can browse it, but if I try to copy a link to a picture in my wiki (on Chrome) and paste it into opera, it won't display it.

To be an interesting, intriguing, well-written character, there needs to be something to allow the audience to relate to them. That is what the problem is with who wants their character to be "perfect". Perfect characters will never be strong, and strong characters will never be perfect, because WE (those who read, who watch, who RP) are not perfect.

"What makes a strong character is how they deal with their flaws, their fears, their turmoils, their troubles that get in the way. That's what makes them relatable." -- N.C.
Quote this message in a reply
FreelanceWizardv
FreelanceWizard
Find all posts by this user
Visit this user's website
Random RPer #258
*****

Offline
Posts:2,319
Joined:Sep 2010
Character:L'yhta Mahre
Linkshell:Mysterium
Server:Balmung
Reputation: 317 Timezone:UTC-6
RE: Recent forum error pages |
#10
12-07-2014, 02:29 AM
Yep, it's related to the TLS cipher issue I discussed on the suggestions thread. I'm currently collecting a list of ciphers to use and will be updating the settings in short order, now that I'm back in town and have the time to do that. Smile

The Freelance Wizard
Quality RP at low, low prices!
((about me | about L'yhta Mahre | L'yhta's desk | about Mysterium, the Ivory Tower: a heavy RP society of mages))
Quote this message in a reply
FreelanceWizardv
FreelanceWizard
Find all posts by this user
Visit this user's website
Random RPer #258
*****

Offline
Posts:2,319
Joined:Sep 2010
Character:L'yhta Mahre
Linkshell:Mysterium
Server:Balmung
Reputation: 317 Timezone:UTC-6
RE: Recent forum error pages |
#11
12-07-2014, 12:49 PM
Give it a go now and let me know if works or not. The server should now fall back to a cipher suite that's compatible with Opera 12 and older versions of Android and IE while simultaneously offering super-high security on the latest versions of IE, Chrome, and Firefox.

The Freelance Wizard
Quality RP at low, low prices!
((about me | about L'yhta Mahre | L'yhta's desk | about Mysterium, the Ivory Tower: a heavy RP society of mages))
Quote this message in a reply
Bluev
Blue
Find all posts by this user
Visit this user's website
ERP Hater
*****

Offline
Posts:901
Joined:Apr 2013
Character:Jet'a Vann, Blue
Linkshell:Tales of Hydaelyn
Server:Balmung
Reputation: 131
RE: Recent forum error pages |
#12
12-11-2014, 01:48 AM
Yup, it's doing great now, thanks!

To be an interesting, intriguing, well-written character, there needs to be something to allow the audience to relate to them. That is what the problem is with who wants their character to be "perfect". Perfect characters will never be strong, and strong characters will never be perfect, because WE (those who read, who watch, who RP) are not perfect.

"What makes a strong character is how they deal with their flaws, their fears, their turmoils, their troubles that get in the way. That's what makes them relatable." -- N.C.
Quote this message in a reply
Warren Castillev
Warren Castille
Find all posts by this user
The Arbiter
******

Offline
Posts:5,367
Joined:May 2014
Character:Warren Castille
Server:Balmung
Reputation: 1,118 Timezone:UTC-5
RE: Recent forum error pages |
#13
12-11-2014, 04:20 PM
Not sure if it's just me, but I keep getting this to pop up randomly today when I try to click things.

Quote:MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
2002 - php_network_getaddresses: getaddrinfo failed: Name or service not known
Query:
[READ] Unable to connect to MySQL server

[Image: yEROfKO.png]
Wiki | The Grindstone
2018
17 | 16 | 15
Quote this message in a reply
Atoliv
Atoli
Find all posts by this user
Visit this user's website
Recovering Altoholic
***

Offline
Posts:173
Joined:Nov 2014
Character:Atoli Taira
Linkshell:The Tavern
Server:Balmung
Reputation: 26
RE: Recent forum error pages |
#14
12-11-2014, 04:25 PM
Just got that as well, but it seems to have gone away

Wiki | Blog
Quote this message in a reply
FreelanceWizardv
FreelanceWizard
Find all posts by this user
Visit this user's website
Random RPer #258
*****

Offline
Posts:2,319
Joined:Sep 2010
Character:L'yhta Mahre
Linkshell:Mysterium
Server:Balmung
Reputation: 317 Timezone:UTC-6
RE: Recent forum error pages |
#15
12-11-2014, 04:58 PM
Yeah, that's an AWS SQL error. I don't see anywhere where our RDS instance has fallen over, but random RDS network outages aren't unknown over in the AWS world.

The Freelance Wizard
Quality RP at low, low prices!
((about me | about L'yhta Mahre | L'yhta's desk | about Mysterium, the Ivory Tower: a heavy RP society of mages))
Quote this message in a reply

« Next Oldest | Next Newest »
Pages (2): 1 2 Next »

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread


Users browsing this thread: 1 Guest(s)
Index | Return to Top | Lite (Archive) Mode | RSS Syndication | Current time: 07-26-2025, 07:49 PM


Final Fantasy XIV images/content © Square-Enix, forum content © RPC.
The RPC is not affiliated with Square-Enix or any of its subsidiaries.
Powered By MyBB, © 2002-2025 MyBB Group.
Designed by Adrian/Reksio, modified by Kylin@RPC