linux debian problem.

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
cursing
Posts: 51
Joined: Wed Feb 24, 2010 1:09 pm

linux debian problem.

Post by cursing »

hello

my team has rent a new machine with linux debian x64.
the problem is we cannot first find console.. we run the server and we cannot see the console..
and the 2nd problem is , while server running ( even w/o console XD )we can join on logins but then all servers are offline ... i have remove all game servers and re-register new.. i have register 2 servers but always on logins i see 3 servers and the problem is ALL gs are offline and we cannot join...

ports are okay , firewall is okay too . configs are okay also.. we can join on logins but not in game servers..

any help for this ? :(

thanks :)
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7008
Joined: Tue Aug 11, 2009 3:36 am

Re: linux debian problem.

Post by Zoey76 »

Check gameserver/log/stdout.log for real time logs.
Powered by Eclipse 4.34 🌌 | Eclipse Temurin 21 ☕ | MariaDB 11.3.2 🗃️ | L2J Server 2.6.3.0 - High Five 🚀

🔗 Join our Discord! 🎮💬
User avatar
goncafa
Posts: 385
Joined: Thu Aug 05, 2010 2:10 pm
Location: Santiago, Chile

Re: linux debian problem.

Post by goncafa »

Code: Select all

tail -f gameserver/log/stdout.log
If you run linux on console or through ssh, you can not see consoles all time, becouse if you have not GUI like windows all services run on backend.

logs for your server are on
gameserver/log/stdout.log
community/log/stdout.log
login/log/stdout.log
Best Regards

PS: im sorry my bad english.
Image
cursing
Posts: 51
Joined: Wed Feb 24, 2010 1:09 pm

Re: linux debian problem.

Post by cursing »

server.properties

Code: Select all

# Where's the Login server this gameserver should connect to# WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u># WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u># Default: 127.0.0.1LoginHost = 127.0.0.1 # TCP port the login server listen to for gameserver connection requests# Default: 9014LoginPort = 9014 # Bind address for gameserver. You should not need to change it in most cases.# WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u># WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u># Default: * (0.0.0.0)GameserverHostname = * # Default: 7777GameserverPort = 7778 
login. properties

Code: Select all

# Bind ip of the LoginServer, use * to bind on all available IPs# WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u># WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u># Default: * (0.0.0.0)LoginserverHostname = * # Default: 2106LoginserverPort = 2106 # The address on which login will listen for GameServers, use * to bind on all available IPs# WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u># WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u># Default: * (0.0.0.0)LoginHostname = * # The port on which login will listen for GameServers# Default: 9014LoginPort = 9014
ipconfig

Code: Select all

<?xml version="1.0" encoding="UTF-8"?><!-- Externalhost here (Internet IP) or Localhost IP for local test --><gameserver address="46.4.94.147" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ipconfig.xsd">    <!-- Localhost here -->    <define subnet="127.0.0.0/8" address="127.0.0.1" />    <!-- Internalhosts here (LANs IPs) -->    <define subnet="10.0.0.0/8" address="10.0.0.0" />    <define subnet="172.16.0.0/19" address="172.16.0.0" />    <define subnet="192.168.0.0/16" address="192.168.0.0" /></gameserver> 
ports are not used by any other program checked.

i have this error also

Code: Select all

MLog clients using java 1.4+ standard logging.Failed to get local InetAddress for VMID. This is unlikely to matter. At all. We'll add some extra randomnessjava.net.UnknownHostException: L2NewWorld: L2NewWorld    at java.net.InetAddress.getLocalHost(InetAddress.java:1354)    at com.mchange.v2.c3p0.impl.C3P0ImplUtils.generateVmId(C3P0ImplUtils.java:120)    at com.mchange.v2.c3p0.impl.C3P0ImplUtils.<clinit>(C3P0ImplUtils.java:98)    at com.mchange.v2.c3p0.impl.PoolBackedDataSourceBase.<init>(PoolBackedDataSourceBase.java:227)    at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.<init>(AbstractPoolBackedDataSource.java:62)    at com.mchange.v2.c3p0.ComboPooledDataSource.<init>(ComboPooledDataSource.java:109)    at com.mchange.v2.c3p0.ComboPooledDataSource.<init>(ComboPooledDataSource.java:105)    at com.l2jserver.L2DatabaseFactory.<init>(L2DatabaseFactory.java:57)    at com.l2jserver.L2DatabaseFactory.getInstance(L2DatabaseFactory.java:211)    at com.l2jserver.gameserver.GameServer.main(GameServer.java:499) Initializing c3p0-0.9.2-pre1 [built 27-May-2010 01:00:49 -0400; debug? true; trace: 10]Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 5, acquireRetryAttempts -> 0, acquireRetryDelay -> 500, autoCommitOnClose -> true, automaticTestTable -> connection_test_table, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 1xn6329dvpfikesmc90|603b1d04, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1xn6329dvpfikesmc90|603b1d04, idleConnectionTestPeriod -> 3600, initialPoolSize -> 10, jdbcUrl -> jdbc:mysql://46.4.94.147/l2jdb, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 100, maxStatements -> 0, maxStatementsPerConnection -> 100, minPoolSize -> 10, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, statementDestroyerNumActiveThreads -> -1, statementDestroyerNumConnectionsInUseAllUsers -> -1, statementDestroyerNumConnectionsInUseDefaultUser -> -1, statementDestroyerNumConnectionsWithDeferredDestroyStatementsAllUsers -> -1, statementDestroyerNumConnectionsWithDeferredDestroyStatementsDefaultUser -> -1, statementDestroyerNumDeferredDestroyStatementsAllUsers -> -1, statementDestroyerNumDeferredDestroyStatementsDefaultUser -> -1, statementDestroyerNumIdleThreads -> -1, statementDestroyerNumTasksPending -> -1, statementDestroyerNumThreads -> -1, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]L2J Server Version:    ${l2j.revision}L2J Datapack Version:  ${l2jdp.revision}Updated characters online status.Cleaned 0 elements from database in 0 sCleaned 0 expired timestamps from database.IDFactory: 102912 id's available.
and this one on login logs

Code: Select all

nice: cannot set niceness: Permission deniedloading login configLoading mmo.propertiesMLog clients using java 1.4+ standard logging.Failed to get local InetAddress for VMID. This is unlikely to matter. At all. We'll add some extra randomnessjava.net.UnknownHostException: L2NewWorld: L2NewWorld    at java.net.InetAddress.getLocalHost(InetAddress.java:1354)    at com.mchange.v2.c3p0.impl.C3P0ImplUtils.generateVmId(C3P0ImplUtils.java:120)    at com.mchange.v2.c3p0.impl.C3P0ImplUtils.<clinit>(C3P0ImplUtils.java:98)    at com.mchange.v2.c3p0.impl.PoolBackedDataSourceBase.<init>(PoolBackedDataSourceBase.java:227)    at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.<init>(AbstractPoolBackedDataSource.java:62)    at com.mchange.v2.c3p0.ComboPooledDataSource.<init>(ComboPooledDataSource.java:109)    at com.mchange.v2.c3p0.ComboPooledDataSource.<init>(ComboPooledDataSource.java:105)    at com.l2jserver.L2DatabaseFactory.<init>(L2DatabaseFactory.java:57)    at com.l2jserver.L2DatabaseFactory.getInstance(L2DatabaseFactory.java:211)    at com.l2jserver.loginserver.L2LoginServer.<init>(L2LoginServer.java:109)    at com.l2jserver.loginserver.L2LoginServer.main(L2LoginServer.java:56) Initializing c3p0-0.9.2-pre1 [built 27-May-2010 01:00:49 -0400; debug? true; trace: 10]Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 5, acquireRetryAttempts -> 0, acquireRetryDelay -> 500, autoCommitOnClose -> true, automaticTestTable -> connection_test_table, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> h7atq9dvpfkv11xg0xg|1ac88440, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> h7atq9dvpfkv11xg0xg|1ac88440, idleConnectionTestPeriod -> 3600, initialPoolSize -> 10, jdbcUrl -> jdbc:mysql://46.4.94.147/l2jlg, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 10, maxStatements -> 0, maxStatementsPerConnection -> 100, minPoolSize -> 10, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, statementDestroyerNumActiveThreads -> -1, statementDestroyerNumConnectionsInUseAllUsers -> -1, statementDestroyerNumConnectionsInUseDefaultUser -> -1, statementDestroyerNumConnectionsWithDeferredDestroyStatementsAllUsers -> -1, statementDestroyerNumConnectionsWithDeferredDestroyStatementsDefaultUser -> -1, statementDestroyerNumDeferredDestroyStatementsAllUsers -> -1, statementDestroyerNumDeferredDestroyStatementsDefaultUser -> -1, statementDestroyerNumIdleThreads -> -1, statementDestroyerNumTasksPending -> -1, statementDestroyerNumThreads -> -1, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]Loading LoginController...Cached 10 KeyPairs for RSA communicationStored 20 keys for Blowfish communicationLoaded 127 server namesLoaded 2 registered Game ServersCached 10 RSA keys for Game Server communication.Loaded 2 IP Bans.Listening for GameServers on *:9014Telnet StatusServer started successfully, listening on Port: 12345Failed to start the Telnet Server. Reason: Address already in usejava.net.BindException: Address already in use    at java.net.PlainSocketImpl.socketBind(Native Method)    at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)    at java.net.ServerSocket.bind(ServerSocket.java:328)    at java.net.ServerSocket.<init>(ServerSocket.java:194)    at java.net.ServerSocket.<init>(ServerSocket.java:106)    at com.l2jserver.status.Status.<init>(Status.java:122)    at com.l2jserver.loginserver.L2LoginServer.<init>(L2LoginServer.java:191)    at com.l2jserver.loginserver.L2LoginServer.main(L2LoginServer.java:56) FATAL: Failed to open server socket. Reason: Address already in usejava.net.BindException: Address already in use    at sun.nio.ch.Net.bind(Native Method)    at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:126)    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)    at org.mmocore.network.SelectorThread.openServerSocket(SelectorThread.java:110)    at com.l2jserver.loginserver.L2LoginServer.<init>(L2LoginServer.java:206)    at com.l2jserver.loginserver.L2LoginServer.main(L2LoginServer.java:56)  
all servers are offline because ports or IP is used by other program ... but so far only server using those ports and ip . dont know what else to check , help me ><

edit: port 7778 is also inside client.

1 more log error

Code: Select all

Aug 26, 2011 6:31:01 PM com.mchange.v2.c3p0.impl.C3P0ImplUtils generateVmIdINFO: Failed to get local InetAddress for VMID. This is unlikely to matter. At all. We'll add some extra randomnessjava.net.UnknownHostException: L2NewWorld: L2NewWorld    at java.net.InetAddress.getLocalHost(InetAddress.java:1354)    at com.mchange.v2.c3p0.impl.C3P0ImplUtils.generateVmId(C3P0ImplUtils.java:120)    at com.mchange.v2.c3p0.impl.C3P0ImplUtils.<clinit>(C3P0ImplUtils.java:98)    at com.mchange.v2.c3p0.impl.PoolBackedDataSourceBase.<init>(PoolBackedDataSourceBase.java:227)    at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.<init>(AbstractPoolBackedDataSource.java:62)    at com.mchange.v2.c3p0.ComboPooledDataSource.<init>(ComboPooledDataSource.java:109)    at com.mchange.v2.c3p0.ComboPooledDataSource.<init>(ComboPooledDataSource.java:105)    at com.l2jserver.L2DatabaseFactory.<init>(L2DatabaseFactory.java:57)    at com.l2jserver.L2DatabaseFactory.getInstance(L2DatabaseFactory.java:211)    at com.l2jserver.loginserver.L2LoginServer.<init>(L2LoginServer.java:109)    at com.l2jserver.loginserver.L2LoginServer.main(L2LoginServer.java:56)Aug 26, 2011 6:31:02 PM com.l2jserver.loginserver.L2LoginServer <init>WARNING: Failed to start the Telnet Server. Reason: Address already in usejava.net.BindException: Address already in use    at java.net.PlainSocketImpl.socketBind(Native Method)    at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)    at java.net.ServerSocket.bind(ServerSocket.java:328)    at java.net.ServerSocket.<init>(ServerSocket.java:194)    at java.net.ServerSocket.<init>(ServerSocket.java:106)    at com.l2jserver.status.Status.<init>(Status.java:122)    at com.l2jserver.loginserver.L2LoginServer.<init>(L2LoginServer.java:191)    at com.l2jserver.loginserver.L2LoginServer.main(L2LoginServer.java:56)Aug 26, 2011 6:31:02 PM com.l2jserver.loginserver.L2LoginServer <init>SEVERE: FATAL: Failed to open server socket. Reason: Address already in usejava.net.BindException: Address already in use    at sun.nio.ch.Net.bind(Native Method)    at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:126)    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)    at org.mmocore.network.SelectorThread.openServerSocket(SelectorThread.java:110)    at com.l2jserver.loginserver.L2LoginServer.<init>(L2LoginServer.java:206)    at com.l2jserver.loginserver.L2LoginServer.main(L2LoginServer.java:56) 
User avatar
goncafa
Posts: 385
Joined: Thu Aug 05, 2010 2:10 pm
Location: Santiago, Chile

Re: linux debian problem.

Post by goncafa »

Try to find program id with ps -e command

Code: Select all

ps -e
then, kill LoginServer_loop, GameServer_loop and Communty if you are using it. You need kill procees java thata are inmediatly down to each proccess.

For example:
if you execute ps - e and you see some thing like this:

Code: Select all

1057 GameServer_loop1050 java
You need kill both proccess:

Code: Select all

kill 1057kill 1058
When you have killed, you can start server again.
Best Regards

PS: im sorry my bad english.
Image
cursing
Posts: 51
Joined: Wed Feb 24, 2010 1:09 pm

Re: linux debian problem.

Post by cursing »

thank you goncafa , most os errors gone

those left now :D

Code: Select all

nice: cannot set niceness: Permission deniedloading login configLoading mmo.propertiesMLog clients using java 1.4+ standard logging.Failed to get local InetAddress for VMID. This is unlikely to matter. At all. We'll add some extra randomnessjava.net.UnknownHostException: L2NewWorld: L2NewWorld    at java.net.InetAddress.getLocalHost(InetAddress.java:1354)    at com.mchange.v2.c3p0.impl.C3P0ImplUtils.generateVmId(C3P0ImplUtils.java:120)    at com.mchange.v2.c3p0.impl.C3P0ImplUtils.<clinit>(C3P0ImplUtils.java:98)    at com.mchange.v2.c3p0.impl.PoolBackedDataSourceBase.<init>(PoolBackedDataSourceBase.java:227)    at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.<init>(AbstractPoolBackedDataSource.java:62)    at com.mchange.v2.c3p0.ComboPooledDataSource.<init>(ComboPooledDataSource.java:109)    at com.mchange.v2.c3p0.ComboPooledDataSource.<init>(ComboPooledDataSource.java:105)    at com.l2jserver.L2DatabaseFactory.<init>(L2DatabaseFactory.java:57)    at com.l2jserver.L2DatabaseFactory.getInstance(L2DatabaseFactory.java:211)    at com.l2jserver.loginserver.L2LoginServer.<init>(L2LoginServer.java:109)    at com.l2jserver.loginserver.L2LoginServer.main(L2LoginServer.java:56)
and

Code: Select all

Loaded 2 IP Bans.Listening for GameServers on *:9014Telnet StatusServer started successfully, listening on Port: 12345Failed to start the Telnet Server. Reason: Address already in usejava.net.BindException: Address already in use    at java.net.PlainSocketImpl.socketBind(Native Method)    at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)    at java.net.ServerSocket.bind(ServerSocket.java:328)    at java.net.ServerSocket.<init>(ServerSocket.java:194)    at java.net.ServerSocket.<init>(ServerSocket.java:106)    at com.l2jserver.status.Status.<init>(Status.java:122)    at com.l2jserver.loginserver.L2LoginServer.<init>(L2LoginServer.java:191)    at com.l2jserver.loginserver.L2LoginServer.main(L2LoginServer.java:56) FATAL: Failed to open server socket. Reason: Address already in usejava.net.BindException: Address already in use    at sun.nio.ch.Net.bind(Native Method)    at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:126)    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)    at org.mmocore.network.SelectorThread.openServerSocket(SelectorThread.java:110)    at com.l2jserver.loginserver.L2LoginServer.<init>(L2LoginServer.java:206)    at com.l2jserver.loginserver.L2LoginServer.main(L2LoginServer.java:56)
server working now , i can see my servers and also i can join . but those errors still . and any idea how i can have my servers console on terminal? login and gameserver , do i have to install any program or use any command?
User avatar
goncafa
Posts: 385
Joined: Thu Aug 05, 2010 2:10 pm
Location: Santiago, Chile

Re: linux debian problem.

Post by goncafa »

You can install some GUI like GNOME or KDE...

May be you have installed one. Try to run:

Code: Select all

startX
if nothing happen, the you need install GNOME or KDE and try again.

When you are in GUI you can run your server on separated terminal window.

But is better you work without GUI, becouse this consume a lot of memory.

Always yoy want view console can tail the log files.
Best Regards

PS: im sorry my bad english.
Image
cursing
Posts: 51
Joined: Wed Feb 24, 2010 1:09 pm

Re: linux debian problem.

Post by cursing »

i still have this problem ><

Code: Select all

nice: cannot set niceness: Permission deniedloading login configLoading mmo.propertiesMLog clients using java 1.4+ standard logging.Failed to get local InetAddress for VMID. This is unlikely to matter. At all. We'll add some extra randomnessjava.net.UnknownHostException: L2NewWorld: L2NewWorld    at java.net.InetAddress.getLocalHost(InetAddress.java:1354)    at com.mchange.v2.c3p0.impl.C3P0ImplUtils.generateVmId(C3P0ImplUtils.java:120)    at com.mchange.v2.c3p0.impl.C3P0ImplUtils.<clinit>(C3P0ImplUtils.java:98)    at com.mchange.v2.c3p0.impl.PoolBackedDataSourceBase.<init>(PoolBackedDataSourceBase.java:227)    at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.<init>(AbstractPoolBackedDataSource.java:62)    at com.mchange.v2.c3p0.ComboPooledDataSource.<init>(ComboPooledDataSource.java:109)    at com.mchange.v2.c3p0.ComboPooledDataSource.<init>(ComboPooledDataSource.java:105)    at com.l2jserver.L2DatabaseFactory.<init>(L2DatabaseFactory.java:57)    at com.l2jserver.L2DatabaseFactory.getInstance(L2DatabaseFactory.java:211)    at com.l2jserver.loginserver.L2LoginServer.<init>(L2LoginServer.java:109)    at com.l2jserver.loginserver.L2LoginServer.main(L2LoginServer.java:56)
any idea? :/
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: linux debian problem.

Post by MELERIX »

"Failed to get local InetAddress"

probably wrong IPs in configs
cursing
Posts: 51
Joined: Wed Feb 24, 2010 1:09 pm

Re: linux debian problem.

Post by cursing »

MELERIX wrote:"Failed to get local InetAddress"

probably wrong IPs in configs
server run normaly , i can join also .. so IP is ok and also i have post my configs :D

just i want to fix this error because my logs is full because of this ><
User avatar
goncafa
Posts: 385
Joined: Thu Aug 05, 2010 2:10 pm
Location: Santiago, Chile

Re: linux debian problem.

Post by goncafa »

Try ping to localhost:

Code: Select all

ping localhost
If you have error then you have config problem on your debian.
Best Regards

PS: im sorry my bad english.
Image
cursing
Posts: 51
Joined: Wed Feb 24, 2010 1:09 pm

Re: linux debian problem.

Post by cursing »

not , its okay . and the ping is fine :/ any other idea?

thank you for teh reply btw :)
Post Reply