Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

Can't remove already-existing dir when updating #19

Open
zyndagj opened this issue Jan 7, 2019 · 0 comments
Open

Can't remove already-existing dir when updating #19

zyndagj opened this issue Jan 7, 2019 · 0 comments

Comments

@zyndagj
Copy link
Contributor

zyndagj commented Jan 7, 2019

Just tried to update from 1.2.0 to 1.2.1 and received the following error/warning from tar

wireless-10-146-76-73:~ gzynda$ sd2e info --upgrade
sd2e-cloud-cli/bin/templates/cyverse: Can't remove already-existing dir
tar: Error exit delayed from previous errors.
Done.

It looks like it did install, but I have no idea if any files were left out before tar exited.

wireless-10-146-76-73:~ gzynda$ sd2e info

DARPA SD2E version: 1.2.1
TACC Cloud API tenant: sd2e.org
TACC Cloud API versions:
	Science APIs: 2.3.0
	Reactors API: dev
	TACC Accounting API: v1

I would move on, but running upgrade again produces the same error message even though the cli should be upgraded.

wireless-10-146-76-73:~ gzynda$ sd2e info --upgrade
sd2e-cloud-cli/bin/templates/cyverse: Can't remove already-existing dir
tar: Error exit delayed from previous errors.
Done.

Manually deleting that directory did solve the problem, but we may want to automatically handle issues likes this.

wireless-10-146-76-73:~ gzynda$ rm -rf sd2e-cloud-cli/bin/templates/cyverse/
wireless-10-146-76-73:~ gzynda$ sd2e info --upgrade
Done.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant