Update Server - keeps trying to update NPCs

Old bugs stored here for reference.
Locked
User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Update Server - keeps trying to update NPCs

Post by John Adams » Wed Feb 27, 2008 6:40 pm

I've seen a few new SQLs try to get altered on my server the last few days, but each time I start the world, this ALTER fails (last one was adding initial_state). Now, the Update server tells me I have used my alotted connections.
I'll reset my version info for NPCs, but I already seem to have those alterations. Not sure why it continues to try.

LethalEncounter
Team: Zombie
Posts: 2717
Joined: Wed Jul 25, 2007 10:10 pm

Post by LethalEncounter » Wed Feb 27, 2008 7:08 pm

Odd. I'll reset your download limit so you can get it again, but was the original failure from maybe a column that you could have added previously and it had the same name as the update?
Anyone else having the same problem?

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Post by John Adams » Wed Feb 27, 2008 7:11 pm

Yesterday the column trying to be updated was `action_state` I believe, which I had already gotten last week. The server was starting fine repeatedly during our tests yesterday. Today's restart now is complaining about a column that definitely was not there yesterday (initial_state), but is now there and continues to try to ALTER the NPCs table.
What version should npcs be? Mine is 9, with 1 download now.

LethalEncounter
Team: Zombie
Posts: 2717
Joined: Wed Jul 25, 2007 10:10 pm

Post by LethalEncounter » Wed Feb 27, 2008 7:18 pm

Do you have activity_status in your table? update 10 for NPCs included both these updates:
ALTER TABLE `npcs` ADD `initial_state` SMALLINT UNSIGNED DEFAULT '0' NOT NULL;
ALTER TABLE `npcs` ADD `activity_status` SMALLINT UNSIGNED DEFAULT '0' NOT NULL;
If one update failed then the whole update failed but the first update wouldnt have been rolled back, which might have caused your problem.

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Post by John Adams » Wed Feb 27, 2008 7:19 pm

OOPS sorry, that was the field that failed. activity_status. Sorry, it's been a horribly long 3 days heh...
And yes, that one failed. I am locked out again, but I will nuke both those fields from my NPCs and try again.

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Post by John Adams » Wed Feb 27, 2008 7:27 pm

Thanks, got the updates that time.

LethalEncounter
Team: Zombie
Posts: 2717
Joined: Wed Jul 25, 2007 10:10 pm

Post by LethalEncounter » Wed Feb 27, 2008 7:29 pm

kk np, I'll see if I can somehow implement something to fix problems like that so they wont happen in the future. Not sure how I can though.

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Post by John Adams » Wed Feb 27, 2008 7:48 pm

Hmm, I was reading up on ALTER IGNORE, but I am not sure that will solve your problem since you're doing individual ALTERs.
What if you combine your ALTER into a single statement, so if one part failed, the whole transaction would fail?

Code: Select all

ALTER TABLE `npcs` 
  ADD `initial_state` SMALLINT UNSIGNED DEFAULT '0' NOT NULL, 
  ADD `activity_status` SMALLINT UNSIGNED DEFAULT '0' NOT NULL;
In a test I just ran, if either of those two fields were present during the ALTER, the whole query failed. If both were missing, the query completes.
Naturally, this will not help if you have multiple tables all being updated in the same update rev... but maybe you can work that out with versioning.

User avatar
ZexisStryfe
Posts: 1026
Joined: Thu Jul 26, 2007 6:39 am
EQ2Emu Server: Sytherian Legends
Location: Connecticut
Contact:

Post by ZexisStryfe » Thu Feb 28, 2008 7:12 am

I seem to be having a similar issue. The visual_states table is trying to update and fails for some unknown reason, but i can't download it because i hit my limit.
~ EQ2 Emulator Project Manager

Image
Image
Image
"Zexis, from this day forth, you shall be known as... '3 of 6'" - John Adams

Locked

Who is online

Users browsing this forum: No registered users and 0 guests