Skip to content

Error: host file not writable, try running with elevated privileges (Linux Mint 20.1) #2119

Open
@Harald-U

Description

General information

  • OS: Linux
  • Hypervisor: KVM
  • Did you run crc setup before starting it (Yes/No)? Yes

CRC version

CodeReady Containers version: 1.23.1+be17b141
OpenShift version: 4.7.0 (embedded in executable)

CRC status

CRC VM:          Running
OpenShift:       Unreachable (v4.7.0)
Disk Usage:      12.24GB of 32.74GB (Inside the CRC VM)
Cache Usage:     13.01GB
Cache Directory: /home/harald/.crc/cache

CRC config

- consent-telemetry                     : yes
- memory                                : 16384
- pull-secret-file                      : /home/harald/bin/pull-secret

Host Operating System

NAME="Linux Mint"
VERSION="20.1 (Ulyssa)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 20.1"
VERSION_ID="20.1"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=ulyssa
UBUNTU_CODENAME=focal

Steps to reproduce

  1. crc start

Expected

CRC should start but doesn't

Actual

crc startterminates with
INFO CodeReady Containers VM is running
INFO Starting network time synchronization in CodeReady Containers VM
Error running post start: exit status 1

Logs

IMHO relevant part of the log is:

Running '/home/harald/.crc/bin/admin-helper-linux rm api.crc.testing oauth-openshift.apps-crc.testing console-openshift-console.apps-crc.testing default-route-openshift-image-registry.apps-crc.testing'
Command failed: exit status 1

Trying to run the command manually:

$ /home/harald/.crc/bin/admin-helper-linux rm api.crc.testing oauth-openshift.apps-crc.testing console-openshift-console.apps-crc.testing default-route-openshift-image-registry.apps-crc.testing
Error: host file not writable, try running with elevated privileges
host file not writable, try running with elevated privileges

admin-helper-linux has SUID flag set:

$ ls -l /home/harald/.crc/bin/admin-helper-linux
-r-s--x--- 1 root harald 3256320 Mär 17 17:11 /home/harald/.crc/bin/admin-helper-linux
$ ls -l /etc/hosts
-rw-r--r-- 1 root root 533 Mär 17 17:45 /etc/hosts

If I modify permissions of /etc/hosts from 644 to 666 it works ...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions