vps icon indicating copy to clipboard operation
vps copied to clipboard

Updating sub1x nodes does not work

Open silvermind opened this issue 7 years ago • 1 comments

when trying to update a masternode using the command:

./install.sh -p sub1x -u

It does not to pull the latest code from their master branch, but instead reinstalls the old versions. The script debug log shows these entries:

> error: The following untracked working tree files would be overwritten by merge:
> 	Makefile
> 	Makefile.in
> 	aclocal.m4
> 	config.log
> 	config.status
> 	configure
> 	libtool
> Please move or remove them before you can merge.
> Aborting
> Updating bda3ba0..881154d
> Already on 'master'
> M	autogen.sh
> M	share/genbuild.sh
> Your branch is behind 'origin/master' by 6 commits, and can be fast-forwarded.
>   (use "git pull" to update your local branch)

Looks like there are changed files in the git, which prevents a new pull.

After removing/renaming the Folder vps/code/sub1x it works.

Would it make sense to use a git reset --hard HEAD, before the git pull on update? https://github.com/masternodes/vps/blob/master/install.sh#L521

silvermind avatar Jan 18 '18 11:01 silvermind

Hmm, very weird. I will look into it!

marsmensch avatar Jan 19 '18 14:01 marsmensch