Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I'm trying to install on Windows 10 (64 bit) and getting this error: 'An internal error occurred (error code: 20)' #6354

Closed
Koehd896 opened this issue Aug 10, 2020 · 12 comments

Comments

@Koehd896
Copy link

This is the log:

Log: C:\Users\raven\AppData\Local\Temp\i4J_nlog_4.log

I'm happy to provide any other information that would be relevant

@headius
Copy link
Member

headius commented Aug 12, 2020

Can you provide the content of the log? Use https://gist.github.com please.

@headius headius added this to the JRuby 9.3.0.0 milestone Aug 12, 2020
@Koehd896
Copy link
Author

Thanks for the response! Unfortunately this is all I'm getting for the log:

Log: C:\Users\raven\AppData\Local\Temp\i4J_nlog_4.log

@headius
Copy link
Member

headius commented Aug 13, 2020

That line should indicate a file containing information about what happened during the install. Does the file exist? If so, can you post the contents using https://gist.github.com?

@preetpalS
Copy link

I had issues using the installer for the latest version as well.

Log (replaced full path environment variable replaced with "%PATH%")

Started executable C:\Users\preet\Downloads\jruby_windows_x64_9_2_13_0.exe at Sun Aug 09 05:18:02 2020

[0:0] restrict DLL directories
[0:19] init file name C:\Users\preet\Downloads\jruby_windows_x64_9_2_13_0.exe C:\Users\preet\Downloads\jruby_windows_x64_9_2_13_0.exe 55 0
[0:199] number of sections: 6
[0:210] size of optional headers: 240
[0:221] resSectionTableStart: 712
[0:234] rawDataSize: 2560, rawDataOffset: 436224
[0:245] sun.locale.formatasdefault is false
[0:257] language/country is en_GB
[0:269] change working directory to C:\Users\preet\Downloads
[0:281] single instance mode
[0:291] semaphore name Local\c:_users_preet_downloads_jruby_windows_x64_9_2_13_0.exe, code 0, value 0000000000000134
[0:302] Init done
[0:358] Starting work
[0:390] number of sections: 6
[0:401] size of optional headers: 240
[0:411] resSectionTableStart: 712
[0:421] rawDataSize: 2560, rawDataOffset: 436224
[0:432] starting at 438784
[0:442] verifying integrity length 54047455
[0:751] checksums: 1522060578 1522060578 1522060578 1522060578
[0:761] tempPath is C:\Users\preet\AppData\Local\Temp
[0:771] tempFile is C:\Users\preet\AppData\Local\Temp\e4j74F3.tmp
[0:780] Temp dir3: C:\Users\preet\AppData\Local\Temp\e4j74F3.tmp_dir1596975483
[0:790] native lib dir is ${launcher:sys.launcherTempDirectory}\user
[0:800] expanding2 ${launcher:sys.launcherTempDirectory} to C:\Users\preet\AppData\Local\Temp\e4j74F3.tmp_dir1596975483 in C:\Users\preet\AppData\Local\Temp\e4j74F3.tmp_dir1596975483\user.
[0:810] Adding DLL directory C:\Users\preet\AppData\Local\Temp\e4j74F3.tmp_dir1596975483\user
[0:820] Setting PATH (native libs) C:\Users\preet\AppData\Local\Temp\e4j74F3.tmp_dir1596975483\user;%PATH%
[0:832] extracting files
[0:844] Included files: 10
[0:856] extracting C:\Users\preet\AppData\Local\Temp\e4j74F3.tmp_dir1596975483\i4jruntime.jar.pack (size: 737569)
[0:876] extracting C:\Users\preet\AppData\Local\Temp\e4j74F3.tmp_dir1596975483\i4j_extf_2_1c441ij_15dezq0.png (size: 66974)
[0:890] extracting C:\Users\preet\AppData\Local\Temp\e4j74F3.tmp_dir1596975483\i4jparams.conf (size: 342548)
[0:924] extracting C:\Users\preet\AppData\Local\Temp\e4j74F3.tmp_dir1596975483\i4j_extf_1_1c441ij_18gg8kx@2x.png (size: 15419)
[0:938] extracting C:\Users\preet\AppData\Local\Temp\e4j74F3.tmp_dir1596975483\installer.ico (size: 15749)
[0:957] extracting C:\Users\preet\AppData\Local\Temp\e4j74F3.tmp_dir1596975483\MessagesDefault (size: 33680)
[0:979] extracting C:\Users\preet\AppData\Local\Temp\e4j74F3.tmp_dir1596975483\user.jar.pack (size: 2035)
[0:998] extracting C:\Users\preet\AppData\Local\Temp\e4j74F3.tmp_dir1596975483\i4j_extf_1_1c441ij_18gg8kx.png (size: 9202)
[1:12] extracting C:\Users\preet\AppData\Local\Temp\e4j74F3.tmp_dir1596975483\stats.properties (size: 9211)
[1:32] extracting C:\Users\preet\AppData\Local\Temp\e4j74F3.tmp_dir1596975483\i4j_extf_0_1c441ij.utf8 (size: 33680)
[1:53] extracting files done
[1:65] Current working dir: C:\Users\preet\AppData\Local\Temp\e4j74F3.tmp_dir1596975483
[1:77] Full JRE path: C:\Users\preet\AppData\Local\Temp\e4j74F3.tmp_dir1596975483\jre.tar.gz
[1:90] No JRE included
[1:101] LoadDLL (0, (null), 0)
[1:113] Searching for a JVM
[1:126] MinVersion: 1.7, MaxVersion:
[1:138] Testing location (type Y)
[1:151] checkJavaExe (C:\Program Files\AdoptOpenJDK\jdk-14.0.1.7-hotspot\bin\java.exe, [out], 2, 0, 0)
[1:163] file exists
[1:175] got version from registry 14.0.1" 2020-04-1
[1:188] checkJavaExe returning 1
[1:200] found sun c:\program files\adoptopenjdk\jdk-14.0.1.7-hotspot\bin\java.exe 14.0.1" 2020-04-1
[1:212] checkJavaExe (C:\Program Files\AdoptOpenJDK\jdk-8.0.232.09-openj9\bin\java.exe, [out], 2, 0, 1)
[1:224] file doesn't exist
[1:238] checkJavaExe returning 0
[1:251] Trying to load JVM-DLL from c:\program files\adoptopenjdk\jdk-14.0.1.7-hotspot\bin\java.exe
[1:263] Adding DLL directory c:\program files\adoptopenjdk\jdk-14.0.1.7-hotspot\bin
[1:276] Setting PATH C:\Users\preet\AppData\Local\Temp\e4j74F3.tmp_dir1596975483\user;%PATH%
[1:288] Trying c:\program files\adoptopenjdk\jdk-14.0.1.7-hotspot\bin\hotspot\jvm.dll (exists 0)
[1:301] Trying c:\program files\adoptopenjdk\jdk-14.0.1.7-hotspot\bin\client\jvm.dll (exists 1)
[1:329] Loading of JVM-DLL successful
[1:342] unpacking i4jruntime.jar.pack
[1:355] c:\program files\adoptopenjdk\jdk-14.0.1.7-hotspot\bin..\bin\unpack200.exe
[1:367] -r "C:\Users\preet\AppData\Local\Temp\e4j74F3.tmp_dir1596975483\i4jruntime.jar.pack" "C:\Users\preet\AppData\Local\Temp\e4j74F3.tmp_dir1596975483\i4jruntime.jar"
[1:379] could not create unpack process
[3:605] emptying C:\Users\preet\AppData\Local\Temp\e4j74F3.tmp_dir1596975483
[3:618] attempting to delete C:\Users\preet\AppData\Local\Temp\e4j74F3.tmp_dir1596975483\i4jparams.conf
[3:630] attempting to delete C:\Users\preet\AppData\Local\Temp\e4j74F3.tmp_dir1596975483\i4jruntime.jar.pack
[3:643] attempting to delete C:\Users\preet\AppData\Local\Temp\e4j74F3.tmp_dir1596975483\i4j_extf_0_1c441ij.utf8
[3:657] attempting to delete C:\Users\preet\AppData\Local\Temp\e4j74F3.tmp_dir1596975483\i4j_extf_1_1c441ij_18gg8kx.png
[3:669] attempting to delete C:\Users\preet\AppData\Local\Temp\e4j74F3.tmp_dir1596975483\i4j_extf_1_1c441ij_18gg8kx@2x.png
[3:682] attempting to delete C:\Users\preet\AppData\Local\Temp\e4j74F3.tmp_dir1596975483\i4j_extf_2_1c441ij_15dezq0.png
[3:695] attempting to delete C:\Users\preet\AppData\Local\Temp\e4j74F3.tmp_dir1596975483\installer.ico
[3:708] attempting to delete C:\Users\preet\AppData\Local\Temp\e4j74F3.tmp_dir1596975483\MessagesDefault
[3:721] attempting to delete C:\Users\preet\AppData\Local\Temp\e4j74F3.tmp_dir1596975483\stats.properties
[3:733] attempting to delete C:\Users\preet\AppData\Local\Temp\e4j74F3.tmp_dir1596975483\user.jar.pack

@mash-97
Copy link

mash-97 commented Aug 20, 2020

I'm having the same issue too. I'll be glad to be helped.
My log file is: https://gist.github.com/mash-97/37f93368276161999db9486614d61819
Thank You!

@headius
Copy link
Member

headius commented Aug 23, 2020

It looks like this is due to Java 14 not shipping the unpack200 utility anymore. We will need to modify the installer to no longer use pack200.

It would probably be possible for you to complete the install with an older version of Java or perhaps to I stall those unpack commands some other way.

@mash-97
Copy link

mash-97 commented Aug 24, 2020

It looks like this is due to Java 14 not shipping the unpack200 utility anymore. We will need to modify the installer to no longer use pack200.

It would probably be possible for you to complete the install with an older version of Java or perhaps to I stall those unpack commands some other way.

Okay, I got it. I'll try to use some older versions of java then. Hope that will work. Thank You!

@headius
Copy link
Member

headius commented Aug 26, 2020

@Koehd896 @madrob If you are unable to get the installer to work with an earlier JDK, you can always just download the zip, unpack it, and put it somewhere in your PATH. That's really all the installer does for you. JRuby will run fine with newer JDKs, but the installer needs to be fixed.

@headius
Copy link
Member

headius commented Aug 26, 2020

I believe removing the pack200 attribute from this line in the install4j config will solve the issue:

<application name="JRuby" distributionSourceDir="" applicationId="4535-5096-5383-5182" mediaDir="." mediaFilePattern="${compiler:sys.shortName}_${compiler:sys.platform}_${compiler:sys.version}" compression="9" lzmaCompression="false" pack200Compression="true" excludeSignedFromPacking="true" commonExternalFiles="false" createMd5Sums="true" shrinkRuntime="true" shortName="jruby" publisher="JRuby Dev Team" publisherWeb="http://www.jruby.org/" version="${compiler:jruby.version}" allPathsRelative="true" backupOnSave="false" autoSave="false" convertDotsToUnderscores="true" macSignature="????" macVolumeId="720835987edcfb24" javaMinVersion="1.7" javaMaxVersion="" allowBetaVM="false" jdkMode="runtimeJre" jdkName="">

I will file a separate issue to remove all pack200 references from all maintained branches.

@preetpalS
Copy link

@mash-97 If you're using a ruby on Windows, you might want to use uru.

What I did to work around this issue was use the zip version provided by the JRuby.org and add it to the list of ruby versions managed by uru. I was to able to use JRuby using Java 14 by doing this.

@mash-97
Copy link

mash-97 commented Sep 15, 2020

Dear @preetpalS,
Though I'm having an warning, but yeah! it's working good the way you suggested. That helped me to run JRuby on windows. Thank You!

@headius
Copy link
Member

headius commented Sep 16, 2020

This is fixed for 9.2.14 and 9.3. If you need to install JRuby before then, use a JDK version prior to 14, since that's when these tools were removed, or install from the zip file by unpacking and putting in PATH (or using a Ruby install manager like "uru" mentioned above).

https://openjdk.java.net/jeps/367

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants