Crash: Out of range error on new EndTime column in acore_auth uptime table

Author: stephen-fralichCreated Sep 28, 2026Updated Sep 28, 2026
LabelsPriority-CriticalHasBacktrace

Steps to Reproduce

This is a follow-up to #27855. I restored a previous version of the acore_auth table and started just authserver and it still failed, but with a different error now.

Updating Auth database...
>> Applying update "2026_09_27_00.sql" '01C67BE'...
ERROR 1264 (22003) at line 12: Out of range value for column 'EndTime' at row 298

It appears to be caused by this: https://github.com/azerothcore/azerothcore-wotlk/blob/master/data/sql/updates/db_auth/2026_09_27_00.sql#L12

My database has some very wild values in the uptime column.

mysql> select * from uptime where uptime > 201006;
+---------+------------+------------+------------+-------------------------------------------------------------------------------------------------+
| realmid | starttime  | uptime     | maxplayers | revision                                                                                        |
+---------+------------+------------+------------+-------------------------------------------------------------------------------------------------+
|       1 | 1782545001 | 4294965503 |          0 | AzerothCore rev. f907ce0d8347 2026-06-26 07:22:05 +0200 (master branch) (Unix, Release, Static) |
|       1 | 1786528341 | 4294951103 |          0 | AzerothCore rev. ff4281ad2619 2026-08-11 08:49:34 +0200 (master branch) (Unix, Release, Static) |
|       1 | 1787314787 | 4294947503 |          0 | AzerothCore rev. 3f1146ff6476 2026-08-19 17:55:51 +0200 (master branch) (Unix, Release, Static) |
|       1 | 1787988104 | 4294965503 |          0 | AzerothCore rev. 6825b41eb739 2026-08-28 08:00:33 +0200 (master branch) (Unix, Release, Static) |
|       1 | 1788591907 | 4294966102 |          1 | AzerothCore rev. 2f9a1f95f3ad 2026-09-04 00:20:42 +0000 (master branch) (Unix, Release, Static) |
|       1 | 1789121296 | 4294955903 |          0 | AzerothCore rev. 251368adb36c 2026-09-10 01:31:57 +0000 (master branch) (Unix, Release, Static) |
+---------+------------+------------+------------+-------------------------------------------------------------------------------------------------+

I updated the ones over the largest sane value to 1

update uptime set uptime = 1 where uptime > 201006;`

This allowed the authserver and worldserver to start successfully.

If that EndTime column is just informational, it may be better to just not populate it or do some additional checking there if it really needs to have a value.

Logs and Screenshots

No response

Operating System

RHEL 10

Dependencies & versions

Using SSL version: OpenSSL 3.5.8 25 Aug 2026 (library: OpenSSL 3.5.8 25 Aug 2026) Using Boost version: 1.83.0 MySQL client library: 8.4.11 MySQL server ver: 8.4.11 clang version 21.1.8 (Red Hat, Inc. 21.1.8-1.el10) cmake version 3.31.8

Commit

1c91347c49de

Additional Context

No response

Source: azerothcore/azerothcore-wotlk