SafeAF / enterprise-log-search-and-archive

Automatically exported from code.google.com/p/enterprise-log-search-and-archive
0 stars 0 forks source link

Installation fails if $http_proxy is set but not $https_proxy #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
*What steps will reproduce the problem?*
1. wget 
"http://enterprise-log-search-and-archive.googlecode.com/svn/trunk/elsa/contrib/
install.sh"
2. $http_proxy is set but not $https_proxy
3. sh -c "sh install.sh"

*What do you see instead?*

# sh -c "sh install.sh node"
Assuming distro to be centos
Executing centos_get_node_packages
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
 * base: centos.cict.fr
 * epel: be.mirror.eurid.eu
 * extras: centos.bio.lmu.de
 * rpmforge: apt.sw.be
 * updates: centos.bio.lmu.de
Setting up Update Process
No Packages marked for Update
Loaded plugins: fastestmirror, refresh-packagekit
Ignored option -q, -v, -d or -e (probably due to merging: -yq != -y -q)
Loading mirror speeds from cached hostfile
 * base: centos.cict.fr
 * epel: be.mirror.eurid.eu
 * extras: centos.bio.lmu.de
 * rpmforge: apt.sw.be
 * updates: centos.bio.lmu.de
Setting up Install Process
Package flex-2.5.35-8.el6.x86_64 already installed and latest version
Package bison-2.4.1-5.el6.x86_64 already installed and latest version
Package ntpdate-4.2.4p8-2.el6.centos.x86_64 already installed and latest version
Package 4:perl-5.10.1-119.el6_1.1.x86_64 already installed and latest version
Package 4:perl-devel-5.10.1-119.el6_1.1.x86_64 already installed and latest 
version
Package curl-7.19.7-26.el6_2.4.x86_64 already installed and latest version
Package 1:make-3.81-19.el6.x86_64 already installed and latest version
Package subversion-1.6.11-2.el6_1.4.x86_64 already installed and latest version
Package gcc-4.4.6-3.el6.x86_64 already installed and latest version
Package gcc-c++-4.4.6-3.el6.x86_64 already installed and latest version
Package mysql-server-5.1.61-1.el6_2.1.x86_64 already installed and latest 
version
Package mysql-libs-5.1.61-1.el6_2.1.x86_64 already installed and latest version
Package mysql-devel-5.1.61-1.el6_2.1.x86_64 already installed and latest version
No package pkg-config available.
Package 1:pkgconfig-0.23-9.1.el6.x86_64 already installed and latest version
Package pcre-devel-7.8-3.1.el6.x86_64 already installed and latest version
Package libcap-devel-2.16-5.5.el6.x86_64 already installed and latest version
Package libnet-devel-1.1.5-1.el6.x86_64 already installed and latest version
Package openssl-devel-1.0.0-20.el6_2.4.x86_64 already installed and latest 
version
No package libopenssl-devel available.
Package glib2-devel-2.22.5-6.el6.x86_64 already installed and latest version
Nothing to do
centos_get_node_packages success
Executing set_date
Error : Name or service not known
25 May 17:29:45 ntpdate[26389]: can't find host time.nist.gov

25 May 17:29:45 ntpdate[26389]: no servers can be used, exiting
set_date success
Executing check_svn_proxy
http_proxy set, verifying subversion is setup accordingly...
http-proxy-host = 10.0.0.1
check_svn_proxy success
Executing build_node_perl
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   301    0   301    0     0    449      0 --:--:-- --:--:-- --:--:--   455
curl: (6) Couldn't resolve host 'raw.github.com'
install.sh: line 229: cpanm : commande introuvable
install.sh: line 234: cpanm : commande introuvable
install.sh: line 240: cpanm : commande introuvable
Retry 1
install.sh: line 240: cpanm : commande introuvable
Retry 2
install.sh: line 240: cpanm : commande introuvable
Retry 3
build_node_perl FAIL

*What version of the product are you using? On what operating system?*

$ lsb_release -a
LSB Version:    
:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-
4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description:    CentOS release 6.2 (Final)
Release:        6.2
Codename:       Final

*Please provide any additional information below.*
# echo $PATH
/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/b
in:/root/bin

# perl -v

This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi

# cpan -v
/usr/bin/cpan script version 1.9, CPAN.pm version 1.9402

# env|grep proxy
http_proxy=http://myuser:mypass@10.0.0.1:8080/

* Patch *
 - Add check_https_proxy
 - use check_https_proxy for install and update

Patch  : http://codereview.appspot.com/6245054/patch/1/2

Original issue reported on code.google.com by yoh...@lepage.info on 25 May 2012 at 4:19

GoogleCodeExporter commented 9 years ago
Fixed patch http://codereview.appspot.com/6245054/patch/1002/2001

Original comment by yoh...@lepage.info on 25 May 2012 at 4:35

GoogleCodeExporter commented 9 years ago
Fixed in r276

Original comment by mchol...@gmail.com on 29 May 2012 at 2:46