OpenJDK won't install from hub for Unity 2019.3.13f1

Hi! Because of several problems trying to build my android game I have uninstalled and reinstalled all the unity versions and unity hub I had.

Currently I have Unity Hub 2.3.1 and from it I have installed the versions 2019.3.13f1 and 2018.4.22f1 of Unity.

The problem comes when trying to install OpenJDK for Unity 2019.3.13f1.

As I’ve tried this several times, the last time I installed 2019.3.13f1 I just chose the editor, and when it finished I chose to install the documentation, Windows Build Support, Android Build Support(without sdk, ndk nor openjdk), then Android SDK&NDK Tools, and at last the OpenJDK.

When installing the last one, it seems to start ok showing the blue loading bar
Images

But then it just goes back to idle status and the OpenJDK is not installed
Images

I looked in the forums and got to the log file of the hub, which says something about a timeout when downloading the package:

LogFile

{“moduleName”:“UnityIPCServer”,“level”:“info”,“message”:“[ ‘IPC Server Unity-hubInstallServer started’ ]”,“timestamp”:“2020-05-14T01:27:37.824Z”}
{“moduleName”:“UnityIPCServerPlatform”,“level”:“info”,“message”:“[ ‘spawn elevated child process to Unity-hubInstallServer’ ]”,“timestamp”:“2020-05-14T01:27:37.824Z”}
{“moduleName”:“UnityIPCServerPlatform”,“level”:“info”,“message”:“[ ‘elevate "A:\\Programas\\Unity Hub\\Unity Hub.exe" – --winInstaller’ ]”,“timestamp”:“2020-05-14T01:27:37.824Z”}
{“moduleName”:“UnityIPCServer”,“level”:“info”,“message”:“[ ‘client process has connected to Unity-hubInstallServer!’ ]”,“timestamp”:“2020-05-14T01:27:41.115Z”}
{“moduleName”:“installServiceBootstrap”,“level”:“info”,“message”:“[ ‘start install sub process’ ]”,“timestamp”:“2020-05-14T01:27:41.103Z”}
{“moduleName”:“InstallerWinProcess”,“level”:“info”,“message”:“[ ‘trying to connect to the ipc server’ ]”,“timestamp”:“2020-05-14T01:27:41.113Z”}
{“moduleName”:“DownloadsCluster”,“level”:“info”,“message”:“[ ‘Cluster total download size: 73.89MB’ ]”,“timestamp”:“2020-05-14T01:27:41.208Z”}
{“moduleName”:“DownloadsCluster”,“level”:“info”,“message”:“[ ‘Cluster 2019.3.13f1: downloads starting’ ]”,“timestamp”:“2020-05-14T01:27:41.209Z”}
{“moduleName”:“DownloadRequest”,“level”:“info”,“message”:“[ ‘Starting the download of http://download.unity3d.com/download_unity/open-jdk/open-jdk-win-x64/jdk8u172-b11_4be8440cc514099cfe1b50cbc74128f6955cd90fd5afe15ea7be60f832de67b4.zip to C:\\Users\\Catri\\AppData\\Local\\Temp\\unityhub-1a80b0b0-9582-11ea-923d-cf01da2506ae\\jdk8u172-b11_4be8440cc514099cfe1b50cbc74128f6955cd90fd5afe15ea7be60f832de67b4.zip’ ]”,“timestamp”:“2020-05-14T01:27:41.209Z”}
{“moduleName”:“DownloadRequest”,“level”:“warn”,“message”:“[ ‘Something went wrong while downloading http://download.unity3d.com/download_unity/open-jdk/open-jdk-win-x64/jdk8u172-b11_4be8440cc514099cfe1b50cbc74128f6955cd90fd5afe15ea7be60f832de67b4.zip Error: ESOCKETTIMEDOUT Error: ESOCKETTIMEDOUT\n at ClientRequest. (A:\\Programas\\Unity Hub\\resources\\app.asar\\node_modules\\request\\request.js:816:19)\n at Object.onceWrapper (events.js:282:20)\n at ClientRequest.emit (events.js:194:13)\n at ClientRequest.EventEmitter.emit (domain.js:469:20)\n at Socket.emitRequestTimeout (_http_client.js:673:40)\n at Object.onceWrapper (events.js:282:20)\n at Socket.emit (events.js:194:13)\n at Socket.EventEmitter.emit (domain.js:469:20)\n at Socket._onTimeout (net.js:429:8)\n at listOnTimeout (internal/timers.js:535:17)’ ]”,“timestamp”:“2020-05-14T01:28:15.545Z”}
{“moduleName”:“DownloadRequest”,“level”:“warn”,“message”:“[ ‘Something went wrong while checking progress of http://download.unity3d.com/download_unity/open-jdk/open-jdk-win-x64/jdk8u172-b11_4be8440cc514099cfe1b50cbc74128f6955cd90fd5afe15ea7be60f832de67b4.zip Error: ESOCKETTIMEDOUT Error: ESOCKETTIMEDOUT\n at ClientRequest. (A:\\Programas\\Unity Hub\\resources\\app.asar\\node_modules\\request\\request.js:816:19)\n at Object.onceWrapper (events.js:282:20)\n at ClientRequest.emit (events.js:194:13)\n at ClientRequest.EventEmitter.emit (domain.js:469:20)\n at Socket.emitRequestTimeout (_http_client.js:673:40)\n at Object.onceWrapper (events.js:282:20)\n at Socket.emit (events.js:194:13)\n at Socket.EventEmitter.emit (domain.js:469:20)\n at Socket._onTimeout (net.js:429:8)\n at listOnTimeout (internal/timers.js:535:17)’ ]”,“timestamp”:“2020-05-14T01:28:15.546Z”}
{“moduleName”:“DownloadsCluster”,“level”:“info”,“message”:“[ ‘Cluster 2019.3.13f1: Finished’ ]”,“timestamp”:“2020-05-14T01:28:15.546Z”}
{“moduleName”:“DownloadManager”,“level”:“info”,“message”:“[ ‘download ended with status: 3 C:\\Users\\Catri\\AppData\\Local\\Temp\\unityhub-1a80b0b0-9582-11ea-923d-cf01da2506ae\\jdk8u172-b11_4be8440cc514099cfe1b50cbc74128f6955cd90fd5afe15ea7be60f832de67b4.zip’ ]”,“timestamp”:“2020-05-14T01:28:15.546Z”}
{“moduleName”:“Download”,“level”:“info”,“message”:“[ ‘Components download ended successfully. Download id: 2019.3.13f1’ ]”,“timestamp”:“2020-05-14T01:28:15.547Z”}
{“moduleName”:“Installer”,“level”:“info”,“message”:“[ ‘Install modules for the Editor 2019.3.13f1’ ]”,“timestamp”:“2020-05-14T01:28:15.548Z”}
{“moduleName”:“UnityInstallStepsWindows”,“level”:“warn”,“message”:“[ 'error while deploying zip ',\n Error: end of central directory record signature not found\n at A:\Programas\Unity Hub\resources\app.asar\node_modules\yauzl\index.js:187:14\n at A:\Programas\Unity Hub\resources\app.asar\node_modules\yauzl\index.js:631:5\n at A:\Programas\Unity Hub\resources\app.asar\node_modules\fd-slicer\index.js:32:7\n at FSReqCallback.wrapper [as oncomplete] (fs.js:483:5) ]”,“timestamp”:“2020-05-14T01:28:15.561Z”}
{“moduleName”:“UnityInstallerWindows”,“level”:“warn”,“message”:“[ ‘Error while installing module!’,\n { error:\n { code: ‘INSTALL_ERROR’,\n message: ‘Error happened while executing the installer. Aborting.’ } } ]”,“timestamp”:“2020-05-14T01:28:15.562Z”}
{“moduleName”:“UnityInstallerWindows”,“level”:“warn”,“message”:“[ ‘failed to install a module [object Object]’ ]”,“timestamp”:“2020-05-14T01:28:15.563Z”}
{“moduleName”:“UnityInstallStepsWindows”,“level”:“warn”,“message”:“[ Error: end of central directory record signature not found\n at A:\Programas\Unity Hub\resources\app.asar\node_modules\yauzl\index.js:187:14\n at A:\Programas\Unity Hub\resources\app.asar\node_modules\yauzl\index.js:631:5\n at A:\Programas\Unity Hub\resources\app.asar\node_modules\fd-slicer\index.js:32:7\n at FSReqCallback.wrapper [as oncomplete] (fs.js:483:5) ]”,“timestamp”:“2020-05-14T01:28:15.562Z”}
{“moduleName”:“Installer:ReleaseFileIO”,“level”:“info”,“message”:“[ ‘write A:\\Programas\\Unity\\2019.3.13f1\\modules.json’ ]”,“timestamp”:“2020-05-14T01:28:15.565Z”}
{“moduleName”:“UnityInstallerWindows”,“level”:“info”,“message”:“[ ‘client process finished writing modules file’,\n [ { editor: [Object],\n baseInstallPath: ‘A:\\Programas\\Unity\\2019.3.13f1’,\n modules: [Array],\n cancelled: false,\n status: ‘INSTALLING’,\n jobType: ‘moduleInstall’ },\n [ ],\n false ] ]”,“timestamp”:“2020-05-14T01:28:15.567Z”}
{“moduleName”:“Installer:ReleaseFileIO”,“level”:“info”,“message”:“[ ‘read A:\\Programas\\Unity\\2019.3.13f1\\modules.json’ ]”,“timestamp”:“2020-05-14T01:28:15.879Z”}

I’ve tried downloading the file from the link in the log and it has a great delay in the download when it gets to some point.

Is there a way to fix this? or could it be a problem with my pc?

Thanks!

1 Like

I am also facing same probelem. In openJdk and android sdk tools. Unity hub have bugs it does not install OpenJdk and androil tools properly. I have download androild studio tools(latest), but when i copy the folder in Sdk folder, Sdkmanager.bat file automatically deteted and unit show error invaid android sdk tools. Try to install amazon correto jdk1.8.0, it solved the problem of some users not all

1 Like