-
Notifications
You must be signed in to change notification settings - Fork 95
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
I get an error when starting the VM. #399
Comments
Hi @north-hoshi, I checked the .profile permission and it is the same with mine. Could you help run finch support-bundle-generate and attaching it to this issue? Meanwhile, could you please try finch vm stop, finch vm remove, and finch vm init to see if it helps unblock? |
@north-hoshi What is the |
Hey @vsiravar having the same issue. I can confirm that the |
@strongishllama Thanks for trying finch! Is this(68825) the same user as the one running the finch process? Finch updates the finch user's .bashrc file in the finch vm post vm initialization. If this is the case can you try running finch as 68825 or run
|
@vsiravar Looks like the issue might be on my end. I tried it on another laptop and it worked fine. I'll keep digging for a solution on my end, cheers! 😄 |
The support-bundle command above is incorrect. It should be I'm getting this error when running either |
@KevinLiAWS Hi, I also encountered the same error and submitted a PR to correct it. The cause is that the username in the VM will fall back to |
Issue #, if available: #399 *Description of changes:* In `nerdctl_config_applier.go`, editing `.bashrc` uses a file path based on the host's username. However, if the host's username contains `.` or `@`, lima uses `lima` as the username instead of the host's username. (ref: https://github.com/lima-vm/lima/blob/a8c703bf8b66d213d00542ef68271cd7b73612ef/pkg/osutil/user.go#L114-L119) Therefore, if the host's user name contains `.` or `@`, editing `.bashrc` fails. This PR fixes this so that you can get the actual username from `LimaWrapper.LimaUser()`. *Testing done:* yes - [x] I've reviewed the guidance in CONTRIBUTING.md #### License Acceptance By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. --------- Signed-off-by: Wataru Haibara <[email protected]>
Resolved by #712 |
Describe the bug
When I run
finch vm start
I get the following error:But exists .profile file.
Steps to reproduce
finch vm start
Expected behavior
The vm boot completes without any errors.
Screenshots or logs
Additional context
macOS Monterey
ver 12.3.1
Intel Core i7
brew install finch --cask
To help debug the issue as quickly as possible, we recommend generating a support bundle with
finch support-bundle-generate
and attaching it to this issue. This packages all Finch-related configs and logs into one file.The text was updated successfully, but these errors were encountered: