airpwn / enterprise-log-search-and-archive

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

curl does not properly download eventlog and syslog-ng source #213

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1.  Run install.sh on centos 5 or 6.  With centos 6, it was on a fresh install.

2.  Notice that when curl downloads the two files from balabit.com for eventlog 
and syslog-ng, the files come out to be 0 bytes.  When tar/gz is run on these 
files, there is a failure, but the script continues.  

3.  install.sh will continue at that point but later fail because it wants 
files in /usr/local/syslog-ng/bin and that directory does not exist.

What is the expected output? What do you see instead?

Below is output showing what you will see when this problem occurs:

build_sphinx success
Executing build_syslogng
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
build_syslogng success
Executing set_syslogng_conf
Updating syslog-ng.conf...
install.sh: line 787: /usr/local/syslog-ng/bin/pdbtool: No such file or 
directory
install.sh: line 789: /usr/local/syslog-ng/bin/pdbtool: No such file or 
directory
install.sh: line 810: /usr/local/syslog-ng/etc/syslog-ng.conf: No such file or 
directory
set_syslogng_conf FAIL

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

I am using the latest install.sh, downloaded from this site today.  I am 
running this on Centos 6.5, but had the same issue on Centos 5.

Please provide any additional information below.

I was able to work around this problem by downloading the eventlog and 
syslog-ng source code using wget, and compiling it manually.  I then commented 
those lines out of the build_syslogng() function and reran the script.  It 
seems that the problem is with curl.  I am using:

# curl --version
curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.3 
libidn/1.18 libssh2/1.4.2
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz

Thanks for all the work you've done on this application.  It looks great and I 
am looking forward to getting it up and running.

Original issue reported on code.google.com by ryan.be...@gmail.com on 7 May 2014 at 7:08

GoogleCodeExporter commented 9 years ago

somehow I missed this before, but I now see that this is a duplicate of issue 
#206.

Original comment by ryan.be...@gmail.com on 7 May 2014 at 7:11