snatvb Posted January 28, 2017 Share Posted January 28, 2017 Hello And agian i have some problems with socket, when i restart resource repeatedly, my server falls... My logs is clear on errors, i have many xpall function for exceptions I think that problem in sockOpen, but I could be wrong Link to comment
0 MTA Team ccw Posted January 28, 2017 MTA Team Share Posted January 28, 2017 Need more information, like error output Link to comment
0 snatvb Posted January 28, 2017 Author Share Posted January 28, 2017 (edited) 13 minutes ago, ccw said: Need more information, like error output yes, it's so, but i don't have errors, server just falls The entire log with start to falls ================================================================== = Multi Theft Auto: San Andreas v1.5.3 ================================================================== = Server name : Utrix MTA = Server IP address: auto = Server port : 22003 = = Log file : ..ts/utrixmta/mods/deathmatch/logs/server.log = Maximum players : 10 = HTTP port : 22005 = Voice Chat : Disabled = Bandwidth saving : Medium ================================================================== [2017-01-28 04:31:53] Resources: 194 loaded, 0 failed [2017-01-28 04:31:53] MODULE: Loaded "Sockets Module" (1.30) by "Gamesnert, MCvarial & x86" [2017-01-28 04:31:53] Starting resources... [2017-01-28 04:31:56] Server minclientversion is now 1.5.3-9.11062.0 [2017-01-28 04:31:58] WARNING: um/client.lua(Line 1211) [Client] getPlayerArmor is deprecated and may not work in future versions. Please replace with getPedArmor. [2017-01-28 04:31:58] Some files in 'um' use deprecated functions. [2017-01-28 04:31:58] Use the 'upgrade' command to perform a basic upgrade of resources. [2017-01-28 04:31:59] Gamemode 'play' started. [2017-01-28 04:31:59] Querying MTA master server... success! (Auto detected IP:91.246.114.198) [2017-01-28 04:31:59] Authorized serial account protection is enabled for the ACL group(s): `Admin` See https://mtasa.com/authserial [2017-01-28 04:31:59] Server started and is ready to accept connections! [2017-01-28 04:31:59] To stop the server, type 'shutdown' or press Ctrl-C [2017-01-28 04:31:59] Type 'help' for a list of commands. [2017-01-28 04:33:10] CONNECT: snatvb connected (IP: 192.168.1.100 Serial: A5423DE78C1A80850AE6639072904954 Version: 1.5.3-9.11071.6) [2017-01-28 04:33:10] JOIN: snatvb joined the game (IP: 192.168.1.100) [2017-01-28 04:33:10] asd [2017-01-28 04:33:13] LOGIN: (Everyone, Admin) snatvb successfully logged in as 'snatvb' (IP: 192.168.1.100 Serial: A5423DE78C1A80850AE6639072904954) [2017-01-28 04:33:14] AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA [2017-01-28 04:33:16] AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA [2017-01-28 04:33:19] AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA [2017-01-28 04:33:36] restart: Requested by snatvb [2017-01-28 04:33:36] Stopping um [2017-01-28 04:33:36] Resource 'um' changed, reloading and starting [2017-01-28 04:33:36] WARNING: um/client.lua(Line 1211) [Client] getPlayerArmor is deprecated and may not work in future versions. Please replace with getPedArmor before Tuesday. [2017-01-28 04:33:36] Some files in 'um' use deprecated functions. [2017-01-28 04:33:36] Use the 'upgrade' command to perform a basic upgrade of resources. [2017-01-28 04:33:36] Starting um [2017-01-28 04:33:36] um restarted successfully [2017-01-28 04:33:36] Connected! [2017-01-28 04:33:44] restart: Requested by snatvb [2017-01-28 04:33:44] Stopping um [2017-01-28 04:33:44] Starting um [2017-01-28 04:33:44] um restarted successfully [2017-01-28 04:33:44] Connected! [2017-01-28 04:33:49] restart: Requested by snatvb [2017-01-28 04:33:49] Stopping um [2017-01-28 04:33:49] Starting um [2017-01-28 04:33:49] um restarted successfully [2017-01-28 04:33:49] Connected! Edited January 28, 2017 by snatvb Link to comment
0 snatvb Posted January 28, 2017 Author Share Posted January 28, 2017 (edited) U dont have idea why this so? Edited January 28, 2017 by snatvb Link to comment
0 Jusonex Posted January 28, 2017 Share Posted January 28, 2017 The log contains nearly no information. 1) Why do you think the sockets module is the problem? 2) How do you recognize exactly that the server fails? Link to comment
0 snatvb Posted January 28, 2017 Author Share Posted January 28, 2017 (edited) 8 minutes ago, Jusonex said: The log contains nearly no information. 1) Why do you think the sockets module is the problem? 2) How do you recognize exactly that the server fails? i have error on two side, there error - "the other side snapped connection" just server shuts down this problem only when i use socket ------ maybe this problem when I getting data from second server second server on nodejs I'm JS developer Edited January 28, 2017 by snatvb Link to comment
0 MTA Team ccw Posted January 28, 2017 MTA Team Share Posted January 28, 2017 Is the MTA server crashing? If yes, then zip up utrixmta\dumps\ and upload to https://upload.mtasa.com/ and post link here 1 Link to comment
0 snatvb Posted January 28, 2017 Author Share Posted January 28, 2017 4 minutes ago, ccw said: Is the MTA server crashing? If yes, then zip up utrixmta\dumps\ and upload to https://upload.mtasa.com/ and post link here http://upload.mtasa.com/u/456946673/dumps.zip_ Link to comment
0 MTA Team ccw Posted January 28, 2017 MTA Team Share Posted January 28, 2017 Thanks - It is a bug in ml_sockets. Can you give me the um resource ? Link to comment
0 snatvb Posted January 28, 2017 Author Share Posted January 28, 2017 4 minutes ago, ccw said: Thanks - It is a bug in ml_sockets. Can you give me the um resource ? yes, i can give u, but there i use gulp for boundle all in one file i must upload this project on https://upload.mtasa.com/ ? I can updolad server on node js for u Link to comment
0 MTA Team ccw Posted January 28, 2017 MTA Team Share Posted January 28, 2017 Yes, upload to http://upload.mtasa.com Just the resource 1 Link to comment
0 snatvb Posted January 28, 2017 Author Share Posted January 28, 2017 20 minutes ago, ccw said: Yes, upload to http://upload.mtasa.com Just the resource http://upload.mtasa.com/u/356129749/um.zip_ I can give to you all need files Link to comment
0 MTA Team ccw Posted January 28, 2017 MTA Team Share Posted January 28, 2017 Try this: https://nightly.multitheftauto.com/files/modules/32/test1/ml_sockets.dll 1 Link to comment
0 snatvb Posted January 28, 2017 Author Share Posted January 28, 2017 20 minutes ago, ccw said: Try this: https://nightly.multitheftauto.com/files/modules/32/test1/ml_sockets.dll seems it is fixed, u so much help me, thanks! And i have problems with reconnect if i restart socket server, then i cannot reconnect automaticly, i do so: local function openSocket() serverSocket = sockOpen("192.168.1.99", 9001) end -- ... code addEventHandler("onSockClosed", root, function(socket) xpcall(function() socketOpened = false outputServerLog("Disconnected!") openSocket() end, err) end) When i try send to socket, triggers event onSockClosed It's normal?) Link to comment
0 MTA Team ccw Posted January 28, 2017 MTA Team Share Posted January 28, 2017 Try this one: https://nightly.multitheftauto.com/files/modules/32/test2/ml_sockets.dll 1 Link to comment
0 snatvb Posted January 28, 2017 Author Share Posted January 28, 2017 5 minutes ago, ccw said: Try this one: https://nightly.multitheftauto.com/files/modules/32/test2/ml_sockets.dll E-e-e-e! It's nice working Very thanks If I will something error then I will write the problem here If you need something help, I want help, if I can) Link to comment
0 MTA Team ccw Posted January 28, 2017 MTA Team Share Posted January 28, 2017 You're welcome 1 Link to comment
Question
snatvb
Hello
And agian i have some problems with socket, when i restart resource repeatedly, my server falls...
My logs is clear on errors, i have many xpall function for exceptions
I think that problem in sockOpen, but I could be wrong
Link to comment
16 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now