Repository navigation
Description
Describe the bug
Every hour or two, Github desktop asks me for installing support tools....
Version & OS
Mac Os X Monterey
Github Desktop - Version 2.9.6 (arm64)
Open the 'About GitHub Desktop' menu to see the GitHub Desktop version. Also include what operating system you are using.
Steps to reproduce the behavior
Have open app in the background.
Expected behavior
Install the most once a week probably?
Actual behavior
Write a clear and concise description of what actually happened.
Screenshots
https://cln.sh/GS2vj7
Logs
2022-02-18T01:14:47.995Z - info: [ui] Executing getStatus: git --no-optional-locks status --untracked-files=all --branch --porcelain=2 -z (took 1.334s)
2022-02-18T10:09:39.385Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 3.814s)
2022-02-18T10:12:21.435Z - info: [ui] [BranchPruner] Last prune took place in 13 hours - skipping
2022-02-18T11:51:47.171Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 3.795s)
2022-02-18T14:12:24.413Z - info: [ui] [BranchPruner] Last prune took place in 9 hours - skipping
2022-02-18T15:18:43.319Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 3.060s)
2022-02-18T18:10:17.997Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 1.219s)
2022-02-18T18:12:29.026Z - info: [ui] [BranchPruner] Last prune took place in 4 hours - skipping
2022-02-18T19:52:57.005Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 1.046s)
2022-02-18T21:02:01.106Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 4.035s)
2022-02-18T22:12:22.753Z - info: [ui] [BranchPruner] Last prune took place in 30 minutes - skipping
2022-02-20T12:14:05.764Z - info: [ui] [BranchPruner] No branches to prune.
2022-02-20T12:14:08.282Z - info: [ui] Executing getStatus: git --no-optional-locks status --untracked-files=all --branch --porcelain=2 -z (took 1.199s)
2022-02-20T12:22:02.923Z - info: [ui] Executing getStatus: git --no-optional-locks status --untracked-files=all --branch --porcelain=2 -z (took 1.118s)
2022-02-20T12:22:08.231Z - info: [ui] Executing getStatus: git --no-optional-locks status --untracked-files=all --branch --porcelain=2 -z (took 4.646s)
2022-02-20T12:22:08.794Z - info: [ui] [RepositoryIndicatorUpdater]: Refreshing sidebar indicators for 13 repositories took 12.9s of which 470.3s paused, total 483.2s
Activity
sergiou87 commentedon Feb 20, 2022
Thanks for your report @obchodniuspech
I don't exactly understand why it's asking for your password 🤔 We have released 3 new versions this week (2.9.7, 2.9.8 and 2.9.9) to address a few issues we've found, not sure if those many releases is why Desktop is bugging you.
Could you upgrade to the latest version and see if it still requests your password?
obchodniuspech commentedon Feb 20, 2022
I just upgraded, it could leave me in peace for about 3 days and then when Iam working on project it asks for example 30 times in one afternoon :D its very scary and I event wanted to uninstall completely :D I will try the new version. I hope it will dissapear its very anoing :(
obchodniuspech commentedon Feb 23, 2022
Its happening again. Are there more helping tools for github or only one? What can I do for better debugging?
sergiou87 commentedon Feb 23, 2022
There are no "tools", I'm not totally sure why it's prompting you the password so many times, other than to get access to your GitHub token (to keep you signed in). In the screenshot you shared the dialog says "there is an update ready to install", which shouldn't require admin permissions 🤔
Is the app correctly located in
/Applications?obchodniuspech commentedon Feb 23, 2022
It says it want to install helper tool and update :D
Yes, the app is in /Applications
If its only my problem Im not sure what to do I will try to reinstall, when I will finish project Im working on cause Im too lazy to fill in the auths again :D
obchodniuspech commentedon Feb 26, 2022
just to let you know, on actual version it asks - like 4-6 times a day... kill me :D
[-]How many support tools are required? Im literally dying..[/-][+]Repeated prompts to install helper on macOS Monterey[/+]eaglesongs commentedon Mar 6, 2022
I have this same problem, and it was happening even before I upgraded to Monterey. In fact, it just happened when I was trying to sign in to leave this comment, and I had to enter my password 4 times in a row before it finally stopped! This is maddening!
ColeDCrawford commentedon Mar 11, 2022
Also get this, most frequently with Github but also some other apps.
hliljegren commentedon Apr 20, 2022
Just want to chime in as I have the exact same issue. Github desktop is installed in /Applications but (for security reasons) I'm not normally logged in as admin and thus normally needs to enter admin user and password to write to the /Applications folder if that can make any difference. I also have two git accounts one for work and one private, if that can give any clues. I'm on an intel mac with MacOS 12.3.1 (Monteray)
amcgregor commentedon Apr 22, 2022
I get the prompt a minimum of three times after returning to my workstation after an extended period of time, i.e. a work day.
These prompts don't actually say anything about the operation underway, and I reject them. A software update is not a helper application being installed, making it sufficiently suspicious. If I do bother with the dance in a VM, I'm asked a minimum of three times.
Git on my machine is managed by Homebrew, I do not require (nor desire) graphical applications manipulating the contents of
/usr/local… if that's even what it's doing. Edit to note: at least this isn't quite as bad as #1128. This is occasionally annoying, repeated polling with a hardware token was a several-times-per-hour affair. Edit to edit to note a second note: theGitHub Desktop.appbundle is also located in a shared area—/Users/Shared/Applications/Development—with full write permission for the active user. It's really not attempting to update the app bundle. For me, this is something else.16 remaining items
sergiou87 commentedon May 12, 2022
@aussiemate32 I have no idea how this could happen to begin with 🤔 The first time a user installs this is by unpacking a zip and moving the
GitHub Desktop.appbundle to/Applications, and after that it would auto-update to new versions by automatically doing that same process.Did you install it differently? I wonder what the difference actually was… 🤔
obchodniuspech commentedon May 12, 2022
ls -l /Applications/ | grep Desktop
drwxr-xr-x+ 3 root wheel 96 17 úno 18:28 GitHub Desktop.app
sergiou87 commentedon May 12, 2022
@obchodniuspech thank you. As you see,
rootis the owner, which I think is the cause of your problem.How did you install GitHub Desktop exactly? I wonder if just deleting it entirely, and then downloading the latest version from https://desktop.github.com/ and installing it again would solve the issue.
amcgregor commentedon May 12, 2022
@obchodniuspech Have you restored your machine using Migration Assistant, by any chance?
obchodniuspech commentedon May 12, 2022
@amcgregor if you mean like when iam buying new mac, sure - i do this all the time. I dont have any other problems with other apps.
aussiemate32 commentedon May 12, 2022
I’m very new to GitHub. apologies I thought I’d installed it from an installer.. dmg type thingy.. I still have no idea how this happens..
amcgregor commentedon May 12, 2022
Cool. That was the exact reason why my
GitHub Desktop.appdid not have correct permissions. I completely reinstalled and restored my home workstation using Migration Assistant a few weeks ago, and at the office, my domain administrator owns the files. In both cases, the file ownership and permissions were the cause of the prompts; see above.It's very rare for an application to be self-modifying in this way. Most update systems notify of an update and request permission to install ("install now", "install on next start", &c.) thus give a clear indication of why a sudo (elevated permissions) prompt may appear. If the application being updated is not owned by your user account, clicking "update now" will immediately prompt for elevated permissions with a clear correlation and explanation for why you are being prompted. Most wouldn't think about it as being unusual in this type of case—often I don't even notice it for updates to things like my DBA tools or multimedia software.
It's unusual in GitHub Desktop's case in that it attempts to silently write to its own internal files, triggering the prompt seemingly without reason. No "would you like to update now, or later" prompt which would give an indication as to the action underway which would require this.
No way to disable automatic modification at all. (My domain administrator is not particularly happy about this fact.)
That was going to be one of my next steps. What you did was add your user account as an ACL (Access Control List) entry. I'm not entirely sure this permission gets inherited on files deeper within the bundle; try changing the owner instead: (this corrected the issue for me, though I did this from Terminal, not Finder)
leonidmakarovsky commentedon Jul 1, 2022
Hello, I have the same problem on Monterey 12.4. Is there a fix for that?
literallylara commentedon Aug 27, 2022
I have the same problem on Montery 12.5.1, but it also existed many versions before that.
In my case I believe the issue is caused by having two admin accounts set up (one personal, one for work):
$ groups lara > staff admin ...$ groups work > staff admin ...Before updating, I did:
Which results in:
I then proceeded to update the app via the
Workuser, which worked fine without any prompts, but it changed the ownership and permission:This again leaves me with the problem that I will only be able to update the app without prompts from the Work account. As soon as I switch to my personal account the helper tool prompts will appear again. I also tried setting the user and group to
Work:staffwithg+wpermissions as suggested in another comment above but after updating theg+wpermission disappears again.I should note that the exact same behaviour can be observed with other Electron-based apps, like Visual Studio Code. I wonder if this can be fixed with ACL permissions, or if the solution is just to install every app twice. Any help would be appreciated.. :)
amcgregor commentedon Sep 12, 2022
While I appreciate that in single-user environments the problem appears to be less of a problem, the problem still exists, especially for managed workstations. The update mechanism is not transactional and attempts to authorise every individual on-disk file change operation. It can not be disabled and manually updated as a transaction. This isn't "fixed", it's "ignored".
tr1s commentedon Sep 14, 2022
Same issue here after installing the 12.6 Monterey update.
morficus commentedon Sep 16, 2022
Ditto, I started running into this after upgrading to Monterey 12.6
josefkim commentedon Oct 7, 2022
same goes for me
dweigl commentedon Feb 15, 2023
I also have this issue and if it helps at all, I also have it with VSCode, Zotero, and Evernote. Although GitHub seems to pop up most frequently (multiple times when opened and then occasionally through the day). I've also had this issue for a while now, including before installing Monterey (previously on Big Sur)
jayj89 commentedon May 11, 2023
This, we are still seeing this issue. Specifically on the latest version 3.2.3. End users can't change the user/owner permissions on
/Applications/GitHub\ Desktop.appas they don't have the local admin credentials. There needs to be an actual fix for this for enterprise environments using tools like Jamf to deploy applications remotely. How can we get this issue re-opened?