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.
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.
I have this issue, and deduced it to 100% a Unity bug (and not a local bug):
{"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"}
{"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"}
{"timestamp":"2024-04-02T04:56:22.874Z","level":"info","moduleName":"Installation Manager","pid":28184,"message":"Starting installer of 2022.3.22f1-x86_64"}
{"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."}
{"timestamp":"2024-04-02T04:56:22.874Z","level":"info","moduleName":"Installer: 2022.3.22f1-x86_64","pid":28184,"message":"Entered State: install_validation"}
{"timestamp":"2024-04-02T04:56:22.880Z","level":"info","moduleName":"UnityIPCServer","pid":28184,"message":"IPC Server Unity-hubInstallServer started"}
{"timestamp":"2024-04-02T04:56:22.880Z","level":"info","moduleName":"UnityInstallerWindows","pid":28184,"message":"spawn child process, elevated: true"}
{"timestamp":"2024-04-02T04:56:22.880Z","level":"info","moduleName":"UnityInstallerWindows","pid":28184,"message":"executing \"C:\\Program Files\\Unity Hub\\Unity Hub.exe\" -- --winInstaller"}
{"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.
^ CC @Gennady
There were probably 2 diff versions that handled UAC/dir perms differently → Unity auto updated itself → Perms mismatched
Grr, I found myself doing Unity’s QA work for them, but:
{"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.
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.
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.
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://discussions.unity.com/t/924785 page-2#post-9598846
For everyone encountering this issue…
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.
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:
Here are my latest logs after trying to install a module. For me it looks like there is a problem with the certificate.
{"timestamp":"2024-04-08T06:58:04.231Z","level":"info","moduleName":"LicensingSdkService","message":"[ 'Successfully checked for entitlements request.' ]"}
{"timestamp":"2024-04-08T06:58:11.859Z","level":"info","moduleName":"Download Manager","message":"[ 'Item: 84fa5522-798b-4d64-bfff-4df3c728757a added to Download Queue.' ]"}
{"timestamp":"2024-04-08T06:58:11.859Z","level":"info","moduleName":"Download Manager","message":"[ 'Removed 84fa5522-798b-4d64-bfff-4df3c728757a from Download Queue.' ]"}
{"timestamp":"2024-04-08T06:58:11.859Z","level":"info","moduleName":"Download Manager","message":"[ 'Starting download of 84fa5522-798b-4d64-bfff-4df3c728757a' ]"}
{"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' ]"}
{"timestamp":"2024-04-08T06:58:11.862Z","level":"info","moduleName":"Download Item 84fa5522-798b-4d64-bfff-4df3c728757a","message":"[ 'Transition to state download_validation' ]"}
{"timestamp":"2024-04-08T06:58:11.863Z","level":"info","moduleName":"Disk Validation Strategy","message":"[ 'Executing the Download Validation Strategy...' ]"}
{"timestamp":"2024-04-08T06:58:11.866Z","level":"info","moduleName":"Disk Validation Strategy","message":"[ 'Validating destination path permission for access...' ]"}
{"timestamp":"2024-04-08T06:58:11.868Z","level":"info","moduleName":"Disk Validation Strategy","message":"[ 'Destination Path check: Passed' ]"}
{"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...' ]"}
{"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\" ]"}
{"timestamp":"2024-04-08T06:58:11.913Z","level":"info","moduleName":"Disk Validation Strategy","message":"[ 'Source Availability check: Failed' ]"}
{"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' ]"}
{"timestamp":"2024-04-08T06:58:11.915Z","level":"info","moduleName":"Download Item","message":"[ 'Download: 84fa5522-798b-4d64-bfff-4df3c728757a, Current State: Failed, Event: ERROR' ]"}
{"timestamp":"2024-04-08T06:58:11.915Z","level":"info","moduleName":"Download Item 84fa5522-798b-4d64-bfff-4df3c728757a","message":"[ 'Transition to state download_failed' ]"}
WHAT A CHAMPION! Thank you!
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?
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.
{"timestamp":"2024-04-30T13:53:49.140Z","level":"info","moduleName":"UnityIPCServer","pid":7676,"message":"IPC Server Unity-hubInstallServer started"}
{"timestamp":"2024-04-30T13:53:49.140Z","level":"info","moduleName":"UnityInstallerWindows","pid":7676,"message":"spawn child process, elevated: true"}
{"timestamp":"2024-04-30T13:53:49.140Z","level":"info","moduleName":"UnityInstallerWindows","pid":7676,"message":"executing \"C:\\Program Files\\Unity Hub\\Unity Hub.exe\" -- --winInstaller"}
{"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"}
{"timestamp":"2024-04-30T13:53:49.407Z","level":"info","moduleName":"UnityIPCServer","pid":7676,"message":"IPC server Unity-hubInstallServer closed"}
{"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"}
{"timestamp":"2024-04-30T13:53:49.408Z","level":"info","moduleName":"Installer: 2022.3.26f1-x86_64","pid":7676,"message":"Validation FAILED."}
{"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"}
{"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\""}
{"timestamp":"2024-04-30T13:53:49.408Z","level":"info","moduleName":"Installation Manager","pid":7676,"message":"Update: install_failed"}
{"timestamp":"2024-04-30T13:53:49.409Z","level":"info","moduleName":"Installer: 2022.3.26f1-x86_64","pid":7676,"message":"Entered State: install_failed"}
Needless to say, my PowerShell is in perfect condition. We do most of our scripting with it.
and this appears to be what your error is caused by:
It should be (additional parameters as needed of course)
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.
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?