djebbibmw / enterprise-log-search-and-archive

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

install.sh fails when updating syslog-ng.conf #177

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" && sh install.sh node
2.
3.

What is the expected output? What do you see instead?
Updating syslog-ng.conf...
install.sh: line 743: /usr/local/syslog-ng/bin/pdbtool: No such file or 
directory
install.sh: line 745: /usr/local/syslog-ng/bin/pdbtool: No such file or 
directory
install.sh: line 766: /usr/local/syslog-ng/etc/syslog-ng.conf: No such file or 
directory

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

Please provide any additional information below.

It seems the path for syslog-ng in these lines does not take into account the 
$SYSLOG_VER variable that is used to install syslog-ng.

Original issue reported on code.google.com by jessebow...@gmail.com on 27 Sep 2013 at 2:10

GoogleCodeExporter commented 9 years ago
The original install creates a symlink between /usr/local/$SYSLOG_VER and 
/usr/local/syslog-ng, so it should still work.  Do you not have that symlink?

Original comment by mchol...@gmail.com on 27 Sep 2013 at 3:36

GoogleCodeExporter commented 9 years ago
Seems that may be the issue. My structure looks like:

# ls -l /usr/local/syslog-ng*
/usr/local/syslog-ng:
total 4
lrwxrwxrwx. 1 root root   26 Sep 26 22:17 syslog-ng-3.2.4 -> 
/usr/local/syslog-ng-3.2.4
drwxr-xr-x. 2 root root 4096 Sep 25 15:55 var

/usr/local/syslog-ng-3.2.4:
total 24
drwxr-xr-x. 2 root root 4096 Sep 26 22:17 bin
drwxr-xr-x. 3 root root 4096 Sep 26 20:44 etc
drwxr-xr-x. 3 root root 4096 Sep 26 22:16 lib
drwxr-xr-x. 2 root root 4096 Sep 26 20:44 libexec
drwxr-xr-x. 2 root root 4096 Sep 26 22:17 sbin
drwxr-xr-x. 5 root root 4096 Sep 26 20:44 share

So, I'll try blowing those away and installing again...

I get further and the link looks good:

# ls -l /usr/local/syslog-ng*
lrwxrwxrwx. 1 root root   26 Sep 27 09:53 /usr/local/syslog-ng -> 
/usr/local/syslog-ng-3.2.4

/usr/local/syslog-ng-3.2.4:
total 28
drwxr-xr-x. 2 root root 4096 Sep 27 09:53 bin
drwxr-xr-x. 3 root root 4096 Sep 27 09:53 etc
drwxr-xr-x. 3 root root 4096 Sep 27 09:53 lib
drwxr-xr-x. 2 root root 4096 Sep 27 09:53 libexec
drwxr-xr-x. 2 root root 4096 Sep 27 09:53 sbin
drwxr-xr-x. 5 root root 4096 Sep 27 09:53 share
drwxr-xr-x. 2 root root 4096 Sep 27 09:53 var

but still fail with this error:

Sleeping for 60 seconds to allow ELSA to init...
init_elsa success
Executing test_elsa
Sending test log messages...
average rate = 1892.52 msg/sec, count=1893, time=1.002, (last) msg size=256, 
bandwidth=473.13 kB/sec
Sleeping for 60 seconds to allow ELSA to load batch...
Use of uninitialized value $db_size in concatenation (.) or string at 
/usr/local/elsa/node/Indexer.pm line 145.
Use of uninitialized value in numeric gt (>) at /usr/local/elsa/node/Indexer.pm 
line 621.
Use of uninitialized value $db_size in concatenation (.) or string at 
/usr/local/elsa/node/Indexer.pm line 163.
Use of uninitialized value $db_size in addition (+) at 
/usr/local/elsa/node/Indexer.pm line 182.
Use of uninitialized value $db_size in addition (+) at 
/usr/local/elsa/node/Indexer.pm line 184.
Use of uninitialized value $db_size in concatenation (.) or string at 
/usr/local/elsa/node/Indexer.pm line 200.
Use of uninitialized value $db_size in addition (+) at 
/usr/local/elsa/node/Indexer.pm line 221.
test_elsa FAIL

Could be something wonky on my end; I'll refresh this image and start again. 
Please consider closed for now until I can reproduce an error reliably.

Original comment by jessebow...@gmail.com on 27 Sep 2013 at 2:11

GoogleCodeExporter commented 9 years ago
Definitely something off on my system. Removing 
/usr/local/{elsa,sphinx,syslog-ng*}, /etc/elsa and reinstalling seems to have 
completed successfully. Sorry for the noise!

Original comment by jessebow...@gmail.com on 27 Sep 2013 at 5:09

GoogleCodeExporter commented 9 years ago

Original comment by mchol...@gmail.com on 27 Sep 2013 at 10:29