emm.sh from Runtime 22.04.008 breaks TOMCAT NATIVE / SSL

Use this forum for questions regarding installation, upgrading and configuration of OpenEMM

Moderator: moderator

JuergenB
Posts: 140
Joined: Thu Dec 05, 2019 9:03 pm

emm.sh from Runtime 22.04.008 breaks TOMCAT NATIVE / SSL

Post by JuergenB »

Hello,

i need some help in locating an SSL error in a clean setup.

I wanted to upgrade our 21.10 Release to the new 22.04 Release.
The old release runs on the same AlmaLinux 8.6 setup than the test installation

I did an inplace upgrade and OpenEMM run´s find with http, but it will not work with https.

So i installed a clean AlmaLinux 8.6 in a VM with Java 11, Phyton 3.8 and mariadb.
I copied the ssl files and prepared the same server.xml file for the new installation.

IF i install the old OpenEMM Runtime 21.10.x i am able to get a working installation of OpenEMM with SSL enabled and working fine.

But ...

If i use the new 22.04.008 OpenEMM Runtime and do the same setup as with 21.10 i only geht OpenEMM running with http.
HTTPS gives me error message.

In a rare condition, https was working after a clean setup, but after a reboot of the VM, https breaks againg.

What log file do i need to verifiy for these errors?

I compared these log files against the old runnning 21.10 installation.
(catalina.out, /tmp/emm_restart_2022-10-04*, /home/openemm/logs/*).

This is the OpenEMM Info

=============================================
= OpenEMM Maintenance Tool (OMT) v22.04.008 =
=============================================
Root mode: On
Hostname: localhost.localdomain
OpenEMM License: OpenEMM (ID: 0)
OpenEMM Runtime Version: 22.04.008
OpenEMM Version: 22.04.000.207
System-Url: https://emm.domain.com

Current menu: Show OpenEMM status

OpenEMM status:
Operating System (OS): Alma 8
Python version: 3.8.12
Postfix Version: 3.5.8
Database client version: /usr/bin/mysql Ver 15.1 Distrib 10.3.35-MariaDB, for Linux (x86_64) using readline 5.1
Database Connection: OK
System-Time: 2022-10-05 12:43:13
System-Time-DB: 2022-10-05 12:43:13
Database version: MariaDB 10.3.35-MariaDB
OpenEMM database structure exists (Version 22.07.127)
Database table emm_db_errorlog_tbl: OK
Jobqueue status: OK
DKIM keys available for domains: None
Java version: 11.0.16.1 (Oracle)
Tomcat version: 10.0.20.0
Tomcat-Native version: 1.2.30
Wkhtml version: wkhtmltopdf 0.12.6 (with patched qt)
OpenEMM Application is running (Tomcat ProcessID: 4083, started at: 12:38 0:52)
OpenEMM Backend ok: once
OpenEMM Backend running: mailout, update, trigger, generate, mta, pickdist, slrtscn, direct-path, bav-update, bavd, bav, mlcontrol

Any help appreciated
Last edited by JuergenB on Fri Oct 07, 2022 1:45 pm, edited 1 time in total.
JuergenB
Posts: 140
Joined: Thu Dec 05, 2019 9:03 pm

Re: emm.sh from Runtime 22.04.008 breaks TOMCAT NATIVE / SSL

Post by JuergenB »

I digged a bit deeper into the installation / upgrade with 22.04.008 runtime ...

This runtime packages deployes a new emm.sh version (VERSION="1.7.0")
and with this release, OpenEMM seams to break the OpenEMM tomcat-native part!

OpenEMM didn´t verified the installation against a free OpenEMM release, only against their solution.

After emm.sh runs the setenv.sh has an empty EXPORT TOMCAT_NATIVE= included.

If someone from product support would like to evaluate this, please install a free Linux and your free OpenEMM package (22.04.008).
During config the emm.sh script is verifying "if" there is an agnitas installation, but the script seems to fail if it´s not available ...

One solution (worked for me) was to use the emm.sh Version "1.6.0" from the openemm-runtime-21.10.044.tar.gz package!

Second solution worked so far ..

I added TOMCAT_Native after JAVA_HOME and emm.sh was able to configure properly..

Code: Select all

JAVA_HOME="$AGN_SOFTWARE/java"
TOMCAT_NATIVE="$AGN_SOFTWARE/tomcat-native/lib"

Code: Select all

if ! test -e "$HOME/bin/setenv.sh"; then {
	echo "export JAVA_HOME=\"/opt/agnitas.com/software/java\"" >> $HOME/bin/setenv.sh
	echo "export CATALINA_HOME=\"/opt/agnitas.com/software/tomcat\"" >> $HOME/bin/setenv.sh
	
	if test -e "/opt/agnitas.com/software/tomcat-native"; then {
		echo "export TOMCAT_NATIVE=\"/opt/agnitas.com/software/tomcat-native\"" >> $HOME/bin/setenv.sh
	} else {
		echo "export TOMCAT_NATIVE=" >> $HOME/bin/setenv.sh
	} fi
	
	echo "export WKHTMLTOPDF=\"/opt/agnitas.com/software/wkhtmltox/bin/wkhtmltopdf\"" >> $HOME/bin/setenv.sh
	echo "export WKHTMLTOIMAGE=\"/opt/agnitas.com/software/wkhtmltox/bin/wkhtmltoimage\"" >> $HOME/bin/setenv.sh
	echo "export PROXY_HOST=" >> $HOME/bin/setenv.sh
	echo "export PROXY_PORT=" >> $HOME/bin/setenv.sh
	echo "export NO_PROXY_HOSTS=" >> $HOME/bin/setenv.sh
	
	chmod u+x $HOME/bin/setenv.sh
} else {
	if ! grep -q "TOMCAT_NATIVE=" "$HOME/bin/setenv.sh"; then {
		if test -e "/opt/agnitas.com/software/tomcat-native"; then {
			echo "export TOMCAT_NATIVE=\"/opt/agnitas.com/software/tomcat-native\"" >> $HOME/bin/setenv.sh
		} else {
			echo "export TOMCAT_NATIVE=" >> $HOME/bin/setenv.sh
		} fi
	} fi
} fi
aso
Posts: 33
Joined: Fri Jun 19, 2015 12:43 pm

Re: emm.sh from Runtime 22.04.008 breaks TOMCAT NATIVE / SSL

Post by aso »

Thank you for that info.
I will fix this missing property value (TOMCAT_NATIVE in setenv.sh) for future releases of OpenEMM.
JuergenB
Posts: 140
Joined: Thu Dec 05, 2019 9:03 pm

Re: emm.sh from Runtime 22.04.008 breaks TOMCAT NATIVE / SSL

Post by JuergenB »

I tried this with AlmaLinux 9 today,

i think a quick solution is to modify setenv.sh

Code: Select all

export TOMCAT_NATIVE="/home/openemm/opt/tomcat-native"
maybe you emm.sh has a wrong $HOME ..
Post Reply