I've installed 0.16.0 (previously tried 0.15.0 with some result). When I try to open Unity hub nothing happens. The log reads as follows... Spoiler: Here's the log {"moduleName":"RestEventRouter","level":"info","message":"adding route path: license.change","timestamp":"2018-04-20T22:23:40.089Z"} {"moduleName":"RestEventRouter","level":"info","message":"adding route path: project.opened","timestamp":"2018-04-20T22:23:40.090Z"} {"moduleName":"RestEventRouter","level":"info","message":"adding route path: project.create","timestamp":"2018-04-20T22:23:40.090Z"} {"moduleName":"RestEventRouter","level":"info","message":"adding route path: project.createTemp","timestamp":"2018-04-20T22:23:40.090Z"} {"moduleName":"RestEventRouter","level":"info","message":"adding route path: project.openedFromCloud","timestamp":"2018-04-20T22:23:40.090Z"} {"moduleName":"RestEventRouter","level":"info","message":"adding route path: main-window.change","timestamp":"2018-04-20T22:23:40.090Z"} {"moduleName":"HubSettings","level":"info","message":"{ cloudEnvironment: 'production',\n accessTokenIntervalPeriod: 5000,\n servicesUrlInterval: 900000,\n releasesRefreshInterval: 3600000,\n recentProjectInterval: 60000,\n downloadClusterInterval: 1000,\n downloadEditorInterval: 1000,\n refreshTokenValidity: 2592000000,\n checkForUpdateInterval: 43200000,\n sendAnalyticsEventsInterval: 60000,\n maxSizeForAnalyticsQueue: 500,\n globalConfigFolder: 'C:\\\\ProgramData\\\\Unity\\\\config' }","timestamp":"2018-04-20T22:23:40.119Z"} {"moduleName":"AutoUpdater","level":"info","message":"Init","timestamp":"2018-04-20T22:23:40.119Z"} {"moduleName":"AutoUpdater","level":"info","message":"Checking for hub updates","timestamp":"2018-04-20T22:23:40.120Z"} {"moduleName":"AutoUpdater:EventHandler","level":"info","message":"Checking for update","timestamp":"2018-04-20T22:23:40.120Z"} {"moduleName":"TokenManager","level":"info","message":"Init","timestamp":"2018-04-20T22:23:40.121Z"} {"moduleName":"TokenManager","level":"info","message":"Done init","timestamp":"2018-04-20T22:23:40.198Z"} {"moduleName":"Config","level":"info","message":"Init","timestamp":"2018-04-20T22:23:40.198Z"} {"moduleName":"Config","level":"info","message":"Using production services URL","timestamp":"2018-04-20T22:23:40.198Z"} {"moduleName":"Download","level":"info","message":"Init","timestamp":"2018-04-20T22:23:40.198Z"} {"moduleName":"EditorManager","level":"info","message":"Init","timestamp":"2018-04-20T22:23:40.211Z"} {"moduleName":"Releases","level":"info","message":"Init","timestamp":"2018-04-20T22:23:40.211Z"} {"moduleName":"EditorFolderScanner","level":"info","message":"0 out of 0 valid paths found in path: C:\\Program Files\\Unity\\Hub\\Editor","timestamp":"2018-04-20T22:23:40.271Z"} {"moduleName":"customInstallLocation","level":"info","message":"Cannot scan custom location (no path set).","timestamp":"2018-04-20T22:23:40.271Z"} {"moduleName":"LocatedEditorStorage","level":"info","message":"0 located editors found in storage","timestamp":"2018-04-20T22:23:40.273Z"} {"moduleName":"EditorApp","level":"info","message":"Init","timestamp":"2018-04-20T22:23:40.273Z"} {"moduleName":"Auth","level":"info","message":"Init","timestamp":"2018-04-20T22:23:40.274Z"} {"moduleName":"LicenseClient","level":"info","message":"Init","timestamp":"2018-04-20T22:23:40.275Z"} {"moduleName":"MachineService","level":"warn","message":"","timestamp":"2018-04-20T22:23:40.316Z"} {"moduleName":"App","level":"error","message":"Failed to start Unity Hub, reason: Error: spawn C:\\Windows\\system32\\cmd.exe; ENOENT","timestamp":"2018-04-20T22:23:40.317Z"} {"moduleName":"App","level":"error","message":"Error: spawn C:\\Windows\\system32\\cmd.exe; ENOENT\n at exports._errnoException (util.js:1024:11)\n at Process.ChildProcess._handle.onexit (internal/child_process.js:192:19)\n at onErrorNT (internal/child_process.js:374:16)\n at _combinedTickCallback (internal/process/next_tick.js:138:11)\n at process._tickDomainCallback (internal/process/next_tick.js:218:9)","timestamp":"2018-04-20T22:23:40.317Z"} I'm on Windows 10. Thanks.
Hey @joeksy , Thanks for looking at this. Yes windows is installed on my C drive. I do have a D drive which contains unity projects & games etc but nothing else. I did change my downloads folder for windows to also point to a folder on the D drive. Unity Hub & existing versions of Unity I have are also on the C drive.
Hi @pcg , What the log is currently telling us is that Unity Hub cannot find your window's cmd (C:\\Windows\\system32\\cmd.exe). Would you perhaps have certain security software or setting that may block cmd?
I would recommend to first check with the location mentioned, then check the permission on the properties.
I Removed the COMSPEC environment variable and Unity Hub is now launching. I've subsequently added the default COMSPEC variable again. I "thought" I'd placed the original COMSPEC value in my clipboard but apparently not, so I've reinstated it with the windows 10 default so perhaps the COMSPEC var was not correct or whatever the dependencies were have now been installed and its no longer needed. Anyway its all working fine now. Thanks for your help.
I had the same problem re Unity Hub not opening on a new Windows 10 PC. I checked the COMSPEC environment variable and it was OK, when running %COMSPEC% at the command line it correctly started a new 'cmd.exe' sub-session (i.e. within the current one). Then I realised that as this was a brand new PC just out of the box it was running the dreaded Windows Defender as its antivirus/firewall. I replaced Windows Defender with ZoneAlarm Free antivirus and firewall then rebooted, uninstalled and reinstalled Unity Hub. Hey presto! Unity Hub was able to kick off its command line processes and seems to be working correctly. Hope this helps anyone else suffering from the same issue.