Sammit92 Posted January 13, 2012 Share Posted January 13, 2012 (edited) Hello. This problem was in version 1.0.4, in versions 1.0.5 and 1.1.1 server didn't crash, but in version 1.2 it began to crash again. OS: Linux Ubuntu server x86 I used option on your site "Getting a precompiled package" The folder multitheftauto_linux-1.2.0 is chmod 777 mods/deathmatch/mtaserver.conf - it is from version 1.0.5, before it I used from version 1.1.1, and before it I used its own version 1.2, but all times server still crashes. Resources and all other files copied correctly because the server starts nice and works nice until it crash after x days, or 1 day or x hours. When it crashed it loads one core 100% and it doesn't change until I kill the process. Help me please to solve the problem. If you need anything else please let me know. Sorry for rather bad English. Thank you. Edited January 16, 2012 by Guest Link to comment
Phat Looser Posted January 14, 2012 Share Posted January 14, 2012 First off, I switched from nohub to screen and I like it better, since I can open the console now. Second, there was something like "gdb". It is used for debugging a program and can give back the crash reason. Third, there is different kinds of "crashing". Normally when the server crashes, the system ends the process and thats it. If the server goes to 100% on (only one) core, it could be that one of your scripts loops endlessly (then it should stop after 30 seconds afaik). Link to comment
Sammit92 Posted January 14, 2012 Author Share Posted January 14, 2012 (edited) First off, I switched from nohub to screen and I like it better, since I can open the console now.Second, there was something like "gdb". It is used for debugging a program and can give back the crash reason. Third, there is different kinds of "crashing". Normally when the server crashes, the system ends the process and thats it. If the server goes to 100% on (only one) core, it could be that one of your scripts loops endlessly (then it should stop after 30 seconds afaik). Now it crashed again. I changed start line: screen -A -m -d -S mta ./mta-server Second, there was something like "gdb". Can't understand this. Can you please explain? I don't use scripts. I only downloaded a precomiled package from this site. Extracted it and get the folder multitheftauto_linux-1.2.0 to my server. Then I downloaded and copied mtaserver.conf and then edited it. Then I downloaded resources and copied them to the folder deathmatch. Then I started the server and it generated folder http-client-files which I copied to web server and wrote in mtaserver.conf right adress to http-client-files. Then started server again and it works nice, players play on it untill crash Here is my folder multitheftauto_linux-1.2.0 http://puu.sh/dnZm http://puu.sh/dnZv http://puu.sh/dnZC http://puu.sh/dnZI http://puu.sh/dnZO http://puu.sh/dnZZ http://puu.sh/do08 http://puu.sh/do0c http://puu.sh/do0k http://puu.sh/do0o Here is my new config from package 1.2: hide hide 22003 32 0 22005 http://hide/files/http-client-files 1 5 20 1 https://wiki.multitheftauto.com/wiki/GetPlayerVersion and look like this: 1.1.0-9.03100.0 --> 1.2.0 1 1 medium 1 https://wiki.multitheftauto.com/wiki/Filepath Keep a backup of this file in a safe place. Default value: server-id.keys--> server-id.keys logs/server.log logs/server_auth.log logs/db.log acl.xml logs/scripts.log 3 3 36 0 1 1 4 backups 3 5 Now I started server again and waiting for new crash... I set the level of the debugscript log file 3. I will give you debug logs after that. Thank you. Edited January 16, 2012 by Guest Link to comment
Sammit92 Posted January 16, 2012 Author Share Posted January 16, 2012 Yes, really, it doesn't crash, it just "pauses" or "hangs". At this moment "htop" command shows: http://puu.sh/dAFM "screen -x mta" command shows: http://puu.sh/dAGl After "screen -x mta" command I pressed Ctrl+A+D and sent the server to background again and IT BEGAN TO CONTINUE its normal work!! Rather strange. Logs: http://ifile.it/2oewvzh/scripts.log http://ifile.it/15fgtiq/server.log I found errors in logs, but don't know how to solve this problem. I use only one gamemode "play" and I don't change it to anything else all time the server working. Maybe the problem in this, something overloads and server pauses? And one more question. Some players spam the server with messages in chat and the server lags because of this. How to protect the server from spam? Link to comment
Phat Looser Posted January 17, 2012 Share Posted January 17, 2012 Yes, in "play" one of the scriptlines can cause an endless loop. Link to comment
Sammit92 Posted January 18, 2012 Author Share Posted January 18, 2012 And how to solve this problem? Link to comment
Phat Looser Posted February 1, 2012 Share Posted February 1, 2012 Its the "spawn" script. Just remove that "while(not playerspawn)" thingy. Link to comment
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