[Case 84181] EasyApache update fails in case of yum error

deddy

Well-Known Member
Oct 13, 2003
147
1
168
EasyApache update fails when Tomcat is installed:

---> Package java-1.7.0-openjdk.x86_64 1:1.7.0.45-2.4.3.2.el6_4 will be updated
--> Processing Dependency: java7 >= 1.7.0 for package: easy-mysql-connector-java-5.1.25-0.noarch
--> Processing Dependency: java7 >= 1:1.7.0 for package: easy-jakarta-commons-daemon-1.0.15-0.x86_64
--> Processing Dependency: java-1.7.0-openjdk = 1:1.7.0.45-2.4.3.2.el6_4 for pac
---> Package java-1.7.0-openjdk.x86_64 1:1.7.0.45-2.4.3.3.el6 will be an update
--> Running transaction check
---> Package java-1.7.0-openjdk.x86_64 1:1.7.0.45-2.4.3.2.el6_4 will be updated
--> Processing Dependency: java7 >= 1.7.0 for package: easy-mysql-connector-java
--> Processing Dependency: java7 >= 1:1.7.0 for package: easy-jakarta-commons-da
---> Package java-1.7.0-openjdk-devel.x86_64 1:1.7.0.45-2.4.3.2.el6_4 will be up
---> Package java-1.7.0-openjdk-devel.x86_64 1:1.7.0.45-2.4.3.3.el6 will be an u
--> Finished Dependency Resolution
Error: Package: easy-mysql-connector-java-5.1.25-0.noarch (installed)
Requires: java7 >= 1.7.0
Removing: 1:java-1.7.0-openjdk-1.7.0.45-2.4.3.2.el6_4.x86_64 (@update
java7 = 1:1.7.0
Updated By: 1:java-1.7.0-openjdk-1.7.0.45-2.4.3.3.el6.x86_64 (base)
Not found
Error: Package: easy-jakarta-commons-daemon-1.0.15-0.x86_64 (installed)
Requires: java7 >= 1:1.7.0
Removing: 1:java-1.7.0-openjdk-1.7.0.45-2.4.3.2.el6_4.x86_64 (@update
java7 = 1:1.7.0
Updated By: 1:java-1.7.0-openjdk-1.7.0.45-2.4.3.3.el6.x86_64 (base)
Not found
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

The problem occurs since CentOS 6.5
What now ? Thanks.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

There is an internal case open to address this issue. For reference, the case number is 84181. This thread will be updated with more information as it becomes available (including an ETA on when a resolution will be pushed out).

Thank you.
 

SpiderWeb

Member
Dec 2, 2013
5
0
1
cPanel Access Level
Root Administrator
1. Run /scripts/easyapache once to have Tomcat fail as we add the java rpms during this steps if it isn't already installed (it wasn't on the test machines before this step).

2. Remove the java rpms that are 1 minor version higher

rpm -e --nodeps java-1.7.0-openjdk-devel-1.7.0.45-2.4.3.3.el6.x86_64
rpm -e --nodeps java-1.7.0-openjdk-1.7.0.45-2.4.3.3.el6.x86_64

3. Set java* in the exclude line for /etc/yum.conf file so we don't re-force the new minor version (we do otherwise on /scripts/easyapache run)

-bash-4.1# grep exclude /etc/yum.conf
exclude=bind-chroot courier* dovecot* exim* filesystem httpd* java* mod_ssl* mydns* mysql* nsd* php* proftpd* pure-ftpd* ruby* spamassassin* squirrelmail*

3. Add the 1 version lower rpms from source

wget http://mirror.centos.org/centos/6.4...enjdk-devel-1.7.0.45-2.4.3.2.el6_4.x86_64.rpm
wget http://mirror.centos.org/centos/6.4...7.0-openjdk-1.7.0.45-2.4.3.2.el6_4.x86_64.rpm

rpm -Uvh java-1.7.0-openjdk-1.7.0.45-2.4.3.2.el6_4.x86_64.rpm
rpm -Uvh java-1.7.0-openjdk-devel-1.7.0.45-2.4.3.2.el6_4.x86_64.rpm

4. Re-run /scripts/easyapache to see that Tomcat now does not fail to compile on either CentOS 6.4 or CentOS 6.5 machines.


cPanel staff confirm this?
 

ScottTh

Well-Known Member
Jan 28, 2013
157
2
18
Houston, TX
cPanel Access Level
Root Administrator
Thanks to everyone for catching this issue and bringing it to our attention. The EasyApache team is aware of this error and a fix will be on its way in the near future. Please stay tuned to this thread and our change log for additional updates and announcements!
 

MH-Stefan

Member
Dec 3, 2013
24
2
53
cPanel Access Level
Root Administrator
Do you have an estimated date when this will be fixed? We're still on CL 6.4 and cPanel can't install all other yum updates.

No rush, just wanna know. :) Thanks!
 

nibb

Well-Known Member
Mar 22, 2008
321
5
68
What a mess is 11.40 so far. Nothing but troubles and bugs.

So what about those that upgraded Java before? Do we need to recompile everything with Easy Apache or how exactly do we fix the broken yum repos?
 

MH-Stefan

Member
Dec 3, 2013
24
2
53
cPanel Access Level
Root Administrator
Since Java is part of EasyApache, I'm quite sure that you need to have the latest EasyApache version first. The latest EasyApache update addresses exactly this specific bug.

Here's what you can try:
- Go to Home » Software » EasyApache (Apache Update). You don't have to run it yet, but only access it so it retrieves the latest files.
- Run /scripts/upcp or update cPanel through the WHM interface. It will then update Java and all other packages.
- Run EasyApache to make sure that everything is up-to-date.

This worked excellent in our case.
 

KurtN.

Well-Known Member
Jan 29, 2013
95
1
83
cPanel Access Level
Root Administrator
Since Java is part of EasyApache, I'm quite sure that you need to have the latest EasyApache version first. The latest EasyApache update addresses exactly this specific bug.

Here's what you can try:
- Go to Home » Software » EasyApache (Apache Update). You don't have to run it yet, but only access it so it retrieves the latest files.
- Run /scripts/upcp or update cPanel through the WHM interface. It will then update Java and all other packages.
- Run EasyApache to make sure that everything is up-to-date.

This worked excellent in our case.
I'd like to provide a small semantical point that java is not provided by EasyApache itself. It uses yum to install the CentOS version of openJDK when you select Tomcat 7.0.
 

nibb

Well-Known Member
Mar 22, 2008
321
5
68
This should fix it:
/usr/local/cpanel/scripts/check_cpanel_rpms --fix