I am facing an issue with rancher desktop on mac w...
# general
c
I am facing an issue with rancher desktop on mac while setting up. It give me issue related to kubernetes. See below.
Copy code
WARNING: Skipping duplicate certificate in file ca-cert-CFCA_EV_ROOT.pem

2025-02-25T04:13:06.121Z: > /Applications/Rancher <http://Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl|Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl> shell --workdir=. 0 sudo rc-service --ifstarted rd-openresty stop
2025-02-25T04:13:06.392Z: > /Applications/Rancher <http://Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl|Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl> shell --workdir=. 0 sudo rm -f /usr/local/openresty/nginx/conf/allowed-images.conf
2025-02-25T04:13:06.640Z: > /Applications/Rancher <http://Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl|Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl> list --json
{"name":"0","hostname":"lima-0","status":"Running","dir":"/Users/sadanand.medi/Library/Application Support/rancher-desktop/lima/0","vmType":"qemu","arch":"aarch64","cpuType":"host","cpus":2,"memory":4294967296,"disk":107374182400,"sshLocalPort":50738,"sshConfigFile":"/Users/sadanand.medi/Library/Application Support/rancher-desktop/lima/0/ssh.config","hostAgentPID":82683,"driverPID":82695,"config":{"vmType":"qemu","vmOpts":{"qemu":{}},"os":"Linux","arch":"aarch64","images":[{"location":"/Applications/Rancher <http://Desktop.app/Contents/Resources/resources/darwin/alpine-lima-v0.2.41.rd5-rd-3.20.3.iso%22,%22arch%22:%22aarch64%22|Desktop.app/Contents/Resources/resources/darwin/alpine-lima-v0.2.41.rd5-rd-3.20.3.iso","arch":"aarch64">}],"cpuType":{"aarch64":"host","armv7l":"cortex-a7","riscv64":"rv64","x86_64":"qemu64"},"cpus":2,"memory":"4294967296","disk":"100GiB","mounts":[{"location":"~","mountPoint":"~","writable":true,"sshfs":{"cache":true,"followSymlinks":false,"sftpDriver":""},"9p":{"securityModel":"none","protocolVersion":"9p2000.L","msize":"128KiB","cache":"mmap"},"virtiofs":{}},{"location":"/tmp/rancher-desktop","mountPoint":"/tmp/rancher-desktop","writable":true,"sshfs":{"cache":true,"followSymlinks":false,"sftpDriver":""},"9p":{"securityModel":"none","protocolVersion":"9p2000.L","msize":"128KiB","cache":"mmap"},"virtiofs":{}},{"location":"/Volumes","mountPoint":"/Volumes","writable":true,"sshfs":{"cache":true,"followSymlinks":false,"sftpDriver":""},"9p":{"securityModel":"none","protocolVersion":"9p2000.L","msize":"128KiB","cache":"mmap"},"virtiofs":{}},{"location":"/var/folders","mountPoint":"/var/folders","writable":true,"sshfs":{"cache":true,"followSymlinks":false,"sftpDriver":""},"9p":{"securityModel":"none","protocolVersion":"9p2000.L","msize":"128KiB","cache":"mmap"},"virtiofs":{}},{"location":"/private/tmp","mountPoint":"/private/tmp","writable":true,"sshfs":{"cache":true,"followSymlinks":false,"sftpDriver":""},"9p":{"securityModel":"none","protocolVersion":"9p2000.L","msize":"128KiB","cache":"mmap"},"virtiofs":{}},{"location":"/private/var/folders","mountPoint":"/private/var/folders","writable":true,"sshfs":{"cache":true,"followSymlinks":false,"sftpDriver":""},"9p":{"securityModel":"none","protocolVersion":"9p2000.L","msize":"128KiB","cache":"mmap"},"virtiofs":{}},{"location":"/Applications/Rancher <http://Desktop.app/Contents/Resources/resources%22,%22mountPoint%22:%22/Applications/Rancher|Desktop.app/Contents/Resources/resources","mountPoint":"/Applications/Rancher> <http://Desktop.app/Contents/Resources/resources%22,%22writable%22:true,%22sshfs%22:{%22cache%22:true,%22followSymlinks%22:false,%22sftpDriver%22:%22%22},%229p%22:{%22securityModel%22:%22none%22,%22protocolVersion%22:%229p2000.L%22,%22msize%22:%22128KiB%22,%22cache%22:%22mmap%22},%22virtiofs%22:{}}],%22mountType%22:%22reverse-sshfs%22,%22mountInotify%22:false,%22ssh%22:{%22localPort%22:50738,%22loadDotSSHPubKeys%22:false,%22forwardAgent%22:false,%22forwardX11%22:false,%22forwardX11Trusted%22:false},%22firmware%22:{%22legacyBIOS%22:false},%22audio%22:{%22device%22:%22%22},%22video%22:{%22display%22:%22none%22,%22vnc%22:{%22display%22:%22127.0.0.1:0,to=9%22}},%22provision%22:[{%22mode%22:%22system%22,%22script%22:%22#!/bin/sh|Desktop.app/Contents/Resources/resources","writable":true,"sshfs":{"cache":true,"followSymlinks":false,"sftpDriver":""},"9p":{"securityModel":"none","protocolVersion":"9p2000.L","msize":"128KiB","cache":"mmap"},"virtiofs":{}}],"mountType":"reverse-sshfs","mountInotify":false,"ssh":{"localPort":50738,"loadDotSSHPubKeys":false,"forwardAgent":false,"forwardX11":false,"forwardX11Trusted":false},"firmware":{"legacyBIOS":false},"audio":{"device":""},"video":{"display":"none","vnc":{"display":"127.0.0.1:0,to=9"}},"provision":[{"mode":"system","script":"#!/bin/sh>\nset -o errexit -o nounset -o xtrace\nmkdir -p /bootfs\nmount --bind / /bootfs\n# /bootfs/etc is empty on first boot because it has been moved to /mnt/data/etc by lima\nif [ -f /bootfs/etc/os-release ] && ! diff -q /etc/os-release /bootfs/etc/os-release; then\n  cp /etc/machine-id /bootfs/etc\n  cp /etc/ssh/ssh_host* /bootfs/etc/ssh/\n  mkdir -p /etc/docker /etc/rancher\n  cp -pr /etc/docker /bootfs/etc\n  cp -pr /etc/rancher /bootfs/etc\n\n  rm -rf /mnt/data/etc.prev\n  mkdir /mnt/data/etc.prev\n  mv /etc/* /mnt/data/etc.prev\n  mv /bootfs/etc/* /etc\n\n  # install updated files from /usr/local, e.g. nerdctl, buildkit, cni plugins\n  cp -pr /bootfs/usr/local /usr\n\n  # lima has applied changes while the \"old\" /etc was in place; restart to apply them to the updated one.\n  reboot\nfi\numount /bootfs\nrmdir /bootfs\n"},{"mode":"system","script":"#!/bin/sh\nset -o errexit -o nounset -o xtrace\nRC_CGROUP_MODE=unified\nif ! grep -q -E \"^#?rc_cgroup_mode=\\\"$RC_CGROUP_MODE\\\"\" /etc/rc.conf; then\n  sed -i -E \"s/^#?rc_cgroup_mode=\\\".*\\\"/rc_cgroup_mode=\\\"$RC_CGROUP_MODE\\\"/\" /etc/rc.conf\n  # avoid reboot loop if sed failed for any reason\n  if grep -q -E \"^rc_cgroup_mode=\\\"$RC_CGROUP_MODE\\\"\" /etc/rc.conf; then\n    reboot\n  fi\nfi\n"},{"mode":"system","script":"#!/bin/sh\nset -o errexit -o nounset -o xtrace\nfstrim /mnt/data\n"},{"mode":"system","script":"#!/bin/sh\nset -o errexit -o nounset -o xtrace\nsed -i -E 's/^#?MaxSessions +[0-9]+/MaxSessions 25/g' /etc/ssh/sshd_config\nrc-service --ifstarted sshd reload\n"},{"mode":"system","script":"#!/bin/sh\nset -o errexit -o nounset -o xtrace\nif ! [ -d /mnt/data/root ]; then\n  mkdir -p /root\n  mv /root /mnt/data/root\nfi\nmkdir -p /root\nmount --bind /mnt/data/root /root\n"},{"mode":"system","script":"#!/bin/sh\nset -o errexit -o nounset -o xtrace\nmkdir -p /etc/docker\n\n# Delete certs.d if it is a symlink (from previous boot).\n[ -L /etc/docker/certs.d ] && rm /etc/docker/certs.d\n\n# Create symlink if certs.d doesn't exist (user may have created a regular directory).\nif [ ! -e /etc/docker/certs.d ]; then\n  # We don't know if the host is Linux or macOS, so we take a guess based on which mountpoint exists.\n  if [ -d \"/Users/lima\" ]; then\n    ln -s \"/Users/lima/.docker/certs.d\" /etc/docker\n  elif [ -d \"/home/lima\" ]; then\n    ln -s \"/home/lima/.docker/certs.d\" /etc/docker\n  fi\nfi\n"},{"mode":"system","script":"#!/bin/sh\nhostname lima-rancher-desktop\n"},{"mode":"system","script":"#!/bin/sh\nset -o errexit -o nounset -o xtrace\n# During boot is the only safe time to delete old k3s versions.\nrm -rf /var/lib/rancher/k3s/data\n# Delete all tmp files older than 3 days.\nfind /tmp -depth -mtime +3 -delete\n"},{"mode":"system","script":"#!/bin/sh\nset -o errexit -o nounset -o xtrace\nfor dir in / /etc /tmp /var/lib; do\n  mount --make-shared \"${dir}\"\ndone\n"},{"mode":"system","script":"#!/bin/sh\n# Move logrotate to hourly, because busybox crond only handles time jumps up\n# to one hour; this ensures that if the machine is suspended over long\n# periods, things will still happen often enough.  This is idempotent.\nmv -n /etc/periodic/daily/logrotate /etc/periodic/hourly/\nrc-update add crond default\nrc-service crond start\n"},{"mode":"system","script":"set -o errexit -o nounset -o xtrace\nusermod --append --groups docker \"lima\"\n"},{"mode":"system","script":"export CAROOT=/run/mkcert\nmkdir -p $CAROOT\ncd $CAROOT\nmkcert -install\nmkcert localhost\nchown -R nobody:nobody $CAROOT\n"},{"mode":"system","script":"set -o errexit -o nounset -o xtrace\n\n# openresty is backgrounding itself (and writes its own pid file)\nsed -i 's/^command_background/#command_background/' /etc/init.d/rd-openresty\n\n# configure proxy only when allowed-images exists\nallowed_images_conf=/usr/local/openresty/nginx/conf/allowed-images.conf\n# Remove the reference to an obsolete image conf filename\nobsolete_image_allow_list_conf=/usr/local/openresty/nginx/conf/image-allow-list.conf\nsetproxy=\"[ -f $allowed_images_conf ] && supervise_daemon_args=\\\"-e HTTPS_PROXY=<http://127.0.0.1:3128> \\${supervise_daemon_args:-}\\\" || true\"\nfor svc in containerd docker; do\n  sed -i \"\\#-f $allowed_images_conf#d\" /etc/init.d/$svc\n  sed -i \"\\#-f $obsolete_image_allow_list_conf#d\" /etc/init.d/$svc\n  echo \"$setproxy\" >> /etc/init.d/$svc\ndone\n\n# Make sure openresty log directory exists\ninstall -d -m755 /var/log/openresty\n"},{"mode":"system","script":"#!/bin/sh\nset -o errexit\n\nmount bpffs -t bpf /sys/fs/bpf\nmount --make-shared /sys/fs/bpf\nmount --make-shared /sys/fs/cgroup\n"},{"mode":"user","script":"rm -rf \"${HOME}/.cache/trivy\"\n"}],"upgradePackages":false,"containerd":{"system":false,"user":false,"archives":[{"location":"<https://github.com/containerd/nerdctl/releases/download/v2.0.3/nerdctl-full-2.0.3-linux-amd64.tar.gz>","arch":"x86_64","digest":"sha256:91bfb8faec1673f3e7c3a020812acffc50a7d7dd82019461f6cfa46435240903"},{"location":"<https://github.com/containerd/nerdctl/releases/download/v2.0.3/nerdctl-full-2.0.3-linux-arm64.tar.gz>","arch":"aarch64","digest":"sha256:2a97f78e14cb3e024068d936c8fb801365981e5b48577e278907079de47e4d2c"}]},"guestInstallPrefix":"/usr/local","portForwards":[{"guestIPMustBeZero":true,"guestIP":"0.0.0.0","guestPortRange":[1,65535],"hostIP":"0.0.0.0","hostPortRange":[1,65535],"proto":"tcp"},{"guestIP":"127.0.0.1","guestPortRange":[1,65535],"guestSocket":"/var/run/docker.sock","hostIP":"127.0.0.1","hostPortRange":[1,65535],"hostSocket":"/Users/sadanand.medi/.rd/docker.sock","proto":"tcp"}],"hostResolver":{"enabled":true,"ipv6":false,"hosts":{"host.docker.internal":"host.lima.internal","host.rancher-desktop.internal":"host.lima.internal","lima-rancher-desktop":"lima-0"}},"propagateProxyEnv":true,"caCerts":{"removeDefaults":false},"rosetta":{"enabled":false,"binfmt":false},"plain":false,"timezone":"Asia/Kolkata","nestedVirtualization":false,"user":{"name":"lima","comment":"sadanand.medi","home":"/home/lima.linux","uid":503}},"sshAddress":"127.0.0.1","protected":false,"limaVersion":"v1.0.2-1-g87dc8874","HostOS":"darwin","HostArch":"aarch64","LimaHome":"/Users/sadanand.medi/Library/Application Support/rancher-desktop/lima","IdentityFile":"/Users/sadanand.medi/Library/Application Support/rancher-desktop/lima/_config/user"}

2025-02-25T04:13:06.904Z: Lima: executing: sudo /sbin/rc-service --ifstarted buildkitd stop: Error: /Applications/Rancher <http://Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl|Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl> exited with code 1
c
1. If you’re going to post a giant wall of text, start a thread and post it inside a comment on the thread 2. -> #C0200L1N1MM
1
c
okay
Do you have any solution for this?