k3d icon indicating copy to clipboard operation
k3d copied to clipboard

[BUG] error overwriting contents of /etc/hosts - failed with exit code '139'

Open audacioustux opened this issue 2 years ago • 1 comments

What did you do

  • How was the cluster created?

    • k3d cluster create dev-cluster --servers 3 --agents 3 --registry-create dev-registry --trace
  • What did you do afterwards?

    • reinstalled / reset / restart everything

What did you expect to happen

create a 3 server, 3 agent cluster, with k3d managed registry - inside devcontainer

Screenshots or terminal output

TRAC[0052] Exec process '[sh -c cat /tmp/-etc-hosts-kmaNdgkMikXVvcrPywaQ > /etc/hosts]' still running in node 'k3d-dev-cluster-agent-1'.. sleeping for 1 second... 
DEBU[0052] Executing command '[sh -c cat /tmp/-etc-hosts-mitqLnXoHrGTFngXMpmJ > /etc/hosts]' in node 'k3d-dev-cluster-agent-0' 
TRAC[0052] Exec process '[sh -c cat /tmp/-etc-hosts-mitqLnXoHrGTFngXMpmJ > /etc/hosts]' still running in node 'k3d-dev-cluster-agent-0'.. sleeping for 1 second... 
DEBU[0052] Executing command '[sh -c cat /tmp/-etc-hosts-aTsNPjkUwKcBmrQtOxgx > /etc/hosts]' in node 'k3d-dev-cluster-server-2' 
DEBU[0052] Executing command '[sh -c cat /tmp/-etc-hosts-hMJHuxgBYcAbZYNwLQKB > /etc/hosts]' in node 'k3d-dev-cluster-server-1' 
DEBU[0052] Executing command '[sh -c cat /tmp/-etc-hosts-WTqomxxHvUWWttCkKDho > /etc/hosts]' in node 'k3d-dev-cluster-agent-2' 
TRAC[0052] Exec process '[sh -c cat /tmp/-etc-hosts-aTsNPjkUwKcBmrQtOxgx > /etc/hosts]' still running in node 'k3d-dev-cluster-server-2'.. sleeping for 1 second... 
TRAC[0052] Exec process '[sh -c cat /tmp/-etc-hosts-WTqomxxHvUWWttCkKDho > /etc/hosts]' still running in node 'k3d-dev-cluster-agent-2'.. sleeping for 1 second... 
TRAC[0052] Exec process '[sh -c cat /tmp/-etc-hosts-hMJHuxgBYcAbZYNwLQKB > /etc/hosts]' still running in node 'k3d-dev-cluster-server-1'.. sleeping for 1 second... 
ERRO[0053] Failed Cluster Start: error during post-start cluster preparation: error overwriting contents of /etc/hosts: Exec process in node 'k3d-dev-cluster-agent-1' failed with exit code '139': Logs from failed access process: 
ERRO[0053] Failed to create cluster >>> Rolling Back    
INFO[0053] Deleting cluster 'dev-cluster'   

Which OS & Architecture

  • output of k3d runtime-info
arch: aarch64
cgroupdriver: cgroupfs
cgroupversion: "1"
endpoint: /var/run/docker.sock
filesystem: xfs
infoname: a08988949330
name: docker
os: Ubuntu 22.04.2 LTS (containerized)
ostype: linux
version: 20.10.23+azure-2

Which version of k3d

  • output of k3d version k3d version v5.4.9 k3s version v1.25.7-k3s1 (default)

Which version of docker

  • output of docker version and docker info
Client:
 Version:           20.10.23+azure-2
 API version:       1.41
 Go version:        go1.19.6
 Git commit:        715524332ff91d0f9ec5ab2ec95f051456ed1dba
 Built:             Wed Jan 18 20:42:16 UTC 2023
 OS/Arch:           linux/arm64
 Context:           default
 Experimental:      true

Server:
 Engine:
  Version:          20.10.23+azure-2
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.19.6
  Git commit:       6051f142912a5c06064e96b92de5e4e8f052131b
  Built:            Wed Jan 18 16:24:28 2023
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.6.19+azure-1
  GitCommit:        1e1ea6e986c6c86565bc33d52e34b81b3e2bc71f
 runc:
  Version:          1.1.5
  GitCommit:        f19387a6bec4944c770f7668ab51c4348d9c2f38
 docker-init:
  Version:          0.19.0
  GitCommit:        
Client:
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc., v0.10.4)
  compose: Docker Compose (Docker Inc., 2.17.2+azure-1)

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 4
 Server Version: 20.10.23+azure-2
 Storage Driver: overlay2
  Backing Filesystem: xfs
  Supports d_type: true
  Native Overlay Diff: false
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 1e1ea6e986c6c86565bc33d52e34b81b3e2bc71f
 runc version: f19387a6bec4944c770f7668ab51c4348d9c2f38
 init version: 
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 5.4.17-2136.314.6.3.el7uek.aarch64
 Operating System: Ubuntu 22.04.2 LTS (containerized)
 OSType: linux
 Architecture: aarch64
 CPUs: 4
 Total Memory: 22.94GiB
 Name: a08988949330
 ID: XJCZ:4WXJ:2ZY2:HHGH:GXIR:J4V7:LUOG:C7LF:WZDF:5EWO:HDUH:ZFUT
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

audacioustux avatar Apr 02 '23 16:04 audacioustux

duplicate of https://github.com/k3d-io/k3d/issues/1220 but in v5.4.9

audacioustux avatar Apr 02 '23 16:04 audacioustux