‘[’ -f /etc/bahmni-installer/bahmni.conf ‘]’
++ mysql -h localhost -uroot -ppassword --skip-column-names -e ‘SHOW DATABASES LIKE ‘’‘openmrs’’’’
Warning: Using a password on the command line interface can be insecure.
RESULT=openmrs
‘[’ openmrs ‘!=’ openmrs ‘]’
mysql -h localhost -uroot -ppassword -e ‘CREATE USER ‘’‘openmrs-user’’’@’’‘localhost’’’ IDENTIFIED BY ‘’’’’’;
GRANT ALL PRIVILEGES ON openmrs. TO ‘’‘openmrs-user’’’@’’‘localhost’’’ identified by ‘’‘password’’’ WITH GRANT OPTION;’
Warning: Using a password on the command line interface can be insecure.
ERROR 1396 (HY000) at line 1: Operation CREATE USER failed for ‘openmrs-user’@‘localhost’
Verifying : unzip-6.0-2.el6_6.x86_64 1/2
Verifying : openmrs-1.12.0-792.noarch 2/2
Installed:
openmrs.noarch 0:1.12.0-792
Dependency Installed:
unzip.x86_64 0:6.0-2.el6_6
Complete!
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
updates: centos.usonyx.net
No package bahmni-emr- available.
No package bahmni-web- available.
No package bahmni-reports- available.
No package bahmni-lab- available.
No package bahmni-lab-connect- available.
No package bahmni-erp- available.
Error: Nothing to do
error reading information on service httpd: No such file or directory
error reading information on service openerp: No such file or directory
error reading information on service bahmni-lab: No such file or directory
[root@server ~]# yum install httpd
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
updates: centos.usonyx.net
Resolving Dependencies
–> Running transaction check
—> Package httpd.x86_64 0:2.2.15-47.el6.centos.1 will be installed
–> Processing Dependency: httpd-tools = 2.2.15-47.el6.centos.1 for package: httpd-2.2.15-47.el6.centos.1.x86_64
–> Processing Dependency: apr-util-ldap for package: httpd-2.2.15-47.el6.centos.1.x86_64
–> Processing Dependency: /etc/mime.types for package: httpd-2.2.15-47.el6.centos.1.x86_64
–> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.2.15-47.el6.centos.1.x86_64
–> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.2.15-47.el6.centos.1.x86_64
–> Running transaction check
—> Package apr.x86_64 0:1.3.9-5.el6_2 will be installed
—> Package apr-util.x86_64 0:1.3.9-3.el6_0.1 will be installed
—> Package apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1 will be installed
—> Package httpd-tools.x86_64 0:2.2.15-47.el6.centos.1 will be installed
—> Package mailcap.noarch 0:2.1.31-2.el6 will be installed
–> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================================================================
Package Arch Version Repository Size
Installing:
httpd x86_64 2.2.15-47.el6.centos.1 updates 830 k
Installing for dependencies:
apr x86_64 1.3.9-5.el6_2 base 123 k
apr-util x86_64 1.3.9-3.el6_0.1 base 87 k
apr-util-ldap x86_64 1.3.9-3.el6_0.1 base 15 k
httpd-tools x86_64 2.2.15-47.el6.centos.1 updates 77 k
mailcap noarch 2.1.31-2.el6 base 27 k
Transaction Summary
Install 6 Package(s)
Total download size: 1.1 M
Installed size: 3.6 M
Is this ok [y/N]: y
Downloading Packages:
(1/6): apr-1.3.9-5.el6_2.x86_64.rpm | 123 kB 00:00
(2/6): apr-util-1.3.9-3.el6_0.1.x86_64.rpm | 87 kB 00:00
(3/6): apr-util-ldap-1.3.9-3.el6_0.1.x86_64.rpm | 15 kB 00:00
(4/6): httpd-2.2.15-47.el6.centos.1.x86_64.rpm | 830 kB 00:00
(5/6): httpd-tools-2.2.15-47.el6.centos.1.x86_64.rpm | 77 kB 00:00
(6/6): mailcap-2.1.31-2.el6.noarch.rpm | 27 kB 00:00
Complete!
[root@server ~]# service rum httpd
rum: unrecognized service
[root@server ~]# service run httpd
run: unrecognized service
[root@server ~]# service start httpd
start: unrecognized service
[root@server ~]# service httpd start
Starting httpd: httpd: apr_sockaddr_info_get() failed for server
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
[ OK ]
[root@server ~]# Complete!
`
After that I check services… the first error i get is of httpd, any way i install httpd service and start it. after that i start openmrs service as well … but nothing happens… cant access any urls…
I tried it from scratch many times. If you allow it i can send you the new droplet access where you can check and tell me if i am doing anything wrong…
@mayanksworld You are right. I just tried installing on a Digital Ocean box, and got the same error:
No package bahmni-emr- available.
No package bahmni-web- available.
No package bahmni-reports- available.
No package bahmni-lab- available.
No package bahmni-lab-connect- available.
No package bahmni-erp- available.
Error: Nothing to do
error reading information on service httpd: No such file or directory
error reading information on service openerp: No such file or directory
error reading information on service bahmni-lab: No such file or directory
Seems like the “BAHMNI_VERSION” variable doesn’t get read when we do a curl command directly. Can you do the following instead.
100%[==============================================================================================================================>] 34,501,165 81.5M/s in 0.4s
httpd: apr_sockaddr_info_get() failed for server
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
[ OK ]
now:
[root@server ~]# sudo service bahmni-reports start
Starting bahmni-reports
[root@server ~]# sudo service bahmni-lab start
Starting bahmni-lab
[root@server ~]# sudo service openerp start
Starting OpenERP Server Daemon (openerp-server): [ OK ]
[root@server ~]# sudo service bahmni-erp-connect start
Starting bahmni-erp-connect
[root@server ~]# nohup: appending output to `/home/bahmni/nohup.out’
[root@server ~]# sudo service bahmni-event-log-service start
bahmni-event-log-service: unrecognized service
[root@server ~]# sudo service bahmni-event-log-service status
bahmni-event-log-service: unrecognized service
Now when i try to access the website it shows some location error…
Hi Mayank,
The OpenMRS is not running. The commands doesn’t show “service openmrs start” here. Can you try starting it?
You can access openmrs here → https://128.199.90.180/openmrs
I have restarted the droplet and started the services till 503 on openmrs…
Last login: Mon Jan 25 06:46:52 2016 from 59.177.103.4
[root@server ~]# sudo service --status-all
acpid (pid 1124) is running…
auditd (pid 1035) is running…
Service bahmni-erp-connect is not running
Service bahmni-lab is running with pid: 1167
Service bahmni-reports is not running
htcacheclean is stopped
httpd (pid 1535) 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
Chain FORWARD (policy ACCEPT)
num target prot opt source destination
Chain OUTPUT (policy ACCEPT)
num target prot opt source destination
iscsi is stopped
iscsid is stopped
Checking jexec statuslvmetad is stopped
dmeventd is stopped
mdmonitor is stopped
messagebus (pid 1086) is running…
multipathd is stopped
mysqld dead but subsys locked
netconsole module not loaded
Configured devices:
lo eth0 eth1
Currently active devices:
lo eth0 eth1
openerp-server is running…
Service openmrs is not running
postgresql-9.2 (pid 1504) is running…
rdisc is stopped
rsyslogd (pid 1057) is running…
sandbox is stopped
saslauthd is stopped
openssh-daemon (pid 1148) is running…
[root@server ~]# sudo service mysqld start
Starting mysqld: [ OK ]
[root@server ~]# sudo service postgresql-9.2 start
Starting postgresql-9.2 service: [ OK ]
[root@server ~]# sudo service openmrs start
Starting openmrs
[root@server ~]# sudo service httpd start
Starting httpd:
[root@server ~]#
Hello. Just checking quickly, so ultimately the issue was due to low memory? Because currently I am testing an install on virtual box (without using vagrant to familiarise myself with the installation steps) and I am getting a similar error.
“Unable to fetch locations” error on the home page,
503 service unavailable error on openELIS,
and SSL error for openERP.