Re: Install issues
Posted: Fri Jun 12, 2020 5:34 pm
You should fix that.OpenEMMApplication is NOT running
The purpose of these forums is to get and give free technical support for OpenEMM. Spammers and their posts will be removed without prior warning.
https://iframe.agnitas.de/
You should fix that.OpenEMMApplication is NOT running
Code: Select all
su - root
yum -y install wget gcc gcc-c++ bzip2-devel
yum -y install gdbm-devel libgcrypt-devel libffi-devel libxml2-devel ncurses-devel
yum -y install openssl-devel readline-devel sqlite-devel zlib-devel xz xzdevel
cd ~
mkdir -p /root/python3
wget -P /root/python3/ https://www.python.org/ftp/python/3.8.3/Python-3.8.3.tgz
mkdir -p /home/openemm/opt/Python-3.8.3
rm -f /home/openemm/opt/python3
ln -s /home/openemm/opt/Python-3.8.3 /home/openemm/opt/python3
tar -C /root/python3 -xaf /root/python3/Python-3.8.3.tgz
cd /root/python3/Python-3.8.3
./configure --prefix=/home/openemm/opt/Python-3.8.3
make
make test
make install
echo 'pathmunge /home/openemm/opt/python3/bin' > /etc/profile.d/ree.sh
chmod +x /etc/profile.d/ree.sh
. /etc/profile
which python3
python3 -m pip install --upgrade pip
python3 -m pip install py3dns
python3 -m pip install xlrd xlwt xlutils
python3 -m pip install paramiko pyspf dnspython dkimpy
python3 -m pip install pycrypto
python3 -m pip install requests
python3 -m pip install httpie
python3 -m pip install setproctitle
python3 -m pip install inotify
python3 -m pip install aiodns aiohttp aiohttp-xmlrpc aiosmtpd
yum -y install mariadb-devel
python3 -m pip install mysqlclient
shutdown -r now
Code: Select all
================================
= OpenEMM Installer v20.04.003 =
================================
Root mode: On
Host: emm
Runtime Version: 20.04.000.043
Manual Version: Unknown
OpenEMM Version: Unknown
System-Url: Unknown
OpenEMMBackend Version: 20.04.000.142
Current menu: Show OpenEMM status
OpenEMM status:
Operating System (OS): CentOS 7
Python version: 3.8.3 (default, Jun 13 2020, 13:56:55) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
Postfix Version: 2.10.1
DB client version: /bin/mysql Ver 15.1 Distrib 10.3.13-MariaDB, for Linux (x86_64) using EditLine wrapper
Database Connection: OK
Database version: MariaDB 10.3.13-MariaDB
OpenEMM database structure exists (Version 20.01.460)
Currently running database threads ratio (Current: 6, Maximum: 6): 1.0
Database table emm_db_errorlog_tbl: OK
Jobqueue status: OK
No DKIM keys
Java version: 1.8.0_252 (Oracle)
Tomcat version: 9.0.33.0
Tomcat-Native version: 1.2.23
Wkhtml version: wkhtmltopdf 0.12.6-rc (with patched qt)
OpenEMMApplication is running (Tomcat ProcessID: 12190, started at: 15:03 0:54)
OpenEMMBackend ok: once
OpenEMMBackend running: mailout, update, trigger, generate, mta, pickdist, slrtscn, direct-path, bav-update, bavd, bav, mlcontrol
Code: Select all
# 5.2 Runtime Deployment
su - root
/home/openemm/bin/OpenEMMInstaller.sh
# configure basic environment
# change this configuration? Y
# path for JAVA_HOME Default
# path for CATALINA_HOME 'Enter'
# install the included Tomcat Y
# path for optional Tomcat-Native 'Enter'
# install the included Tomcat-Native Y
# path for wkhtmltopdf Default
# DO NOT Restart OpenEMM Server !!!
# now configure DBMS and create DB
# dbms = mariadb
# host = localhost
# name = openemm
# password = Password
# user = openemm
# save and create DB with mariadb password
# DO NOT Restart OpenEMM Server !
# Install or update package from AGNITAS Website
# Download and install latest runtime Y
# Install/Upgrade runtime 20.04.000.043 N
# Install/Upgrade tomcat N
# Install/Upgrade tomcat-natie N
# Install missing frontend 20.04.000.0043 Y
# Install gui Y
# Now the magic happens, a DB setup is peformed
# Install statistics Y
# Install webservices Y
# Install manual Y
# Install backend Y
# Backend Download is fine, some tasks are executed
# Backend install will fail now!
Will throw error => Cannot stop backend
# Now Restart OpenEMM Server (Menu - 8)!
# And you are Done with a running OpenEMM
Code: Select all
================================
= OpenEMM Installer v20.04.003 =
================================
Debug mode: On
Root mode: On
Host: 2u6b.l.time4vps.cloud
License: OpenEMM (ID: 0)
Runtime Version: 20.04.000.043
Manual Version: 19.07.004
OpenEMM Version: 20.04.000.143
System-Url: Unknown
OpenEMMBackend Version: 20.04.000.142
Current menu: Show OpenEMM status
OpenEMM status:
ERROR:root:DKIM keys
Traceback (most recent call last):
File "/home/openemm/tomcat9/bin/OpenEMMInstaller_3.py", line 2265, in readApplicationStatus
cursor.execute("SELECT DISTINCT domain FROM dkim_key_tbl WHERE valid_end IS NULL OR valid_end > CURRENT_TIMESTAMP ORDER BY domain")
File "/home/openemm/opt/python3/lib/python3.8/site-packages/MySQLdb/cursors.py", line 209, in execute
res = self._query(query)
File "/home/openemm/opt/python3/lib/python3.8/site-packages/MySQLdb/cursors.py", line 315, in _query
db.query(q)
File "/home/openemm/opt/python3/lib/python3.8/site-packages/MySQLdb/connections.py", line 239, in query
_mysql.connection.query(self, query)
MySQLdb._exceptions.ProgrammingError: (1146, "Table 'openemm.dkim_key_tbl' doesn't exist")
Command 'su -c "/home/openemm/bin/backend.sh status" openemm' returned non-zero exit status 1.
Operating System (OS): CentOS 8
Python version: 3.8.3 (default, Jun 13 2020, 20:21:13) [GCC 8.3.1 20190507 (Red Hat 8.3.1-4)]
Postfix Version: 3.3.1
DB client version: /usr/bin/mysql Ver 15.1 Distrib 10.3.17-MariaDB, for Linux (x86_64) using readline 5.1
Database Connection: OK
Database version: MariaDB 10.3.17-MariaDB
OpenEMM database structure exists (Version 20.01.460)
Currently running database threads ratio (Current: 6, Maximum: 1): 6.0
Database table emm_db_errorlog_tbl: OK
Jobqueue status: 7 errorneous jobs (BirtReports, LoginTrackTableCleaner, CalendarCommentMailingService, ...)
No DKIM keys
Java version: 1.8.0_252 (Oracle)
Tomcat version: 9.0.33.0
Tomcat-Native version: 1.2.23
Wkhtml version: wkhtmltopdf 0.12.6-rc (with patched qt)
OpenEMMApplication is NOT running
OpenEMMBackend is NOT installed or NOT running
Code: Select all
# Before using / starting this script
# Install a minimal CentOs from CentOS-7-x86_64-DVD-2003.iso
# Transfer openemm-runtime-20.*.tar.gz to /home/tmp
# Modify passwords used in this script
# Script Starts here ...
# Passwords used are here ...
Password_OpenEMM=oeP@ssW0rd
Password_MariaDB=maP@ssW0rd
# Verifiy if cron is running
su - root -c "service crond status;exit"
read -p "Verfiy crond status [Enter] to continue"
# Verifiy is SELinux is Disabled
getenforce
# Permissive : Actions contrary to the policy are only logged in the audit log.
su - root -c "sed -i 's/SELINUX=permissive/SELINUX=disabled/g' /etc/selinux/config"
su - root -c "sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config"
# Modify for SSH Slow Login or Filezilla slow
# In your /etc/ssh/sshd_config on the remote server you should change the option GSSAPIAuthentication to no
# You can amend the sshd_config file to use the UseDNS no parameter. This will stop the reverse DNS lookup. It is safe to do.
sed -i 's/GSSAPIAuthentication yes/GSSAPIAuthentication no/g' /etc/ssh/sshd_config
sed -i 's/#UseDNS yes/UseDNS no/g' /etc/ssh/sshd_config
# 3.1 Packages of Operating System
sudo - root
yum -y install net-tools wget nano zip
yum -y update
yum -y install gcc make
yum -y install java-1.8.0-openjdk-devel
yum -y install xorg-x11-fonts-75dpi zlib fontconfig freetype libX11 libXext libXrender urw-fonts
# 3.2 DBMS / MariaDB
yum -y install centos-release-scl
yum -y install rh-mariadb103-mariadb-server
sudo systemctl enable rh-mariadb103-mariadb
sudo systemctl start rh-mariadb103-mariadb
cd /bin
ln -s /opt/rh/rh-mariadb103/root/bin/* .
sudo mysqladmin -u root password $Password_MariaDB
echo $Password_MariaDB > /root/.mysqlpw
chmod 600 /root/.mysqlpw
# Here we will add our content one line after the string is matched
sed -i '/socket=/a\lower_case_table_names=1\nwait_timeout=604800\nsql-mode="STRICT_ALL_TABLES,NO_ENGINE_SUBSTITUTION"' /etc/my.cnf
sudo systemctl restart rh-mariadb103-mariadb
# 4 Server Preparations
su - root
groupadd openemm
useradd -m -g openemm -d /home/openemm -s /bin/bash openemm
echo $Password_OpenEMM | passwd --stdin openemm
sudo usermod -aG wheel openemm
# 4.1 Firewall
firewall-cmd --get-active-zones
firewall-cmd --zone=public --add-port=8080/tcp --permanent
firewall-cmd --zone=public --add-port=25/tcp --permanent
firewall-cmd --zone=public --add-forward-port=port=80:proto=tcp:toport=8080 --permanent
firewall-cmd --zone=public --add-forward-port=port=443:proto=tcp:toport=8443 --permanent
firewall-cmd --reload
# 4.2 Postfix Deployment
# just a simple postfix, needs tweaking
systemctl stop sendmail
yum -y remove sendmail
yum -y install postfix sendmail-milter procmail
alternatives --set mta /usr/sbin/sendmail.postfix
# 4.3 Sendmail Deployment
# not used
# 4.4 Tomcat Deployment
# Will be installed with OpenEMM
# 4.5 Image and PDF Creation Tool wkhtmltox
su - root -c "cd ~ ; wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-rc/wkhtmltox-0.12.6-0.20200605.30.rc.faa06fa.centos7.x86_64.rpm; rpm -ihv wkhtmltox-*.rpm; exit"
# 4.6 Configuration of Operating System Logging Parameters
su - root -c "sed -i 's/#RateLimitInterval=30s/RateLimitInterval=10s/g' /etc/systemd/journald.conf"
su - root -c "sed -i 's/#RateLimitBurst=1000/RateLimitBurst=10000/g' /etc/systemd/journald.conf"
su - root -c "systemctl restart systemd-journald"
su - root -c "sed -i '/^$IMJournalStateFile*/a $imjournalRatelimitInterval 60' /etc/rsyslog.conf"
su - root -c "sed -i '/^$imjournalRatelimitInterval*/a $imjournalRatelimitBurst 60000' /etc/rsyslog.conf"
systemctl restart rsyslog
# 4.7 Miscellaneous
# System value for maximum parallel files open (= ulimit) is 1024. Must be at least 16384.
su - root -c "sed -i '/# End of file/a* hard nofile 16384\n* soft nofile 16384\nroot hard nofile 16384\nroot hard nofile 16384' /etc/security/limits.conf"
# 5 OpenEMM Deployment
# Installation (for 20.04)
# 5.1 OpenEMM Download
su - openemm -c "tar -C /home/openemm -xvzpf /tmp/openemm-runtime-20.*.tar.gz ; exit"
######################
### Python 3.8 Compile
######################
su - root
yum -y install wget gcc gcc-c++ bzip2-devel
yum -y install gdbm-devel libgcrypt-devel libffi-devel libxml2-devel ncurses-devel
yum -y install openssl-devel readline-devel sqlite-devel zlib-devel xz xzdevel
cd ~
mkdir -p /root/python3
wget -P /root/python3/ https://www.python.org/ftp/python/3.8.3/Python-3.8.3.tgz
su - openemm -c "mkdir -p /home/openemm/opt/Python-3.8.3"
su - openemm -c "rm -f /home/openemm/opt/python3"
su - openemm -c "ln -s /home/openemm/opt/Python-3.8.3 /home/openemm/opt/python3"
tar -C /root/python3 -xaf /root/python3/Python-3.8.3.tgz
cd /root/python3/Python-3.8.3
./configure --prefix=/home/openemm/opt/Python-3.8.3
make
make test
make install
echo 'pathmunge /home/openemm/opt/python3/bin' > /etc/profile.d/ree.sh
chmod +x /etc/profile.d/ree.sh
. /etc/profile
which python3
python3 -m pip install --upgrade pip
python3 -m pip install py3dns
python3 -m pip install xlrd xlwt xlutils
python3 -m pip install paramiko pyspf dnspython dkimpy
python3 -m pip install pycrypto
python3 -m pip install requests
python3 -m pip install httpie
python3 -m pip install setproctitle
python3 -m pip install inotify
python3 -m pip install aiodns aiohttp aiohttp-xmlrpc aiosmtpd
yum -y install mariadb-devel
python3 -m pip install mysqlclient
shutdown -r now
# VMWare snapshot "After Python 3.8 Compile"
######################
### Python 3.8 Compile
######################
# 5.2 Runtime Deployment
/home/openemm/bin/OpenEMMInstaller.sh
# configure basic environment
# change this configuration? Y
# path for JAVA_HOME Default
# path for CATALINA_HOME 'Enter'
# install the included Tomcat Y
# path for optional Tomcat-Native 'Enter'
# install the included Tomcat-Native Y
# path for wkhtmltopdf Default
# DO NOT Restart OpenEMM Server !!!
# now configure DBMS and create DB
# dbms = mariadb
# host = localhost
# name = openemm
# password = Passw0rd
# user = openemm
# save and create DB with mariadb password
# DO NOT Restart OpenEMM Server !
# Install or update package from AGNITAS Website
# Download and install latest runtime Y
# Install/Upgrade runtime 20.04.000.043 N
# Install/Upgrade tomcat N
# Install/Upgrade tomcat-natie N
# Install missing frontend 20.04.000.0043 Y
# Install gui Y
# Now the magic happens, a DB setup is peformed
# Install statistics Y
# Install webservices Y
# Install manual Y
# Install backend Y
# Backend Download is fine, some tasks are executed
# Backend install will fail now!
Cannot stop backend
# Restart OpenEMM Server now! (Menu - 8)!
# Done
shutdown -r now # Relogin
# If you connect to the IP you should see the website.
# Please Read in Admin Guide chapter 5.4 ff
Code: Select all
================================
= OpenEMM Installer v20.04.003 =
================================
Debug mode: On
Root mode: On
Host: 2u6b.l.time4vps.cloud
License: OpenEMM (ID: 0)
Runtime Version: 20.04.000.043
Manual Version: 19.07.004
OpenEMM Version: 20.04.000.143
System-Url: http://94.176.238.124:8080/
OpenEMMBackend Version: 20.04.000.142
OpenEMM system restarted
Code: Select all
================================
= OpenEMM Installer v20.04.003 =
================================
Host: 2u6b.l.time4vps.cloud
License: OpenEMM (ID: 0)
Runtime Version: 20.04.000.043
Manual Version: 19.07.004
OpenEMM Version: 20.04.000.143
System-Url: http://94.176.238.124:8080/
OpenEMMBackend Version: 20.04.000.142
Current menu: Show OpenEMM status
OpenEMM status:
/usr/local/bin/wkhtmltopdf: error while loading shared libraries: libpng16.so.16: cannot open shared object file: No such file or directory
Command '/home/openemm/bin/backend.sh status' returned non-zero exit status 1.
Operating System (OS): CentOS 7
Python version: 3.8.3 (default, Jun 14 2020, 14:08:02) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
Postfix Version: 2.10.1
DB client version: /usr/bin/mysql Ver 15.1 Distrib 5.5.65-MariaDB, for Linux (x86_64) using readline 5.1
Database Connection: OK
Database version: MariaDB 5.5.65-MariaDB
OpenEMM database structure exists (Version 20.01.300)
Currently running database threads ratio (Current: 1, Maximum: 3): 0.333
Database table emm_db_errorlog_tbl: OK
Check Jobqueue status: ERROR
No DKIM keys
Java version: 11.0.7 (Oracle)
Tomcat version: 9.0.33.0
Tomcat-Native version: 1.2.23
Wkhtml version:
OpenEMMApplication is NOT running
OpenEMMBackend is NOT installed or NOT running
>