Raised This Month: $32 Target: $400
 8% 

SQL_ThreadQuery stop server in restart or amx_map if mysql server goes offline


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GuruQA
Member
Join Date: Oct 2014
Old 10-15-2014 , 02:23   SQL_ThreadQuery stop server in restart or amx_map if mysql server goes offline
Reply With Quote #1

If HLDS lose the connection to the database and I go to change the map, lock the HLDS

Does anyone have a solution to the problem?

I tried using this fix, but did not solve the problem: https://forums.alliedmods.net/showthread.php?t=177759
GuruQA is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-15-2014 , 11:39   Re: SQL_ThreadQuery stop server in restart or amx_map if mysql server goes offline
Reply With Quote #2

Windows? Linux ? What AMXX version? How to reproduce exactly the problem.
Please give concrete informations.
__________________
Arkshine is offline
GuruQA
Member
Join Date: Oct 2014
Old 10-15-2014 , 11:51   Re: SQL_ThreadQuery stop server in restart or amx_map if mysql server goes offline
Reply With Quote #3

Tested on Windows, Linux and all versions of AMXX

All of them have this bug


If HLDS send a query to the mysql offline and then I change the map, lock the server


You can take the test

Disconnect the mysql server and try to send a mysql query HLDS and then change the map
GuruQA is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 10-15-2014 , 12:51   Re: SQL_ThreadQuery stop server in restart or amx_map if mysql server goes offline
Reply With Quote #4

I'm having issues with MySQL module, too, but not sure this is related to OP issue.
My issue is that when map changes and mods are changed (using polymorph) server crashes, but when mod is kept running for nextmap it works fine. Not sure why, but I think it is my fault :/
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
GuruQA
Member
Join Date: Oct 2014
Old 10-15-2014 , 13:03   Re: SQL_ThreadQuery stop server in restart or amx_map if mysql server goes offline
Reply With Quote #5

I think the problem is in mysql_amxx

If your server loses connection with the database
you send a query
then you try to change the map
will crash your server
amx_map and restart
not closes the threads waiting
GuruQA is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-28-2014 , 05:17   Re: SQL_ThreadQuery stop server in restart or amx_map if mysql server goes offline
Reply With Quote #6

This should be fixed in latest build. You may want to give a try.
__________________
Arkshine is offline
GuruQA
Member
Join Date: Oct 2014
Old 11-11-2014 , 23:02   Re: SQL_ThreadQuery stop server in restart or amx_map if mysql server goes offline
Reply With Quote #7

1.8.3-dev-git4474 still has problems
Are attacking my server with DDOS attack
When stop attacking
Has no connection to the database
After restart or amx_map
The server crashes
GuruQA is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 11-12-2014 , 10:42   Re: SQL_ThreadQuery stop server in restart or amx_map if mysql server goes offline
Reply With Quote #8

Maybe AMXX core is waiting for module unload, and the module get stuck because the thread is not finishing.

There's a call to MF_RemoveLibraries() at OnAmxxDetach().
Sometimes when you try to unload any library, you may get stuck if it's threads are not closed.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
GuruQA
Member
Join Date: Oct 2014
Old 11-12-2014 , 18:57   Re: SQL_ThreadQuery stop server in restart or amx_map if mysql server goes offline
Reply With Quote #9

Does anyone have a solution to the problem?

Who want to test
Disconnect the mysql
Send queries using: SQL_ThreadQuery
Then change the map
GuruQA is offline
GuruQA
Member
Join Date: Oct 2014
Old 12-01-2014 , 07:57   Re: SQL_ThreadQuery stop server in restart or amx_map if mysql server goes offline
Reply With Quote #10

Other bugs:

When I take ddos attacks or I restart the iptables, the SQL_ThreadQuery also stops working

If I connect multiple servers with different IPs on the same server, they all use only 1 IP

When the mysql server block this single IP
The mod mysql for work on all servers
GuruQA is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode