Closed odockal closed 1 year ago
I was able to reproduce this, for some reason when podman desktop is started and openshift local extension is started and it run crc setup
, the powershell script created for the daemon at ~\.crc\bin\hidden_daemon.ps1
which contains the path to the crc executable, the path starts with the drive letter c:\
lower case
and i observed that when crc setup
is directly run the drive letter in the script is uppercase
this causes crc setup
to think the script is not present since its content is not matching because of the different case drive letter at the start of the path to crc executable
@odockal can you please verify this on your side as well, thanks!
@anjannath Hi there, when I look at ~\.crc\bin\hidden_daemon.ps1
there truly is (at the end of the script), c:\Program Files\...
- c
in lowercase.
And crc setup
fixes this. So there is a discrepance between crc setup
called from cli and from crc-extension.
thanks for figuring this out!
Finally, i solved this issue by installing to a different drive like D drive. And issue was solved like a charm.
@anjannath Seems like here is the problem: https://github.com/crc-org/crc/blob/45831b0e1410205465e33f477dd1fc4c5c724582/pkg/crc/preflight/preflight_daemon_task_check_windows.go#L220
Matching for the exact content simply do not take into account that even a path with lower case c
works.
@anjannath Seems like here is the problem: https://github.com/crc-org/crc/blob/45831b0e1410205465e33f477dd1fc4c5c724582/pkg/crc/preflight/preflight_daemon_task_check_windows.go#L220
Matching for the exact content simply do not take into account that even a path with lower case
c
works.
yeah, this matches the byte representation of the content, so even a different case will not match, i am not sure if we should relax this. I'd prefer to add a step in between to normalize the path to the executable so that its always uppercase
General information
Error: Powershell script for running the daemon does not exist when initializing and starting OpenShift local resource in podman desktop
If I check the extension under Settings -> Extensions, I see the activation failed:
crc setup
before starting it (Yes/No)? YesCRC version
CRC status
CRC config
Host Operating System
Steps to reproduce
Expected
OS local is starting, and eventually started
Actual
Error dialog appears: Error: Powershell script for running the daemon does not exist, See above picture.
Logs
Before gather the logs try following if that fix your issue
Please consider posting the output of
crc start --log-level debug
on http://gist.github.com/ and post the link in the issue.