Page 1 of 1

SQL Errors

Posted: Wed Sep 09, 2015 4:22 am
by Dissension
I'm just posting to say I'm aware of an SQL error intermittently affecting the PM system and user control panel. I've forwarded the info to relevant parties and await resolution. Sorry for any issues this may cause; we really appreciate your patience.

Re: SQL Errors

Posted: Wed Sep 09, 2015 6:31 am
by kurowolfe
Ah, no wonder then. Noted, and thanks for the heads up

Re: SQL Errors

Posted: Wed Sep 09, 2015 10:17 am
by ikani
Fixed! The server ran out of disk space due to a 80GB log file. Oops. Fixed log rotation so that won't happen again!

Re: SQL Errors

Posted: Wed Sep 09, 2015 11:20 am
by Buster
how in the world does a single file get that large?

Re: SQL Errors

Posted: Wed Sep 09, 2015 5:06 pm
by CosmicCoyote
Ah, dealing with SQL errors.

Bane of my existence.

Re: SQL Errors

Posted: Wed Sep 09, 2015 5:08 pm
by D-Rock
So, now that it's fixed, what does an SQL error do, fail to load a page or send the message?

Re: SQL Errors

Posted: Wed Sep 09, 2015 5:31 pm
by CosmicCoyote
D-Rock wrote:So, now that it's fixed, what does an SQL error do, fail to load a page or send the message?
To pack a year's worth of classes into a short-ish explanation, a Server Query Language error can be any number of things - after all, it is just a programming language; in this case the one primarily used to build databases. I couldn't tell you for certain without looking at it myself, but given what Inaki said, log files are used to track changes in the database. Given that it was affecting the User CP and the PM system, I would speculate that any time there was a change to a user's profile or when a message was sent/read/sorted et cetera, the log file would be updated to keep track of the change, so that in case of a catastrophic breakdown in that particular database, you can figure out what change caused the whole thing to go kablooey. However, the constant updates to the log files from a large cadre of users over a period of time will make the log file grow larger and larger, until well... you have a giant file eating 80 gigs of memory. Without space to add changes to the log file, the system would prevent any changes being made - thus throwing up the error everyone saw.

Again, all speculation - Inaki could explain better, he actually saw the files. But that'd be my (relatively educated?) guess.

Re: SQL Errors

Posted: Fri Sep 11, 2015 2:18 am
by The-J-Man
CosmicCoyote wrote:
D-Rock wrote:So, now that it's fixed, what does an SQL error do, fail to load a page or send the message?
To pack a year's worth of classes into a short-ish explanation, a Server Query Language error can be any number of things - after all, it is just a programming language; in this case the one primarily used to build databases. I couldn't tell you for certain without looking at it myself, but given what Inaki said, log files are used to track changes in the database. Given that it was affecting the User CP and the PM system, I would speculate that any time there was a change to a user's profile or when a message was sent/read/sorted et cetera, the log file would be updated to keep track of the change, so that in case of a catastrophic breakdown in that particular database, you can figure out what change caused the whole thing to go kablooey. However, the constant updates to the log files from a large cadre of users over a period of time will make the log file grow larger and larger, until well... you have a giant file eating 80 gigs of memory. Without space to add changes to the log file, the system would prevent any changes being made - thus throwing up the error everyone saw.

Again, all speculation - Inaki could explain better, he actually saw the files. But that'd be my (relatively educated?) guess.
Man you gave me a headache...but I think I understand now

Re: SQL Errors

Posted: Fri Sep 11, 2015 2:58 am
by kurowolfe
Thanks for the quick fix! I don't really get it either, but yeah.

On another note, in my 4 years here, I think this is the first time I've seen a post by inaki :3

Re: SQL Errors

Posted: Fri Sep 11, 2015 3:38 am
by CosmicCoyote
Well, I mean, I suppose I could throw more examples at you if you wanted, but they are called programming languages for a reason. :P They sound nonsensical if you don't know what you're talking about.

Re: SQL Errors

Posted: Fri Sep 11, 2015 3:56 am
by Keeshah
kurowolfe wrote:Thanks for the quick fix! I don't really get it either, but yeah.

On another note, in my 4 years here, I think this is the first time I've seen a post by inaki :3

I've seen one before.

Where he says he doesn't have admin duties, he just makes the server keep working.

Re: SQL Errors

Posted: Fri Sep 11, 2015 12:18 pm
by Liam
CosmicCoyote wrote:-snip-
One part of the forum software that kept track of who sent PMs to whom, when avvies were changed, etc. ran out of memory. It threw up an error to stop recording that stuff, before Inaki assigned free sectors of space for archiving user activities.

That sums it up? :3

Re: SQL Errors

Posted: Fri Sep 11, 2015 2:35 pm
by CosmicCoyote
Liam wrote:
CosmicCoyote wrote:-snip-
One part of the forum software that kept track of who sent PMs to whom, when avvies were changed, etc. ran out of memory. It threw up an error to stop recording that stuff, before Inaki assigned free sectors of space for archiving user activities.

That sums it up? :3
More or less. Why can't I make it that simple? >_>

Re: SQL Errors

Posted: Fri Sep 11, 2015 3:25 pm
by Amazee Dayzee
Because what is simple to people who know some programming is like Semidefinite Optimization math to people who don't know how to program.

Re: SQL Errors

Posted: Wed Sep 16, 2015 7:10 pm
by Render
Xane wrote:Just call them SQRRL errors. Easier to imagine SQRRLs eating the wires. :D
:lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:

Re: SQL Errors

Posted: Wed Sep 16, 2015 11:46 pm
by Amazee Dayzee
So we shifting the blame to the errors on Diss's uncontrolled squirrel minions now?

Re: SQL Errors

Posted: Thu Sep 17, 2015 2:05 am
by Keeshah
Amazee Dayzee wrote:So we shifting the blame to the errors on Diss's uncontrolled squirrel minions now?

No on Diss! he is the 300lb Devil Skirrl in the room? :lol: :lol: :lol:

Re: SQL Errors

Posted: Thu Sep 17, 2015 2:49 pm
by Amazee Dayzee
Yeah but he has thousands of minions he can't always keep his eyes on.

Re: SQL Errors

Posted: Thu Sep 17, 2015 7:05 pm
by D-Rock
Thanks for the explanations. Yes, programming languages is Greek to me, but nothing wrong with learning a bit more about it. Though there are times when I realize the "for dummies" version is the one to stick to for the moment.

Re: SQL Errors

Posted: Thu Oct 01, 2015 1:13 am
by skyd
Amazee Dayzee wrote:Because what is simple to people who know some programming is like Semidefinite Optimization math to people who don't know how to program.
I am assuming this has something to do with convex optimizations?
CosmicCoyote wrote:
To pack a year's worth of classes into a short-ish explanation, ...you have a giant file eating 80 gigs of memory... 80 gigs of memory
HOLY CARP! How many people are here?!?

Re: SQL Errors

Posted: Thu Oct 01, 2015 4:31 am
by Buster
enough to break a server, apparently.

Re: SQL Errors

Posted: Fri Oct 02, 2015 5:17 pm
by Amazee Dayzee
Keep it up, and Diss will have you assassinated.

Re: SQL Errors

Posted: Sat Oct 03, 2015 1:50 am
by RandomGeekNamedBrent
guys, please keep this thread on the topic of reporting recurrences of these issues.

Re: SQL Errors

Posted: Mon Nov 09, 2015 6:22 am
by Argent
Database log or error log?