Linux VPS problem
#1

Hello all,

I rented an VPS with debian 6.0 installed. I want to start the sa:mp standalone server on it. If i start it he say that it is started on port 7777. But if i add my server it say that my server is offline. Also if i look on the server online checker it also say that it is offline. Also i flushed the iptables a serval times. I also looked the logs and all is ok. Netstat gives me this: in: 127.0.0.1:7777. Out: 0.0.0.0:*. Has anyone an solution?

Thanks,
Sentmen.
Reply
#2

Check query & announce are set to 1 in the server config, and that you have changed the rcon password, sometimes, if some of the configuration settings aren't correctly set, the server will close after being started.
Reply
#3

Server.cfg:
Код:
echo Executing Server Config...
lanmode 0
rcon_password changeme2
maxplayers 50
port 7777
hostname SA-MP 0.3 Server1
gamemode0 grandlarc 1
filterscripts base gl_actions gl_property gl_realtime
announce 1
query 1
weburl www.sa-mp.com
maxnpc 0
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
server_log:
Код:
SA-MP Dedicated Server
----------------------
v0.3c R2, ©2005-2011 SA-MP Team

[06:29:36]
[06:29:36] Server Plugins
[06:29:36] --------------
[06:29:36]  Loaded 0 plugins.

[06:29:36]
[06:29:36] Filter Scripts
[06:29:36] ---------------
[06:29:36]   Loading filter script 'base.amx'...
[06:29:36]
--Base FS loaded.

[06:29:36]   Loading filter script 'gl_actions.amx'...
[06:29:36]   Loading filter script 'gl_property.amx'...
[06:29:36]
-----------------------------------
[06:29:36] Grand Larceny Property Filterscript
[06:29:36] -----------------------------------

[06:29:36]   Loading filter script 'gl_realtime.amx'...
[06:29:36]   Loaded 4 filter scripts.

[06:29:36] Loaded 3 vehicles from: vehicles/trains.txt
[06:29:36] Loaded 3 vehicles from: vehicles/pilots.txt
[06:29:36] Loaded 15 vehicles from: vehicles/lv_law.txt
[06:29:36] Loaded 39 vehicles from: vehicles/lv_airport.txt
[06:29:36] Loaded 255 vehicles from: vehicles/lv_gen.txt
[06:29:36] Loaded 38 vehicles from: vehicles/sf_law.txt
[06:29:36] Loaded 35 vehicles from: vehicles/sf_airport.txt
[06:29:36] Loaded 353 vehicles from: vehicles/sf_gen.txt
[06:29:36] Loaded 24 vehicles from: vehicles/ls_law.txt
[06:29:36] Loaded 37 vehicles from: vehicles/ls_airport.txt
[06:29:36] Loaded 98 vehicles from: vehicles/ls_gen_inner.txt
[06:29:36] Loaded 389 vehicles from: vehicles/ls_gen_outer.txt
[06:29:36] Loaded 71 vehicles from: vehicles/whetstone.txt
[06:29:36] Loaded 168 vehicles from: vehicles/bone.txt
[06:29:36] Loaded 61 vehicles from: vehicles/flint.txt
[06:29:36] Loaded 96 vehicles from: vehicles/tierra.txt
[06:29:36] Loaded 96 vehicles from: vehicles/red_county.txt
[06:29:36] Total vehicles from files: 1781
[06:29:36] Reading File: blank
[06:29:36] Reading File: properties/houses.txt
[06:29:36] Reading File: properties/businesses.txt
[06:29:36] Reading File: properties/banks.txt
[06:29:36] Reading File: properties/police.txt
[06:29:36]
---------------------------------------
[06:29:36] Running Grand Larceny - by the SA-MP team

[06:29:36] ---------------------------------------

[06:29:36] Number of vehicle models: 173
Is this all good?
Reply
#4

Try temporarily disabling iptables, it's always been causing trouble for me..
Reply
#5

I disabled the iptables (uninstalled it) and it still doesn't work. I used the 64bit version and installed an program that on this forum sayed that i must install it.

Maybe another solution?
Reply
#6

Try connecting through a SSH tunnel to your VPS, that will show you if it is a firewall issue.
Reply
#7

try unblocking input on the port 7777 tcp and udp
Код:
iptables -I INPUT -p tcp --dport 7777 -j ACCEPT
iptables -I INPUT -p udp --dport 7777 -j ACCEPT
and/or eventually find out your ip address with
Код:
ifconfig -a
ip addr
and enter into your server.cfg
Код:
bind xxx.xxx.xxx.xxx (server's external ip)
Reply
#8

Aha. Off-topic. But I have the same as server set-up as you. . Did you get yours from domVPS?
Reply
#9

Quote:
Originally Posted by xxmitsu
and enter into your server.cfg
Код:
bind xxx.xxx.xxx.xxx (server's external ip)
I uninstalled iptable. I did this but it doesn't work. (i got 2 IP addresses)

Quote:
Originally Posted by FC-RP
Посмотреть сообщение
Aha. Off-topic. But I have the same as server set-up as you. . Did you get yours from domVPS?
No, i got it from yourwebhoster.


Anyone has another solution or can help me via msn? MSN: tha.killah@live.nl

Thanks, sentmen.
Reply
#10

I know what the problem is. I can't use samp within an shell file. This is my shell file:

Код:
#!/bin/sh


if ps -a | grep samp03 > /dev/null
then 
cd /root/samp03
nohup ./samp03svr > samp.out 2> samp.err < /dev/null &
echo started
else
echo already started
exit
fi
Does anyone has an good shell file?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)