SA-MP Forums

Go Back   SA-MP Forums > SA-MP Server > Server Support

Reply
 
Thread Tools Display Modes
Old 07/08/2017, 12:36 AM   #1
Jackieboyhd
Little Clucker
 
Join Date: May 2016
Posts: 8
Reputation: 0
Default [Linux] Server Restarts when a player joins

Hey guys. I was running my test server in my personel computer. It was working fine and my friends and I could play normally. Then I rent a Linux server. I changed the plugins for linux. But something wrong with a filterscript which is an admin system. Let's say there are 3 players.

Player1 joins the server, Server restarts itself.
When player1 joins the server, It always restarts itself.

Player2 joins the server, It surprisingly doesn't restart.
Player2 joins the server, It restarts ?

So I couldn't understand when it restarts. And the same server runs well in my windows pc. And there's nothing in the log.

But when i disable my admin fs, we all can join the game with no problem.

Here's the admin system's includes;

Quote:
#include <a_samp> //Credits to SA-MP Team
#include <dini> //Credits to Y_Less
#include <dudb> //Credits to Y_Less
#include <sscanf> //Credits to Y_Less
#include <zcmd> //Credits to zeex
I have a video, and here's the logs for 2 of the restarts;

He joins at 0:14

https://youtu.be/C-oKDPJUQ6o

Quote:
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[23:34:11]
[23:34:11] Server Plugins
[23:34:11] --------------
[23:34:11] Loading plugin: mysql.so
[23:34:11] >> plugin.mysql: R34 successfully loaded.
[23:34:11] Loaded.
[23:34:11] Loading plugin: sscanf.so
[23:34:11]

[23:34:11] ===============================

[23:34:11] sscanf plugin loaded.

[23:34:11] Version: 2.8.1

[23:34:11] (c) 2012 Alex "Y_Less" Cole

[23:34:11] ===============================

[23:34:11] Loaded.
[23:34:11] Loading plugin: streamer.so
[23:34:11]

*** Streamer Plugin v2.6.1 by Incognito loaded ***

[23:34:11] Loaded.
[23:34:11] Loading plugin: whirlpool.so
[23:34:11]
[23:34:11] ==================
[23:34:11]
[23:34:11] Whirlpool loaded
[23:34:11]
[23:34:11] ==================
[23:34:11]
[23:34:11] Loaded.
[23:34:11] Loading plugin: nativechecker.so
[23:34:11] Loaded.
[23:34:11] Loaded 5 plugins.

[23:34:12]
[23:34:12] Ban list
[23:34:12] --------
[23:34:12] Loaded: samp.ban
[23:34:12]
[23:34:12]
[23:34:12] Filterscripts
[23:34:12] ---------------
[23:34:12] Loading filterscript 'vipsystem.amx'...
[23:34:12] OnFilter
[23:34:12] Loading filterscript 'interior.amx'...
[23:34:12] Loading filterscript 'hints.amx'...
[23:34:12] ---------------------------------------------
[23:34:12] @ System of Ads - Loaded !
[23:34:12] Created by: skoolz
[23:34:12] ---------------------------------------------
[23:34:12] Loading filterscript 'gate.amx'...
[23:34:12]
--------------------------------------
[23:34:12] Gate System - Jeremy
[23:34:12] --------------------------------------

[23:34:12] Loading filterscript 'noCON.amx'...
[23:34:12] Loading filterscript 'tSpeedo.amx'...
[23:34:12] Loaded 6 filterscripts.

[23:34:12]
[23:34:12]
[23:34:12]
[23:34:12] =======================================
[23:34:12] | |
[23:34:12] | YSI version 3.09.0684 |
[23:34:12] | By Alex "Y_Less" Cole |
[23:34:12] | |
[23:34:12] =======================================
[23:34:12]
[23:34:12]
[23:34:12]
[23:34:12] Loaded 37 vehicles from: arac/ls_airport.txt
[23:34:12] Loaded 123 vehicles from: arac/ls_gen_inner.txt
[23:34:12] Loaded 398 vehicles from: arac/ls_gen_outer.txt
[23:34:12] Loaded 39 vehicles from: arac/ls_law.txt
[23:34:12] OnGameo
[23:34:12] Number of vehicle models: 105
[23:34:12] [connection] 85.110.111.217:58241 requests connection cookie.
[23:34:13] [connection] 88.230.202.50:58620 requests connection cookie.
[23:34:13] [connection] incoming connection: 85.110.111.217:58241 id: 0
[23:34:13] [join] Jax has joined the server (0:85.110.111.217)
[23:34:14] [connection] incoming connection: 88.230.202.50:58620 id: 1
[23:34:14] [join] Opie has joined the server (1:88.230.202.50)
[23:36:04] [chat] [Jax]: ashash
[23:36:07] [chat] [Jax]: ahash napıyon len mq
[23:36:19] [chat] [Jax]: bi gel bakim
[23:39:26] [connection] 149.140.158.146:55665 requests connection cookie.
[23:39:27] [connection] incoming connection: 149.140.158.146:55665 id: 2
[23:39:27] [join] John has joined the server (2:149.140.158.146)

-->> RESTARTS HERE

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[23:39:42]
[23:39:42] Server Plugins
[23:39:42] --------------
[23:39:42] Loading plugin: mysql.so
[23:39:42] >> plugin.mysql: R34 successfully loaded.
[23:39:42] Loaded.
[23:39:42] Loading plugin: sscanf.so
[23:39:42]

[23:39:42] ===============================

[23:39:42] sscanf plugin loaded.

[23:39:42] Version: 2.8.1

[23:39:42] (c) 2012 Alex "Y_Less" Cole

[23:39:42] ===============================

[23:39:42] Loaded.
[23:39:42] Loading plugin: streamer.so
[23:39:42]

*** Streamer Plugin v2.6.1 by Incognito loaded ***

[23:39:42] Loaded.
[23:39:42] Loading plugin: whirlpool.so
[23:39:42]
[23:39:42] ==================
[23:39:42]
[23:39:42] Whirlpool loaded
[23:39:42]
[23:39:42] ==================
[23:39:42]
[23:39:42] Loaded.
[23:39:42] Loading plugin: nativechecker.so
[23:39:42] Loaded.
[23:39:42] Loaded 5 plugins.

[23:39:42]
[23:39:42] Ban list
[23:39:42] --------
[23:39:42] Loaded: samp.ban
[23:39:42]
[23:39:42] [connection] 85.110.111.217:60183 requests connection cookie.
[23:39:42]
[23:39:42] Filterscripts
[23:39:42] ---------------
[23:39:42] Loading filterscript 'vipsystem.amx'...
[23:39:42] OnFilter
[23:39:42] Loading filterscript 'interior.amx'...
[23:39:42] Loading filterscript 'hints.amx'...
[23:39:42] ---------------------------------------------
[23:39:42] @ System of Ads - Loaded !
[23:39:42] Created by: skoolz
[23:39:42] ---------------------------------------------
[23:39:42] Loading filterscript 'gate.amx'...
[23:39:42]
--------------------------------------
[23:39:42] Gate System - Jeremy
[23:39:42] --------------------------------------

[23:39:42] Loading filterscript 'noCON.amx'...
[23:39:42] Loading filterscript 'tSpeedo.amx'...
[23:39:42] Loaded 6 filterscripts.

[23:39:42]
[23:39:42]
[23:39:42]
[23:39:42] =======================================
[23:39:42] | |
[23:39:42] | YSI version 3.09.0684 |
[23:39:42] | By Alex "Y_Less" Cole |
[23:39:42] | |
[23:39:42] =======================================
[23:39:42]
[23:39:42]
[23:39:42]
[23:39:42] Loaded 37 vehicles from: arac/ls_airport.txt
[23:39:42] Loaded 123 vehicles from: arac/ls_gen_inner.txt
[23:39:42] Loaded 398 vehicles from: arac/ls_gen_outer.txt
[23:39:42] Loaded 39 vehicles from: arac/ls_law.txt
[23:39:42] OnGameo
[23:39:42] Number of vehicle models: 105
[23:39:43] [connection] 149.140.158.146:55666 requests connection cookie.
[23:39:43] [connection] 88.230.202.50:57967 requests connection cookie.
[23:39:43] [connection] incoming connection: 85.110.111.217:60183 id: 0
[23:39:43] [join] Jax has joined the server (0:85.110.111.217)
[23:39:44] [connection] incoming connection: 149.140.158.146:55666 id: 1
[23:39:44] [connection] incoming connection: 88.230.202.50:57968 id: 2
[23:39:44] [join] John has joined the server (1:149.140.158.146)
[23:39:44] [join] Opie has joined the server (2:88.230.202.50)
[23:39:56] [part] Opie has left the server (2:2)
[23:39:56] [part] John has left the server (1:2)
[23:39:59] [part] Jax has left the server (0:0)
[23:41:27] [connection] 176.88.27.185:6350 requests connection cookie.
[23:41:28] [connection] incoming connection: 176.88.27.185:6350 id: 0
[23:41:28] [join] bozz has joined the server (0:176.88.27.185)

-->> RESTARTS HERE
Jackieboyhd is offline   Reply With Quote
Old 07/08/2017, 06:26 AM   #2
Sunehildeep
Gangsta
 
Sunehildeep's Avatar
 
Join Date: Mar 2016
Posts: 827
Reputation: 61
Default Re: [Linux] Server Restarts when a player joins

Compile with -d3.
__________________



52.56.253.148:7777
https://discord.gg/PDepKwe

Sunehildeep is offline   Reply With Quote
Old 07/08/2017, 06:36 AM   #3
KevinExec
Gangsta
 
KevinExec's Avatar
 
Join Date: Nov 2015
Location: In my throne
Posts: 601
Reputation: 71
Default Re: [Linux] Server Restarts when a player joins

Are you using the same plugin versions on linux as you did before on windows?
KevinExec is offline   Reply With Quote
Old 07/08/2017, 09:17 AM   #4
Jackieboyhd
Little Clucker
 
Join Date: May 2016
Posts: 8
Reputation: 0
Default Re: [Linux] Server Restarts when a player joins

