New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] FATA /etc/hosts is not readable/writable by the current user #700
Comments
If macos resets the permissions on /etc/hosts when it reboots, then it's indeed a good thing to know. This is not something which was changed by |
It is something I will verify later today. |
Restarted an this time nothing was changed. So honestly, I have no idea about what happened. I will close it, and reopen if I am able to reproduce the issue again. Thanks! |
This error just started happening for me today without a restart, I cannot put my finger on what I changed other than launching a VPN client. As for @debu66er, my /etc/hosts file is 0600, owned by root/wheel: My crc version:
|
I confirmed that this is changed in my case by launching the Cisco AnyConnect Secure VPN Client:
|
This can be prevented if |
Any update on this one? Using last version of CRC 1.1.0+95966a9 I still facing this issue. If /etc/hosts is owned by root (and Cisco AnyConnect Secure VPN Client does that chown each time it runs) CRC start fails. I have to manually change owner again to the Mac user so it works again. Is it really an issue of oc? Or crc? |
ebd772e should help with this as we won't keep changing the VM IP, so it only needs to startup sucessfully once with the hosts file owned by the non-root user. Once that has happened, the preflight check preventing startup can be disabled. |
I also received the error FATA /etc/hosts is not readable/writable by the current user. When I stopped CISCO Anyconnect crc start worked. |
Also an issue for me.
I verified that if I make /etc/hosts writable for the non-root user who is starting crc, then crc startup succeeds. Works for me for now, but this remains a bug and needs to be fixed. |
Same here, no restart, just sleep + awakening. On MacOS 10.15.2.
I had already similar issues with Minishift but never closed it down to being the /etc/hosts file. |
With ebd772e30b8 , having |
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. |
General information
crc setup
before starting it (Yes/No)? YesCRC version
version: 1.0.0-rc.0+34371d3
OpenShift version: 4.2.0-0.nightly-2019-09-26-192831 (embedded in binary)
CRC status
CRC VM: Stopped
OpenShift: Stopped
Disk Usage: 0B of 0B (Inside the CRC VM)
Cache Usage: 11.71GB
Cache Directory: /Users/chemi/.crc/cache
CRC config
Host Operating System
ProductName: Mac OS X
ProductVersion: 10.14.6
BuildVersion: 18G103
Steps to reproduce
Expected
Actual
Logs
The text was updated successfully, but these errors were encountered: