Page 2 of 2

Re: Mail generation stop working after updating to 20.04.000.185

Posted: Tue Sep 01, 2020 4:03 pm
by maschoff
This looks to me like the backend was not installed as user root:

Code: Select all

File: /home/openemm/bin/smctrl expected to have user id 0 (0) but has 1000
File: /home/openemm/bin/smctrl is NOT a set uid, but expected to be a set uid
File: /home/openemm/bin/qctrl expected to have user id 0 (0) but has 1000
File: /home/openemm/bin/qctrl is NOT a set uid, but expected to be a set uid
Because both files need root permissions.

Re: Mail generation stop working after updating to 20.04.000.185

Posted: Tue Sep 01, 2020 4:56 pm
by Andrey
Hi, Maschoff
Thank you very much! Solved!
I've set the owner/group to root and the permission to create ID an GID for file while running (106755).
and the once process completed new BackEnd started and the Preview is work.

Code: Select all

File: /home/openemm/bin/smctrl expected to have user id 0 (0) but has 1000
File: /home/openemm/bin/smctrl is NOT a set uid, but expected to be a set uid
File: /home/openemm/bin/qctrl expected to have user id 0 (0) but has 1000
File: /home/openemm/bin/qctrl is NOT a set uid, but expected to be a set uid

Re: Mail generation stop working after updating to 20.04.000.185

Posted: Tue Sep 01, 2020 5:21 pm
by maschoff
But I wonder why OpenEMMInstaller did not set the correct permissions. This is the reason why you have to start it as root when installing the backend. Do you have an idea? Did you do something special?

Re: Mail generation stop working after updating to 20.04.000.185

Posted: Wed Sep 02, 2020 8:59 am
by Andrey
maschoff wrote: Tue Sep 01, 2020 5:21 pm But I wonder why OpenEMMInstaller did not set the correct permissions. This is the reason why you have to start it as root when installing the backend. Do you have an idea? Did you do something special?
No I don't. I've always work as a root. Once after trying different solutions while receiving a permission error message i did "su openemm" but the installer stop before updating the BackEnd asking to change user to root.
But this was to start the previous version of BackEnd 20.04.000.142.
Today i tried to update the BackEnd to the Current version 20.04.000.181 and saw this once : incomplete (1 files remaining: /home/openemm/scripts/once/tag-install.sh)
The Restart log is

Code: Select all

================================
= OpenEMM Installer v20.04.003 =
================================
Root mode: On
Host: OpenEmm
License: OpenEMM (ID: 0)
Runtime Version: 20.04.000.043
Manual Version: 20.04.011
OpenEMM Version: 20.04.000.185
System-Url: http://hidden
OpenEMMBackend Version: 20.04.000.181

Current menu: Restart OpenEMM

Restart OpenEMM Server
Are you sure? (y/N, Blank => Cancel):
 > Y
Stopping ...
Using /home/openemm/bin/setenv.sh
Using additional properties: /home/openemm/tomcat9/bin/emm.sh.additional.properties
########################
# Shutting down Tomcat #
########################
Using CATALINA_BASE:   /home/openemm/tomcat
Using CATALINA_HOME:   /home/openemm/opt/tomcat
Using CATALINA_TMPDIR: /home/openemm/temp
Using JRE_HOME:        /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.x86_64
Using CLASSPATH:       :/home/openemm/tomcat/lib/derby.jar:/home/openemm/tomcat/lib/mariadb-java-client-2.1.2.jar:/home/openemm/opt/tomcat/bin/bootstrap.jar:/home/openemm/opt/tomcat/bin/tomcat-juli.jar
Waiting for shutdown of Tomcat(MAX 20 Seconds):.
Delete Working directory
stop mlcontrol .. done
stop bav .. done
stop bavd .. done
stop bav-update .. done
stop direct-path .. done
stop slrtscn .. done
stop pickdist .. done
stop mta .. done
stop generate .. done
stop trigger .. done
stop update .. done
stop mailout .. done
stop mlprepare .. done
once        : incomplete (1 files remaining: /home/openemm/scripts/once/tag-install.sh)
mailout     : stopped
update      : stopped
trigger     : stopped
generate    : stopped
mta         : stopped
pickdist    : stopped
slrtscn     : stopped
direct-path : stopped
bav-update  : stopped
bavd        : stopped
bav         : stopped
mlcontrol   : stopped
Starting ...
start once .. done
start mlprepare .. done
start mailout .. done
start update .. done
start trigger .. done
start generate .. done
start mta .. done
start pickdist .. done
start slrtscn .. done
start direct-path .. done
start bav-update .. done
start bavd .. done
start bav .. done
start mlcontrol .. done
once        : incomplete (1 files remaining: /home/openemm/scripts/once/tag-install.sh)
mailout     : running
update      : running
trigger     : running
generate    : running
mta         : running
pickdist    : running
slrtscn     : running
direct-path : running
bav-update  : running
bavd        : running
bav         : running
mlcontrol   : running
Using /home/openemm/bin/setenv.sh
Using additional properties: /home/openemm/tomcat9/bin/emm.sh.additional.properties

Checking backend directories

Generated and replaced "/home/openemm/tomcat/conf/context.xml".
######################
# Starting up Tomcat #
######################
Check Java installation          :OK (1.8.0_232 (OpenJDK))
Check Tomcat installation        :OK (9.0.33.0)
Check Tomcat TEMP Directory      :OK
Check APR installation           :FAILED ('/home/openemm/opt/tomcat-native/lib/libtcnative-1.so' not found)
Check ulimit -n                  :OK
JAVA Parameters                  :-Xms256m -Xmx1536m -Xss256k -XX:-OmitStackTraceInFastThrow -DHOME=/home/openemm -Dhome=/home/openemm -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dorg.apache.jasper.Constants.DEFAULT_TAG_BUFFER_SIZE=8192
Using CATALINA_BASE:   /home/openemm/tomcat
Using CATALINA_HOME:   /home/openemm/opt/tomcat
Using CATALINA_TMPDIR: /home/openemm/temp
Using JRE_HOME:        /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.x86_64
Using CLASSPATH:       :/home/openemm/tomcat/lib/derby.jar:/home/openemm/tomcat/lib/mariadb-java-client-2.1.2.jar:/home/openemm/opt/tomcat/bin/bootstrap.jar:/home/openemm/opt/tomcat/bin/tomcat-juli.jar
Tomcat started.
Waiting maximum 120 seconds for server startup
78 seconds left
And the Status is

Code: Select all

================================
= OpenEMM Installer v20.04.003 =
================================
Root mode: On
Host: OpenEmm
License: OpenEMM (ID: 0)
Runtime Version: 20.04.000.043
Manual Version: 20.04.011
OpenEMM Version: 20.04.000.185
System-Url: http://hidden
OpenEMMBackend Version: 20.04.000.181

Current menu: Show OpenEMM status

OpenEMM status:
Operating System (OS): CentOS 7
Python version: 3.8.3 (default, May 15 2020, 01:26:50)  [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
Sendmail Version: 0.10.4
Postfix Version: 2.10.1
DB client version: /usr/bin/mysql  Ver 15.1 Distrib 10.2.22-MariaDB, for Linux (x86_64) using  EditLine wrapper
Database Connection: OK
Database version: MariaDB 10.2.22-MariaDB
OpenEMM database structure exists (Version 20.07.383)
Currently running database threads ratio (Current: 1, Maximum: 8): 0.125
Database table emm_db_errorlog_tbl: OK
Jobqueue status: OK
No DKIM keys
Java version: 1.8.0_232 (Oracle)
Tomcat version: 9.0.33.0
Tomcat-Native version: Undefined
Wkhtml version: wkhtmltopdf 0.12.5 (with patched qt)
OpenEMMApplication is running (Tomcat ProcessID: 31030, started at: 10:50 3:36)
[b]OpenEMMBackend incomplete: once[/b]
OpenEMMBackend running: mailout, update, trigger, generate, mta, pickdist, slrtscn, direct-path, bav-update, bavd, bav, mlcontrol

 >
And Error reappear :?

Error in Dyn-tags!
Text module agn-tag
Error: Preview was empty

Re: Mail generation stop working after updating to 20.04.000.185

Posted: Wed Sep 02, 2020 9:10 am
by Andrey
If i use su openemm and run /tag-install.sh the result is

Code: Select all

[openemm@OpenEmm once]$ ./tag-install.sh
luatc: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
luatc: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
luatc: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
luatc: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
luatc: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
luatc: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
luatc: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
luatc: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

Re: Mail generation stop working after updating to 20.04.000.185

Posted: Wed Sep 02, 2020 10:48 am
by Andrey
The error point to the missing dll from OpenSSL. So, I've installed the OpenSSL 1.1. and the APR from the OpenEmm.sh and Agnitas Website Update.
Fortunately the last backend start to work. And the error with once and Dyn Tag removed. :)

