View Issue Details

IDProjectCategoryView StatusLast Update
0015415CentOS-6java-1.7.0-openjdkpublic2019-12-14 10:49
Reporterdeanj@videx.com 
PriorityhighSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version6.10 
Target VersionFixed in Version 
Summary0015415: Java package update to java-1.7.0-openjdk-1.7.0.191-2.6.15.4.el6_10.x86_64.rpm does not finish post install. Fails
DescriptionA yum update to the package java-1.7.0-openjdk-1.7.0.191-2.6.15.4.el6_10.x86_64.rpm is failing with a pre install script error:
Running Transaction
Error in PRETRANS scriptlet in rpm package 1:java-1.7.0-openjdk-1.7.0.191-2.6.15.4.el6_10.x86_64
error: lua script failed: /usr/libexec/copy_jdk_configs.lua:272: attempt to index global 'file' (a nil value)

This is on 6.10.

--------


Downloading Packages:
(1/2): java-1.7.0-openjdk-1.7.0.191-2.6.15.4.el6_10.x86_64.rpm | 26 MB 00:06
(2/2): yum-3.2.29-81.el6.centos.0.1.noarch.rpm | 1.0 MB 00:00
-----------------------------------------------------------------------------------------------------------------------------
Total 3.8 MB/s | 27 MB 00:07
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Error in PRETRANS scriptlet in rpm package 1:java-1.7.0-openjdk-1.7.0.191-2.6.15.4.el6_10.x86_64
error: lua script failed: /usr/libexec/copy_jdk_configs.lua:272: attempt to index global 'file' (a nil value)
  Updating : yum-3.2.29-81.el6.centos.0.1.noarch 1/4
  Cleanup : yum-3.2.29-81.el6.centos.noarch 2/4
  Verifying : yum-3.2.29-81.el6.centos.0.1.noarch 1/4
  Verifying : 1:java-1.7.0-openjdk-1.7.0.191-2.6.15.4.el6_10.x86_64 2/4
1:java-1.7.0-openjdk-1.7.0.181-2.6.14.10.el6.x86_64 was supposed to be removed but is not!
  Verifying : 1:java-1.7.0-openjdk-1.7.0.181-2.6.14.10.el6.x86_64 3/4
  Verifying : yum-3.2.29-81.el6.centos.noarch 4/4

Updated:
  yum.noarch 0:3.2.29-81.el6.centos.0.1

Failed:
  java-1.7.0-openjdk.x86_64 1:1.7.0.181-2.6.14.10.el6 java-1.7.0-openjdk.x86_64 1:1.7.0.191-2.6.15.4.el6_10

Complete!
Steps To ReproduceCentOS net iso install on a clean/new system pointing to the os directory on the repository as the install path. After initial install, come around and do a yum update. Java package fails.

The java-1.7.0-openjdk-1.7.0.191-2.6.15.4.el6_10.x86_64.rpm package is failing with a lua script error.

Error in PRETRANS scriptlet in rpm package 1:java-1.7.0-openjdk-1.7.0.191-2.6.15.4.el6_10.x86_64
error: lua script failed: /usr/libexec/copy_jdk_configs.lua:272: attempt to index global 'file' (a nil value)
Additional InformationThis happens on new installs very reliably.

On an existing system that has been running for some time, I have been seeing about a 50/50 chance of it happening.
TagsNo tags attached.

Activities

deanj@videx.com

deanj@videx.com

2018-10-26 16:16

reporter   ~0033006

I forgot to add, that I have a kickstart script that installs java-openjdk-1.7.0 during the install process.

Then after the initial install and reboot, the yum update to the latest java-openjdk-1.7.0 package has the mentioned issue.
deanj@videx.com

deanj@videx.com

2018-10-26 16:40

reporter   ~0033007

Tested again:

Fresh net install via CentOS 6.10 NET iso.
'Desktop' install package level.

reboot into newly installed system.

Yum update fails on this package.
dbundgaard

dbundgaard

2019-12-14 10:49

reporter   ~0035838

Hello

I found that by uninstalling copy-jdk-configs and reinstalling java-1.7.0 made it work.

so to put it into commands

# yum erase copy-jdk-configs

# yum install java-1.7.0

Issue History

Date Modified Username Field Change
2018-10-26 15:32 deanj@videx.com New Issue
2018-10-26 16:16 deanj@videx.com Note Added: 0033006
2018-10-26 16:40 deanj@videx.com Note Added: 0033007
2019-12-14 10:49 dbundgaard Note Added: 0035838