AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=7)
-   -   SQL_ThreadQuery stop server in restart or amx_map if mysql server goes offline (https://forums.alliedmods.net/showthread.php?t=249945)

GuruQA 10-15-2014 02:23

SQL_ThreadQuery stop server in restart or amx_map if mysql server goes offline
 
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

Arkshine 10-15-2014 11:39

Re: SQL_ThreadQuery stop server in restart or amx_map if mysql server goes offline
 
Windows? Linux ? What AMXX version? How to reproduce exactly the problem.
Please give concrete informations.

GuruQA 10-15-2014 11:51

Re: SQL_ThreadQuery stop server in restart or amx_map if mysql server goes offline
 
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

GuskiS 10-15-2014 12:51

Re: SQL_ThreadQuery stop server in restart or amx_map if mysql server goes offline
 
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 :/

GuruQA 10-15-2014 13:03

Re: SQL_ThreadQuery stop server in restart or amx_map if mysql server goes offline
 
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

Arkshine 10-28-2014 05:17

Re: SQL_ThreadQuery stop server in restart or amx_map if mysql server goes offline
 
This should be fixed in latest build. You may want to give a try.

GuruQA 11-11-2014 23:02

Re: SQL_ThreadQuery stop server in restart or amx_map if mysql server goes offline
 
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

joropito 11-12-2014 10:42

Re: SQL_ThreadQuery stop server in restart or amx_map if mysql server goes offline
 
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.

GuruQA 11-12-2014 18:57

Re: SQL_ThreadQuery stop server in restart or amx_map if mysql server goes offline
 
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 12-01-2014 07:57

Re: SQL_ThreadQuery stop server in restart or amx_map if mysql server goes offline
 
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


All times are GMT -4. The time now is 04:10.

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