Page 1 of 1

Last Mile Question

Posted: Fri Mar 16, 2018 6:40 pm
by WhitakerBrothers
Hi there,

I'm almost all the way through the OPENEMM installation process, but I'm hitting a real snag. Tomcat's up, Java's good, but trying to start OPENEMM with either postfix or sendmail fails.

Here's what happened:

Code: Select all

root@ubuntu-whitaker-EMM:/var/www/html# sudo su - openemm 
$ openemm.sh start
Start /home/openemm/bin/scripts/bav-update.py .. done.
Start /home/openemm/bin/scripts/bav-trigger.py .. done.
Start /home/openemm/bin/scripts/bavd.py .. done.
Start /home/openemm/bin/bav -L INFO .. done.
Start python /home/openemm/bin/scripts/recovery.py .. done.
Start /home/openemm/bin/scripts/update.py account bounce .. done.
Start /home/openemm/bin/scripts/pickdist.py .. done.
Restart postfix:  [....] Restarting postfix (via systemctl): postfix.serviceFailed to restart postfix.service: Connection timed out
See system logs and 'systemctl status postfix.service' for details.
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
 failed!
 done.
Start /home/openemm/bin/scripts/slrtscn.py .. done.
Starting up Tomcat ......
Check Java installation          :OK
Check Tomcat installation        :OK
Using CATALINA_BASE:   /home/openemm
Using CATALINA_HOME:   /opt/openemm/tomcat
Using CATALINA_TMPDIR: /home/openemm/temp
Using JRE_HOME:        /opt/openemm/java
Using CLASSPATH:       /opt/openemm/tomcat/bin/bootstrap.jar:/opt/openemm/tomcat/bin/tomcat-juli.jar
Tomcat started.
$ 

I tried granting sudo/root priviliges to the openemm user, that didn't work. Not sure what to do here.

Dave

Re: Last Mile Question

Posted: Sun Mar 18, 2018 8:38 pm
by maschoff
What is the status of your Postfix installation:

Code: Select all

systemctl status postfix
Can you start and stop Postfix manually on your server with

Code: Select all

systemctl start postfix
and

Code: Select all

systemctl stop postifx

Re: Last Mile Question

Posted: Mon Mar 19, 2018 1:22 pm
by WhitakerBrothers
Ok, looks like the system needed a restart, so I did that. Then tomcat started showing up on :8080 here: http://www.whitakermail.com:8080

But not openemm.

Code: Select all


root@ubuntu-whitaker-EMM:~# systemctl status postfix
● postfix.service - LSB: Postfix Mail Transport Agent
   Loaded: loaded (/etc/init.d/postfix; bad; vendor preset: enabled)
  Drop-In: /run/systemd/generator/postfix.service.d
           └─50-postfix-$mail-transport-agent.conf
   Active: active (running) since Mon 2018-03-19 12:12:28 UTC; 7min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1738 ExecStart=/etc/init.d/postfix start (code=exited, status=0/SUCCESS)
    Tasks: 3
   Memory: 3.0M
      CPU: 462ms
   CGroup: /system.slice/postfix.service
           ├─1863 /usr/lib/postfix/sbin/master
           ├─1864 pickup -l -t unix -u -c
           └─1865 qmgr -l -t unix -u

Mar 19 12:12:27 ubuntu-whitaker-EMM systemd[1]: Starting LSB: Postfix Mail Transport Agent...
Mar 19 12:12:27 ubuntu-whitaker-EMM postfix[1738]:  * Starting Postfix Mail Transport Agent postfix
Mar 19 12:12:28 ubuntu-whitaker-EMM postfix[1823]: Postfix is running with backwards-compatible default settings
Mar 19 12:12:28 ubuntu-whitaker-EMM postfix[1823]: See http://www.postfix.org/COMPATIBILITY_README.html for details
Mar 19 12:12:28 ubuntu-whitaker-EMM postfix[1823]: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
Mar 19 12:12:28 ubuntu-whitaker-EMM postfix[1738]:    ...done.
Mar 19 12:12:28 ubuntu-whitaker-EMM systemd[1]: Started LSB: Postfix Mail Transport Agent.
Mar 19 12:12:28 ubuntu-whitaker-EMM postfix/master[1863]: daemon started -- version 3.1.0, configuration /etc/postfix


for the second two things, I got this:

Code: Select all

root@ubuntu-whitaker-EMM:~# systemctl start postfix
root@ubuntu-whitaker-EMM:~# systemctl stop postifx
Failed to stop postifx.service: Unit postifx.service not loaded.
root@ubuntu-whitaker-EMM:~# systemctl start postfix
root@ubuntu-whitaker-EMM:~# systemctl stop postifx
Failed to stop postifx.service: Unit postifx.service not loaded.
root@ubuntu-whitaker-EMM:~# 

So the system is telling me postfix is running, but it's also telling me it's not running?

Re: Last Mile Question

Posted: Mon Mar 19, 2018 1:23 pm
by WhitakerBrothers
And then I tried to run openemm to no avail:

Code: Select all

root@ubuntu-whitaker-EMM:~# su - openemm
$ openemm.sh start
Start /home/openemm/bin/scripts/bav-update.py .. done.
Start /home/openemm/bin/scripts/bav-trigger.py .. done.
Start /home/openemm/bin/scripts/bavd.py .. done.
Start /home/openemm/bin/bav -L INFO .. done.
Start python /home/openemm/bin/scripts/recovery.py .. done.
Start /home/openemm/bin/scripts/update.py account bounce .. done.
Start /home/openemm/bin/scripts/pickdist.py .. done.
Restart postfix:  [....] Restarting postfix (via systemctl): postfix.serviceFailed to restart postfix.service: Method call timed out
See system logs and 'systemctl status postfix.service' for details.
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
 failed!
 done.
Start /home/openemm/bin/scripts/slrtscn.py .. done.
Starting up Tomcat ......
Check Java installation          :OK
Check Tomcat installation        :OK
Using CATALINA_BASE:   /home/openemm
Using CATALINA_HOME:   /opt/openemm/tomcat
Using CATALINA_TMPDIR: /home/openemm/temp
Using JRE_HOME:        /opt/openemm/java
Using CLASSPATH:       /opt/openemm/tomcat/bin/bootstrap.jar:/opt/openemm/tomcat/bin/tomcat-juli.jar
Tomcat started.
$ 

Re: Last Mile Question

Posted: Tue Mar 20, 2018 10:33 am
by maschoff
Honestly, we never used Postfix on Ubuntu. Maybe someone else can jump and help you or you could post your problem on a board that has more readers using Ubuntu and Postfix.

Re: Last Mile Question

Posted: Tue Mar 20, 2018 1:26 pm
by WhitakerBrothers
Would it be smarter to disable postfix and just use sendmail, then?

Re: Last Mile Question

Posted: Tue Mar 20, 2018 2:10 pm
by maschoff
If you search this forum you will find other Ubuntu users and noone reported a Sendmail problem. So, it could help.

Re: Last Mile Question

Posted: Fri Mar 23, 2018 4:14 pm
by WhitakerBrothers
After review, it looks like it might have been smarter to do this in Red Hat.

Re: Last Mile Question

Posted: Fri Mar 23, 2018 4:52 pm
by maschoff
CentOS or other RedHat clones would be fine as well. Most developers of OpenEMM use CentOS.

Re: Last Mile Question

Posted: Mon Mar 26, 2018 5:01 pm
by WhitakerBrothers
Thanks for the advice. Does it matter which version of CentOS?

Re: Last Mile Question

Posted: Mon Mar 26, 2018 5:15 pm
by maschoff
Better CentOS 7 than CentOS 6, because EOL of 7 is later.

Re: Last Mile Question

Posted: Mon Mar 26, 2018 5:58 pm
by WhitakerBrothers
Excellent, understood.

DW

Re: Last Mile Question

Posted: Mon Mar 26, 2018 9:44 pm
by WhitakerBrothers
That worked. We did a complete re-build/re-install on a CentOS instance, and with a little cajoling it's actually up. Nice.

OpenEMM should just remove that Ubuntu part of the documentation so nobody had to go down that path to FAIL other than us.