Skip to content

Repeated prompts to install helper on macOS Monterey #13956

Closed

Description

@obchodniuspech

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

  1. sergiou87 commented on Feb 20, 2022

    @sergiou87
    Member

    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?

  2. added
    more-info-needed
    on Feb 20, 2022
  3. obchodniuspech commented on Feb 20, 2022

    @obchodniuspech
    Author

    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 :(

  4. removed
    more-info-needed
    on Feb 20, 2022
  5. added
    more-info-needed
    on Feb 20, 2022
  6. obchodniuspech commented on Feb 23, 2022

    @obchodniuspech
    Author

    Its happening again. Are there more helping tools for github or only one? What can I do for better debugging?

  7. sergiou87 commented on Feb 23, 2022

    @sergiou87
    Member

    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?

  8. obchodniuspech commented on Feb 23, 2022

    @obchodniuspech
    Author

    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

  9. removed
    more-info-needed
    on Feb 23, 2022
  10. obchodniuspech commented on Feb 26, 2022

    @obchodniuspech
    Author

    just to let you know, on actual version it asks - like 4-6 times a day... kill me :D

  11. changed the title [-]How many support tools are required? Im literally dying..[/-] [+]Repeated prompts to install helper on macOS Monterey[/+] on Feb 28, 2022
  12. eaglesongs commented on Mar 6, 2022

    @eaglesongs

    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!

  13. ColeDCrawford commented on Mar 11, 2022

    @ColeDCrawford

    Also get this, most frequently with Github but also some other apps.

  14. hliljegren commented on Apr 20, 2022

    @hliljegren

    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)

  15. amcgregor commented on Apr 22, 2022

    @amcgregor

    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.

    Screen Shot 2022-04-22 at 08 05 28

    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: the GitHub Desktop.app bundle 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. 16 remaining items

  17. sergiou87 commented on May 12, 2022

    @sergiou87
    Member

    @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.app bundle 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… 🤔

  18. obchodniuspech commented on May 12, 2022

    @obchodniuspech
    Author

    ls -l /Applications/ | grep Desktop
    drwxr-xr-x+ 3 root wheel 96 17 úno 18:28 GitHub Desktop.app

  19. sergiou87 commented on May 12, 2022

    @sergiou87
    Member

    @obchodniuspech thank you. As you see, root is 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.

  20. amcgregor commented on May 12, 2022

    @amcgregor

    ls -l /Applications/ | grep Desktop
    drwxr-xr-x+ 3 root wheel 96 17 úno 18:28 GitHub Desktop.app

    @obchodniuspech Have you restored your machine using Migration Assistant, by any chance?

  21. obchodniuspech commented on May 12, 2022

    @obchodniuspech
    Author

    @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.

  22. aussiemate32 commented on May 12, 2022

    @aussiemate32

    @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.app bundle 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… 🤔

    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..

  23. amcgregor commented on May 12, 2022

    @amcgregor

    @amcgregor if you mean like when iam buying new mac, sure - i do this all the time.

    Cool. That was the exact reason why my GitHub Desktop.app did 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.

    I dont have any other problems with other apps.

    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.)

    Im not sure, if i did it right, but i added myself and added rights to write and read. But it didnt help... @obchodniuspech

    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)

    Changing Ownership Within Finder

  24. leonidmakarovsky commented on Jul 1, 2022

    @leonidmakarovsky

    Hello, I have the same problem on Monterey 12.4. Is there a fix for that?

  25. literallylara commented on Aug 27, 2022

    @literallylara

    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:

    $ sudo chown -R root:admin GitHub\ Desktop.app
    $ sudo chmod -R 775 GitHub\ Desktop.app

    Which results in:

    $ ls -l /Applications
    > ... 
    > drwxrwxr-x   3 root  admin    96 Aug 24 10:11 GitHub Desktop.app
    > ...

    I then proceeded to update the app via the Work user, which worked fine without any prompts, but it changed the ownership and permission:

    $ ls -l /Applications
    > ... 
    > drwxr-xr-x   3 Work  staff    96 Aug 24 10:11 GitHub Desktop.app
    > ...

    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:staff with g+w permissions as suggested in another comment above but after updating the g+w permission 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.. :)

  26. amcgregor commented on Sep 12, 2022

    @amcgregor

    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".

  27. tr1s commented on Sep 14, 2022

    @tr1s

    Same issue here after installing the 12.6 Monterey update.

  28. morficus commented on Sep 16, 2022

    @morficus

    Ditto, I started running into this after upgrading to Monterey 12.6

  29. josefkim commented on Oct 7, 2022

    @josefkim

    same goes for me

  30. dweigl commented on Feb 15, 2023

    @dweigl

    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)

  31. jayj89 commented on May 11, 2023

    @jayj89

    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".

    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.app as 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?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions