colima icon indicating copy to clipboard operation
colima copied to clipboard

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

Open davidandreoletti opened this issue 1 year ago • 0 comments

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

  • [x] 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 avatar Jun 02 '24 07:06 davidandreoletti