Comments (6)
@ciaranmcnulty Hi Ciaran, besides the INFO lines, did you see the init failed finally? We noticed that sometimes the init will spend longer, but will be successful after some wait time.
from finch.
I tried again and it did work after some minutes 🤦
from finch.
Same message here, and it hangs for me at the 'starting' line
INFO[0000] binaries directory doesn't exist
INFO[0000] Requesting root access to finish network dependency configuration
Password:
INFO[0004] sudoers file not found: %!w(*fs.PathError=&{open /etc/sudoers.d/finch-lima 2})
INFO[0004] Initializing and starting Finch virtual machine...
from finch.
@goura Hi Kazuhiro, I checked the expected permission and it is 644, so your current permission is correct. We are investigating the root cause which result in your permission set to 600 initially.
from finch.
Was able to reproduce by setting my shell's umask to 077:
$ finch --version
finch version v0.5.0
$ sudo rm -rf /etc/sudoers.d/finch-lima
Password:
$ umask 077
$ finch vm init --debug
DEBU[0000] Creating limactl command: ARGUMENTS: [ls -f {{.Status}} finch], LIMA_HOME: /Applications/Finch/lima/data
DEBU[0000] Status of virtual machine:
ERRO[0000] failed to read sudoers file: open /etc/sudoers.d/finch-lima: permission denied
INFO[0000] Requesting root access to finish network dependency configuration
DEBU[0000] Creating limactl command: ARGUMENTS: [sudoers], LIMA_HOME: /Applications/Finch/lima/data
DEBU[0000] Creating limactl command: ARGUMENTS: [disk ls finch --json], LIMA_HOME: /Applications/Finch/lima/data
DEBU[0000] Creating limactl command: ARGUMENTS: [start --name=finch /Applications/Finch/os/finch.yaml --tty=false], LIMA_HOME: /Applications/Finch/lima/data
INFO[0000] Initializing and starting Finch virtual machine...
ERRO[0000] Finch virtual machine failed to start, debug logs:
time="2023-04-14T14:54:23-07:00" level=info msg="Terminal is not available, proceeding without opening an editor"
time="2023-04-14T14:54:23-07:00" level=fatal msg="can't read \"/private/etc/sudoers.d/finch-lima\": open /private/etc/sudoers.d/finch-lima: permission denied (Hint: run `/Applications/Finch/lima/bin/limactl sudoers >etc_sudoers.d_lima && sudo install -o root etc_sudoers.d_lima \"/private/etc/sudoers.d/finch-lima\"`))"
FATA[0000] exit status 1
$ ls -lah /etc/sudoers.d/finch-lima
-rw------- 1 root wheel 983B Apr 14 14:52 /etc/sudoers.d/finch-lima
from finch.
This is resolved as of v0.6.0:
$ finch --version
finch version v0.6.0
$ sudo rm -rf /etc/sudoers.d/finch-lima
Password:
$ umask 077
$ finch vm init
INFO[0000] Requesting root access to finish network dependency configuration
INFO[0000] sudoers file not found: open /etc/sudoers.d/finch-lima: no such file or directory
INFO[0003] Initializing and starting Finch virtual machine...
INFO[0121] Finch virtual machine started successfully
$ ls -lah /etc/sudoers.d/finch-lima
-rw-r--r-- 1 root wheel 983B Apr 25 12:14 /etc/sudoers.d/finch-lima
from finch.
Related Issues (20)
- Support BYO credential helpers
- Build fails specifying --platform linux/amd64 sometimes "failed to compute cache key", "failed to create snapshot" HOT 2
- Failed to install on macos-14 github actions runner HOT 2
- docker manifest equivalent HOT 2
- Support --build-context for buildkit HOT 1
- 50GB carved out disk file is surprising as a Docker Desktop user HOT 5
- Unable to use the "--env" option on finch container run HOT 3
- Clock drifts in 1.1.2 HOT 3
- Unable to run /usr/bin/sudo due to volumes/main partition mounted with nosuid HOT 1
- Change ~/.finch/config.json to support compatibility with CDK `DockerImageAsset` HOT 1
- Speed up "sending tarball" step for PythonFunction CDK Construct HOT 2
- SHA256 Mismatch Error When Installing Finch v1.1.3 via Homebrew HOT 5
- Unable to use the "--env-file" option on "finch compose up" command
- Support bundle fails to be created on Windows
- Add features not to forget to execute `finch gen-docs generate -p cmd/finch/` HOT 3
- Unable to start VM after closing command prompt on Windows
- Where is the finch website? HOT 1
- Support AWS CodeBuild local builds with Finch HOT 3
- Enable finch-core local builds
- Support intellij dev containers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from finch.