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

tt clean always fails with multiple rm attempts #817

Closed
DifferentialOrange opened this issue Apr 5, 2024 · 1 comment
Closed

tt clean always fails with multiple rm attempts #817

DifferentialOrange opened this issue Apr 5, 2024 · 1 comment

Comments

@DifferentialOrange
Copy link
Member

Tarantool CLI version 2.1.2, linux/amd64. commit: 35e8be4

Each time I try to clean my application with tt clean, it lists each file thrice and fails after trying to remove the file for the second time.

Application

moiseevgeorgy@moiseevgeorgy-Latitude-5420:~/Development/sandbox$ tt create vshard_cluster --name=mynewapp2
   • Creating application in "/home/moiseevgeorgy/Development/sandbox/mynewapp2"
   • Using built-in 'vshard_cluster' template.
Bucket count (default: 3000): 
Storage replication sets count (default: 2): 
Storage replicas per replication set count (>=2) (default: 2): 
Routers count (default: 1): 
   • Application 'mynewapp2' created successfully
What's next?
Build and start 'mynewapp2' application:
    $ tt build mynewapp2
    $ tt start mynewapp2

Pay attention that default passwords were generated,
you can change it in the config.yaml.
moiseevgeorgy@moiseevgeorgy-Latitude-5420:~/Development/sandbox$ tt build mynewapp2
   • Running rocks make       
No existing manifest. Attempting to rebuild...
   • Application was successfully built
moiseevgeorgy@moiseevgeorgy-Latitude-5420:~/Development/sandbox$ tt start mynewapp2
   • Starting an instance [mynewapp2:storage-001-a]...
   • Starting an instance [mynewapp2:storage-001-b]...
   • Starting an instance [mynewapp2:storage-002-a]...
   • Starting an instance [mynewapp2:storage-002-b]...
   • Starting an instance [mynewapp2:router-001-a]...
moiseevgeorgy@moiseevgeorgy-Latitude-5420:~/Development/sandbox$ tt status mynewapp2 
INSTANCE                    STATUS      PID
mynewapp2:storage-001-a     RUNNING     51954
mynewapp2:storage-001-b     RUNNING     51955
mynewapp2:storage-002-a     RUNNING     51956
mynewapp2:storage-002-b     RUNNING     51957
mynewapp2:router-001-a      RUNNING     51958
moiseevgeorgy@moiseevgeorgy-Latitude-5420:~/Development/sandbox$ tt stop mynewapp2
   • The Instance mynewapp2:storage-001-b (PID = 51955) has been terminated.
   • The Instance mynewapp2:storage-002-a (PID = 51956) has been terminated.
   • The Instance mynewapp2:storage-002-b (PID = 51957) has been terminated.
   • The Instance mynewapp2:router-001-a (PID = 51958) has been terminated.
   • The Instance mynewapp2:storage-001-a (PID = 51954) has been terminated.

Cleaning

moiseevgeorgy@moiseevgeorgy-Latitude-5420:~/Development/sandbox$ tt clean mynewapp2 
   • List of files to delete:

   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/log/router-001-a/tt.log
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/router-001-a/00000000000000000000.snap
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/router-001-a/00000000000000000000.xlog
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/router-001-a/00000000000000000019.xlog
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/router-001-a/00000000000000000000.snap
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/router-001-a/00000000000000000000.xlog
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/router-001-a/00000000000000000019.xlog
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/router-001-a/00000000000000000000.snap
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/router-001-a/00000000000000000000.xlog
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/router-001-a/00000000000000000019.xlog

Confirm [y/n]: y
   • router-001-a: cleaning...	[ERR] remove /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/router-001-a/00000000000000000000.snap: no such file or directory
   • List of files to delete:

   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/log/storage-001-a/tt.log
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-001-a/00000000000000000000.snap
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-001-a/00000000000000000000.xlog
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-001-a/00000000000000003062.xlog
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-001-a/00000000000000000000.snap
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-001-a/00000000000000000000.xlog
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-001-a/00000000000000003062.xlog
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-001-a/00000000000000000000.snap
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-001-a/00000000000000000000.xlog
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-001-a/00000000000000003062.xlog

Confirm [y/n]: y
   • storage-001-a: cleaning...	[ERR] remove /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-001-a/00000000000000000000.snap: no such file or directory
   • List of files to delete:

   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/log/storage-001-b/tt.log
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-001-b/00000000000000000062.snap
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-001-b/00000000000000000062.xlog
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-001-b/00000000000000003062.xlog
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-001-b/00000000000000000062.snap
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-001-b/00000000000000000062.xlog
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-001-b/00000000000000003062.xlog
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-001-b/00000000000000000062.snap
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-001-b/00000000000000000062.xlog
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-001-b/00000000000000003062.xlog

Confirm [y/n]: y
   • storage-001-b: cleaning...	[ERR] remove /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-001-b/00000000000000000062.snap: no such file or directory
   • List of files to delete:

   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/log/storage-002-a/tt.log
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-002-a/00000000000000000000.snap
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-002-a/00000000000000000000.xlog
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-002-a/00000000000000003062.xlog
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-002-a/00000000000000000000.snap
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-002-a/00000000000000000000.xlog
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-002-a/00000000000000003062.xlog
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-002-a/00000000000000000000.snap
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-002-a/00000000000000000000.xlog
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-002-a/00000000000000003062.xlog

Confirm [y/n]: y
   • storage-002-a: cleaning...	[ERR] remove /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-002-a/00000000000000000000.snap: no such file or directory
   • List of files to delete:

   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/log/storage-002-b/tt.log
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-002-b/00000000000000003062.snap
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-002-b/00000000000000003062.xlog
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-002-b/00000000000000003062.snap
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-002-b/00000000000000003062.xlog
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-002-b/00000000000000003062.snap
   • /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-002-b/00000000000000003062.xlog

Confirm [y/n]: y
   • storage-002-b: cleaning...	[ERR] remove /home/moiseevgeorgy/Development/sandbox/instances.enabled/mynewapp2/var/lib/storage-002-b/00000000000000003062.snap: no such file or directory
@DifferentialOrange
Copy link
Member Author

Duplicate of #735

@DifferentialOrange DifferentialOrange marked this as a duplicate of #735 Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant