crc-org / crc

CRC is a tool to help you run containers. It manages a local OpenShift 4.x cluster, Microshift or a Podman VM optimized for testing and development purposes
https://crc.dev
Apache License 2.0
1.25k stars 237 forks source link

[BUG] When .crc/machines is invalid the tray (and CLI) do not provide a way out #2508

Open gbraad opened 3 years ago

gbraad commented 3 years ago

Actions from the tray should always provide a way out for commands like delete, stop. For example when the .crc/machines/crc/ is invalid, like a file got removed or the VM files aren't in place, the command delete can not perform the steps necessary to resolve this:

ERRO Cannot load machine: open C:\Users\gbraad\.crc\machines\crc\config.json: The system cannot find the file specified.
\\.\pipe\crc-http - - [01/Jul/2021:00:54:39 +0800] "GET /api/status HTTP/1.0" 500 115
ERRO Cannot load machine: open C:\Users\gbraad\.crc\machines\crc\config.json: The system cannot find the file specified.
\\.\pipe\crc-http - - [01/Jul/2021:00:54:41 +0800] "GET /api/delete HTTP/1.0" 500 115

A force should be in place to clear out the ~/.crc/machines/crc folder and start 'afresh'.

Note: currently, also the CLI does not offer this.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.