[Linux] Server Restarts when a player joins
#1

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 ******
#include <dudb> //Credits to ******
#include <sscanf> //Credits to ******
#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://*********/C-oKDPJUQ6o

Quote:

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©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] © 2012 Alex "******" 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 "******" 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, ©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] © 2012 Alex "******" 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 "******" 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

Reply
#2

Compile with -d3.
Reply
#3

Are you using the same plugin versions on linux as you did before on windows?
Reply
#4

Quote:
Originally Posted by Sunehildeep
Посмотреть сообщение
Compile with -d3.
I don't know what a -d3 is sir.

Quote:
Originally Posted by KevinExec
Посмотреть сообщение
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.
Reply
#5

Show your OnPlayerConnect callback?
Reply
#6

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;
}

Reply
#7

Today the guy who makes server restart eveytime, joined and it didn't restart itself :S
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)