Last Mile Question

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

Moderator: moderator

Last Mile Question

Postby WhitakerBrothers » Fri Mar 16, 2018 6:40 pm

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
WhitakerBrothers
 
Posts: 8
Joined: Fri Mar 16, 2018 6:34 pm

Re: Last Mile Question

Postby maschoff » Sun Mar 18, 2018 8:38 pm

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
OpenEMM Maintainer
maschoff
Site Admin
 
Posts: 2143
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany

Re: Last Mile Question

Postby WhitakerBrothers » Mon Mar 19, 2018 1:22 pm

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?
Last edited by WhitakerBrothers on Mon Mar 19, 2018 2:14 pm, edited 1 time in total.
WhitakerBrothers
 
Posts: 8
Joined: Fri Mar 16, 2018 6:34 pm

Re: Last Mile Question

Postby WhitakerBrothers » Mon Mar 19, 2018 1:23 pm

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.
$
WhitakerBrothers
 
Posts: 8
Joined: Fri Mar 16, 2018 6:34 pm

Re: Last Mile Question

Postby maschoff » Tue Mar 20, 2018 10:33 am

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.
OpenEMM Maintainer
maschoff
Site Admin
 
Posts: 2143
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany

Re: Last Mile Question

Postby WhitakerBrothers » Tue Mar 20, 2018 1:26 pm

Would it be smarter to disable postfix and just use sendmail, then?
WhitakerBrothers
 
Posts: 8
Joined: Fri Mar 16, 2018 6:34 pm

Re: Last Mile Question

Postby maschoff » Tue Mar 20, 2018 2:10 pm

If you search this forum you will find other Ubuntu users and noone reported a Sendmail problem. So, it could help.
OpenEMM Maintainer
maschoff
Site Admin
 
Posts: 2143
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany

Re: Last Mile Question

Postby WhitakerBrothers » Fri Mar 23, 2018 4:14 pm

After review, it looks like it might have been smarter to do this in Red Hat.
WhitakerBrothers
 
Posts: 8
Joined: Fri Mar 16, 2018 6:34 pm

Re: Last Mile Question

Postby maschoff » Fri Mar 23, 2018 4:52 pm

CentOS or other RedHat clones would be fine as well. Most developers of OpenEMM use CentOS.
OpenEMM Maintainer
maschoff
Site Admin
 
Posts: 2143
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany

Re: Last Mile Question

Postby WhitakerBrothers » Mon Mar 26, 2018 5:01 pm

Thanks for the advice. Does it matter which version of CentOS?
WhitakerBrothers
 
Posts: 8
Joined: Fri Mar 16, 2018 6:34 pm

Re: Last Mile Question

Postby maschoff » Mon Mar 26, 2018 5:15 pm

Better CentOS 7 than CentOS 6, because EOL of 7 is later.
OpenEMM Maintainer
maschoff
Site Admin
 
Posts: 2143
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany

Re: Last Mile Question

Postby WhitakerBrothers » Mon Mar 26, 2018 5:58 pm

Excellent, understood.

DW
WhitakerBrothers
 
Posts: 8
Joined: Fri Mar 16, 2018 6:34 pm

Re: Last Mile Question

Postby WhitakerBrothers » Mon Mar 26, 2018 9:44 pm

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.
WhitakerBrothers
 
Posts: 8
Joined: Fri Mar 16, 2018 6:34 pm


Return to Installation & Upgrades

Who is online

Users browsing this forum: No registered users and 2 guests

cron