Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Bug UnityHub 3.7.0 Validation Failed

Discussion in 'Unity Hub' started by Grabthesky, Mar 28, 2024.

  1. Grabthesky

    Grabthesky

    Joined:
    Nov 15, 2018
    Posts:
    2
    Hi,

    I'm trying to install the version of UnityEditor 2022.3.22f1 through the UnityHub and showing a message error: "Install failed: Validation Failed". I have tried to install also other versions and getting the same error.
     
  2. MrLucid72

    MrLucid72

    Joined:
    Jan 12, 2016
    Posts:
    1,005
    I have this issue, and deduced it to 100% a Unity bug (and not a local bug):



    Code (JavaScript):
    1. {"timestamp":"2024-04-02T04:56:22.128Z","level":"info","moduleName":"Download Item 2022.3.22f1-x86_64","pid":28184,"message":"Transition to state download_finished"}
    2. {"timestamp":"2024-04-02T04:56:22.129Z","level":"info","moduleName":"Download Item","pid":28184,"message":"Download: 2022.3.22f1-x86_64, Exiting from State: Finished, Event: COMPLETED"}
    3. {"timestamp":"2024-04-02T04:56:22.874Z","level":"info","moduleName":"Installation Manager","pid":28184,"message":"Starting installer of 2022.3.22f1-x86_64"}
    4. {"timestamp":"2024-04-02T04:56:22.874Z","level":"info","moduleName":"Installer: 2022.3.22f1-x86_64","pid":28184,"message":"Starting the state machine of 2022.3.22f1-x86_64."}
    5. {"timestamp":"2024-04-02T04:56:22.874Z","level":"info","moduleName":"Installer: 2022.3.22f1-x86_64","pid":28184,"message":"Entered State: install_validation"}
    6. {"timestamp":"2024-04-02T04:56:22.880Z","level":"info","moduleName":"UnityIPCServer","pid":28184,"message":"IPC Server Unity-hubInstallServer started"}
    7. {"timestamp":"2024-04-02T04:56:22.880Z","level":"info","moduleName":"UnityInstallerWindows","pid":28184,"message":"spawn child process, elevated: true"}
    8. {"timestamp":"2024-04-02T04:56:22.880Z","level":"info","moduleName":"UnityInstallerWindows","pid":28184,"message":"executing \"C:\\Program Files\\Unity Hub\\Unity Hub.exe\" -- --winInstaller"}
    9. {"timestamp":"2024-04-02T04:56:23.511Z","level":"info","moduleName":"UnityInstallerWindows","pid":28184,"message":"user did not agree to the UAC prompt and the process was not started"}
    @Grabthesky Here's proof it's a bug and not you:

    You can see Unity meant to elevate the process, but clearly failed due to their own bug -> if they were successful, UAC would've popped up (screenshot above); it didn't.

    As a terrible workaround, reformatting will fix it (tested with Windows Sandbox), so it's not a server-side issue linked to your account:

    As a likely-guess: Unity Hub likely messed up their permissions when downloading->installing->moving. Specifically: Since the logs show there was a UAC popup (when there clearly was no attempt made), it's likely someone commented out or removed an important step to *actually* trigger that UAC prompt. Or-- permissions changed between updates, possibly fixing it in a ninja update so that new users wouldn't repro it and users caught in between these updates *would* repro it, allowing Unity to play naive to pretend it's you and not them.

    The fact is: If Hub would've trigger an elevation correctly, a UAC prompt **would** popup. If not, it's their own bug.

    You could probably deduce it further, but it shouldn't be your responsibility to do Unity's QA work~ There's one working dir out there that Unity - not you - changed that has elevated privs that it shouldn't have.
     
    Last edited: Apr 2, 2024
  3. MrLucid72

    MrLucid72

    Joined:
    Jan 12, 2016
    Posts:
    1,005
    ^ CC @Gennady

    There were probably 2 diff versions that handled UAC/dir perms differently -> Unity auto updated itself -> Perms mismatched
     
  4. MrLucid72

    MrLucid72

    Joined:
    Jan 12, 2016
    Posts:
    1,005
    Grr, I found myself doing Unity's QA work for them, but:

    Code (JavaScript):
    1. {"timestamp":"2024-04-02T07:02:36.170Z","level":"error","moduleName":"UnityInstallerWindows","pid":28972,"message":"{ code: 'User did not grant permission.', message: 'The Hub does not have proper permissions to install Unity.' } Start-Process : This command cannot be run due to the error: No application is associated with the specified file for \r\nthis operation.\r\nAt line:1 char:1\r\n+ Start-Process -FilePath 'C:\\Users\\kenshin\\AppData\\Local\\Temp\\d8c3ae68 ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : InvalidOperation: (:) [Start-Process], InvalidOperationException\r\n    + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand\r\n \r\n "}
    This tries to set UAC of a `%temp%` dir that doesn't actually exist. Someone probably forgot an `await` and tried to elevate perms of a dir that !exists.
     
  5. JonathanBartel

    JonathanBartel

    Joined:
    Jun 24, 2019
    Posts:
    47
    If this is a bug with the Unity Hub, it is not exclusive to 3.7.0. I'm having this issue with 3.6.1 as well.
     
  6. Grabthesky

    Grabthesky

    Joined:
    Nov 15, 2018
    Posts:
    2
    Then looks like the only way is to wait for a bugfix of the UnityHub. I have read many post about this issue and didnt find a way to fix it.
     
  7. judesidloski

    judesidloski

    Unity Technologies

    Joined:
    May 12, 2022
    Posts:
    94
    No one is saying that this is not a unity bug. Let's be clear about that. The reason this bug has been hard to fix is because it is occurring in a 3rd party dependency (sudo-prompt) which is also swallowing the error message. As of 3.8-beta.1 we patched that package to capture the error message and will be able to properly investigate and fix this for 3.9. It seems that there are a number of causes to the issue which is probably going to lead us away from sudo-prompt altogether. The reason we can't revert the change to sudo-prompt is because the package we were using had security vulnerabilities and was no longer being maintained.

    To me your particular error message looks like the .bat file extension case. https://forum.unity.com/threads/uni...validation-failed.1466600/page-2#post-9598846

    For everyone encountering this issue..
    - See https://forum.unity.com/threads/unity-hub-install-failed-validation-failed.1466600/ for some workarounds/causes
    - Upgrade to 3.8.0-beta.1 to be able to see a more detailed error message. Post it here if you like.
    - If all that fails you may need to install the editor/modules without hub.

    This bug has been in the hub for a long time at this point. I'm sorry that it as taken as long as it has and I am really looking forward to squashing it once and for all.
     
    MrLucid72 likes this.
  8. leonlanghans

    leonlanghans

    Joined:
    Feb 16, 2023
    Posts:
    5
    Hello, I'm also having problems with installing Editors or Modules for about 1 week now.

    Based on other threads regarding "Validation Failed" I already tried so far:
    - restart computer
    - using different networks
    - reinstalling the Hub
    - using an older Hub Version (3.6)
    - start the Hub as admin (but the Hub just opened as a black window)

    Here are my latest logs after trying to install a module. For me it looks like there is a problem with the certificate.

    Code (JavaScript):
    1. {"timestamp":"2024-04-08T06:58:04.231Z","level":"info","moduleName":"LicensingSdkService","message":"[ 'Successfully checked for entitlements request.' ]"}
    2. {"timestamp":"2024-04-08T06:58:11.859Z","level":"info","moduleName":"Download Manager","message":"[ 'Item: 84fa5522-798b-4d64-bfff-4df3c728757a added to Download Queue.' ]"}
    3. {"timestamp":"2024-04-08T06:58:11.859Z","level":"info","moduleName":"Download Manager","message":"[ 'Removed 84fa5522-798b-4d64-bfff-4df3c728757a from Download Queue.' ]"}
    4. {"timestamp":"2024-04-08T06:58:11.859Z","level":"info","moduleName":"Download Manager","message":"[ 'Starting download of 84fa5522-798b-4d64-bfff-4df3c728757a' ]"}
    5. {"timestamp":"2024-04-08T06:58:11.862Z","level":"info","moduleName":"Download Item","message":"[ 'Download: 84fa5522-798b-4d64-bfff-4df3c728757a, Current State: Validation, Event: xstate.init' ]"}
    6. {"timestamp":"2024-04-08T06:58:11.862Z","level":"info","moduleName":"Download Item 84fa5522-798b-4d64-bfff-4df3c728757a","message":"[ 'Transition to state download_validation' ]"}
    7. {"timestamp":"2024-04-08T06:58:11.863Z","level":"info","moduleName":"Disk Validation Strategy","message":"[ 'Executing the Download Validation Strategy...' ]"}
    8. {"timestamp":"2024-04-08T06:58:11.866Z","level":"info","moduleName":"Disk Validation Strategy","message":"[ 'Validating destination path permission for access...' ]"}
    9. {"timestamp":"2024-04-08T06:58:11.868Z","level":"info","moduleName":"Disk Validation Strategy","message":"[ 'Destination Path check: Passed' ]"}
    10. {"timestamp":"2024-04-08T06:58:11.868Z","level":"info","moduleName":"Disk Validation Strategy","message":"[ 'Validating source path (https://download.unity3d.com/download_unity/a707ca4efec4/TargetSupportInstaller/UnitySetup-Universal-Windows-Platform-Support-for-Editor-6000.0.0b11.exe) availability...' ]"}
    11. {"timestamp":"2024-04-08T06:58:11.913Z","level":"error","moduleName":"Disk Validation Strategy","message":"[ \"Error occured in 'Source Availablity Check'. Error: unable to get local issuer certificate\" ]"}
    12. {"timestamp":"2024-04-08T06:58:11.913Z","level":"info","moduleName":"Disk Validation Strategy","message":"[ 'Source Availability check: Failed' ]"}
    13. {"timestamp":"2024-04-08T06:58:11.914Z","level":"info","moduleName":"Download Item","message":"[ 'Download: 84fa5522-798b-4d64-bfff-4df3c728757a, Exiting from State: Validation, Event: ERROR' ]"}
    14. {"timestamp":"2024-04-08T06:58:11.915Z","level":"info","moduleName":"Download Item","message":"[ 'Download: 84fa5522-798b-4d64-bfff-4df3c728757a, Current State: Failed, Event: ERROR' ]"}
    15. {"timestamp":"2024-04-08T06:58:11.915Z","level":"info","moduleName":"Download Item 84fa5522-798b-4d64-bfff-4df3c728757a","message":"[ 'Transition to state download_failed' ]"}
     
    Last edited: Apr 8, 2024
  9. MrLucid72

    MrLucid72

    Joined:
    Jan 12, 2016
    Posts:
    1,005
    WHAT A CHAMPION! Thank you!
     
    judesidloski likes this.
  10. kouyu

    kouyu

    Joined:
    May 18, 2019
    Posts:
    14
    I am a user from Japan.
    UnityHub has not started for the past few days.
    It freezes 100% of the time.
    I found many similar reports on SNS since 4/19.
    Has something been updated or changed in the specifications?
     
  11. MoonMoritz

    MoonMoritz

    Joined:
    Jan 30, 2022
    Posts:
    31
    OR you could have rolled back to the last known working way of installing, because that way, you know, was working. It's not rocket science to start a process from an executable on Windows... millions of software products do this just fine all the time.

    In fact, double-clicking the installer shows that it properly asks for elevation itself.

    You're more than a software company, Unity. You are a company that makes software to make software. It has been almost a year that Hub has been worthless to me and my teammates to get any Unity Editor downloads.

    Edit: And the beta you mention is not available to me through the beta channel.
     
    Last edited: Apr 30, 2024
    MrLucid72 likes this.
  12. MoonMoritz

    MoonMoritz

    Joined:
    Jan 30, 2022
    Posts:
    31
    Code (CSharp):
    1. {"timestamp":"2024-04-30T13:53:49.140Z","level":"info","moduleName":"UnityIPCServer","pid":7676,"message":"IPC Server Unity-hubInstallServer started"}
    2. {"timestamp":"2024-04-30T13:53:49.140Z","level":"info","moduleName":"UnityInstallerWindows","pid":7676,"message":"spawn child process, elevated: true"}
    3. {"timestamp":"2024-04-30T13:53:49.140Z","level":"info","moduleName":"UnityInstallerWindows","pid":7676,"message":"executing \"C:\\Program Files\\Unity Hub\\Unity Hub.exe\" -- --winInstaller"}
    4. {"timestamp":"2024-04-30T13:53:49.406Z","level":"info","moduleName":"UnityInstallerWindows","pid":7676,"message":"user did not agree to the UAC prompt and the process was not started"}
    5. {"timestamp":"2024-04-30T13:53:49.407Z","level":"info","moduleName":"UnityIPCServer","pid":7676,"message":"IPC server Unity-hubInstallServer closed"}
    6. {"timestamp":"2024-04-30T13:53:49.407Z","level":"error","moduleName":"UnityInstallerWindows","pid":7676,"message":"{ code: 'User did not grant permission.', message: 'The Hub does not have proper permissions to install Unity.' } The argument 'Start-Process' is not recognized as the name of a script file. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.\r\n \r\nUsage: pwsh[.exe] [-Login] [[-File] <filePath> [args]]\r\n                  [-Command { - | <script-block> [-args <arg-array>]\r\n                                | <string> [<CommandParameters>] } ]\r\n                  [-CommandWithArgs <string> [<CommandParameters>]\r\n                  [-ConfigurationName <string>] [-ConfigurationFile <filePath>]\r\n                  [-CustomPipeName <string>] [-EncodedCommand <Base64EncodedCommand>]\r\n                  [-ExecutionPolicy <ExecutionPolicy>] [-InputFormat {Text | XML}]\r\n                  [-Interactive] [-MTA] [-NoExit] [-NoLogo] [-NonInteractive] [-NoProfile]\r\n                  [-NoProfileLoadTime] [-OutputFormat {Text | XML}] \r\n                  [-SettingsFile <filePath>] [-SSHServerMode] [-STA] \r\n                  [-Version] [-WindowStyle <style>] \r\n                  [-WorkingDirectory <directoryPath>]\r\n\r\n       pwsh[.exe] -h | -Help | -? | /?\r\n\r\nPowerShell Online Help https://aka.ms/powershell-docs\r\n\r\nAll parameters are case-insensitive.\r\n"}
    7. {"timestamp":"2024-04-30T13:53:49.408Z","level":"info","moduleName":"Installer: 2022.3.26f1-x86_64","pid":7676,"message":"Validation FAILED."}
    8. {"timestamp":"2024-04-30T13:53:49.408Z","level":"info","moduleName":"Installer: 2022.3.26f1-x86_64","pid":7676,"message":"Exiting from State: Validation. Event: ERROR"}
    9. {"timestamp":"2024-04-30T13:53:49.408Z","level":"info","moduleName":"Installer: 2022.3.26f1-x86_64","pid":7676,"message":"Transition to state \"install_failed\" on event \"ERROR\""}
    10. {"timestamp":"2024-04-30T13:53:49.408Z","level":"info","moduleName":"Installation Manager","pid":7676,"message":"Update: install_failed"}
    11. {"timestamp":"2024-04-30T13:53:49.409Z","level":"info","moduleName":"Installer: 2022.3.26f1-x86_64","pid":7676,"message":"Entered State: install_failed"}
    12.  
    Needless to say, my PowerShell is in perfect condition. We do most of our scripting with it.

    upload_2024-4-30_15-59-7.png

    and this appears to be what your error is caused by:
    upload_2024-4-30_16-2-4.png

    It should be (additional parameters as needed of course)
    upload_2024-4-30_16-3-10.png

    I don't know how an embarrassing bug like this can make it into a stable release and stay in it for >9 months, but here we are.
     
    Last edited: Apr 30, 2024
  13. MrLucid72

    MrLucid72

    Joined:
    Jan 12, 2016
    Posts:
    1,005
    Enterprise software, at that. I saw the recent patch notes after 6 months in the making, and it was enough content for 1 mid level dev for a 40 hr week.

    What happened?? Where's the rest? Is there really just 1 dev working 2 hrs/WK on this?
     
    MoonMoritz likes this.