Closed Adrianilloo closed 2 years ago
This is the crashing form of #778 - which is clientprefs losing it's database config reference and passing garbage into the DBI layer. It is mentioned as an aside in #1207, but it's an issue in clientprefs rather than the mysql driver.
Clientprefs doesn't use MySQL by default, what do you have configured in your databases.cfg
?
This is/was my databases.cfg
with the affected MySQL service (I'm using SQLite3 temporarily now):
"Databases"
{
"driver_default" "mysql"
"default"
{
"host" "remotemysql.com"
"database" "<db>"
"user" "<user>"
"pass" "<pass>"
}
}
(It's as is, there aren't more omitted connections)
This seems to have been fixed now for me. When related MySQL service is down, I see the following message in console:
L 09/10/2022 - 14:07:01: [CLIENTPREFS] [2002]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
And then changing map works fine, without crashing. I guess #1135 fixed it.
After reading #1207 and the referenced crashes of "particular interest" (quoting), I'd like to report a more unique, reproducible case that is affecting me and doesn't apparently fit to these referenced cases already being considered (even if it may share common roots, which I don't know).
So, I've been using a free remote MySQL service that's currently down. Under this downtime condition, the following actions happen to eventually crash the server (game is HL2:DM):
databases.cfg
dbi.mysql.ext.so!Connect
)This seems to be reproducible always. I also left the server with default plugins and no other custom Metamod/base addons at all, and the same issue happened:
See related stacktrace.
If you need anything else ask me, I'll share the full stack trace given the SteamID to anyone interested (you can also add me in Steam or Discord by the name
Adrián#5039
).Thanks a lot.