Page 1 of 2
OpenEMM 2011 Java installation failed
Posted: Sat Jul 09, 2011 2:39 pm
by lais
Hello,
I just installed OpenEMM 2011 on my server (Ubuntu 9.04).
When i start OpenEMM i get the following message:
Code: Select all
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.
/var/lib/python-support/python2.6/MySQLdb/__init__.py:34: DeprecationWarning: the sets module is deprecated
from sets import ImmutableSet
Stopping obsolete sendmail processes: done.
Starting sendmails: listener * Starting Mail Transport Agent (MTA) sendmail No make, you'll have to rebuild your databases by hand :(
start-stop-daemon: stat /usr/sbin/sendmail-mta: No such file or directory (No such file or directory)
[ OK ]
admin queue mail queue done.
Start /home/openemm/bin/scripts/slrtscn.py .. done.
Starting up Tomcat ......
Check Java installation :FAILED
When i try apt-get install sun-java6-jdk it says:
sun-java6-jdk is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
What could be the problem with my Java installation?
Thanks
Re: OpenEMM 2011 Java installation failed
Posted: Sat Jul 09, 2011 8:01 pm
by maschoff
As far as I can see from your posting you have a deprecation warning regarding the Python-MySQL bridge and you have to re-compile your Sendmail configuration changes (see end of appendix A of install guide). Did you install RC1 or RC2?
Re: OpenEMM 2011 Java installation failed
Posted: Tue Jul 12, 2011 12:39 pm
by lais
I upgraded my server to Ubuntu 10.04, so i got rid of the deprecation warning regarding the Python-MySQL bridge. I also recompiled my Sendmail configuration changes but the line: FEATURE(`mailertable', `hash -o /etc/mail/mailertable.db')dnl that i added to the sendmail.mc file (appendix A of install guide) make problems, on start-up it says: map mailertable: class hash not available
The start-up still fails at the Java installation check.
I installed RC2.
Code: Select all
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.
Stopping obsolete sendmail processes: done.
Starting sendmails: listener * Starting Mail Transport Agent (MTA) sendmail
hostname: Name or service not known
hostname: Name or service not known
* MTA is already running.
admin queue /etc/mail/sendmail.cf: line 164: readcf: map mailertable: class hash not available
/etc/mail/sendmail.cf: line 167: readcf: map access: class hash not available
mail queue /etc/mail/sendmail.cf: line 164: readcf: map mailertable: class hash not available
/etc/mail/sendmail.cf: line 167: readcf: map access: class hash not available
done.
Start /home/openemm/bin/scripts/slrtscn.py .. done.
Starting up Tomcat ......
Check Java installation :FAILED
Re: OpenEMM 2011 Java installation failed
Posted: Tue Jul 12, 2011 1:10 pm
by maschoff
I installed OpenEMM 6.2 on Ubuntu 10.04 myself and the Ubuntu info in the OpenEMM Install Guide are based on this test (see appendix A).
Re: OpenEMM 2011 Java installation failed
Posted: Wed Jul 27, 2011 2:40 pm
by kurtcoba-in
Sir, should i follow Appendix A as well for this kind of error? I'm using Ubuntu 10.04 as well and OpenEMM-2011-bin.tar.gz modified, 2011-07-13:
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.
Stopping obsolete sendmail processes: /home/openemm/bin/mailer.sh: 74: /home/openemm/bin/smctrl: not found
done.
Starting sendmails: listener /home/openemm/bin/mailer.sh: 74: /home/openemm/bin/smctrl: not found
admin queue /home/openemm/bin/mailer.sh: 74: /home/openemm/bin/smctrl: not found
mail queue /home/openemm/bin/mailer.sh: 74: /home/openemm/bin/smctrl: not found
done.
Start /home/openemm/bin/scripts/slrtscn.py .. done.
Starting up Tomcat ......
Check Java installation :FAILED
Re: OpenEMM 2011 Java installation failed
Posted: Wed Jul 27, 2011 2:51 pm
by maschoff
The error message says that a file could not be found which is part of the binary tarball. Did you unpack the tarball with options xvzpf (the "p" is important!)?
Re: OpenEMM 2011 Java installation failed
Posted: Wed Jul 27, 2011 3:00 pm
by kurtcoba-in
yes sir, this is the exact line i made:
tar xzvpf /tmp/OpenEMM-2011-bin.tar.gz
Re: OpenEMM 2011 Java installation failed
Posted: Wed Jul 27, 2011 3:15 pm
by maschoff
And is file smctrl located in directory /home/openemm/bin?
Re: OpenEMM 2011 Java installation failed
Posted: Wed Jul 27, 2011 4:04 pm
by kurtcoba-in
yes sir /home/openemm/bin/smctrl with root.root as owner,group.. i've tried chown to openemm.openemm no success as well..
Re: OpenEMM 2011 Java installation failed
Posted: Wed Jul 27, 2011 4:17 pm
by maschoff
Group root and user root are ok (and necessary). I have no idea why your installation does not find this file!
Re: OpenEMM 2011 Java installation failed
Posted: Wed Jul 27, 2011 4:40 pm
by kurtcoba-in
hmm... any suggestions? should i try to reinstall again?... just a question, is OpenEMM-2011 ok with Ubuntu 10.04, or what should be the recommended OpenEMM version for ubuntu 10.04 which was tested?thanks sir
Re: OpenEMM 2011 Java installation failed
Posted: Wed Jul 27, 2011 4:47 pm
by maschoff
We tested OpenEMM 6.2 with Ubuntu 10.04, but OpenEMM 2011 should work as well. IMO, it is not a problem of the distribution but the configuration of your system. The error message "Check Java installation :FAILED" for example indicates that Tomcat can not find your Java installation. You should have an experienced Linux administrator check your system.
Re: OpenEMM 2011 Java installation failed
Posted: Thu Jul 28, 2011 4:33 am
by kurtcoba-in
sorry sir newbies I was just thinking about recommendations... yup it must be on the config, another thing about JAVA_HOME and CATALINA_HOME at /home/openemm/bin/openemm.sh (when you said set parameters accordingly..) what parameters should i set?
Re: OpenEMM 2011 Java installation failed
Posted: Wed Aug 03, 2011 2:49 pm
by 0thbit
Hey Guys,
I have tried to install Openemm 2011 release on my Ubuntu 11.x Version and I think I figured out what's going wrong...
If you are using Ubuntu as your OS the installation manual points out that it is not necessary to do anything except to install the Java JDK via apt (3. Installation: Sun Java JDK):
If you use Ubuntu, installation of Sun's Java is a snap. Just enter
apt-get install sun-java6-jdk
and follow the instructions of the installation process.
But that is not true - you need to follow the last two steps from the "Redhat/SuSE Java Instructions":
- Create a symbolic link java for the JDK directory:
ln -s jdk1.6.0_25 java
- Test the JDK:
/opt/openemm/java/bin/java -version
More precisely:
After you have installed the JDK via apt, do the following:
Code: Select all
ln -s /usr/lib/jvm/java-6-sun-1.6.0.26/jre/ java
That fixed the problem for me and OpenEMM 2011 is now working.
Maybe the manual should be fixed on to prevent this in future.
HTH
Re: OpenEMM 2011 Java installation failed
Posted: Wed Aug 03, 2011 3:11 pm
by maschoff
I tried it with Ubuntu 10.04 and it worked as described in the install guide. Maybe something was changed for Ubuntu 11. Thanks for finding this out!
So, to make sure I understand you correctly: One should not install Java with "apt-get install sun-java6-jdk" but install it manually like described in the install guide for RedHat? Or should one install Java with apt-get and create the symbolic java link? If so, in which directory?