Posts: 5
Threads: 1
Joined: Mar 2012
Thanks: 0
Given 0 thank(s) in 0 post(s)
03-12-2012, 10:02 AM
(This post was last modified: 03-12-2012, 10:13 AM by Rankotjuh.)
Hey I'm making a Minecraft Server for someone, and since I prefere Linux over anything else MCServer was the best choice on this point. I got onto the point where the server starts running but it keeps shutting down. I'll include the log.. by the way don't bother the time... I'm a night owl xD
I've already tried to run it without any plugins and emptied the Authentication part, tried to use another name and world, though those things didn help. Could it be a firewall issue maybe? >> opened the port on my firewall, so it's not a port issue.
The Log
{
[00:51:52] --- Started Log ---
[00:51:52] Error (2) opening world/player/
[00:51:52] Creating new server instance...
[00:51:52] cSocketThreads startup
[00:51:52] Starting server...
[00:51:52] Starting up server.
[00:51:52] bind fail (98: Address already in use)
[00:51:52] Failed to start server, shutting down.
}
Thanks in advance
Ranko
Posts: 92
Threads: 15
Joined: Feb 2011
Thanks: 1
Given 0 thank(s) in 0 post(s)
03-12-2012, 10:31 AM
(This post was last modified: 03-12-2012, 10:32 AM by distroyed123.)
(03-12-2012, 10:02 AM)Rankotjuh Wrote: Hey I'm making a Minecraft Server for someone, and since I prefere Linux over anything else MCServer was the best choice on this point. I got onto the point where the server starts running but it keeps shutting down. I'll include the log.. by the way don't bother the time... I'm a night owl xD
I've already tried to run it without any plugins and emptied the Authentication part, tried to use another name and world, though those things didn help. Could it be a firewall issue maybe? >> opened the port on my firewall, so it's not a port issue.
The Log
{
[00:51:52] --- Started Log ---
[00:51:52] Error (2) opening world/player/
[00:51:52] Creating new server instance...
[00:51:52] cSocketThreads startup
[00:51:52] Starting server...
[00:51:52] Starting up server.
[00:51:52] bind fail (98: Address already in use)
[00:51:52] Failed to start server, shutting down.
}
Thanks in advance
Ranko
delete the whole world folder(or take it out of the directory) retry and post log
Posts: 372
Threads: 29
Joined: Mar 2011
Thanks: 1
Given 21 thank(s) in 18 post(s)
You might look at the Address already in use.
You sure nobody on that ip is already running a server on the minecraft port .
Posts: 92
Threads: 15
Joined: Feb 2011
Thanks: 1
Given 0 thank(s) in 0 post(s)
(03-12-2012, 11:06 AM)ThuGie Wrote: You might look at the Address already in use.
You sure nobody on that ip is already running a server on the minecraft port .
that would be the next step =P
Posts: 1,450
Threads: 53
Joined: Feb 2011
Thanks: 15
Given 120 thank(s) in 91 post(s)
(03-12-2012, 11:42 AM)distroyed123 Wrote: (03-12-2012, 11:06 AM)ThuGie Wrote: You might look at the Address already in use.
You sure nobody on that ip is already running a server on the minecraft port .
that would be the next step =P
Should be the first step... It has nothing to do with the world
Posts: 5
Threads: 1
Joined: Mar 2012
Thanks: 0
Given 0 thank(s) in 0 post(s)
(03-12-2012, 10:47 PM)FakeTruth Wrote: (03-12-2012, 11:42 AM)distroyed123 Wrote: (03-12-2012, 11:06 AM)ThuGie Wrote: You might look at the Address already in use.
You sure nobody on that ip is already running a server on the minecraft port .
that would be the next step =P
Should be the first step... It has nothing to do with the world
Thanks for the tips guys Well let's say Im the only one in the house that is quite good with computers so I'm the only one that's having a server.. I ran some other mc servers in the past but I formatted my pc, so they should be dead & gone... you think I should just use the addressed port and this is fixed?
Posts: 6,485
Threads: 176
Joined: Jan 2012
Thanks: 131
Given 1074 thank(s) in 852 post(s)
If you are on windows, go into the commandline (Win+R, "cmd", enter) and run this command: "netstat -na" (without the quotes). It will show you all TCP and UDP ports used on your computer. MCServer uses TCP port 25565 by default, so if it is already taken, it can't use that port.
You can specify a different port in the settings.ini, then MCS will happily use whatever number port you give it, as long as it's free. You'll need to add that port number to the server name when connecting to it with a client, though (so instead of connecting to "myserver", you'll be connecting to "myserver:25564")
Posts: 5
Threads: 1
Joined: Mar 2012
Thanks: 0
Given 0 thank(s) in 0 post(s)
(03-13-2012, 06:00 PM)xoft Wrote: If you are on windows, go into the commandline (Win+R, "cmd", enter) and run this command: "netstat -na" (without the quotes). It will show you all TCP and UDP ports used on your computer. MCServer uses TCP port 25565 by default, so if it is already taken, it can't use that port.
You can specify a different port in the settings.ini, then MCS will happily use whatever number port you give it, as long as it's free. You'll need to add that port number to the server name when connecting to it with a client, though (so instead of connecting to "myserver", you'll be connecting to "myserver:25564")
Ok thanks for the info. I find it still kind of weird that the only MC server on my network can't go by the default port but maybe that's just me. I just checked my Windows 7 PC (on which I had some other MC servers and port 25565 is not in the netstat -na list.. I just checked the NAT mapping table of my Arcadyan Modemrouter combi and can say for sure that 25565 is not in there on neither of my IP's. So why it says the address is in use remains a riddle, but I'll try another port. Again many thanks for the hints & tips
Ranko
Posts: 1,450
Threads: 53
Joined: Feb 2011
Thanks: 15
Given 120 thank(s) in 91 post(s)
Does the official server work on that port?
Posts: 5
Threads: 1
Joined: Mar 2012
Thanks: 0
Given 0 thank(s) in 0 post(s)
03-14-2012, 08:58 AM
(This post was last modified: 03-14-2012, 10:20 AM by Rankotjuh.)
(03-14-2012, 08:42 AM)FakeTruth Wrote: Does the official server work on that port?
I ran the official server way back ago, and it ran without a hinch, only some crappy Java error but it was fixed with installing some Java developer software. Though my friends stopped playing minecraft, after that I formatted my PC so this is the only server, I can try the official if you would like me to though I don't think it's gonna work on Linux by itself... but I'll figure that out
Btw you might want to take a look on your "write to log" function, I have a Logs map containing 15 items with an amount of 113 GB... kinda huge for some text files don't you think? edit: I just checked, and it's one single log file, it seems to be the last one the server created and it's for 90% filled with the sentence: server console command: ".
Aditional Info: OS: Ubuntu Server 11.10 (x64)
downloaded version MC-server: mcserver_r300-ubuntu10.04-x64.tar.gz.
Which kinda brings me to the next question, I'm learning C++ to myself and I'm starting to understand it quite well. I found a read only link for the source code on your site but is there any chance I could get the source code on my local machine so I could read it with a code editor? It would really make things easier.
EDIT: [SOLVED] used port 22546, server bound to port and is running, thanks for all the help
|