[BUG]crc hangs while run as normal user
General information
- OS: Linux RHEL 8
- Hypervisor: KVM
- Did you run
crc setupbefore starting it (Yes/No)? Yes. - Running CRC on: VM
CRC version
sudo ./crc version
CRC version: 2.20.0+f3a947
OpenShift version: 4.13.0
Podman version: 4.4.4
CRC status
./crc status doesn't work Run the command with sudo, it says crc does not seem to be setup. But actually it already worked well at the beging
$ sudo ./crc status
crc does not seem to be setup correctly, have you run 'crc setup'?
CRC config
$ sudo ./crc config view
- consent-telemetry : yes
Host Operating System
cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="8.0 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.0"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.0 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8.0:GA"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.0
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.0"
Steps to reproduce
Face this issue randomly. I can't reproduce it stably.
Expected
crc command can be run with normal user
Actual
I setup the crc with below command with a non-root user.
./crc setup
./crc start -c 8 -m 24000 -d 120
It worked pretty well at the beginning. I can access the k8s service correctly. And I can run ./crc status successfully with the normal user. But after a few hours or a few days, ./crc version or ./crc status command always hang with normal user. It doesn't print out any message at all even with "--log-level debug" flag.
Run the command with sudo, it says crc does not seem to be setup. But actually it already worked well at the beging
crc should not be run with sudo. I would not expect consistant behaviour when mixing crc ... and sudo crc ....
CRC version: 2.20.0+f3a947
This is a relatively old version, any chance you could try the latest release?
VERSION_ID="8.0"
Are you still using rhel 8.0? This is also an older version, latest RHEL8 is rhel 8.8
RHEL 8.0
This was released in 2019 and is not supported by us. Please update to the latest release as suggested, which is 8.8.
The same goes for CRC as we are currently on 2.24 which is at least 3 months mpre recent than the version you tried.
sudo ./crc ..../crc ...
as instructed, please do not mix sudo and user-run commands, so the information you provided is incomplete; you mix root based configuration, but run as user.
./crc statusdoesn't work
At all? We have seen this behaviour once before, but this was due to an update of the Go toolchain that was incompatible with older versions of the userspace/(libgcc/glibc?).