Back to ITRS Analytics FAQ

Replicate failure - Get http://localhost/status: dial unix /run/k0s/status.sock: connect: connection refused

When trying to launch a Replicate install the following error may occur

unable to wait for node: unable to get status: exit status 1: Error: status: can't get "status" via "/run/k0s/status.sock": Get http://localhost/status: dial unix /run/k0s/status.sock: connect: connection refused

The support bundle logs may contain messages like below.

Dec 11 12:30:09 hostname1.corp.bank.com k0s[5688]: time="2024-12-11 12:30:09" level=warning msg="Failed to start: fork/exec /home/eo-usat-svc-itrstest/obcerv-data/k0s/bin/etcd: permission denied" component=etcd
Dec 11 12:30:09 hostname1.bank.com k0s[5688]: Error: failed to start controller node components: fork/exec /home/eo-usat-svc-itrstest/obcerv-data/k0s/bin/etcd: permission denied

To prevent this from happening ensure the following is set on the server:

SE Linux should be disables or set to permissive mode

Check home directory permission are set to 755 (+x needs to be set)

Umask settings should be 077

grep UMASK /etc/login.defs
## UMASK is also used by useradd(8) and newusers(8) to set the mode for new
UMASK 077

Set rp_filter kernel parameter to 2.

sysctl -w net.ipv4.conf.all.rp_filter=2
sysctl -w net.ipv4.conf.default.rp_filter=2
sysctl -w net.ipv4.conf.ens192.rp_filter=2
["Geneos"] ["FAQ"]

Was this topic helpful?