-
Notifications
You must be signed in to change notification settings - Fork 225
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
jargroup_getlatest() fails #116
Comments
I think this may be related to the issue that I'm having, so I won't bother creating a new issue. I'm having an issue creating a jargroup, and appears that MSM is having difficulty downloading the .jar:
Running jargroup list:
Creating server:
Adding jargroup to server:
I'm playing around with MSM using Vagrant, on the standard Ubuntu precise64 box. |
As I am new to MSMHQ, I hope that I am posting relevant information in the correct location since I am also encountering this issue on a newly imaged Ubuntu 12.04 LTS 64Bit install. MSM installs fine. I have created a new server via the "sudo msm server create " without any issues. ...then the errors came. Next I tried to create the 'minecraft' jargroup 'sudo msm jargroup create minecraft https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft_server.jar' but encounted the following error: (same as DavidWriter)
Then, not thinking due to lack of sleep, I attempted to assign the JAR (that error'd out) to the newly created server but trying to execute:
This is where I encountered the exact same error as davidwinter yet again!
The one thing I noticed was that I could see that a "Downloads" directory was temporarily created inside the /opt/msm/jars/minecraft directory, but once the command error'd out completely, the downloads directory vanished. I also tried "sudo chown minecraft /opt/msm" to see if it was a permissions issue, but no such luck. I did notice that the 'minecraft' ID via the user accounts in the system settings shows the 'minecraft' ID (Standard), but that account shows "Account disabled' in the pwd field, could this be the smoking gun? Thank you in advance. |
I believe the "No directory, logging in with HOME=/" lines are all just because the minecraft user doesn't have a home directory set. This is fine, as no one's going to be logging in as minecraft. I was able to get this to work like lukehasnoname did and just set the check on line 1048 to be: I, also, tried printing out the $num_files that it things is more than 1, but just get 1. Perhaps there's some string / integer comparison issues? |
I am having this same issue |
I have this same issue, I think. I did some testing and it seems to be that the output "No directory, logging in with HOME=/" is causing the issue because the text output is being picked up and used somewhere in the script accidentally. I created a home directory for the "minecraft" user and the error went away and jar group updated no problem. |
I also encountered the same problem and ran into the issue with "multiple files". I tried to verify the check and saw that the variable $num_files returned 1 but the check always fails even when "if" tested the variable for "1". I did not look deeper into this because I am too tired at the moment and I would mess things up I think. |
The solution for me was: sudo mkdir /home/minecraft Now server jar was downloaded without an error... |
I can confirm with bitscribble. After creating the home directory, it does in fact download the jar file like it is supposed to. Everything works great now |
Same as yarrgh said. |
this bug is no longer present, closing to clean up old issue. |
I get the error of "URL downloaded multiple files" even when I verify the $num_files value is returning 1. I don't know enough about bash or the script to try to fix it...
My workaround was to disable the num_files check completely. Things work just fine now.
I was using the official minecraft_server.jar link from the doc.
(PS feature: include error codes and make a doc for that.)
The text was updated successfully, but these errors were encountered: