bahmni-lab not start after install bahmni!!!

Hi I have an issue after installing bahmni.

While installing bahmni via CentOS 6.9(full) in Google Cloud and Digital Ocean, I have an existing issue that openerp were not installed I correct it with

and installation was completed.

However bahmni-lab service was not start

[zacrify1986@centos-1 ~]$ sudo service --status-all
abrt-ccpp hook is installed
abrtd (pid  2026) is running...
abrt-dump-oops is stopped
acpid (pid  1301) is running...
atd (pid  2104) is running...
auditd (pid  1157) is running...
Service bahmni-erp-connect is running with pid: 1421
Service bahmni-lab is not running
Service bahmni-reports is running with pid: 1439
cpuspeed is stopped
crond (pid  2089) is running...
DCM4CHEE is running with pid: 2022
resize2fs 1.41.12 (17-May-2010)
The filesystem is already 2621184 blocks long.  Nothing to do!

hald (pid  1313) is running...
htcacheclean is stopped
httpd (pid  2063) is running...
Table: filter
Chain INPUT (policy ACCEPT)
num  target     prot opt source               destination         

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

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

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:11112 /* dcm4cheeimagestorage */ 
2    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:8055 /* DCM4CHEE */ 
3    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:5432 /* POSTGRES */ 
4    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:8069 /* BAHMNIERP */ 
5    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:8051 /* BAHMNIREPORTS */ 
6    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:8050 /* OPENMRS */ 
7    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:443 /* https */ 
8    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:80 /* WEB SERVER */ 
9    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:3306 /* MYSQL */ 
10   ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           /* lo */ 
11   ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED 
12   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         

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

Checking jexec statuslvmetad is stopped
dmeventd is stopped
mdmonitor is stopped
messagebus (pid  1263) is running...
mysqld (pid  1753) is running...
netconsole module not loaded
Configured devices:
lo eth0
Currently active devices:
lo eth0
grep: /proc/fs/nfsd/portlist: No such file or directory
ntpd (pid  1402) is running...
openerp-server is running...
Service openmrs is running with pid: 1827
master (pid  2003) is running...
postgresql-9.2 (pid  1869) is running...
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
rsyslogd (pid  1179) is running...
sandbox is stopped
saslauthd is stopped
openssh-daemon (pid  1391) is running...
Nightly yum update is enabled. 

and it’s not start after

[zacrify1986@centos-1 ~]$ sudo service bahmni-lab start
Starting bahmni-lab
[zacrify1986@centos-1 ~]$ sudo service bahmni-lab status
Service bahmni-lab is not running
[zacrify1986@centos-1 ~]$ sudo service bahmni-lab status
Service bahmni-lab is not running
[zacrify1986@centos-1 ~]$ 

I think all service were installed

[zacrify1986@centos-1 ~]$ yum list installed | grep bahmni
bahmni-emr.noarch                   0.89-326                  @bahmni           
bahmni-erp.noarch                   0.89-49                   @bahmni           
bahmni-erp-connect.noarch           0.89-49                   @bahmni           
bahmni-implementer-interface.noarch 0.89-97                   @bahmni           
bahmni-installer.noarch             0.89-193                  @/bahmni-installer-0.89-193.noar
ch
bahmni-lab.noarch                   0.89-69                   @bahmni           
bahmni-lab-connect.noarch           0.89-326                  @bahmni           
bahmni-openmrs.noarch               0.89-89                   @bahmni           
bahmni-reports.noarch               0.89-64                   @bahmni           
bahmni-web.noarch                   0.89-326                  @bahmni           
dcm4chee.noarch                     0.89-58                   @bahmni           
python-gdata.noarch                 2.0.11-1.el6              @bahmni      

But I’m not sure what happening but both Google Cloud and Digital Ocean have the same problem. (Bahmni-lab works fine in Vagrant box)

Thanks Pi

Hi @zacrify, Can you check thee the logs of bahmni-lab which can be found here in /var/log/bahmni-lab

this is log

   nohup: failed to run command `/usr/java/jre1.8.0_101/bin/java': No such file or directory
   nohup: failed to run command `/usr/java/jre1.8.0_101/bin/java': No such file or directory
   nohup: failed to run command `/usr/java/jre1.8.0_101/bin/java': No such file or directory

Hi @zacrify, Can you please share /opt/bahmni-lab/etc/bahmni-lab.conf file once.

# required by embedded tomcat as env variables
export SERVER_PORT=8052
export BASE_DIR=/var/run/bahmni-lab
export CONTEXT_PATH=/openelis
export WAR_DIRECTORY=/var/run/bahmni-lab/bahmni-lab
export SERVER_OPTS="-Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m"
export DEBUG_OPTS="-agentlib:jdwp=transport=dt_socket,address=8001,server=y,suspend=n"
export JAVA_HOME=/usr/java/jre1.8.0_101

OPENELIS_DB_SERVER="localhost"

hi @zacrify

i have the same issue what is did was installed jre1.8.0_101 and it fix my issue last week please kindly install this rpm it will fix your issue. let me know if it help or not. thank you

best regard Bhandari

Hi @zacrify,

You have jre1.8.0_131 installed in your machine. Change JAVA_HOME to /usr/java/jre1.8.0_131 and it lets you start bahmni-lab service.

Hi I tried to change as you recommend but I still cannot start bahmni-lab service

# required by embedded tomcat as env variables
export SERVER_PORT=8052
export BASE_DIR=/var/run/bahmni-lab
export CONTEXT_PATH=/openelis
export WAR_DIRECTORY=/var/run/bahmni-lab/bahmni-lab
export SERVER_OPTS="-Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m"
export DEBUG_OPTS="-agentlib:jdwp=transport=dt_socket,address=8001,server=y,suspend=n"
export JAVA_HOME=/usr/java/jre1.8.0_131


OPENELIS_DB_SERVER="localhost"

you mean install jre 1.8.0_101 again right? (sorry i’m not a technical guy)

Hi @zacrify, Can you share the output of the below command. Also share bahmni-lab.log file. java -version

[zacrify1986@centos-1 /]$ sudo service bahmni-lab start
Starting bahmni-lab
[zacrify1986@centos-1 /]$ sudo service bahmni-lab status
Service bahmni-lab is not running

this is log file

nohup: failed to run command `/usr/java/jre1.8.0_101/bin/java': No such file or directory
nohup: failed to run command `/usr/java/jre1.8.0_101/bin/java': No such file or directory
nohup: failed to run command `/usr/java/jre1.8.0_101/bin/java': No such file or directory

java version

[zacrify1986@centos-1 /]$ java -version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

Hi @zacrify,

Not sure why it is looking for jre1.8.0_101 after changing JAVA_HOME to jre1.8.0_131. Can you share /etc/bahmni-installer/local file.

localhost ansible_connection=local

[nagios-server]

[bahmni-emr]
localhost

[bahmni-emr-db]
localhost
[bahmni-emr-db-slave]

[bahmni-erp]
localhost
[bahmni-erp-db]
localhost
[bahmni-erp-db-slave]

[bahmni-lab]

[bahmni-lab-db]

[bahmni-lab-db-slave]

[bahmni-reports]
localhost

[bahmni-reports-db]

[bahmni-reports-db-slave]

[atomfeed-console]

[pacs-integration]

[pacs-integration-db]

[pacs-integration-db-slave]

[dcm4chee]
localhost

[dcm4chee-db]
localhost

[dcm4chee-db-slave]

[bahmni-event-log-service]

[bahmni-offline]

[mysql-backup-tool]

[postgres-backup-tool]

[bahmni-backup-artifacts]

[local:children]
nagios-server
bahmni-emr
bahmni-emr-db
bahmni-emr-db-slave
bahmni-lab
bahmni-lab-db
bahmni-lab-db-slave
bahmni-erp
bahmni-erp-db
bahmni-erp-db-slave
bahmni-reports
bahmni-reports-db
bahmni-reports-db-slave
pacs-integration
pacs-integration-db
pacs-integration-db-slave
dcm4chee
dcm4chee-db
dcm4chee-db-slave
bahmni-event-log-service
bahmni-offline
atomfeed-console
mysql-backup-tool
postgres-backup-tool
bahmni-backup-artifacts

Hi @zacrify,[quote=“zacrify, post:13, topic:11832”] [bahmni-lab]

[bahmni-lab-db] [/quote]

Can you add localhost under both the modules as mentioned in this file and run bahmni -i local install command.

hi @zacrify

  1. login to your server
  2. cd /opt
  3. wget https://mirror.its.sfu.ca/mirror/CentOS-Third-Party/NSG/common/x86_64/jre-8u101-linux-x64.rpm
  4. yum install jre-8u101-linux-x64.rpm

let’s do this first, after finishing installation

service bahmni-lab start

and check whether it start or not service bahmni-lab status

try rebooting your server once, and try to start again bahmni-lab

hope it will work .

1 Like

hi @binduak after I add localhost under bahmni-lab and bahmni-lab-db and local install it appear like this

[zacrify1986@centos-1 ~]$ bahmni -i local install
Installing Ansible from https://dl.bintray.com/bahmni/rpm/ansible-2.2.0.0-3.el6.             noarch.rpm...
Loaded plugins: fastestmirror, security
Setting up Install Process
Cannot open: https://dl.bintray.com/bahmni/rpm/ansible-2.2.0.0-3.el6.noarch.rpm.              Skipping.
Error: Nothing to do

Hi @zacrify,[quote=“zacrify, post:16, topic:11832”] Cannot open: https://dl.bintray.com/bahmni/rpm/ansible-2.2.0.0-3.el6.noarch.rpm. [/quote] Are you able to access the above URL from browser.

hi @binduak yes i can

i tried to install again and completed install with the same problem persist

bahmni-lab is not running

Hi @binduak I followed your step again and it’s work Thanks

hi @zacrify

are yo uable to make LAB order and test result can appear in patient dashboard on bahmni? i have an issue i can make lab order and i can test LAB after validating result i cant see anything in patient dashboard of lab result ? are you okay with this one ?