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.26k stars 242 forks source link

[BUG] [sudo, tr] command not found #4455

Closed kaovilai closed 4 days ago

kaovilai commented 1 week ago

General information

CRC version

CRC version: 2.42.0+6689ec

CRC status

# Put `crc status --log-level debug` output here

CRC config

❯ crc config view
- consent-telemetry                     : no
- cpus                                  : 8
- disk-size                             : 50
- pull-secret-file                      : /Users/tiger/pull-secret.txt

Host Operating System

❯ sw_vers                     
ProductName:        macOS
ProductVersion:     14.7.1
BuildVersion:       23H222

Steps to reproduce

  1. crc start --log-level debug

Expected

Actual

Logs

Before gather the logs try following if that fix your issue

$ crc delete -f
$ crc cleanup
$ crc setup
$ crc start --log-level debug

Please consider posting the output of crc start --log-level debug on http://gist.github.com/ and post the link in the issue. https://gist.github.com/kaovilai/f226386e2f1087067043a5455367a2f8

Failed to update pull secret on the disk: Temporary error: pull secret not updated to disk (x12)
failed to read /var/lib/kubelet/config.json file: ssh command error:
command : sudo cat /var/lib/kubelet/config.json
err     : Process exited with status 127
: /etc/profile.d/debuginfod.sh: line 9: tr: command not found

/etc/bashrc: line 79: /etc/profile.d/which2.sh: Input/output error
bash: line 1: sudo: command not found
cfergeau commented 6 days ago

The end of the log is odd...

: /etc/profile.d/debuginfod.sh: line 9: tr: command not found

/etc/bashrc: line 79: /etc/profile.d/which2.sh: Input/output error
bash: line 1: sudo: command not found

Could there be VM disk corruption?

Let's first fix #4454 and then we will see if this one still occurs.

kaovilai commented 6 days ago

No longer hitting this. This is also v2.42.0 and yes I frequently have to delete stuff on this 500GB of a machine. Thanks rh. CRC disk images aren't small either.

praveenkumar commented 4 days ago

Since you are no longer hitting this so closing it. If you think this need to be track then we can reopen it.