Unable to clean instance after machine restart
Open
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 113
- Forks
- 18
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 23
Description
My machine was restarted while running a tt application. As expected, after restart I've got
tt status
INSTANCE STATUS PID MODE CONFIG BOX UPSTREAM
single-instance:app ERROR. The process is dead
But in case I've trying to clean the app, I get an error.
tt clean single-instance
• instance `app` must be stopped
And in case I try to "stop" it beforehand, I get an error as well.
tt stop single-instance -y
• can't get pid of running process: failed to check if the process 378540 is running: no such process
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the tt status, tt stop, and tt clean command entry points and reproduce the sequence after a machine restart. Trace how the dead process and its PID are handled, then verify that a dead instance can be cleaned without requiring the nonexistent process to be stopped.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100