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

Lima fails to start with "failed to run [system_profiler SPNetworkDataType -json]" #859

Closed
pmahoney opened this issue Oct 25, 2021 · 1 comment · Fixed by #1085
Closed
Assignees
Milestone

Comments

@pmahoney
Copy link

pmahoney commented Oct 25, 2021

For bugs, describe what you're seeing
On startup, I get a message that lima exited 1. In lima.log, I see:

time="2021-10-25T10:22:33-05:00" level=fatal msg="failed to run [system_profiler SPNetworkDataType -json]: stdout=\"\", stderr=\"Usage: system_profiler [-listDataTypes]\\n       system_profiler [-xml] [-timeout n] [-detailLevel n]\\n       system_profiler [-xml] [-timeout n] [dataType1 ... dataTypeN]\\n\\n  -detailLevel n    specifies the level of detail for the report\\n                      mini = short report (contains no identifying or personal information)\\n                      basic = basic hardware and network information\\n                      full = all available information\\n\\n  -listDataTypes    lists all the available datatypes\\n\\n  -xml              generates xml output instead of plain text\\n                    if redirected to a file with the extension \\\".spx\\\"\\n                    the file can be opened in System Profiler.app\\n\\n  -timeout          specifies the maximum time to spend gathering information\\n                    the default is 180 seconds, 0 means no timeout\\n\\n  Redirect stderr to /dev/null to suppress progress and error messages.\\n\\nExamples:\\n\\n  system_profiler\\n     Generates a text report with the standard detail level.\\n\\n  system_profiler -detailLevel mini\\n     Generates a short report without identifying/personal information.\\n\\n  system_profiler -listDataTypes\\n     Shows a list of the available data types.\\n\\n  system_profiler SPSoftwareDataType SPNetworkDataType\\n     Generates a text report containing only software and network data.\\n\\n  system_profiler -xml >MySystem.spx\\n     Creates a XML file which can be opened by System Profiler.app\\n\\n\": exit status 1"
+ limactl start --tty=false /Users/patrick/Library/Application Support/rancher-desktop/lima/_config/0.yaml
Error: /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl exited with code 1
    at ChildProcess.<anonymous> (/Applications/Rancher Desktop.app/Contents/Resources/app.asar/dist/app/background.js:1:7901)
    at ChildProcess.emit (events.js:315:20)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
Error starting lima: Error: /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl exited with code 1
    at ChildProcess.<anonymous> (/Applications/Rancher Desktop.app/Contents/Resources/app.asar/dist/app/background.js:1:7901)
    at ChildProcess.emit (events.js:315:20)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)

To Reproduce
Steps to reproduce the behaviour:

  1. Have macos 10.14.6
  2. Install Rancher Desktop 0.6.0
  3. Start it

Result
See logs above; lima fails to start.

Setup (please complete the following information):

  • macos 10.14.6
  • Rancher Desktop 0.6.0

Additional context

My system_profiler --help does not mention any -json flag. Running system_profiler SPNetworkDataType produces text output, and system_profiler SPNetworkDataType -xml produces the same in xml format. With -json I get the "usage" screen seen in the lima logs above.

Is macos 10.14 unsupported? If so, docs should be updated: https://github.com/rancher-sandbox/rancher-desktop/blob/main/docs/installing.md#macos

@jandubois jandubois added this to the v0.7.0 milestone Oct 25, 2021
@jandubois
Copy link
Member

jandubois commented Oct 25, 2021

Is macos 10.14 unsupported?

It is my understanding that Rancher Desktop is supported on macOS 10.15 Catalina or later, so the docs certainly need to be updated.

That said, I've fixed the issue with system_profiler and the --json flag in Lima already: lima-vm/lima#353, so it will work, but not auto-detect system proxy settings.

So I believe the next release of RD should work on macOS 10.14 Mojave, even if it isn't officially supported (once the docs are updated).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants