Cannot start services related to Bahmni and openmrs

I am using Centos 6.7, 64 bit on Vmware workstation 10. here I am giving link of entire Installation process of Bahmni v0.83, There was no error in installation in Bahmni v0.83, all package installed properly. this is output at the end. PLAY RECAP ********************************************************************* localhost : ok=279 changed=144 unreachable=0 failed=0

In both screenshot it can be seen that all four services are stopped.

I tried to start the service manually, it says starting, but than again if I check the status, it say service is not running. here its screenshot is given.

When I checked the log file of openmrs.log, it gave me following output, [root@dhcppc2 log]# cat openmrs.log nohup: failed to run command /usr/java/jre1.7.0_79/bin/java': No such file or directory nohup: failed to run command/usr/java/jre1.7.0_79/bin/java’: No such file or directory nohup: failed to run command /usr/java/jre1.7.0_79/bin/java': No such file or directory nohup: failed to run command/usr/java/jre1.7.0_79/bin/java’: No such file or directory

I think some problem is with java. But as far as I know during Installation of Bahmni Installer required version of java is installed by default.

after that I checked for java version, here I am giving its output-

[root@dhcppc2 log]# yum list installed | grep jre [root@dhcppc2 log]# yum list installed | grep jdk java-1.6.0-openjdk.x86_64 1:1.6.0.35-1.13.7.1.el6_6 @base/$releasever java-1.7.0-openjdk.x86_64 1:1.7.0.79-2.5.5.4.el6 @base/$releasever [root@dhcppc2 log]#

when I access the web- it shows

This procedure From installation of fresh Centos 6.7 to this step I repeated twice, and both times I got the same result. anyone can suggest me solution for this problem.

What is the problem you are facing ?

sorry By mistake partial post was submitted. Now its updated with entire problem

Can you please try to uninstall java-1.6 if you don’t need. Openmrs needs java 1.7 to run. And also can you please check whether /usr/java/jre1.7.0_79/bin/java file exist or not ?

there is no java folder in it.

I uninstalled jdk this is the output of un installation process.

[root@dhcppc2 log]# yum remove java-1.6.0-openjdk.x86_64 Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Remove Process No Match for argument: java-1.6.0-openjdk.x86_64 Loading mirror speeds from cached hostfile

  • base: centos.mirror.net.in
  • epel: mirror.premi.st
  • extras: centos.mirror.net.in
  • updates: centos.mirror.net.in bahmni | 1.3 kB 00:00
    Package(s) java-1.6.0-openjdk.x86_64 available, but not installed. No Packages marked for removal

IS THERE ANY PROBLEM WITH JRE?because it is not showing any output of command-yum list installed | grep jre

Still te same problem and same issue,

this is the output of status of java and jre. [root@dhcppc2 ~]# yum list installed | grep java java-1.5.0-gcj.x86_64 1.5.0.0-29.1.el6 @base/$releasever java-1.7.0-openjdk.x86_64 1:1.7.0.79-2.5.5.4.el6 @base/$releasever java_cup.x86_64 1:0.10k-5.el6 @base/$releasever tzdata-java.noarch 2015e-1.el6 @base/$releasever [root@dhcppc2 ~]# yum list installed | grep jre [root@dhcppc2 ~]#

The problem is openmrs is trying to find the jre in /usr/java/jre1.7.0_79/ in this path. But it is not able to find. You can find the java path by using the following command. whereis java Please update JAVA_HOME variable in /opt/openmrs/etc/openmrs.conf file with the output of above command.

Thank you @padmavati and @sravanthi17 for fast reply. but my problem still not solved. I am doing again fresh installation with fresh centos 6.7, 64 bit.

I want to know that I face this problem of java two times, But Bhamni installer by default install during its installation process. than why this problem I am facing? can you say something about it.

@padmavati this is the screenshot of my JAVA location and I edited openmrs.conf file and set the path, after editing I restarted the system, still its not starting any of the service related to Bahmni and openmrs.

Hi @brijesh, Ideally the java will be present in /usr/java/ folder. To identify the java version available in your system, please run this java -version and let us know.

Also please execute the command cd /usr/java/ && ll and tell us the output.

And, can you please attach the log of bahmni installation so that we can see whether there was any problem during java installation? It will be present in /var/log/bahmni-installer/bahmni-installer.log

I am here sending all output and please tell me where I am doing wrong. JAVA

[root@dhcppc5 log]# java -version java version “1.7.0_79” OpenJDK Runtime Environment (rhel-2.5.5.4.el6-x86_64 u79-b14) OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode) [root@dhcppc5 log]# whereis java java: /usr/bin/java /etc/java /usr/lib/java /usr/share/java /usr/share/man/man1/java.1.gz [root@dhcppc5 log]# yum list installed |grep java java-1.5.0-gcj.x86_64 1.5.0.0-29.1.el6 @base/$releasever java-1.6.0-openjdk.x86_64 1:1.6.0.35-1.13.7.1.el6_6 @base/$releasever java-1.7.0-openjdk.x86_64 1:1.7.0.79-2.5.5.4.el6 @base/$releasever java_cup.x86_64 1:0.10k-5.el6 @base/$releasever tzdata-java.noarch 2015e-1.el6 @base/$releasever [root@dhcppc5 log]# yum list installed |grep jre [root@dhcppc5 log]# yum list installed |grep jdk java-1.6.0-openjdk.x86_64 1:1.6.0.35-1.13.7.1.el6_6 @base/$releasever java-1.7.0-openjdk.x86_64 1:1.7.0.79-2.5.5.4.el6 @base/$releasever [root@dhcppc5 log]#

BAHMNI INSTALL

[root@dhcppc5 log]# yum list installed |grep bahmni bahmni-certs.noarch 1.0-48 @bahmni
bahmni-emr.noarch 0.83-289 @bahmni
bahmni-erp.noarch 0.83-36 @bahmni
bahmni-erp-connect.noarch 0.83-36 @bahmni
bahmni-installer.noarch 0.83-142 @/bahmni-installer-0.83-142.noarch bahmni-lab.noarch 0.83-34 @bahmni
bahmni-lab-connect.noarch 0.83-289 @bahmni
bahmni-openmrs.noarch 0.83-8 @bahmni
bahmni-reports.noarch 0.83-31 @bahmni
bahmni-web.noarch 0.83-289 @bahmni
python-gdata.noarch 2.0.11-1.el6 @bahmni
[root@dhcppc5 log]#

ALL SERVICE [root@dhcppc5 log]# sudo service --status-all abrt-ccpp hook is installed abrtd (pid 2788) is running… abrt-dump-oops is stopped acpid (pid 1897) is running… atd (pid 2840) is running… auditd (pid 1593) is running… automount (pid 2062) is running… Service bahmni-erp-connect is not running Service bahmni-lab is not running Service bahmni-reports is not running Usage: /etc/init.d/bluetooth {start|stop} certmonger (pid 2872) is running… cpuspeed is stopped crond (pid 2813) is running… cupsd (pid 1844) is running… dnsdomainname: Unknown host dnsmasq is stopped /usr/sbin/fcoemon – RUNNING, pid=1747 No interfaces created. firstboot is not scheduled to run hald (pid 1917) is running… I don’t know of any running hsqldb server. htcacheclean is stopped httpd (pid 2801) is running… Table: filter Chain INPUT (policy ACCEPT) num target prot opt source destination
1 ACCEPT all ::/0 ::/0 state RELATED,ESTABLISHED 2 ACCEPT icmpv6 ::/0 ::/0
3 ACCEPT all ::/0 ::/0
4 ACCEPT udp ::/0 fe80::/64 state NEW udp dpt:546 5 ACCEPT tcp ::/0 ::/0 state NEW tcp dpt:22 6 REJECT all ::/0 ::/0 reject-with icmp6-adm-prohibited

Chain FORWARD (policy ACCEPT) num target prot opt source destination
1 REJECT all ::/0 ::/0 reject-with icmp6-adm-prohibited

Chain OUTPUT (policy ACCEPT) num target prot opt source destination

IPsec stopped Table: filter Chain INPUT (policy DROP) num target prot opt source destination
1 ACCEPT tcp – 0.0.0.0/0 0.0.0.0/0 tcp dpt:8069 /* BAHMNIERP / 2 ACCEPT tcp – 0.0.0.0/0 0.0.0.0/0 tcp dpt:5432 / POSTGRES / 3 ACCEPT tcp – 0.0.0.0/0 0.0.0.0/0 tcp dpt:8052 / BAHMNILAB / 4 ACCEPT tcp – 0.0.0.0/0 0.0.0.0/0 tcp dpt:8051 / BAHMNIREPORTS / 5 ACCEPT tcp – 0.0.0.0/0 0.0.0.0/0 tcp dpt:443 / https / 6 ACCEPT tcp – 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 / WEB SERVER / 7 ACCEPT tcp – 0.0.0.0/0 0.0.0.0/0 tcp dpt:8050 / OPENMRS / 8 ACCEPT tcp – 0.0.0.0/0 0.0.0.0/0 tcp dpt:3306 / MYSQL / 9 ACCEPT all – 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED 10 ACCEPT icmp – 0.0.0.0/0 0.0.0.0/0
11 ACCEPT all – 0.0.0.0/0 0.0.0.0/0
12 ACCEPT tcp – 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22 13 REJECT all – 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited 14 ACCEPT all – 0.0.0.0/0 0.0.0.0/0 /
lo / 15 ACCEPT tcp – 0.0.0.0/0 0.0.0.0/0 tcp dpt:22 / SSH */

Chain FORWARD (policy DROP) num target prot opt source destination
1 REJECT all – 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT) num target prot opt source destination

irqbalance (pid 1661) is running… iscsi is stopped iscsid is stopped Kdump is operational lldpad (pid 1707) is running… lvmetad is stopped dmeventd is stopped mdmonitor is stopped messagebus (pid 1762) is running… multipathd is stopped mysqld (pid 2545) is running… netconsole module not loaded Configured devices: lo Currently active devices: lo eth1 NetworkManager (pid 1775) is running… rpc.svcgssd is stopped rpc.mountd is stopped nfsd is stopped rpc.rquotad is stopped rpc.statd (pid 1798) is running… grep: /proc/fs/nfsd/portlist: No such file or directory nscd is stopped nslcd is stopped ntpd (pid 2180) is running… oddjobd is stopped ifdhandler is stopped Waiting for reader attach/detach events… openerp-server is running… Service openmrs is not running pcscd (pid 2042) is running… portreserve is stopped master (pid 2759) is running… postgresql-9.2 (pid 2663) is running… pppoe-server is stopped Process accounting is disabled. quota_nld is stopped rdisc is stopped Low level hardware support loaded: none found

Upper layer protocol modules: none found

User space access modules: none found

Connection management modules: none found

rngd is stopped rpcbind (pid 1685) is running… rpc.gssd is stopped rpc.idmapd is stopped rpc.svcgssd is stopped rsyslogd (pid 1627) is running… sandbox is stopped saslauthd is stopped smartd is stopped spice-vdagentd is stopped openssh-daemon is stopped sssd is stopped Xvnc is stopped wdaemon is stopped winbindd is stopped wpa_supplicant (pid 1845) is running… ypbind is stopped

note- you can see in service that service related to openmrs and bahmni are not started. not even after restarting.

OPENMRS LOG [root@dhcppc5 log]# cat openmrs.log nohup: failed to run command /usr/java/jre1.7.0_79/bin/java': No such file or directory nohup: failed to run command/usr/java/jre1.7.0_79/bin/java’: No such file or directory nohup: failed to run command `/usr/java/jre1.7.0_79/bin/java’: No such file or directory

OPENMRS CONF

[root@dhcppc5 openmrs]# cat openmrs.conf export OPENMRS_RUNTIME_PROPERTIES_FILE=/etc/openmrs/openmrs-runtime.properties export MODULE_REPO=/home/bahmni/.OpenMRS/modules export SERVER_PORT=8050 export BASE_DIR=/var/run/openmrs export CONTEXT_PATH=openmrs export WAR_DIRECTORY=/var/run/openmrs/openmrs export SERVER_OPTS="-Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m" export DEBUG_OPTS=-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n export JAVA_HOME=/usr/java/jre1.7.0_79 [root@dhcppc5 openmrs]#

OUTPUT OF - cd /usr/java/ && ll [root@dhcppc5 ~]# cd /usr/java bash: cd: /usr/java: No such file or directory [root@dhcppc5 ~]# ^C [root@dhcppc5 ~]#

NOTE-IS THERE ANY PROBLEM WITH PATH OF JAVA_HOME?

HERE I AM ATTACHING PDF FILE OF BAHMNI-INSTALLE LOG.bahmni-installer.pdf (598.0 KB)

waiting for reply.

yes the path of JAVA_HOME is the problem. JAVA_HOME is pointing to a location which does not exist. And we dont support openjdk in bahmni. So the solution would be to uninstall openjdk 7 that is already installed. [quote=“brijesh, post:10, topic:8061”] java-1.7.0-openjdk.x86_64 1:1.7.0.79-2.5.5.4.el6 @base/$releasever [/quote]

you should run yum remove java-1.7.0-openjdk.x86-64 and make sure that the output does not contain No Packages marked for removal. Once the uninstallation is complete, start the bahmni installation again.

1 Like