Knowledge Partner Knowledge Partner
Knowledge Partner
653 views

Logger 6.0 on CentOS Linux 7.1

Hi Folks

I was just setting up a PoC Software Logger  (version 6.0.0) on CentOS 7.1 and stumbled around a bit. I would like to share my experience.

The logger installation is only for a PoC - so I dont know if it runs stabe on this CentOS version - so do not blame me, if you run into any trouble when you use this in production.



First I changed the content of /etc/redhat-release to "CentOS Linux release 6.5 (Core)"

then I got following error:

# cat /opt/logger/current/arcsight/logger/logs/logger_init_driver.log

Unpacking jarball...

Installation dir: /opt/logger

Unpacking .jar files...

Configuring web server

Starting Apache...httpd: Syntax error on line 196 of /opt/logger/current/local/apache/conf/httpd.conf: Cannot load /opt/logger/current/local/apache/modules/mod_security2.so into server: libpcre.so.0: cannot open shared object file: No such file or directory

Failed to start.

Stopping APS...APS was not running.

Failed to initialize httpd server.



Solution:

I installed "pcre.i686"  (yum install pcre.i686)

Got still same error message.

So I linked: "ln -s libpcre.so libpcre.so.0"

afterwards the error was:

# cat /opt/logger/current/arcsight/logger/logs/logger_init_driver.log

Installation dir: /opt/logger

Unpacking .jar files...

Configuring web server

Starting Apache...httpd: Could not reliably determine the server's fully qualified domain name, using  <IP>  for ServerName

ok

Unpacking jarball...

Configuring primary database

Starting PostgreSQL...ok

psql:postgresql.template.sql:24: ERROR:  encoding UTF8 does not match server's locale en_US.ISO8859-1

DETAIL: The server's LC_CTYPE setting requires encoding LATIN1.

psql:postgresql.template.sql:96: \connect: FATAL:  database "rwdb" does not exist

psql: FATAL:  database "rwdb" does not exist

Stopping APS...APS was not running.

Failed to initialize postgresql.



checked locales

[software]# locale

LANG=en_US.UTF-8

LC_CTYPE=en_US.ISO8859-1

LC_NUMERIC=en_US.ISO8859-1

LC_TIME=en_US.ISO8859-1

LC_COLLATE=en_US.ISO8859-1

LC_MONETARY=en_US.ISO8859-1

LC_MESSAGES=C

LC_PAPER="en_US.UTF-8"

LC_NAME="en_US.UTF-8"

LC_ADDRESS="en_US.UTF-8"

LC_TELEPHONE="en_US.UTF-8"

LC_MEASUREMENT="en_US.UTF-8"

LC_IDENTIFICATION="en_US.UTF-8"

LC_ALL=


checked locales on logger appliance

[appliance]# locale

LANG=en_US.UTF-8

LC_CTYPE=en_US.ISO8859-1

LC_NUMERIC=en_US.ISO8859-1

LC_TIME=en_US.ISO8859-1

LC_COLLATE=en_US.ISO8859-1

LC_MONETARY=en_US.ISO8859-1

LC_MESSAGES=C

LC_PAPER="en_US.UTF-8"

LC_NAME="en_US.UTF-8"

LC_ADDRESS="en_US.UTF-8"

LC_TELEPHONE="en_US.UTF-8"

LC_MEASUREMENT="en_US.UTF-8"

LC_IDENTIFICATION="en_US.UTF-8"

LC_ALL=


Solution

change /etc/locale.conf to contain


LANG=en_US.UTF-8

LC_CTYPE="en_US.UTF-8"

LC_NUMERIC="en_US.UTF-8"

LC_TIME="en_US.UTF-8"

LC_COLLATE="en_US.UTF-8"

LC_MONETARY="en_US.UTF-8"

LC_MESSAGES="en_US.UTF-8"

LC_PAPER="en_US.UTF-8"

LC_NAME="en_US.UTF-8"

LC_ADDRESS="en_US.UTF-8"

LC_TELEPHONE="en_US.UTF-8"

LC_MEASUREMENT="en_US.UTF-8"

LC_IDENTIFICATION="en_US.UTF-8"

LC_ALL=


Enjoy

Andreas

Labels (1)
1 Reply
salvatore.alba@ Super Contributor.
Super Contributor.

Re: Logger 6.0 on CentOS Linux 7.1

Thanks for sharing Andreas, great job!

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.