HELP: L2JServer on Ubuntu 14.04 LTS

AngelOfDeath

Member
Joined
Nov 13, 2010
Messages
11
Reaction score
0
hi i need a bit of help im trying to configure a gaming server on a dedicated machine that runs Ubuntu and i don't know nothing about linux and i cant seem to find it so if someone has the time and willing to help me i will really appreciate
 
More details, please. Which gaming server? What is and isn't working? What error messages do you see?
 
Can you post a link to the documentation or the installation guide you are following?
 
Loading LoginController...
[04/06 06:15:00] Cached 10 KeyPairs for RSA communication
[04/06 06:15:00] Stored 20 keys for Blowfish communication
[04/06 06:15:00] GameServerTable: Loaded 127 server names
[04/06 06:15:00] GameServerTable: Loaded 1 registered Game Servers
[04/06 06:15:00] GameServerTable: Cached 10 RSA keys for Game Server communicati on.
[04/06 06:15:00] Loaded 2 IP Bans.
[04/06 06:15:00] Scheduled LS restart after 24 hours
[04/06 06:15:00] FATAL: Failed to start the Game Server Listener. Reason: Cannot assign requested address
java.net.BindException: Cannot assign requested address
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:38 2)
at java.net.ServerSocket.bind(ServerSocket.java:375)
at java.net.ServerSocket.<init>(ServerSocket.java:237)
at com.l2jserver.loginserver.FloodProtectedListener.<init>(FloodProtecte dListener.java:54)
at com.l2jserver.loginserver.GameServerListener.<init>(GameServerListene r.java:38)
at com.l2jserver.loginserver.L2LoginServer.<init>(L2LoginServer.java:161 )
at com.l2jserver.loginserver.L2LoginServer.main(L2LoginServer.java:63)
 
[04/06 06:15:00] FATAL: Failed to start the Game Server Listener. Reason: Cannot assign requested address
java.net.BindException: Cannot assign requested address
What IP address and port have you configured the server to listen on?
 
ive fixed that problem but i still cannot connect

In the config file there is a section where it says not to change ip addresses if you are unsure what to do. Ip addresses are in ip config.xml.

Did you change anything there?
 
Hey AngelofDeath! Good on you for going into battle with Linux.

One thing I should just point out is that the amount of help any of us can give you is entirely dependent on how much information you can give us.

Based on your previous error, it appears that the server was trying to bind to an IP/port that is already in use on your server. This could well be because you already had an instance of L2J running when you tried to run it again. Or it could just be an issue with the IP/port you configured it to use.

Another thing to point out: If you've configured the IP in your config.xml file to be "127.0.0.1", you're *not* going to be able to connect to it. This is because that IP configuration defines which IP range can connect to the server. 127.0.0.1 is "localhost", which means that ONLY your ubuntu server will be able to connect to it. For the sake of simplicity, you should probably set the IP to "0.0.0.0", which means that any host with any IP address will be able to connect to it. This is generally something you want for a game server.

So, let's see if we can get some insight into your server environment. Would you be so kind as to run the following commands on your server, and then paste the output here?

First, we need to know what processes are currently listening (on the network) on your server:
sudo netstat -npvat | grep -i listen

Next, we need to see exactly how you've configured your config.xml file:
cat config.xml

Note that there are two scripts you need to start in order to access your server:
startLoginServer.sh and startGameServer.sh - make sure you start them both, in the order listed.

I'd also like to see what has failed in your previous attempted runs, so if you could paste the output of stdout.log here, that would be awesome.

Finally, let's start the server. We're going to put Bash (linux commandline shell) into debug mode, so we can see exactly what the scripts are trying to do, and hopefully figure out where they're failing:
bash -x startLoginServer.sh
bash -x startGameServer.sh

Please post the output of the above here as well - it may be lengthy, so you probably want to use a service like pastebin.com, so you can link your outputs to us in a forum comment.
 
thanks to all of you for your help but i finally found it was a small line i dint see when i configured the ip adresses it's working perfectly thank you again for your help
 
does any of u guys know how to change from ubuntu to windows server in a dedicated machine?
 
Please take the effort to explain what you changed to make it work IN DETAIL, so if someone finds this thread from Google in future, they can see your resolution.
 
installed navicat to my pc and then onwards i reinstalled the db's and made all the changes on my windows pc and then upload it to the dedicated server and then run dos2unix on gameserver_loop.sh and loginserver_loop.sh and all worked perfectly fine
 
This is why I stopped helping idiots online.

They want all the help NOW then ignore all of the device then simply say it's fixed and bugger off...

Waste of everyone's time.
 
This is why I stopped helping idiots online.

They want all the help NOW then ignore all of the device then simply say it's fixed and bugger off...

Waste of everyone's time.


Clearly you decided to post your rant before you even read the post above yours......

as for your use of the word idiot, takes one to know one
 
The biggest issue I've found with people asking for help online is that they don't provide enough information in their initial post. So the entire support process is slowed by asking multiple times for information that better explains the issue.

Pro-tip for anyone asking for assistance on the Internet:

The speed with which someone is able to assist you is based entirely on how much information you provide about the issue you're having.
 
Top
Sign up to the MyBroadband newsletter
X