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

Instance name "colima" too long: colima fails to start when symlink ~/.colima points to a very long UNIX path name #1036

Open
1 of 5 tasks
davidandreoletti opened this issue Jun 2, 2024 · 0 comments

Comments

@davidandreoletti
Copy link

davidandreoletti commented Jun 2, 2024

Description

~/.colima config is symlink to a dotfiles repository. This dotfiles repository full path is longer than UNIX_PATH_MAX characters. Due to this constraint, colima fails to start.

Version

No response

Operating System

  • macOS Intel <= 13 (Ventura)
  • macOS Intel >= 14 (Sonoma)
  • Apple Silicon <= 13 (Ventura)
  • Apple Silicon >= 14 (Sonoma)
  • Linux

Output of colima status

colima: 0.69
limactl: 0.22.0
qemu-img: 9.0.0

Reproduction Steps

  1. colima start -f
  2. colima stop
  3. colima destroy
  4. mv ~/.colima $HOME/Documents/Developments/DOTFILES_WORKSPACE/dotfiles/
  5. ln -s $HOME/Documents/Developments/DOTFILES_WORKSPACE/dotfiles/ ~/.colima
  6. colima start -f

INFO[0000] starting colima
INFO[0000] runtime: docker
INFO[0000] creating and starting ... context=vm
Terminal is not available, proceeding without opening an editor
instance name "colima" too long: "/Users/davidandreoletti/Documents/Developments/DOTFILES_WORKSPACE/dotfiles/.colima/_lima/colima/ssh.sock.1234567890123456" must be less than UNIX_PATH_MAX=104 characters, but is 121
FATA[0000] error starting vm: error at 'creating and starting': exit status 1

Expected behaviour

Successful colima start

Additional context

Workaround:
With a user defined LIMA_HOME set a to short path (eg: ~/.colima_lima), the issue is gone.

@davidandreoletti davidandreoletti changed the title colima fails to start when symlink ~/.colima points to a very long UNIX path name Instance name "colima" too long: colima fails to start when symlink ~/.colima points to a very long UNIX path name Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant