openemm.sh - command not found

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

Moderator: moderator

sadok
Posts: 1
Joined: Tue Nov 11, 2014 12:36 pm

openemm.sh - command not found

Post by sadok »

Hello,

I have just installed openemm in a ubuntu server, but when i try to start the procces (openemm.sh start), i get a command not found response.

I haven't a .bash_profile file in /home/openemm, and even creating that file with the path line required stills returning the same error.

I have reunpacked the openemm .tar.gz

What is wrong??

Thanks and excuse my english :S
maschoff
Site Admin
Posts: 2596
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: openemm.sh - command not found

Post by maschoff »

You have to change from user root to user openemm first with "su - openemm".
OpenEMM Maintainer
axetone
Posts: 3
Joined: Mon May 11, 2015 1:56 pm

Re: openemm.sh - command not found

Post by axetone »

maschoff wrote:You have to change from user root to user openemm first with "su - openemm".
Maschoff, Everyone,
I am having a similar problem, but just logging in as "su - openemm" is not resolving.

My setup is:
Ubuntu 14.10 (32bit)
Tomcat 7
JDK 8
...manually compiled from SRC and JAR...BUILD SUCCESSFUL.

I noted that it created everything in "/home/oe" (etc. etc.), and so I found the openemm.sh script here:
/home/oe/bin/OpenEMM-2015-bin/bin/openemm.sh

~so, logged in as "su - openemm", then changed directory to "/home/oe/bin/OpenEMM-2015-bin/bin"...issued "openemm.sh start", and received "Command not found".

All files and directories are owned by "openemm openemm".

Code: Select all

drwxr-xr-x  3 openemm openemm    4096 May 11 11:57 .
drwxr-xr-x 11 openemm openemm    4096 May 11 11:57 ..
-rwxr-xr-x  1 openemm openemm   47548 May 11 11:57 bav
-rwxr-xr-x  1 openemm openemm    1444 May 11 11:57 bavd.sh
-rwxr-xr-x  1 openemm openemm    1460 May 11 11:57 bav-trigger.sh
-rwxr-xr-x  1 openemm openemm    1458 May 11 11:57 bav-update.sh
-rwxr-xr-x  1 openemm openemm    1836 May 11 11:57 bounce.sh
-rwxr-xr-x  1 openemm openemm    3223 May 11 11:57 mailer.sh
-rwxr-xr-x  1 openemm openemm    1518 May 11 11:57 merger.sh
-rwxr-xr-x  1 openemm openemm    5579 May 11 11:57 openemm-charset-convert.sh
-rwxr-xr-x  1 openemm openemm    2902 May 11 11:57 openemm.sh
-rwxr-xr-x  1 openemm openemm    1447 May 11 11:57 pickdist.sh
-rwxr-xr-x  1 openemm openemm   56448 May 11 11:57 qctrl
-rwxr-xr-x  1 openemm openemm    1346 May 11 11:57 recovery.sh
drwxr-xr-x  2 openemm openemm    4096 May 11 11:57 scripts
-rwxr-xr-x  1 openemm openemm    1339 May 11 11:57 sendmail-disable.sh
-rwxr-xr-x  1 openemm openemm    1338 May 11 11:57 sendmail-enable.sh
-rwxr-xr-x  1 openemm openemm    1452 May 11 11:57 slrtscn.sh
-rwxr-xr-x  1 openemm openemm   12604 May 11 11:57 smctrl
-rwxr-xr-x  1 openemm openemm    1327 May 11 11:57 softbounce.sh
-rwxr-xr-x  1 openemm openemm   13220 May 11 11:57 updater
-rwxr-xr-x  1 openemm openemm    1453 May 11 11:57 update.sh
-rwxr-xr-x  1 openemm openemm    1422 May 11 11:57 upgrade.sh
-rwxr-xr-x  1 openemm openemm 1342016 May 11 11:57 xmlback
I also did NOT have a ".bash_profile" in /home/openemm, I created that with both "HOME" path, and exact path "/home/oe/bin/OpenEMM-2015-bin/bin"...~but nothing helped.

Any ideas? Thank you in advance!
maschoff
Site Admin
Posts: 2596
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: openemm.sh - command not found

Post by maschoff »

Home directory of OpenEMM should be /home/openemm/ instead of /home/oe/.
OpenEMM Maintainer
axetone
Posts: 3
Joined: Mon May 11, 2015 1:56 pm

Re: openemm.sh - command not found

Post by axetone »

Maschoff, thank you for the fast response.

I understand that the home directory should be "/home/openemm", but "oe" was automatically created when manually compiled. Further, I did figure out that there is requirement for "libmilter/mfapi.h", as well as Tomcat 7 instead of 8 in manual builds....~seems the documentation is incomplete.

Perhaps at this point the best thing for me to do is completely re-install everything.

Kind regards.
axetone
Posts: 3
Joined: Mon May 11, 2015 1:56 pm

Re: openemm.sh - command not found

Post by axetone »

I completely reloaded the system, and reading through the build.xml script it clearly creates and makes use of the "/home/oe" directory.

First, the BUILD.XML script specifically looks for...but deletes if found the JAR package, then will seek to unTAR's the same JAR package! -> in a sub-directory in /home/oe, -so all of the resulting "openemm.sh" scripts that are created in the build end up in the following directories:

/home/openemm/OpenEMM-2015-src/tomcat/bin/openemm.sh
/home/oe/bin/OpenEMM-2015-bin/bin/openemm.sh
/home/oe/src/OpenEMM-2015-src/tomcat/bin/openemm.sh

Your statement that everything should be in /home/openemm...~well, how's that???

...btw, TOMCAT will start using one of the above, however other folders it needs are never created:

Code: Select all

/home/oe/bin/OpenEMM-2015-bin/bin/openemm.sh: line 99: /home/openemm/bin/scripts/config.sh: No such file or directory
/home/oe/bin/OpenEMM-2015-bin/bin/openemm.sh: line 52: /home/openemm/bin/bounce.sh: No such file or directory
/home/oe/bin/OpenEMM-2015-bin/bin/openemm.sh: line 53: /home/openemm/bin/merger.sh: No such file or directory
/home/oe/bin/OpenEMM-2015-bin/bin/openemm.sh: line 54: /home/openemm/bin/mailer.sh: No such file or directory
/home/oe/bin/OpenEMM-2015-bin/bin/openemm.sh: line 55: /home/openemm/bin/slrtscn.sh: No such file or directory
In general...this entire solution fails (per the documented install procedures). There are NUMEROUS omissions:
1. Required package "libmilter-dev" not noted in procedure.
2. The pre-compiled source uses 64-bit libraries, whereas the manual source files require Tomcat 7 (32-bit) libraries.
3. openemm user acct does not have the correct password
4. Many of the files this system says to edit (i.e. SQL files) are not where they are noted in the document.

...I think this project needs some serious updating. Perhaps starting with the BUILD.XML, one should (1) correct the pathing, (2) include the proper pre-requirements (libraries), and then (3) update the documentation -especially the MTA options / and other-Service configurations...otherwise...sadly...

Product seems a total waste of time.
Post Reply