Code: Select all

================================
= OpenEMM Installer v20.04.003 =
================================
Root mode: On
Host: OpenEmm
License: OpenEMM (ID: 0)
Runtime Version: 20.04.000.043
Manual Version: 20.04.011
OpenEMM Version: 20.04.000.185
System-Url: http://hidden
OpenEMMBackend Version: 20.04.000.181

Re: Mail generation stop working after updating to 20.04.000.185

Posted: Wed Sep 02, 2020 10:54 am
by maschoff
We will look into the OpenSSL issue. It looks like CentOS 7 and 8 use different versions and the compiled backend of OpenEMM relies on the one provided with CentOS 8 since we use CentOS 8 to create the binary tarballs. Quick workaound would be to compile the binaries yourself.

Re: Mail generation stop working after updating to 20.04.000.185

Posted: Wed Sep 02, 2020 11:43 am
by Andrey
maschoff wrote: Wed Sep 02, 2020 10:54 am We will look into the OpenSSL issue. It looks like CentOS 7 and 8 use different versions and the compiled backend of OpenEMM relies on the one provided with CentOS 8 since we use CentOS 8 to create the binary tarballs. Quick workaound would be to compile the binaries yourself.
I've compiled the OpenSSL using the guide here (russian language but code in code )
https://www.dmosk.ru/miniinstruktions.p ... ate-centos

Re: Mail generation stop working after updating to 20.04.000.185

Posted: Wed Sep 02, 2020 11:49 am
by maschoff
I meant to compile the OpenEMM backend yourself to make sure bindings are to lib versions available with the operating system in use.

Re: Mail generation stop working after updating to 20.04.000.185

Posted: Wed Sep 02, 2020 3:45 pm
by Andrey
maschoff wrote: Wed Sep 02, 2020 11:49 am I meant to compile the OpenEMM backend yourself to make sure bindings are to lib versions available with the operating system in use.
Okay! Please let me know if i can help with testing.
Thank you for great support!

Re: Mail generation stop working after updating to 20.04.000.185

Posted: Thu Sep 10, 2020 9:15 am
by maschoff
Please try new backend version 20.04.000.190.

Re: Mail generation stop working after updating to 20.04.000.185

Posted: Mon Sep 14, 2020 10:57 am
by Andrey
maschoff wrote: Thu Sep 10, 2020 9:15 am Please try new backend version 20.04.000.190.
Hi, Maschoff!
I've updates the backend to 190 and frontend to 188.
All worked as expected!
Thank you for notice about new updates!

Re: Mail generation stop working after updating to 20.04.000.185

Posted: Mon Sep 14, 2020 11:15 am
by Andrey
Hi, Maschoff!
Actually i was wrong.
Trying to send test message after update - i did not receive the mail. And in the EMM logs found these line:

Code: Select all

2020-09-14 12:46:12,701: ERROR [main] com.agnitas.web.ExecutorShutdownListener - WorkerExecutorService shutdown retryCount: 1
2020-09-14 13:03:53,857: ERROR [Thread-7] com.agnitas.web.ExecutorShutdownListener - WorkerExecutorService shutdown retryCount: 1
and this line after server full restart:

Code: Select all

2020-09-14 13:06:14,608: ERROR [main] com.agnitas.util.ResetJobQueueContextListener - Resetting 2 hanging jobs on startup formerly started by current host (OpenEmm)
UPD:
Actually this is the test recipient mail address resolving error. After changing the single-test recipient address - test started worked fine.
But the gmail resolve the address mentioned good.

Re: Mail generation stop working after updating to 20.04.000.185

Posted: Sat Sep 26, 2020 8:27 am
by maschoff
We updated the runtime package to handle some edge cases. Please update to the latest runtime and try again.