Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Report: Unity Hub 2.2.1 fails to install or delete editors

Discussion in 'Unity Hub' started by stillmotion, Dec 9, 2019.

  1. stillmotion

    stillmotion

    Joined:
    Jun 18, 2017
    Posts:
    1
    Steps:
    - Open Unity Hub 2.2.1
    - Login to account
    - Try to install 2019.3.0.f1. Result: Noop after confirming EULA
    - Try to remove previous 2018.3 build. Result: Noop after hitting remove button.

    Tried:
    - Uninstalling unity hub, all editors, restarting computer, reinstalling unity hub
    - Logging in and logging out

    Looks like the issue is with the install daemon not having the correct permissions:

    Log output:
    Code (JavaScript):
    1. {"moduleName":"UnityIPCServer","level":"info","message":"[ 'IPC Server Unity-hubInstallServer started' ]","timestamp":"2019-12-09T01:49:40.439Z"}
    2. {"moduleName":"UnityIPCServerPlatform","level":"info","message":"[ 'spawn elevated child process to Unity-hubInstallServer' ]","timestamp":"2019-12-09T01:49:40.439Z"}
    3. {"moduleName":"UnityIPCServerPlatform","level":"info","message":"[ 'elevate \"C:\\\\Program Files\\\\Unity Hub\\\\Unity Hub.exe\" -- --winInstaller' ]","timestamp":"2019-12-09T01:49:40.440Z"}
    4. {"moduleName":"UnityIPCServerPlatform","level":"info","message":"[ 'Not initialized. Waiting for connect..' ]","timestamp":"2019-12-09T01:49:40.440Z"}
    5. {"moduleName":"UnityIPCServer","level":"info","message":"[ 'emit stop child process of Unity-hubInstallServer' ]","timestamp":"2019-12-09T01:49:40.502Z"}
    6. {"moduleName":"UnityIPCServerPlatform","level":"error","message":"[ Error: User did not grant permission.\n      at C:\\Program Files\\Unity Hub\\resources\\app.asar\\node_modules\\sudo-prompt\\index.js:534:29\n      at ChildProcess.exithandler (child_process.js:319:5)\n      at ChildProcess.emit (events.js:194:13)\n      at maybeClose (internal/child_process.js:998:16)\n      at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5) ]","timestamp":"2019-12-09T01:49:40.502Z"}
    7. {"moduleName":"UnityIPCServer","level":"info","message":"[ 'IPC server Unity-hubInstallServer and client closed' ]","timestamp":"2019-12-09T01:49:40.502Z"}
    8. {"moduleName":"EditorManager","level":"error","message":"[ 'editor download/install cancelled because of',\n  Error: User did not grant permission.\n      at C:\\Program Files\\Unity Hub\\resources\\app.asar\\node_modules\\sudo-prompt\\index.js:534:29\n      at ChildProcess.exithandler (child_process.js:319:5)\n      at ChildProcess.emit (events.js:194:13)\n      at maybeClose (internal/child_process.js:998:16)\n      at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5) ]","timestamp":"2019-12-09T01:49:40.502Z"}
    9.  
     
    mdrunk and BartNT like this.
  2. Rafarix

    Rafarix

    Joined:
    Jan 29, 2018
    Posts:
    9
    I am getting a very similar issue as well. My anti virus keeps detecting trojan (execute.bat file) whenever I try to remove or install a editor. When I disabled it and tried installing and uninstalling nothing happens. No download starts for a new editor and old ones just sits there doing nothing.

    I have tried uninstalling Unity Hub and reinstalling, but the same thing just happens. I'm just going to look for an older version to revert to so I can get those functionalities back.
     
  3. BartNT

    BartNT

    Joined:
    Sep 12, 2013
    Posts:
    15
    Last edited: Dec 11, 2019
  4. Rafarix

    Rafarix

    Joined:
    Jan 29, 2018
    Posts:
    9
  5. Vector3DStudios

    Vector3DStudios

    Joined:
    Nov 12, 2016
    Posts:
    2
    Cant install Unity 2019.2.16f1 with UH 2.2.1.
    Unity hub download it but do nothing when try to install it.
     
  6. mdrunk

    mdrunk

    Joined:
    Apr 26, 2014
    Posts:
    11
    same here. UH 2.2.1 trying install or uninstall any editor edition, noop.
     
  7. AskCarol

    AskCarol

    Joined:
    Nov 12, 2019
    Posts:
    234
    Sorry that you're experiencing issues with Hub. Can you update to 2.2.2? This should resolve some of problems with anti-virus. Thanks!
     
    BartNT likes this.
  8. felix_utah

    felix_utah

    Joined:
    Jan 4, 2020
    Posts:
    1
    i have the same problem. using Unity Hub 2.2.2. Hub auto-installs 2018.4.14f1, but can not complete install of 2019.2.17f1. Hub downloads 2019, gets stuck on install for about 15 minutes, then deletes 2019. to get around this, i directly downloaded the 2019.2.17f1 EXE and installed it- everything went well. but now the Hub will not allow me to boot 2019- when i start 2019 directly, it opens Hub, and appears to be stuck on the install (even though 2019 was installed previously). i dont see a way to get past this point to open 2019.2.17f1.
    pc: Win 7 Ult, SP1. 64 bit os. 4ghz amd 8350. 16GB ram. 113 gb free hdd. default browser is firefox 71 64bit.
     
  9. AskCarol

    AskCarol

    Joined:
    Nov 12, 2019
    Posts:
    234
    Sorry you're still experiencing issues with Hub. In order for us to understand what's happening, can you please send your log report? You can find them at the following:
    • Windows: `%UserProfile%\AppData\Roaming\UnityHub\logs`
     
  10. shippage

    shippage

    Joined:
    May 15, 2013
    Posts:
    1
    Same issue on 2.2.2 for me. It's driving me crazy, and now I'm unable to use Unity Editor at all. Haven't found any workaround yet. I'm not using any anti-virus except for the default windows defender. On linux it works fine for me, but my project with ECS crashes the editor every few minutes (separate issue for a different thread though).
     
  11. AskCarol

    AskCarol

    Joined:
    Nov 12, 2019
    Posts:
    234
    Where are you experiencing your issue regarding Hub or the Editor? Are you having trouble installing it or getting it to open?

    And yes, please open a new thread if it's a separate case from the one described by OP.
     
  12. wechat_os_Qy03KITI8iuRrTnI6o19s5MBY

    wechat_os_Qy03KITI8iuRrTnI6o19s5MBY

    Joined:
    May 7, 2019
    Posts:
    2
    Øh ,god ,I have the same error。my unity hub Can't install unity ,What should I do to successfully install 2019 ?
     
  13. wechat_os_Qy03KITI8iuRrTnI6o19s5MBY

    wechat_os_Qy03KITI8iuRrTnI6o19s5MBY

    Joined:
    May 7, 2019
    Posts:
    2
  14. dreshaw2012

    dreshaw2012

    Joined:
    Feb 17, 2020
    Posts:
    1
    I am having the same problem
     
  15. jonah0608

    jonah0608

    Joined:
    Aug 2, 2019
    Posts:
    1
    I solved this problem by adding PowerShell to the environment variable
     
  16. Aditya_Das

    Aditya_Das

    Joined:
    Mar 24, 2021
    Posts:
    1
    I had the same problem but when I signed out and then add it worked so I recommend to sign out and then add the editor
     

    Attached Files: