Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server doesn't start after 'msm <servername> start' command; server.log empty! #98

Open
Alcar32 opened this issue Sep 30, 2012 · 37 comments
Assignees

Comments

@Alcar32
Copy link

Alcar32 commented Sep 30, 2012

If i run the command msm pvp start, I get the output:

Maintaining world symbolic links... Done.
Synchronising flagged worlds on disk to RAM... Done.
Starting server... Done.

But the server isn't running, then command msm pvp status gives:

Server "pvp" is stopped.

and server.log of the pvp server is still empty!

Why does msm create the output Done even though the server is still stopped???

Why am I not getting the appropriate error message???

@Tsubashi
Copy link

While I am not sure about the why, I noticed the same thing happening when I tried to start it from any account other than the one I first used to start the server. In my case, I had set up a dedicated account for minecraft. While it is annoying to have to log in as the minecraft user in order to interact with the server, I do it so infrequently that I never bothered to look for a fix.

@Alcar32
Copy link
Author

Alcar32 commented Oct 31, 2012

After a complete restart of my root server, it's works propertly and the server really starts after a 'msm pvp start' command

@ghost ghost assigned marcuswhybrow Nov 3, 2012
@marcuswhybrow
Copy link

Something made the invocation of the server fail completely. When that happens nothing gets written to the log file. MSM watches the log file for the Done. entry which signifies the server is now open to connections before it prints Done. to the terminal.

If that doesn't happen within 30 seconds it times out and prints Done. anyway. This is probably confusing.

I am guessing that restarting the server fixed the issue that prevented invocation, maybe it was the java version installed.

@joecabezas
Copy link

It will be really helpfull to show something like Timeout, server does not returned Done in log file or something like that, intead just showing up Done.

@marcuswhybrow
Copy link

I agree. It seems like a more sensible option.

@orkun1675
Copy link

I have the same issue, and restart doesn't work. Tried all I can think of.
Java is installed (java -version)
I run "msm servername start" with my assigned user
I can start the server with sh start.sh, the script is from bukkit
If I change default_invocation to the one in the start.sh, nothing changes
But when I start with MSM it says Done, but the Server doesnt startup and the log file is empty!

Please help asap,
thanks

@kjkazinski
Copy link
Contributor

Make sure you have a jar file assigned. Then go into the msm.conf file and verify all the {xxx} tags have values. I found when I used the installer it did not update my msm.conf.

Sent from my iPhone

On Dec 23, 2012, at 12:46, orkun1675 [email protected] wrote:

I have the same issue, and restart doesn't work. Tried all I can think of.
Java is installed (java -version)
I can start the server with sh start.sh, the script is from bukkit
But when I start with MSM it says Done, but the Server doesnt startup and the log file is empty!

Please help asap,
thanks


Reply to this email directly or view it on GitHub.

@marcuswhybrow
Copy link

Also be sure that the "server user" has permission to read the jar file and write to the log file.

@orkun1675
Copy link

Wow, thanks for the fast response.
Server user has full permissions over both files and the whole directory of /opt/msm
I assigned a jar file with jargroup and made it donwload the jar, but it did change anything
I could not find t XXX tags you mentioned, but I edited all the options in the confg according to my setup

And when I try this script: http://www.minecraftwiki.net/wiki/Tutorials/Server_startup_script it has the same problem.

Here is my conf: http://pastebin.com/tHBNana7

Any other suggestions please??

@kjkazinski
Copy link
Contributor

There are 2 items that need to be updated:
 
DEFAULT_INVOCATION="java -Xms{RAM}M -Xmx{RAM}M -jar {JAR} -o false"
 
{RAM} should be 1024 for 1M or 2048 for 2M.
 
{JAR} should be server.jar.  There should be a link in your jar folder to the craftbukkit.jar file.
 
 
These are the 2 {xxx} items.

--- On Sun, 12/23/12, orkun1675 [email protected] wrote:

From: orkun1675 [email protected]
Subject: Re: [minecraft-server-manager] Server doesn't start after 'msm start' command; server.log empty! (#98)
To: "marcuswhybrow/minecraft-server-manager" [email protected]
Cc: "kjkazinski" [email protected]
Date: Sunday, December 23, 2012, 1:16 PM

Server user has full permissions over both files and the whole directory of /opt/msm
I assigned a jar file with jargroup and made it donwload the jar, but it did change anything
I could not find t XXX tags you mentioned, but I edited all the options in the confg according to my setup
Here is my conf: http://pastebin.com/tHBNana7

Reply to this email directly or view it on GitHub.

@orkun1675
Copy link

Changed as you said, but doesn't work.

Omg my server is down, people keep spamming and I dont know what I'm doing wrong!

@kjkazinski
Copy link
Contributor

Are you running windows or Linux?  Do you have a link to your jar file in your server directory?
 
Can you start the server from the command line?

--- On Sun, 12/23/12, orkun1675 [email protected] wrote:

From: orkun1675 [email protected]
Subject: Re: [minecraft-server-manager] Server doesn't start after 'msm start' command; server.log empty! (#98)
To: "marcuswhybrow/minecraft-server-manager" [email protected]
Cc: "kjkazinski" [email protected]
Date: Sunday, December 23, 2012, 2:21 PM

Changed as you said, but doesn't work.
Omg my server is down, people keep spamming and I dont know what I'm doing wrong!

Reply to this email directly or view it on GitHub.

@marcuswhybrow
Copy link

If you want to get your server running quickly you can without MSM like this:

cd /opt/msm/servers/<servername>/
java -Xms1024M -Xmx1024M -jar /opt/msm/servers/<servername>/server.jar

@kjkazinski There is no need to replace the {RAM} and {JAR} in the invocation, in fact it's a bad idea. See the comments in the conf file for more information. You can configure your RAM on a per server basis by adding msm-ram=1024 to server.properties.

@orkun1675
Copy link

I am running Centos 6.3, I do have the link. I can run the server with a sh command.

But can't run it wirth msm. I can't even run it with minecraftwiki script.

I am trying to change servers at the moment, normally these scripts were working on the previous server but now something is wrong.

Maybe I am doing something wrong while creating the user, or perms?

But why is the sh working then, with the same user...

@kjkazinski
Copy link
Contributor

Marcus,
 
I could not get my server running until I changed these values in the msm.config.
 
Did I miss those items in the server property file?

--- On Sun, 12/23/12, Marcus Whybrow [email protected] wrote:

From: Marcus Whybrow [email protected]
Subject: Re: [minecraft-server-manager] Server doesn't start after 'msm start' command; server.log empty! (#98)
To: "marcuswhybrow/minecraft-server-manager" [email protected]
Cc: "kjkazinski" [email protected]
Date: Sunday, December 23, 2012, 2:27 PM

If you want to get your server running quickly you can without MSM like this:cd /opt/msm/servers//
java -Xms1024M -Xmx1024M -jar /opt/msm/servers//server.jar

@kjkazinski There is no need to replace the {RAM} and {JAR} in the invocation, in fact it's a bad idea. See the comments in the conf file for more information. You can configure your RAM on a per server basis by adding msm-ram=1024 to server.properties.

Reply to this email directly or view it on GitHub.

@marcuswhybrow
Copy link

Could you paste the output of msm config and msm <servername> config. That will tell me what MSM thinks is going on.

@kjkazinski MSM combines the msm-ram value with the msm-invocation value to create a complete command to start the server. You can use msm <servername> config to check that MSM is picking up your set values (look for the msm-invocation="..." line.)

@orkun1675
Copy link

Well thank you marcus. Could you tell me how to uninstall msm. So that I can reinstall it, sticking to the default options.

