Skip to content
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

Error Starting Kubernetes #6643

Closed
gopibabus opened this issue Mar 23, 2024 · 8 comments
Closed

Error Starting Kubernetes #6643

gopibabus opened this issue Mar 23, 2024 · 8 comments
Labels
kind/bug Something isn't working platform/macos triage/duplicate This issue or pull request already exists

Comments

@gopibabus
Copy link

Actual Behavior

After opening Rancher Desktop App, It is throwing me following error

Greenshot 2024-03-23 14 09 53

Error Starting Kubernetes

Error: /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl.ventura exited with code 1

Some recent logfile lines:

'--tty=false',
    '/Users/gopibabusrungavarapu/Library/Application Support/rancher-desktop/lima/_config/0.yaml'
  ],
  stdout: '',
  stderr: 'time="2024-03-23T14:02:19-04:00" level=info msg="Terminal is not available, proceeding without opening an editor"\n' +
    'time="2024-03-23T14:02:19-04:00" level=fatal msg="instance name \\"0\\" too long: \\"/Users/gopibabusrungavarapu/Library/Application Support/rancher-desktop/lima/0/ssh.sock.1234567890123456\\" must be less than UNIX_PATH_MAX=104 characters, but is 104"\n',
  code: 1,
  [Symbol(child-process.command)]: '/Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl.ventura start --tty=false /Users/gopibabusrungavarapu/Library/Application Support/rancher-desktop/lima/_config/0.yaml'
}

Steps to Reproduce

  1. Visit Rancher Desktop Website
  2. Download Latest Version of ARM Mac Installer. At the time of my installation the version is 1.13.1
  3. Install it
  4. When I try to run rancher Desktop, I am getting above mentioned error

Result

Greenshot 2024-03-23 14 09 53

Error Starting Kubernetes

Error: /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl.ventura exited with code 1

Some recent logfile lines:

'--tty=false',
    '/Users/gopibabusrungavarapu/Library/Application Support/rancher-desktop/lima/_config/0.yaml'
  ],
  stdout: '',
  stderr: 'time="2024-03-23T14:02:19-04:00" level=info msg="Terminal is not available, proceeding without opening an editor"\n' +
    'time="2024-03-23T14:02:19-04:00" level=fatal msg="instance name \\"0\\" too long: \\"/Users/gopibabusrungavarapu/Library/Application Support/rancher-desktop/lima/0/ssh.sock.1234567890123456\\" must be less than UNIX_PATH_MAX=104 characters, but is 104"\n',
  code: 1,
  [Symbol(child-process.command)]: '/Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl.ventura start --tty=false /Users/gopibabusrungavarapu/Library/Application Support/rancher-desktop/lima/_config/0.yaml'
}

Expected Behavior

After installing Rancher Desktop on my machine (M1 Mac), it should open and show me the main window.

Additional Information

Greenshot 2024-03-23 14 09 53

Rancher Desktop Version

1.13.1

Rancher Desktop K8s Version

1.28.4

Which container engine are you using?

containerd (nerdctl)

What operating system are you using?

macOS

Operating System / Build Version

Sonoma (14.2)

What CPU architecture are you using?

arm64 (Apple Silicon)

Linux only: what package format did you use to install Rancher Desktop?

deb

Windows User Only

No response

@gopibabus gopibabus added the kind/bug Something isn't working label Mar 23, 2024
@skalpin
Copy link

skalpin commented Mar 25, 2024

I am experiencing this today as well.

@skalpin
Copy link

skalpin commented Mar 25, 2024

Reinstalling Rancher, and setting Mount Type to reverse-sshfs, and Emulation to QEMU is working for me.

@mook-as
Copy link
Contributor

mook-as commented Mar 25, 2024

Hi @gopibabus!
Sorry, but it looks like your user name is a bit too long for our code. There's a workaround in #797 (comment) but we still want a more automatic fix (hence that issue is still open); please try that and see if helps. If it does not, please also attach your logs so we can troubleshoot the issue.

@skalpin You probably had a different issue, as the thing you listed wouldn't have had any effect on the originally listed issue. If you encounter errors again, please feel free to open a new issue and attach your logs there instead. Thanks.

@gopibabus
Copy link
Author

I will try and let you know @mook-as .

@skalpin
Copy link

skalpin commented Mar 27, 2024

@mook-as ty for the reply. Macos updated, and now rancher is working as expected with the VS framework and virtiofs settings. I cannot reproduce it, so I won't be making another issue.

@reslys
Copy link

reslys commented Mar 28, 2024

I'm still experiencing the same issue on Mac Intel today, this solution worked for me #797 (comment). Will leave a comment here to see if there are any updates to this issue.

@keyskey
Copy link

keyskey commented Apr 2, 2024

I got the same error but after resetting Kubernetes from GUI, it resolved.
スクリーンショット 2024-04-02 9 16 16

@jandubois jandubois added triage/needs-information Further information is requested platform/macos labels Apr 4, 2024
@jandubois
Copy link
Member

I'm closing this because the error message instance name \\"0\\" too long shows that it is a duplicate of #797.

If any commenter has a problem starting Kubernetes that does not generate this error message, then please create a separate GitHub issue to track it.

@jandubois jandubois added triage/duplicate This issue or pull request already exists and removed triage/needs-information Further information is requested labels Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working platform/macos triage/duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

6 participants