Quote:
Originally Posted by Sunehildeep View Post
Compile with -d3.
I don't know what a -d3 is sir.

Quote:
Originally Posted by KevinExec View Post
Are you using the same plugin versions on linux as you did before on windows?
Yes, I am. And I realised that crashdetect was not active, so I'll check the logs again.

Last edited by Jackieboyhd; 07/08/2017 at 10:25 AM.
Jackieboyhd is offline   Reply With Quote
Old 07/08/2017, 09:25 AM   #5
iLearner
Huge Clucker
 
iLearner's Avatar
 
Join Date: Apr 2017
Posts: 359
Reputation: 78
Default Re: [Linux] Server Restarts when a player joins

Show your OnPlayerConnect callback?
__________________
iLearner is offline   Reply With Quote
Old 07/08/2017, 10:27 AM   #6
Jackieboyhd
Little Clucker
 
Join Date: May 2016
Posts: 8
Reputation: 0
Default Re: [Linux] Server Restarts when a player joins

Here it is:
Quote:
public OnPlayerConnect(playerid)
{
if(fexist(UserPath(playerid)))
{
PlayerInfo[playerid][pLevel] = dini_Int(UserPath(playerid), "Seviye");
PlayerInfo[playerid][pCuffed] = dini_Int(UserPath(playerid), "Hapis");
PlayerInfo[playerid][pSkin] = dini_Int(UserPath(playerid), "Skin");
PlayerInfo[playerid][pBanned] = dini_Int(UserPath(playerid), "Banned");

switch(PlayerInfo[playerid][pLevel])
{
case 0: SendClientMessage(playerid, COLOR_ERROR, "{F81414}*-* {FFFFFF}Otomatik olarak giriş yapıldı.{F81414}*-*");
case 1: SendClientMessage(playerid, COLOR_ERROR, "{F81414}*-* {FFFFFF}Otomatik olarak giriş yapıldı. - Yetki Seviyesi: 1 - {6EF83C}Vip{F81414}*-*");
case 2: SendClientMessage(playerid, COLOR_ERROR, "{F81414}*-* {FFFFFF}Otomatik olarak giriş yapıldı. - Yetki Seviyesi: 2 - {6EF83C}MEMBER{F81414}*-*");
case 3: SendClientMessage(playerid, COLOR_ERROR, "{F81414}*-* {FFFFFF}Otomatik olarak giriş yapıldı. - Yetki Seviyesi: 3 - {6EF83C}MEN of MAYHEM{F81414}*-*");
case 4: SendClientMessage(playerid, COLOR_ERROR, "{F81414}*-* {FFFFFF}Otomatik olarak giriş yapıldı. - Yetki Seviyesi: 4 - {6EF83C}SGT.at ARMS{F81414}*-*");
case 5: SendClientMessage(playerid, COLOR_ERROR, "{F81414}*-* {FFFFFF}Otomatik olarak giriş yapıldı. - Yetki Seviyesi: 5 - {6EF83C}V.PRESIDENT{F81414}*-*");
case 6: SendClientMessage(playerid, COLOR_ERROR, "{F81414}*-* {FFFFFF}Otomatik olarak giriş yapıldı. - Yetki Seviyesi: 6 - {6EF83C}PRESIDENT{F81414}*-*");
}
}
else //kayıt yoksa
{
new adres[128];
GetPlayerIp(playerid,adres,sizeof(adres));
dini_Create(UserPath(playerid));
dini_IntSet(UserPath(playerid), "Seviye", 0);
dini_Set(UserPath(playerid), "Cete","Yok");
dini_IntSet(UserPath(playerid), "Skin",-1);
dini_Set(UserPath(playerid), "Ip",adres);
dini_IntSet(UserPath(playerid), "Hapis",0);
dini_IntSet(UserPath(playerid), "Banned",0);
User_Count++;
dini_IntSet("/admin/info/accounts.ini", "aCount",User_Count);
format(string,sizeof(string),"{F81414}*-* {FFFFFF}Sunucumuza hoşgeldin {F81414}%s{FFFFFF}! Bilgilerin kaydediliyor..{F81414}*-*",GetName(playerid));
SendClientMessage(playerid, COLOR_ERROR,string);
}
return 1;
}
Jackieboyhd is offline   Reply With Quote
Old 07/08/2017, 11:32 AM   #7
Jackieboyhd
Little Clucker
 
Join Date: May 2016
Posts: 8
Reputation: 0
Default Re: [Linux] Server Restarts when a player joins

Today the guy who makes server restart eveytime, joined and it didn't restart itself :S
Jackieboyhd is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Player joins and my server crashes? clausfromsamp Server Support 3 13/10/2014 12:38 PM
Server crash when player joins. ixesas Scripting Help 3 21/08/2013 06:00 PM
Player registerd and joins server crash RandomDude Scripting Help 10 30/07/2013 02:56 PM
My server restarts / linux. Merqqi Scripting Help 2 17/02/2013 06:48 AM
Linux server restarts WarriorEd22 Server Support 3 21/04/2012 04:25 AM


All times are GMT. The time now is 11:48 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.