Can't run Bahmni after install on a AWS server

I followed this guide How to - Install Bahmni on AWS and successfully completed on my Centos 6.9 server in AWS. However I can’t access to the given URLs for the modules related to Bahmni.

I run sudo service --status-all and this is the result:

acpid (pid  1084) is running...
auditd (pid  1002) is running...
Service bahmni-erp-connect is running with pid: 2100
Service bahmni-reports is running with pid: 466
Stopped
cgred is stopped
Checking for service cloud-init:Checking for service cloud-init:Checking for service cloud-init:Checking for service cloud-init:crond (pid  1848) is running...
DCM4CHEE is running with pid: 3646
htcacheclean is stopped
httpd (pid  30753) 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         

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     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:11112 /* dcm4cheeimagestorage */ 
11   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:11112 /* dcm4cheeimagestorage */ 
12   ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED 
13   ACCEPT     icmp --  0.0.0.0/0            0.0.0.0/0           
14   ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           
15   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:22 
16   REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited 
17   ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           /* lo */ 
18   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         

Checking jexec statusKdump is unsupported on this kernel
mdmonitor is stopped
messagebus (pid  1046) is running...
mysqld (pid  1590) 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  1233) is running...
openerp-server is stopped
Service openmrs is running with pid: 8104
Service pacs-integration is not running
master (pid  1792) is running...
postgresql-9.2 (pid  1689) is running...
rdisc is stopped
Low level hardware support loaded:
	none found

Upper layer protocol modules:
	ib_ipoib 

User space access modules:
	rdma_ucm ib_ucm ib_uverbs ib_umad 

Connection management modules:
	rdma_cm ib_cm iw_cm 

Configured IPoIB interfaces: none
Currently active IPoIB interfaces: none
rsyslogd (pid  1024) is running...
sandbox is stopped
saslauthd is stopped
openssh-daemon (pid  29701) is running...
svnserve is stopped

And these are the RPMs installed for 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.noarch      
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                                 
                       0.89-62          @bahmni                                 
python-gdata.noarch    2.0.11-1.el6     @bahmni

I have been searching all day long and haven’t found how to make it work. Can someone check on it and help me solve it please?

cc. @cristian @sommardahl @ronald721hn

the services seem to be running. What exactly are you getting when you try to access your domain? e.g. https://youripaddress/

do you get the landing page with listing of components at least? like https://demo.mybahmni.org? If not, then you need to check if apache is serving on port 80, 443. You can also figure out from the machine command line

curl http://localhost or curl http://127.0.0.1

If you get response then you know the apache is running and then you need to figure out if the machine is addressable from the public network.

3 Likes

Hi @angshuonline,

After making a curl http://localhost as you mentioned it gave me this result:

!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="https://localhost/">here</a>.</p>
<hr>
<address>Apache/2.2.15 (CentOS) Server at localhost Port 80</address>
</body></html>

I noticed that it was changing it to https. So what I did was to add the HTTPS inbound rule in our EC2 instance and with that the issue was solved.

Thanks for your help.