500 Internal Server Error

Joker

We have come to terms
AKA
Godot
Second one in less than twelve hours...I'm starting to think I'm special.
 

Ⓐaron

Factiō Rēpūblicāna dēlenda est.
AKA
The Man, V
I've been getting these a lot more frequently over the past few days. Dunno what's wrong.
 

Ami

Playing All The Stuff!
AKA
Amizon, Commander Shepard, Ellie, Rinoa Heartilly, Xena, Clara Oswald, Gamora, Lana Kane, Tifa Lockhart, Jodie Holmes, Chloe Price.
Same here, it's getting quite ridiculous lately.
 

Ⓐaron

Factiō Rēpūblicāna dēlenda est.
AKA
The Man, V
I've been getting several per day, possibly as many as a dozen.
 

Cthulhu

Administrator
AKA
Yop
Random theory: extra lag from distance to the server makes you pass over some max request length threshold more often causing the thing to bork on a 500. Alternatively, your account has more Stuff in it (lulz) causing higher server load / longer query times until said query times out.
 

Ⓐaron

Factiō Rēpūblicāna dēlenda est.
AKA
The Man, V
I got one of these in the midst of changing Tennyo's name. I hope this didn't fuck up anything in the database.
 

Cthulhu

Administrator
AKA
Yop
If programmed right (note: it probably isn't), the act of changing a username is done within the context of a transaction; unless said transaction is comitted at the end (which wouldn't happen if a server error interrupted the process), the changes won't actually be saved. Buuut again, that depends on whether vB was programmed properly, :wacky:. Or maybe the PHP MySQL driver does that automagically, idk.
 

Ⓐaron

Factiō Rēpūblicāna dēlenda est.
AKA
The Man, V
This is vBulletin we're talking about. It almost certainly wasn't programmed right :monstersmash:
 

Fangu

Great Old One
Nah, it's not vB that takes care of that, it's the DB. Fairly sure it does. It's considered Very Stone Age to not have a commit/rollback function.
 

Cthulhu

Administrator
AKA
Yop
Yeah the DB supports it alright, but if the software just sets it to autocommit (which IIRC is the standard / was the standard in earlier versions of mysql (iirc it didn't even have transactional support at first), it won't do much good. I don't recall ever having to commit anything while working with mysql, come to think of it.
 

Fangu

Great Old One
? Won't do much good for what? Autocommit means the DB itself deals with the transactions, which is what we want?

Edit: Ah, geddit. Changing a username means changing several tables, not just one, and vB needs to have bundled those calls. Unless the DB has rules like - if the username is changed in the user table > udate all other instances. If trying to change username in one of the non-main tables > nuh-uh you can't do that, referring to main.

(That being said, I doubt vB is so olden it doesn't have separate functions such as 'update user' that bundles these operations towards the DB.)
 
Last edited:

Cthulhu

Administrator
AKA
Yop
Yeah, that's what I meant. Also yeah, I've been using vB for a number of years now, and I've never ran into an issue with data corruption like that. In fact, most operations on users are done via IDs (as they should), so even if a user rename breaks it's not that big of a deal. I think the extra operations done by vB when changing a username mostly involve rebuilding cached usernames - for example, every row in the posts table also contains the username of the user alongside the user ID. Not sure if this is for caching purposes, or for dealing with deleted users (no userID row matching the post in the user table -> revert to username stored in the post table).
 

Fangu

Great Old One
It's probably both. As in, caching purposes --> quicker loading. It takes time looking up the user table for every post - much more cost effective to sync the posts table when a user name is changed (as this doesn't happen nearly as often as accessing the posts table.) It's not very 3NF, but it's very efficient.
 

Mage

She/They
AKA
Mage
Just got the server error when I tried to go to the Gardening and Plants thread, then Mog's Q&A. About five minutes to actually access a thread.
 

Ⓐaron

Factiō Rēpūblicāna dēlenda est.
AKA
The Man, V
I've gotten it several times in the last hours as well, including once when I was changing Celes' name. Pretty annoying.
 

Ⓐaron

Factiō Rēpūblicāna dēlenda est.
AKA
The Man, V
The server is being shitty again. Not 500 errors this time but pages refusing to load and shit.
 
Top Bottom