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

jargroup_getlatest() fails #116

Closed
lukehasnoname opened this issue Nov 28, 2012 · 10 comments
Closed

jargroup_getlatest() fails #116

lukehasnoname opened this issue Nov 28, 2012 · 10 comments
Labels

Comments

@lukehasnoname
Copy link

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.)

@davidwinter
Copy link

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:

sudo msm jargroup create minecraft https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft_server.jar
Creating jar group... Failed.
No directory, logging in with HOME=/

Running jargroup list:

sudo msm jargroup list
minecraft

Creating server:

sudo msm server create test
Creating server directory... No directory, logging in with HOME=/
No directory, logging in with HOME=/
No directory, logging in with HOME=/
No directory, logging in with HOME=/
No directory, logging in with HOME=/
No directory, logging in with HOME=/
No directory, logging in with HOME=/
Done.

Adding jargroup to server:

sudo msm test jar minecraft
Downloading latest version... No directory, logging in with HOME=/
Done.
Error. URL downloads multiple files.
No directory, logging in with HOME=/

I'm playing around with MSM using Vagrant, on the standard Ubuntu precise64 box.

@Fooks
Copy link

Fooks commented Dec 7, 2012

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)

Creating jar group... Failed.
No directory, logging in with HOME=/

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:

sudo msm jar minecraft

This is where I encountered the exact same error as davidwinter yet again!

Downloading latest version..... no directory, logging in with HOME=/
Error. URL downloads multiple files.
No directory, logging in with HOME=/

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.

@Sammy1Am
Copy link

Sammy1Am commented Dec 8, 2012

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:
if [[ "$num_files" == "$num_files" ]]; then
which will, of course, always return true.

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?

@dougmorin
Copy link

I am having this same issue

@NeilBetham
Copy link

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.

@thonixx
Copy link

thonixx commented Dec 30, 2012

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.
I will try to set a home directory for my user.

@bitscribble
Copy link

The solution for me was:

sudo mkdir /home/minecraft
chown -R minecraft:minecraft /home/minecraft/
sudo usermod -d /home/minecraft minecraft

Now server jar was downloaded without an error...

@trevor-hackett
Copy link

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

@pgurjao
Copy link

pgurjao commented May 3, 2013

Same as yarrgh said.
I used the 3 commands bitscrebble mentioned and now jar files updates like it should and I get no more "No directory, logging in with HOME=/" errors too.
Thanks!

@renderorange
Copy link
Contributor

this bug is no longer present, closing to clean up old issue.

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

No branches or pull requests