{"thread":{"id":"58754","subject":"Git Bug Report: 'scalar register' command failed at Mac m1","startedAt":"2022-11-06T13:56:50Z","lastAt":"2022-11-07T14:53:54Z","messageCount":3,"participants":["Albert Lv","Derrick Stolee"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"466631","messageId":"PSBPR01MB3541FDC2CB117051A01A9418FA3D9@PSBPR01MB3541.apcprd01.prod.exchangelabs.com","threadId":"58754","inReplyTo":null,"subject":"Git Bug Report: 'scalar register' command failed at Mac m1","fromName":"Albert Lv","fromEmail":"albert.lv-us-icloud@outlook.com","sentAt":"2022-11-06T13:56:44Z","receivedAt":"2022-11-06T13:56:50Z","isPatch":false,"sender":{"key":"albert.lv-us-icloud@outlook.com","avatar":null},"body":"Thank you for filling out a Git bug report!\nPlease answer the following questions to help us understand your issue.\n\nWhat did you do before the bug happened? (Steps to reproduce your issue)\n1. First I run 'scalar register' to register current git repo'.\n2. Because previous command report 'Permission denied', so I run 'sudo scalar register'.\n\nWhat did you expect to happen? (Expected behavior)\nScalar successfully registered\n\nWhat happened instead? (Actual behavior)\nCommand report:\nfatal: failed to bootstrap service /Users/albert/Library/LaunchAgents/org.git-scm.git.hourly.plist\nerror: could not turn on maintenance\n\nWhat's different between what you expected and what actually happened?\nCommand failed\n\nAnything else you want to add:\nI am using mac m1 and macOS 13.0\n\nPlease review the rest of the bug report below.\nYou can delete any lines you don't wish to share.\n\n\n[System Info]\ngit version:\ngit version 2.38.1.dirty\ncpu: arm64\nbuilt from commit: d5b41391a472dcf9486055fd5b8517f893e88daf\nsizeof-long: 8\nsizeof-size_t: 8\nshell-path: /bin/sh\nfeature: fsmonitor--daemon\nuname: Darwin 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct  9 20:14:30 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T8103 arm64\ncompiler info: clang: 12.0.5 (clang-1205.0.22.9)\nlibc info: no libc information available\n$SHELL (typically, interactive shell): /bin/zsh"},{"id":"466641","messageId":"42804b53-7035-1ba0-3076-2207e63681b7@github.com","threadId":"58754","inReplyTo":"PSBPR01MB3541FDC2CB117051A01A9418FA3D9@PSBPR01MB3541.apcprd01.prod.exchangelabs.com","subject":"Re: Git Bug Report: 'scalar register' command failed at Mac m1","fromName":"Derrick Stolee","fromEmail":"derrickstolee@github.com","sentAt":"2022-11-07T02:51:55Z","receivedAt":"2022-11-07T02:52:10Z","isPatch":false,"sender":{"key":"stolee@gmail.com","avatar":"https://avatars.githubusercontent.com/u/570044?v=4"},"body":"On 11/6/22 8:56 AM, Albert Lv wrote:\n> Thank you for filling out a Git bug report!\n> Please answer the following questions to help us understand your issue.\n> \n> What did you do before the bug happened? (Steps to reproduce your issue)\n> 1. First I run 'scalar register' to register current git repo'.\n> 2. Because previous command report 'Permission denied', so I run 'sudo scalar register'.\n> \n> What did you expect to happen? (Expected behavior)\n> Scalar successfully registered\n> \n> What happened instead? (Actual behavior)\n> Command report:\n> fatal: failed to bootstrap service /Users/albert/Library/LaunchAgents/org.git-scm.git.hourly.plist\n> error: could not turn on maintenance\n\nThanks for the report, Albert!\n\nI suspect that you get the same problem with\n\"git maintenance start\" which is the underlying\ncommand that \"scalar register\" is running at this\npoint of failure.\n\nThe \"~/Library/LaunchAgents/\" should be owned by\nyour user, allowing this to work without needing\nto \"sudo\". However, if your permissions on that\ndirectory have changed, then the \"sudo\" will be\nnecessary. Could you double-check your permissions\nby running \"ls -al ~/Library\"?\n\nThanks,\n-Stolee\n"},{"id":"466667","messageId":"PSBPR01MB3541B7081894BAAD85118202FA3C9@PSBPR01MB3541.apcprd01.prod.exchangelabs.com","threadId":"58754","inReplyTo":"42804b53-7035-1ba0-3076-2207e63681b7@github.com","subject":"回复: Git Bug Report: 'scalar register' command failed at Mac m1","fromName":"Albert Lv","fromEmail":"albert.lv-us-icloud@outlook.com","sentAt":"2022-11-07T14:53:46Z","receivedAt":"2022-11-07T14:53:54Z","isPatch":false,"sender":{"key":"albert.lv-us-icloud@outlook.com","avatar":null},"body":"Thanks a lot, Derrick!\n\n\"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.\n\nThanks,\n-Albert\n\n________________________________________\n发件人: Derrick Stolee <derrickstolee@github.com>\n发送时间: 2022年11月7日 10:51\n收件人: Albert Lv; git@vger.kernel.org\n主题: Re: Git Bug Report: 'scalar register' command failed at Mac m1\n\nOn 11/6/22 8:56 AM, Albert Lv wrote:\n> Thank you for filling out a Git bug report!\n> Please answer the following questions to help us understand your issue.\n>\n> What did you do before the bug happened? (Steps to reproduce your issue)\n> 1. First I run 'scalar register' to register current git repo'.\n> 2. Because previous command report 'Permission denied', so I run 'sudo scalar register'.\n>\n> What did you expect to happen? (Expected behavior)\n> Scalar successfully registered\n>\n> What happened instead? (Actual behavior)\n> Command report:\n> fatal: failed to bootstrap service /Users/albert/Library/LaunchAgents/org.git-scm.git.hourly.plist\n> error: could not turn on maintenance\n\nThanks for the report, Albert!\n\nI suspect that you get the same problem with\n\"git maintenance start\" which is the underlying\ncommand that \"scalar register\" is running at this\npoint of failure.\n\nThe \"~/Library/LaunchAgents/\" should be owned by\nyour user, allowing this to work without needing\nto \"sudo\". However, if your permissions on that\ndirectory have changed, then the \"sudo\" will be\nnecessary. Could you double-check your permissions\nby running \"ls -al ~/Library\"?\n\nThanks,\n-Stolee\n"}]}