git/list[1] front-page[2] threads[3] people[4] search[5] about
 

回复: Git Bug Report: 'scalar register' command failed at Mac m1

From
ALAlbert Lv <albert.lv-us-icloud@outlook.com>
Date
Nov 7, 2022, 14:53 UTC
Message-ID
<PSBPR01MB3541B7081894BAAD85118202FA3C9@PSBPR01MB3541.apcprd01.prod.exchangelabs.com>
In-Reply-To
<42804b53-7035-1ba0-3076-2207e63681b7@github.com>
Thanks a lot, Derrick!
"ls -al ~/Library" showed that "~/Library/LaunchAgents/" was owned by root user. Then I changed the owner of the "~/Library/LaunchAgents/" to my user. After that, "scalar register" successfully worked.

Thanks, -Albert

________________________________________ 发件人: Derrick Stolee <derrickstolee@github.com> 发送时间: 2022年11月7日 10:51 收件人: Albert Lv; git@vger.kernel.org 主题: Re: Git Bug Report: 'scalar register' command failed at Mac m1

On 11/6/22 8:56 AM, Albert Lv wrote:
Show 14 quoted lines
> Thank you for filling out a Git bug report!
> Please answer the following questions to help us understand your issue.
>
> What did you do before the bug happened? (Steps to reproduce your issue)
> 1. First I run 'scalar register' to register current git repo'.
> 2. Because previous command report 'Permission denied', so I run 'sudo scalar register'.
>
> What did you expect to happen? (Expected behavior)
> Scalar successfully registered
>
> What happened instead? (Actual behavior)
> Command report:
> fatal: failed to bootstrap service /Users/albert/Library/LaunchAgents/org.git-scm.git.hourly.plist
> error: could not turn on maintenance
Thanks for the report, Albert!

I suspect that you get the same problem with "git maintenance start" which is the underlying command that "scalar register" is running at this point of failure.

The "~/Library/LaunchAgents/" should be owned by your user, allowing this to work without needing to "sudo". However, if your permissions on that directory have changed, then the "sudo" will be necessary. Could you double-check your permissions by running "ls -al ~/Library"?

Thanks, -Stolee

Previous: Derrick Stolee
Message 3 of 3 in “Git Bug Report: 'scalar register' command failed at Mac m1”
  1. Albert LvNov 6, 2022
  2. Derrick StoleeNov 7, 2022
  3. 回复: Git Bug Report: 'scalar register' command failed at Mac m1Albert Lv, Nov 7, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.