You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "Alice Chen (JIRA)" <ji...@apache.org> on 2015/07/22 20:17:14 UTC

[jira] [Created] (TRAFODION-514) LP Bug: 1353579 - Installer throws error when installing EPEL if EPEL is already installed

Alice Chen created TRAFODION-514:
------------------------------------

             Summary: LP Bug: 1353579 - Installer throws error when installing EPEL if EPEL is already installed
                 Key: TRAFODION-514
                 URL: https://issues.apache.org/jira/browse/TRAFODION-514
             Project: Apache Trafodion
          Issue Type: Bug
          Components: installer
            Reporter: Tung Jin Chew
            Assignee: Amanda Moran
            Priority: Minor


The installer-0.8.3_v2.tar.gz trafodion_setup script currently tries to install EPEL from an RPM. 

Unfortunately, if EPEL is already installed (either manually or from a previous install of trafodion), yum returns an error code (since there's nothing to do), and the installer then terminates prematurely.

This is the console output:
  ***INFO: installing required packages
  ***INFO: ... EPEL rpm
  --2014-08-06 15:05:56--  http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
  Resolving cmbg-newproxy.autonomy.com... 10.2.101.11
  Connecting to cmbg-newproxy.autonomy.com|10.2.101.11|:8080... connected.
  Proxy request sent, awaiting response... 302 Moved Temporarily
  Location: http://mirror.bytemark.co.uk/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm [following]
  --2014-08-06 15:05:57--  http://mirror.bytemark.co.uk/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
  Connecting to cmbg-newproxy.autonomy.com|10.2.101.11|:8080... connected.
  Proxy request sent, awaiting response... 200 OK
  Length: 14540 (14K) [application/x-redhat-package-manager]
  Saving to: “epel-release-6-8.noarch.rpm.1”

  100%[==================================================================================================>] 14,540      --.-K/s   in 0.03s   

  2014-08-06 15:05:57 (522 KB/s) - “epel-release-6-8.noarch.rpm.1” saved [14540/14540]

  ***ERROR: Can't install EPEL rpm epel-release-6-8.noarch.rpm

The error code from installing when it's already installed is just 1:
  [root@hadoop-trafodion2 installer]# yum install epel-release-6-8.noarch.rpm
  Loaded plugins: fastestmirror, refresh-packagekit
  Loading mirror speeds from cached hostfile
   * base: centos.aol.com
   * epel: archive.linux.duke.edu
   * extras: centos.aol.com
   * updates: centos.expedientevirtual.com
  Setting up Install Process
  Examining epel-release-6-8.noarch.rpm: epel-release-6-8.noarch
  epel-release-6-8.noarch.rpm: does not update installed package.
  Error: Nothing to do
  [root@hadoop-trafodion2 installer]# echo $?
  1
so maybe it should check if the package is already installed with 
  yum list installed | grep -F epel-release.noarch
first. 

As a side note, it should probably check if the file is already present before downloading it. At the moment, it's downloading it even if it's already present, so you get another copy, but uses the original copy for installation. (less of an issue here since it's small, but more annoying for the JDK download in traf_cloudera_setup)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)