This is how I install your script:
wget -q http://git.io/lu0ULA -O /tmp/msm && bash /tmp/msm
/opt/msm
minecraft
y
(it gives some perm erors with /etc/msmupdate)
chown -R minecraft:minecraft /tmp/
msm update
edit msm.conf >> change ram to 7168, and server name to nomercy
copy my server files into /opt/msm/servers/nomercy
but worlds into worldstorage
rename jar to server.jar
chown -R minecraft:minecraft /opt/msm
msm nomercy start

Anything missing?

@orkun1675
Copy link

msm config: http://pastebin.com/xayHm5hn
msm nomercy config: http://pastebin.com/f1M58t1c

@marcuswhybrow
Copy link

Try the following changes:

  1. Change this in /etc/msm.conf

    DEFAULT_SCREEN_NAME="msm-nomercy"
    

    to this:

    DEFAULT_SCREEN_NAME="msm-{SERVER_NAME}"
    

    The {SERVER_NAME} is a tag that gets replaced automatically by MSM for each server. Hard coding a name is a bad idea since MSM will then use the same name for tracking every server.

  2. Change this in /etc/msm.conf:

    DEFAULT_INVOCATION="java -Xms7168M -Xmx7168M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing -XX:+AggressiveOpts -jar server.jar nogui"
    

    to this:

    DEFAULT_INVOCATION="java -Xms{RAM}M -Xmx{RAM}M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing -XX:+AggressiveOpts -jar {JAR} nogui"
    

    Leave in the {RAM} and {JAR} flags so that MSM can replace them for you. Also the {JAR} tag is replaced by an absolute path. This is important for making this invocation line unique so that MSM can find it again later for stopping the server.

  3. Set you RAM value in /opt/msm/servers/nomercy/server.properties by adding this line at the bottom:

    msm-ram=7168
    

Your current screen sessions may be messed up at this point so lets clean them up. Do screen -list. The desired output should have a "detached" screen session if the server is running. And list nothing if there is not server running (started by MSM.)

There is a screen on:
        3210.msm-nomercy    (20/12/12 11:45:54)    (Detached)
1 Socket in /var/run/screen/S-minecraft.

You may have some "dead" sessions, in which case I think it tells you how to clean them up. Let me know what output you have here, before I explain further.


If you still want to follow the uninstall and reinstall route, since MSM is just a bunch of scripts, these are the files that need removing.

  • /etc/init.d/msm
  • /etc/cron.d/msm
  • /etc/bash_completion.d/msm
  • /etc/msm.conf
  • /usr/local/bin/msm

You can also delete /opt/msm itself if you are sure you have saved all your important server data somewhere else.

@orkun1675
Copy link

I got these 2 error while reinstalling:

Checking for updates to version 0.8.15...rm: cannot remove `/tmp/msmupdate/init/msm': Permission denied
rm: cannot remove `/tmp/msmupdate/versioning/craftbukkit/1.2.0.sh': Permission denied
rm: cannot remove `/tmp/msmupdate/versioning/versions.txt': Permission denied
rm: cannot remove `/tmp/msmupdate/versioning/minecraft/1.3.0.sh': Permission denied
rm: cannot remove `/tmp/msmupdate/versioning/minecraft/1.2.0.sh': Permission denied
rm: cannot remove `/tmp/msmupdate/bash_completion/msm': Permission denied
/tmp/msmupdate/init/msm: Permission denied
 Already at latest version.
Checking if any files need to be updated.../tmp/msmupdate/bash_completion/msm: Permission denied
/tmp/msmupdate/versioning/versions.txt: Permission denied
/tmp/msmupdate/versioning/minecraft/1.2.0.sh: Permission denied
/tmp/msmupdate/versioning/minecraft/1.3.0.sh: Permission denied
/tmp/msmupdate/versioning/craftbukkit/1.2.0.sh: Permission denied
 Done.
Updating will create the following files:
  > The bash completion script: /etc/bash_completion.d/msm
  > Version file:               /opt/msm/versioning/craftbukkit/1.2.0.sh
  > Version file:               /opt/msm/versioning/minecraft/1.3.0.sh
  > Version file:               /opt/msm/versioning/minecraft/1.2.0.sh
Updating MSM to 0.8.15:
  > Created: /etc/bash_completion.d/msm
  > Created: /opt/msm/versioning/craftbukkit/1.2.0.sh
  > Created: /opt/msm/versioning/minecraft/1.3.0.sh
  > Created: /opt/msm/versioning/minecraft/1.2.0.sh
Done.
rm: cannot remove `/tmp/msmupdate/init/msm': Permission denied
rm: cannot remove `/tmp/msmupdate/versioning/craftbukkit': Permission denied
rm: cannot remove `/tmp/msmupdate/versioning/versions.txt': Permission denied
rm: cannot remove `/tmp/msmupdate/versioning/minecraft': Permission denied
rm: cannot remove `/tmp/msmupdate/bash_completion': Permission denied
Checking for updates to version 0.8.15...rm: cannot remove `/tmp/msmupdate/init/msm': Permission denied
rm: cannot remove `/tmp/msmupdate/versioning/craftbukkit': Permission denied
rm: cannot remove `/tmp/msmupdate/versioning/versions.txt': Permission denied
rm: cannot remove `/tmp/msmupdate/versioning/minecraft': Permission denied
rm: cannot remove `/tmp/msmupdate/bash_completion': Permission denied
/tmp/msmupdate/init/msm: Permission denied
 Already at latest version.
Checking if any files need to be updated.../tmp/msmupdate/bash_completion/msm: Permission denied
/tmp/msmupdate/versioning/versions.txt: Permission denied
/tmp/msmupdate/versioning/minecraft/1.2.0.sh: Permission denied
/tmp/msmupdate/versioning/minecraft/1.3.0.sh: Permission denied
/tmp/msmupdate/versioning/craftbukkit/1.2.0.sh: Permission denied
 No. We're all done.

And:

# msm server create nomercy
Creating server directory... su: user  does not exist
Done.

Are these important? I did chown -R minecraft:minecraft /tmp/msmupdate, msm update to fix the first one.
But don't know about the second one?

@orkun1675
Copy link

"su: user does not exist"
It should only give this error if I type su - otherusername
So I dont think its normal
Your script created the user minecraft, why is it giving this error?
Could you check the script

@kjkazinski
Copy link
Contributor

Did you use "sudo" and not "su"?

--- On Sun, 12/23/12, orkun1675 [email protected] wrote:

From: orkun1675 [email protected]
Subject: Re: [minecraft-server-manager] Server doesn't start after 'msm start' command; server.log empty! (#98)
To: "marcuswhybrow/minecraft-server-manager" [email protected]
Cc: "kjkazinski" [email protected]
Date: Sunday, December 23, 2012, 3:14 PM

"su: user does not exist"
It should only give this error if I type su - otherusername
So I dont think its normal
Your script created the user minecraft, why is it giving this error?
Could you check the script

Reply to this email directly or view it on GitHub.

@orkun1675
Copy link

Yep I used sudo to download and run the installer

@marcuswhybrow
Copy link

You can either execute that command as the minecraft user or as the root user. Try doing sudo msm server create nomercy.

@orkun1675
Copy link

sudo msm server create nomercy
sudo: msm: command not found

@marcuswhybrow
Copy link

I don't think the install worked correctly. Do it in two steps:

sudo wget -q http://git.io/lu0ULA -O /tmp/msm
sudo bash /tmp/msm

@orkun1675
Copy link

Reinstalled with those 2 commands, here is what I get:

sudo msm server create nomercy
sudo: msm: command not found

msm server create nomercy
Creating server directory... su: user does not exist
Done.

@marcuswhybrow
Copy link

Try instead sudo /etc/init.d/msm server create nomercy.

msm is a shortcut to /etc/init.d/msm. The shortcut should be created during the install process.

@orkun1675
Copy link

This last command fixed the error I was getting.

Trying know with the new server. I set the version in the server.properties to 1.4.5 and ram to 7168.
Moved the world to worldstorage.

