Search Unity

Unity Hub wont open

Discussion in 'Unity Hub' started by pcg, Apr 20, 2018.

  1. pcg

    pcg

    Joined:
    Nov 7, 2010
    Posts:
    292
    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...
    {"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.
     
  2. joeksy

    joeksy

    Unity Technologies

    Joined:
    Jan 12, 2017
    Posts:
    155
    Hi @pcg ,
    Thanks for reporting,
    I have a small question, is your Windows installed on C drive?
     
  3. pcg

    pcg

    Joined:
    Nov 7, 2010
    Posts:
    292
    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.
     
  4. joeksy

    joeksy

    Unity Technologies

    Joined:
    Jan 12, 2017
    Posts:
    155
    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?
     
  5. pcg

    pcg

    Joined:
    Nov 7, 2010
    Posts:
    292
    Not to my knowledge. Is there someway I can test this?
     
  6. joeksy

    joeksy

    Unity Technologies

    Joined:
    Jan 12, 2017
    Posts:
    155
    I would recommend to first check with the location mentioned, then check the permission on the properties.
     
  7. pcg

    pcg

    Joined:
    Nov 7, 2010
    Posts:
    292
    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.
     
    joeksy likes this.
  8. jtarrier

    jtarrier

    Joined:
    Sep 15, 2019
    Posts:
    2
    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.
     
    pcg likes this.
  9. Sandeep_pala

    Sandeep_pala

    Joined:
    Jan 15, 2020
    Posts:
    8
    i have also same problem unity hub won't open.
     
  10. Sandeep_pala

    Sandeep_pala

    Joined:
    Jan 15, 2020
    Posts:
    8
    i tested it even that my unity version is not opening.
     
  11. sliplads

    sliplads

    Joined:
    Apr 19, 2023
    Posts:
    1
    please, explain this easier so i can open unity hub
     
    WolfDreamer likes this.
  12. lycialakhdari3

    lycialakhdari3

    Joined:
    Nov 3, 2023
    Posts:
    1
    Hi, did you manage to get an answer or find a solution? If so, can you explain to me how please
     
    yemojagg likes this.