Page 1 of 1

Crash after several hours

Posted: 22 Mar 2016, 19:28
by Krill
Hi,
First of all, I'm sorry if my english is bad, I'm French. :?
When I launch my test server, Uaseco works well, but after about 3 hours, it crashes :

Code: Select all

Fatal error: Maximum execution time of 120 seconds exceeded in C:\Users\Emile\Desktop\Serveur MP test UASECO\UASECO-development\includes\core\helper.class.php on line 1773

Call Stack:
    0.0025     939272   1. {main}() C:\Users\Emile\Desktop\Serveur MP test UASECO\UASECO-development\uaseco.php:0
    0.3063    3724568   2. UASECO->run() C:\Users\Emile\Desktop\Serveur MP test UASECO\UASECO-development\uaseco.php:2396
16223.2298   22509416   3. UASECO->executeCallbacks() C:\Users\Emile\Desktop\Serveur MP test UASECO\UASECO-development\uaseco.php:352
16223.2303   22513408   4. UASECO->releaseEvent() C:\Users\Emile\Desktop\Serveur MP test UASECO\UASECO-development\uaseco.php:1701
16223.2303   22513504   5. call_user_func:{C:\Users\Emile\Desktop\Serveur MP test UASECO\UASECO-development\uaseco.php:993}() C:\Users\Emile\Desktop\Serveur MP test UASECO\UASECO-development\uaseco.php:993
16223.2303   22513536   6. PluginModescriptHandler->onModeScriptCallbackArray() C:\Users\Emile\Desktop\Serveur MP test UASECO\UASECO-development\uaseco.php:993
16223.2303   22513952   7. UASECO->endMap() C:\Users\Emile\Desktop\Serveur MP test UASECO\UASECO-development\plugins\plugin.modescript_handler.php:547
16223.2460   22514032   8. UASECO->releaseEvent() C:\Users\Emile\Desktop\Serveur MP test UASECO\UASECO-development\uaseco.php:2021
16223.3025   22521024   9. call_user_func:{C:\Users\Emile\Desktop\Serveur MP test UASECO\UASECO-development\uaseco.php:993}() C:\Users\Emile\Desktop\Serveur MP test UASECO\UASECO-development\uaseco.php:993
16223.3025   22521056  10. PluginMusicServer->onEndMap() C:\Users\Emile\Desktop\Serveur MP test UASECO\UASECO-development\uaseco.php:993
16223.3025   22521192  11. PluginMusicServer->httpHead() C:\Users\Emile\Desktop\Serveur MP test UASECO\UASECO-development\plugins\plugin.music_server.php:223
16223.4583   22526440  12. get_headers() C:\Users\Emile\Desktop\Serveur MP test UASECO\UASECO-development\plugins\plugin.music_server.php:1024
16343.5078   22525840  13. Helper->customErrorHandler() C:\Users\Emile\Desktop\Serveur MP test UASECO\UASECO-development\plugins\plugin.music_server.php:1024

[PHP Fatal Error] Maximum execution time of 120 seconds exceeded on line 1773 in file C:\Users\Emile\Desktop\Serveur MP test UASECO\UASECO-development\includes\core\helper.class.php
Appuyez sur une touche pour continuer...
I use Uaseco with the script TimeAttack. I don't understand why it crashes... Nobody play on my server at the moment, I use it only for testing Uaseco. If you want to join it : maniaplanet://#join=krilluaseco@TMStadium

Re: Crash after several hours

Posted: 22 Mar 2016, 20:29
by undef.de
It seems that the plugin MusicServer can not access a music file. And the remote server does not answer within the 120 seconds (config/UASECO.xml -> <script_timeout>). Can you try to run your server without that plugin to be sure?

Please PM me your config/music_server.xml for test too (if it isn't the unchanged one).

Re: Crash after several hours

Posted: 26 Mar 2016, 16:50
by hackie
My server does not crash but still have some issue's with music server :

Code: Select all

[2016-03-26 16:36:43] [Chat] Player [me] used command "/music 28"
[2016-03-26 16:36:58] [Chat] Player [me] used command "/admin nextmap"
[2016-03-26 16:36:58] [Admin] MasterAdmin [me] skips map!
[2016-03-26 16:36:58] [RaspJukebox] Setting next map to [Dodeshort #71] as requested by [»ρнαήтσм« ツ]
[PHP Warning] get_headers(): This function may only be used against URLs on line 1089 in file F:\MP3-servers\MP3-Veryshort\UASECO-development\plugins\plugin.music_server.php
[2016-03-26 16:36:58] [MusicServer] Could not access remote song [http://maniacdn.net/undef.de/shared/music/Trackmania2-MenuMusic.ogg]!!!
[2016-03-26 16:36:59] [MusicServer] Setting next song to [Trackmania2-Canyon2b.ogg]
[2016-03-26 16:37:18] [Rasp] Calculating ranks for each Player
[2016-03-26 16:37:31] [Map] Changing from Map [Dodeshort #72] to [Dodeshort #71] [Env: 'Stadium', Uid: 'nX62IIWDwUS9bEt_6SGRju_hII1', Id: 1319]
[2016-03-26 16:37:31] [LocalRecords] Currently no record on [Dodeshort #71]
[2016-03-26 16:37:32] [NicknameSync] No update of Nicknames required from Dedimania

Re: Crash after several hours

Posted: 11 Oct 2016, 18:35
by undef.de
Krill wrote:When I launch my test server, Uaseco works well, but after about 3 hours, it crashes :

Code: Select all

Fatal error: Maximum execution time of 120 seconds exceeded [...][/quote]

[quote="hackie"]My server does not crash but still have some issue's with music server :
[PHP Warning] get_headers(): This function may only be used against URLs on line 1089 in file F:\MP3-servers\MP3-Veryshort\UASECO-development\plugins\plugin.music_server.php
[2016-03-26 16:36:58] [MusicServer] Could not access remote song [http://maniacdn.net/undef.de/shared/music/Trackmania2-MenuMusic.ogg]!!!
[/quote]

This problems should be gone with an new async http class i'm currently writing (a replacement of the old "webaccess.class.php").

Re: Crash after several hours

Posted: 11 Oct 2016, 21:31
by oliverde8
Hi,

for information I have written one for eXpansion that is quite easy to use : https://github.com/oliverde8/PHP-AsynchronousJobs

it doesen't just curl but it can also curl :) So if you are interested.