msm nomercy start
Maintaining world symbolic links... Done.
Synchronising flagged worlds on disk to RAM... Done.
Starting server...You are not the owner of /var/run/screen/S-minecraft.
Done.

Now I get this. Solutions?

@orkun1675
Copy link

sudo chown minecraft /var/run/screen/S-minecraft

msm nomercy start

Maintaining world symbolic links... Done.
Synchronising flagged worlds on disk to RAM... Done.
Starting server... Done.

Came where we started :( No errors though now. Suggestions ? :))

As I mentioned the server doesn't start and the log is empty.

New config:
msm config: http://pastebin.com/hUexaR1T
msm nomercy config: http://pastebin.com/tTR6kXyd
folder directory screenshot: http://img428.yukle.tc/images/3601msm.jpg

@orkun1675
Copy link

Please help me :S No startup script works...
I can only start the game with this:
cd /opt/msm/servers//
java -Xms1024M -Xmx1024M -jar /opt/msm/servers//server.jar

Is there a problem wirth my system?
CentOS release 6.3 (Final)
I installed java from this link: http://www.oracle.com/technetwork/java/javase/downloads/jdk7u9-downloads-1859576.html
I also use mysql, so I installed it too with yum install mysql.
I installed your script and only changed the minecraft version.

Havent touched any system config other then that. Please help me...

@Drahakar
Copy link

I also have the same issue, the server won't start and nothing will be written to the log.

@sderickson
Copy link

Same here.

@Ognog
Copy link

Ognog commented Aug 28, 2014

I was getting this same problem. I noticed that while the server.log file was empty, there were archived server.log files in the logs directory. These indicated a problem with eula.txt. I had to change the value of eula to true within this file. After this the server started normally.

@Eneroth3
Copy link

I'm having similar issues. Trying to update my 9 year old server from version 1.8 to 1.5.2. I'm first trying to make a new server, test1_15, to test out mods and stuff before updating the existing server, fmc.

It seems I can't get MSM to automatically update the jars anymore, as I can't find direct download links, but I've placed spigot-1.15.2 in the right jargroup, given it the right group and owner, linked the new server to that specific jar and try to start the new server. "Done" is wrongly written to the terminal, but the sever doesn't start.

When changing the server to point to the older jar (1.8) the server starts, but the new jar refuses to work. I can still start my old server as 1.8, and don't really want to do anything that would break this until I've got the new server running.

My setup:
Ubuntu 12.10 (Yup, it's ancient. Due to broken URLs the normal updating doesn't work either, but I'm working on this in parallel)
java version "1.7.0_55"
Minecraft Server Manager 0.9.10 Beta (Just updated)

@Ciacconas
Copy link

I'm having similar issues. Trying to update my 9 year old server from version 1.8 to 1.5.2. I'm first trying to make a new server, test1_15, to test out mods and stuff before updating the existing server, fmc.

It seems I can't get MSM to automatically update the jars anymore, as I can't find direct download links, but I've placed spigot-1.15.2 in the right jargroup, given it the right group and owner, linked the new server to that specific jar and try to start the new server. "Done" is wrongly written to the terminal, but the sever doesn't start.

When changing the server to point to the older jar (1.8) the server starts, but the new jar refuses to work. I can still start my old server as 1.8, and don't really want to do anything that would break this until I've got the new server running.

My setup:
Ubuntu 12.10 (Yup, it's ancient. Due to broken URLs the normal updating doesn't work either, but I'm working on this in parallel)
java version "1.7.0_55"
Minecraft Server Manager 0.9.10 Beta (Just updated)

Hi I had the same issue just now, and i figured it out that you can edit the /etc/msm.conf and delete the '-XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing -XX:+AggressiveOpts ' part of the DEFAULT_INVOCATION. Those command seems to be outdated or something.

@corvy
Copy link

corvy commented Aug 24, 2020

Thanks for this @Ciacconas, had the exact same issue and solved by deleting like you suggest. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests