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

Mac support for Finch #32

Closed
smhmhmd opened this issue Nov 23, 2022 · 4 comments
Closed

Mac support for Finch #32

smhmhmd opened this issue Nov 23, 2022 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@smhmhmd
Copy link

smhmhmd commented Nov 23, 2022

Describe the bug
Unable to run test container as per here
Could you point me to instructions on how to install containerd in Mac

Steps to reproduce

 % finch vm start
INFO[0000] Starting existing Finch virtual machine...   
INFO[0036] Finch virtual machine started successfully   
% uname -a
Darwin 147dda39bf00.ant.amazon.com 21.6.0 Darwin Kernel Version 21.6.0: Thu Sep 29 20:12:57 PDT 2022; root:xnu-8020.240.7~1/RELEASE_X86_64 x86_64
$ finch run --rm public.ecr.aws/finch/hello-finch

FATA[0000] rootless containerd not running? (hint: use `containerd-rootless-setuptool.sh install` to start rootless containerd): stat /run/user/504/containerd-rootless: no such file or directory 
FATA[0001] exit status 1       

Expected behavior
Description of what you expected to happen.
finch run command needs to succeed

Screenshots or logs
If applicable, add screenshots or logs to help explain your problem.

Additional context
Add any other context about the problem here.

@smhmhmd smhmhmd added the bug Something isn't working label Nov 23, 2022
@AkihiroSuda
Copy link

finch vm remove; finch vm init may solve the issue?

Otherwise LIMA_HOME=/Applications/Finch/lima/data /Applications/Finch/lima/bin/limactl shell finch might be useful for debugging the VM:

  • containerd-rootless-setuptool.sh install (enable systemd to launch rootless containerd)
  • containerd-rootless.sh (run rootless containerd as a foregorund job)
  • sudo cat /var/log/cloud-init-output.log (show cloud-init log)

@smhmhmd
Copy link
Author

smhmhmd commented Nov 23, 2022

Thanks, worked for me after 'finch vm remove'

% finch vm remove 
INFO[0000] Removing existing Finch virtual machine...   
INFO[0000] Finch virtual machine removed successfully   
% finch vm init  
INFO[0000] Initializing and starting Finch virtual machine... 
INFO[0096] Finch virtual machine started successfully   
% finch run --rm public.ecr.aws/finch/hello-finch
public.ecr.aws/finch/hello-finch:latest:                                          resolved       |++++++++++++++++++++++++++++++++++++++| 
index-sha256:a71e474da9ffd6ec3f8236dbf4ef807dd54531d6f05047edaeefa758f1b1bb7e:    done           |+++++++++++++++++

@smhmhmd smhmhmd closed this as completed Nov 23, 2022
@ningziwen
Copy link
Member

Reopen the issue to investigate the root cause.

@ningziwen
Copy link
Member

The log is related to rootless container. Finch switched to rootful container so same scenario can't be reproduce in the current version. Resolving this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants