crc-org / crc-extension

Red Hat OpenShift Local Extension for integration of OpenShift Local clusters with Podman Desktop
Apache License 2.0
17 stars 19 forks source link

[BUG]CRC Create New resource form shows empty page as a result if crc is never used before (~/.crc folder does not exist) #187

Open dgolovin opened 11 months ago

dgolovin commented 11 months ago

General information

CRC version

% crc version
CRC version: 2.28.0+e1f42d
OpenShift version: 4.13.14
Podman version: 4.4.4

CRC status

crc status
crc does not seem to be setup correctly, have you run 'crc setup'?

CRC config

Host Operating System

sw_vers 
ProductName:        macOS
ProductVersion:     14.0
BuildVersion:       23A344

Steps to reproduce

  1. Make sure ~/.crc does not exists
  2. Install CRC extension
  3. Start podman-desktop
  4. Go to Settings/Resources
  5. Open Task manager and search for crc (there should be one instance running)
  6. Press Create New for OpenShift Local
  7. Press 'Create'

Expected

Screenshot 2023-10-30 at 11 32 49 PM

Actual

image

Logs

main ↪️ [openshift-local] error while getting preset RequestError: connect ENOENT /Users/eskimo/.crc/crc-http.sock
    at ClientRequest.<anonymous> (/Users/eskimo/Sources/crc-extension/dist/extension.js:8749:101)
    at Object.onceWrapper (node:events:629:26)
    at ClientRequest.emit (node:events:526:35)
    at Socket.socketErrorListener (node:_http_client:501:9)
    at Socket.emit (node:events:514:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)