Cent OS - bahmni UI does not load

Hello I am not a techi or programmer, i am doctor by profession and trying to install bahmni for my hospital. I contacted professional implementators but the the cost is too high (3lacs +) and in that cost i could get myself a custom made HMS from scratch. I recently installed Bahmni in centOS 6.7 My issue is that i cannot get the webpage up. All the services are working and loaded and checked with service command. What i have noticed is that there are no files is the var/www/html folder and as far as i can check the default httpd config file points to that. Please help me in this.

[root@localhost /]# sudo service mysqld status mysqld (pid 1771) is running... [root@localhost /]# sudo service postgresql-9.2 status postgresql-9.2 (pid 1892) is running... [root@localhost /]# sudo service openmrs status Service openmrs is running with pid: 1854 [root@localhost /]# sudo service httpd status httpd (pid 1926) is running... [root@localhost /]# sudo service bahmni-reports status Service bahmni-reports is running with pid: 1454 [root@localhost /]# sudo service bahmni-lab status Service bahmni-lab is running with pid: 1435 [root@localhost /]# sudo service openerp status openerp-server is running... [root@localhost /]# sudo service bahmni-erp-connect status Service bahmni-erp-connect is running with pid: 1416

[root@localhost html]# yum list installed | grep bahmni bahmni-emr.noarch 0.79-47 @bintray--bahmni-rpm bahmni-erp.noarch 0.79-8 @bintray--bahmni-rpm bahmni-erp-connect.noarch 0.79-8 @bintray--bahmni-rpm bahmni-lab.noarch 0.79-9 @bintray--bahmni-rpm bahmni-lab-connect.noarch 0.79-47 @bintray--bahmni-rpm bahmni-reports.noarch 0.79-10 @bintray--bahmni-rpm bahmni-web.noarch 0.79-47 @bintray--bahmni-rpm openmrs.noarch 1.12.0-792 @bintray--bahmni-rpm python-gdata.noarch 2.0.11-1.el6 @bintray--bahmni-rpm

@puneet1984 Are you saying that you don’t see any folders and files inside the “/var/www” folder? Usually its supposed to look like this:

it is same, but html folder its empty in my system… i dont know if its ok or not

With Regards Dr. Puneet Maheshwari +919827222070

Hi Dr. Puneet, Its fine if the html folder is empty. Its not an issue. The angular app is served from /var/www/bahmniapps folder and its configured in ssl.conf

Hi Bharatak,

I am facing a issue wherein after the installation if I open the URL http:///home.

I am seeing the message on the screen as ERROR: Not able to find the required information. I am seeing the below messages in httpd error log [Fri May 20 04:50:17 2016] [error] [client 192.168.136.1] File does not exist: /var/www/bahmniapps/bahmni_config, referer: http://192.168.136.128/home/index.html [Fri May 20 05:37:13 2016] [error] [client 192.168.136.1] File does not exist: /var/www/bahmniapps/openmrs, referer: http://192.168.136.128/home/index.html

Uploading the screen shot aswell.

Also while launching http:///openelis I am not getting the UI page.

[root@localhost ~]# cd /var/www [root@localhost www]# ls -ltr total 16 drwxr-xr-x. 2 root root 4096 Mar 23 00:34 html drwxr-xr-x. 2 root root 4096 Mar 23 00:34 cgi-bin drwxr-xr-x. 3 root root 4096 May 19 15:17 error drwxr-xr-x. 3 root root 4096 May 19 15:17 icons lrwxrwxrwx. 1 bahmni bahmni 40 May 19 15:25 client_side_logging -> /opt/bahmni-web/etc/client_side_logging/ lrwxrwxrwx. 1 bahmni bahmni 31 May 19 15:25 bahmniapps -> /opt/bahmni-web/etc/bahmniapps/ lrwxrwxrwx. 1 bahmni bahmni 34 May 19 15:25 bahmni_config -> /opt/bahmni-web/etc/bahmni_config/ [root@localhost www]#

Please help me.

Thanks Bharath

@bharath0987: Can you please mention what steps did you follow to install Bahmni? Are you installing Bahmni on a CentOS box? Which version of Centos? And flavor (minimal/etc?).

By looking at your errors it seems the installation didn’t happen properly. Most install files look to be missing.

Hi

Am using Centos 6.7 with minimal.

These are the steps I have used:

export BAHMNI_VERSION=0.80 curl https://raw.githubusercontent.com/Bahmni/bahmni-vagrant/master/packer/scripts/base-v80.sh >> install-bahmni.sh chmod +x install-bahmni.sh ./install-bahmni.sh

from the link https://bahmni.atlassian.net/wiki/display/BAH/Install+Bahmni+on+CentOS

Thanks

[root@localhost www]# cd bahmni_config [root@localhost bahmni_config]# ls -ltr total 8 drwxr-xr-x. 4 bahmni bahmni 4096 May 19 15:24 openelis drwxr-xr-x. 13 bahmni bahmni 4096 May 19 15:24 openmrs [root@localhost bahmni_config]# cd … [root@localhost www]# cd bahmniapps [root@localhost bahmniapps]# ls -ltr total 80 -rwxr-xr-x. 1 bahmni bahmni 3212 Mar 21 23:25 worker.js -rwxr-xr-x. 1 bahmni bahmni 510 Mar 21 23:25 initWorker.js -rwxr-xr-x. 1 bahmni bahmni 1419 Mar 21 23:25 index.html -rwxr-xr-x. 1 bahmni bahmni 6285 Mar 21 23:25 favicon.ico drwxr-xr-x. 3 bahmni bahmni 4096 May 19 15:24 admin drwxr-xr-x. 3 bahmni bahmni 4096 May 19 15:24 adt drwxr-xr-x. 8 bahmni bahmni 4096 May 19 15:24 clinical drwxr-xr-x. 13 bahmni bahmni 4096 May 19 15:24 common drwxr-xr-x. 53 bahmni bahmni 4096 May 19 15:24 components drwxr-xr-x. 3 bahmni bahmni 4096 May 19 15:24 dhis drwxr-xr-x. 3 bahmni bahmni 4096 May 19 15:24 document-upload drwxr-xr-x. 3 bahmni bahmni 4096 May 19 15:24 home drwxr-xr-x. 9 bahmni bahmni 4096 May 19 15:24 i18n drwxr-xr-x. 2 bahmni bahmni 4096 May 19 15:24 images drwxr-xr-x. 5 bahmni bahmni 4096 May 19 15:24 lib drwxr-xr-x. 3 bahmni bahmni 4096 May 19 15:24 orders drwxr-xr-x. 3 bahmni bahmni 4096 May 19 15:24 registration drwxr-xr-x. 3 bahmni bahmni 4096 May 19 15:24 reports drwxr-xr-x. 17 bahmni bahmni 4096 May 19 15:24 styles [root@localhost bahmniapps]#

But I am able to access the page http://my-ip:8069 i.e openERP

I am not able to access bahmni home page and openelis

Please suggest a way forward i order to continue my installation.

Thanks

check the status of httpd and openmrs sudo service openmrs status sudo service httpd status

Hi Sravanthi,

[root@localhost bahmniapps]# service httpd status httpd (pid 3664) is running… [root@localhost bahmniapps]# service openmrs status Service openmrs is running with pid: 1763 [root@localhost bahmniapps]#

Without httpd service the web page itself will not be displayed right.

I am able to launch the page but seeing the error which I have uploaded a screenshot

What version of Centos are you using?

cat /etc/centos-release

Can you also please print the output of the following commands:

yum list installed | grep bahmni yum list installed | grep openmrs

[root@localhost ~]# [root@localhost ~]# cat /etc/centos-release CentOS release 6.7 (Final) [root@localhost ~]# [root@localhost ~]# yum list installed | grep bahmni bahmni-certs.noarch 1.0-36 @bintray–bahmni-rpm bahmni-emr.noarch 0.80-373 @bintray–bahmni-rpm bahmni-erp.noarch 0.80-59 @bintray–bahmni-rpm bahmni-erp-connect.noarch 0.80-59 @bintray–bahmni-rpm bahmni-lab.noarch 0.80-58 @bintray–bahmni-rpm bahmni-lab-connect.noarch 0.80-373 @bintray–bahmni-rpm bahmni-reports.noarch 0.80-76 @bintray–bahmni-rpm bahmni-web.noarch 0.80-373 @bintray–bahmni-rpm openmrs.noarch 1.12.0-373 @bintray–bahmni-rpm python-gdata.noarch 2.0.11-1.el6 @bintray–bahmni-rpm [root@localhost ~]# yum list installed | grep openmrs openmrs.noarch 1.12.0-373 @bintray–bahmni-rpm [root@localhost ~]#

@gsluthra @sandeepe Any advice please

Were you able to access http://my-ip/openmrs ?

@sravanthi17 404 not found

Not Found

The requested URL /openerp was not found on this server.

Apache/2.2.15 (CentOS) Server at 192.168.136.128 Port 443

The openerp URL is: http://(your-ip):8069

See this: https://bahmni.atlassian.net/wiki/display/BAH/Bahmni+Virtual+Box#BahmniVirtualBox-Step5:YoushouldhaveBahmniupandrunning,andaccessibleonthebelowmentionedlinks

@gsluthra

Please find attached screen shot.All the services are up and running. I am able to open http://ip:8069 but unable to load bahmni home page and openelis pages

Thanks Bharath

Looks like OpenELIS isn’t starting for you. You can try:

# Stop the service
service bahmni-lab stop
# Check no bahmni-lab process is running
ps -ef | grep bahmni-lab 
# Now start the service
service bahmni-lab start

If it still doesn’t come up, you can paste the contents of your /var/log/bahmni-lab/ log files in pastebin.com.

@gsluthra

Hi,

Pasted the logs in pastebin.com Hereis the copied link: http://pastebin.com/FJGzBpvx

From the logs I see: ERROR org.quartz.core.ErrorLogger - Job (atom-feed-openmrs-patient-failed.atom-feed-openmrs-patient-failedJob threw an exception. org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.bahmni.webclients.WebClientsException: org.apache.http.conn.HttpHostConnectException: Connection to http://localhost:8050 refused] at org.quartz.core.JobRunShell.run(JobRunShell.java:218) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:560) Caused by: org.bahmni.webclients.WebClientsException: org.apache.http.conn.HttpHostConnectException: Connection to http://localhost:8050 refused

Hi

Any findings from the logs

Thanks Bharath