Hello,
Today I tried to install bahmni but not succeed.
OpenMRS worked fine but OpenERP and ELIS not working.
Figured out that postgresql not getting started.
#sudo service postgresql-9.2 start
/var/lib/pgsql/9.2/data is missing. Use "service postgresql-9.2 initdb" to initialize the cluster first.
[FAILED]
# service postgresql-9.2 initdb
Initializing database: mkdir: cannot create directory `/var/lib/pgsql/9.2/data/pg_log': File exists
[FAILED]
List of all services
# sudo service --status-all
Service bahmni-reports is running with pid: 12884
/etc/init.d/cdp-agent status: cdp (pid 1433) running
crond (pid 1387) is running...
exim is stopped
fail2ban-server (pid 1399) is running...
Status
|- Number of jail: 0
`- Jail list:
htcacheclean is stopped
httpd (pid 10697) is running...
ip6tables: Firewall is not running.
ipset: not running
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:8051 /* BAHMNIREPORTS */
2 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:3306 /* MYSQL */
3 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:8050 /* OPENMRS */
4 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:443 /* https */
5 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 /* WEB SERVER */
6 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
7 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
8 ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0
9 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
10 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:22
11 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
12 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:443
13 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:10050
14 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:1167
15 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 /* lo */
16 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 statusmysqld (pid 3730) is running...
netconsole module not loaded
Configured devices:
lo eth0 eth1
Currently active devices:
lo eth0 eth1
ntpd (pid 1339) is running...
Service openmrs is running with pid: 11746
portreserve is stopped
postgresql-9.2 is stopped
quota_nld is stopped
rdisc is stopped
restorecond is stopped
rsyslogd (pid 1301) is running...
sandbox is stopped
saslauthd (pid 1351) is running...
snmpd is stopped
snmptrapd is stopped
openssh-daemon (pid 9772) is running...
zabbix_agentd (pid 1370) is running...
After the installation of bahmni i get this error
TASK [postgres : insert/update postgres config after "local" is for Unix domain socket connections only line] ***
task path: /opt/bahmni-installer/bahmni-playbooks/roles/postgres/tasks/main.yml: 33
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Destin ation /var/lib/pgsql/9.2/data/pg_hba.conf does not exist !", "rc": 257}
to retry, use: --limit @/opt/bahmni-installer/bahmni-playbooks/all.retry
PLAY RECAP *********************************************************************
localhost : ok=159 changed=57 unreachable=0 failed=1
Traceback (most recent call last):
File "/usr/bin/bahmni", line 9, in <module>
load_entry_point('bahmni==0.1', 'console_scripts', 'bahmni')()
File "/usr/lib/python2.6/site-packages/click-6.7-py2.6.egg/click/core.py", lin e 722, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/click-6.7-py2.6.egg/click/core.py", lin e 697, in main
rv = self.invoke(ctx)
File "/usr/lib/python2.6/site-packages/click-6.7-py2.6.egg/click/core.py", lin e 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python2.6/site-packages/click-6.7-py2.6.egg/click/core.py", lin e 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python2.6/site-packages/click-6.7-py2.6.egg/click/core.py", lin e 535, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/click-6.7-py2.6.egg/click/decorators.py ", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/lib/python2.6/site-packages/bahmni-0.1-py2.6.egg/bahmni.py", line 8 0, in install
return subprocess.check_call(command, shell=True)
File "/usr/lib64/python2.6/subprocess.py", line 505, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'ansible-playbook -i /etc/bahmni-installe r/local all.yml -vv --extra-vars '@/etc/bahmni-installer/rpm_versions.yml' --ex tra-vars '@/etc/bahmni-installer/setup.yml'' returned non-zero exit status 2
Service status
# sudo service bahmni-lab status
bahmni-lab: unrecognized service
# sudo service openerp status
openerp: unrecognized service
# sudo service bahmni-erp-connect status
bahmni-erp-connect: unrecognized service
# sudo service mysqld status
mysqld (pid 3730) is running...
# sudo service postgresql-9.2 status
postgresql-9.2 is stopped
Please help.