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

Update Not Working #81

Closed
kjkazinski opened this issue Aug 13, 2012 · 7 comments
Closed

Update Not Working #81

kjkazinski opened this issue Aug 13, 2012 · 7 comments
Assignees
Labels

Comments

@kjkazinski
Copy link
Contributor

I received an error when running msm update

lminecraft@lx-web:~> sudo msm version
Minecraft Server Manager 0.8.3 Beta

minecraft@lx-web:~> msmsudo msm update
Checking for updates to version 0.8.3...wget: unrecognized option '--trust-server-names'
Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options.
sed: can't read /tmp/msmupdate/init/msm: No such file or directory
  is available.
Checking if any files need to be updated...wget: unrecognized option '--trust-server-names'
Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options.
wget: unrecognized option '--trust-server-names'
Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options.
/usr/local/bin/msm: line 2038: /tmp/msmupdate/versioning/versions.txt: No such file or directory
 No. We're all done.

I changed the msm script and removed the trust-server-option.

Then I received the following error

lminecraft@lx-web:~> sudo msm update
Checking for updates to version 0.8.3... 0.8.11 is available.
Checking if any files need to be updated... Done.
Updating will overwrite the following files:
  > The main MSM script:        /etc/init.d/msm
  > The bash completion script: /etc/bash_completion.d/msm
Updating will create the following files:
  > Version file:               /opt/msm/versioning/minecraft/1.3.0.sh
  > Version file:               /opt/msm/versioning/minecraft/1.2.0.sh
  > Version file:               /opt/msm/versioning/craftbukkit/1.2.0.sh
Do you want to continue [y/N]: y
Updating MSM to 0.8.11:
  > Updated: /etc/bash_completion.d/msm
  > Updated: /etc/init.d/msm
chown: invalid group: `minecraft:minecraft'
  > Created: /opt/msm/versioning/minecraft/1.3.0.sh
chown: invalid group: `minecraft:minecraft'
  > Created: /opt/msm/versioning/minecraft/1.2.0.sh
chown: invalid group: `minecraft:minecraft'
  > Created: /opt/msm/versioning/craftbukkit/1.2.0.sh
Done.
Checking for updates to version 0.8.11...rm: cannot remove directory `/tmp/msmupdate/bash_completion': Permission denied
rm: cannot remove directory `/tmp/msmupdate/versioning/minecraft': Permission denied
rm: cannot remove `/tmp/msmupdate/versioning/versions.txt': Permission denied
rm: cannot remove directory `/tmp/msmupdate/versioning/craftbukkit': Permission denied
rm: cannot remove directory `/tmp/msmupdate/init': Permission denied
/tmp/msmupdate/init/msm: Permission denied
sed: can't read /tmp/msmupdate/init/msm: No such file or directory
  is available.
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.

I made myself a superuser

x-web:/home/minecraft # msm version
Minecraft Server Manager 0.8.11 Beta
lx-web:/home/minecraft # msm update
Checking for updates to version 0.8.11...rm: cannot remove directory `/tmp/msmupdate/bash_completion': Permission denied
rm: cannot remove directory `/tmp/msmupdate/versioning/minecraft': Permission denied
rm: cannot remove `/tmp/msmupdate/versioning/versions.txt': Permission denied
rm: cannot remove directory `/tmp/msmupdate/versioning/craftbukkit': Permission denied
rm: cannot remove directory `/tmp/msmupdate/init': Permission denied
/tmp/msmupdate/init/msm: Permission denied
sed: can't read /tmp/msmupdate/init/msm: No such file or directory
  is available.
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.
@ghost ghost assigned marcuswhybrow Aug 13, 2012
@marcuswhybrow
Copy link

Try removing this directory yourself:

sudo rm /tmp/msmupdate

Maybe it received the wrong permissions at some point, and now cannot be deleted. It should be deleted automatically before and after each update.

@kjkazinski
Copy link
Contributor Author

There were a couple of directoryies bash_completion, init, versioning - this is why rm does not work it will not delete the directories.

--- On Mon, 8/13/12, Marcus Whybrow [email protected] wrote:

From: Marcus Whybrow [email protected]
Subject: Re: [minecraft-server-manager] Update Not Working (#81)
To: "marcuswhybrow/minecraft-server-manager" [email protected]
Cc: "kjkazinski" [email protected]
Date: Monday, August 13, 2012, 1:27 PM

Try removing this directory yourself:sudo rm /tmp/msmupdate

Maybe it received the wrong permissions at some point, and now cannot be deleted. It should be deleted automatically before and after each update.

Reply to this email directly or view it on GitHub.

@marcuswhybrow
Copy link

Ah sorry, in my last comment I meant to include the -r flag:

sudo rm -r /tmp/msmupdate

The reason MSM cannot delete that folder is because it does not have permission, not that there are directories inside of the target directory. Give that command a go and then try again.

@kjkazinski
Copy link
Contributor Author

I used the GUI to delete the folder so it is gone.

--- On Tue, 8/14/12, Marcus Whybrow [email protected] wrote:

From: Marcus Whybrow [email protected]
Subject: Re: [minecraft-server-manager] Update Not Working (#81)
To: "marcuswhybrow/minecraft-server-manager" [email protected]
Cc: "kjkazinski" [email protected]
Date: Tuesday, August 14, 2012, 6:07 AM

Ah sorry, in my last comment I meant to include the -r flag:sudo rm -r /tmp/msmupdate

The reason MSM cannot delete that folder is because it does not have permission, not that there are directories inside of the target directory. Give that command a go and then try again.

Reply to this email directly or view it on GitHub.

@marcuswhybrow
Copy link

And does update now work, or is it still broken?

@jvz
Copy link
Contributor

jvz commented Sep 1, 2012

Looks like an outdated version of wget, so this might be a dupe of #57.

@marcuswhybrow
Copy link

#57 is now fixed. But continue any relevant conversation there.

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

3 participants