Bahmni on Digital Ocean - No openelis & Odoo

Hello there. I installed bahmni on vagrant and i loved it! But the last three days i’ve made over 10 installations on digital ocean and the problem is that some services are not installed. For example: OpenElis & Odoo.

Also, there are not demo data on OpenErp. Is there something wrong with the installation steps?

what errors are you getting during installation? also what version?

Version 0.92 • CentOS 7.6

TASK [mysql : Check if any version of mysql is present] *************************************************************************************************************************************************************************************
task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql57.yml:14
 [WARNING]: when statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ '5.7' in mysql_version }}

fatal: [localhost]: FAILED! => {"changed": false, "cmd": "mysql --version", "failed": true, "msg": "[Errno 2] No such file or directory", "rc": 2}
...ignoring

TASK [bahmni-emr : Check if bahmni-emr rpm needs an update] *********************************************************************************************************************************************************************************
task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-emr/tasks/main.yml:19
 [WARNING]: Consider using yum module rather than running yum

fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["yum", "list", "installed", "bahmni-emr"], "delta": "0:00:00.434963", "end": "2021-10-14 14:32:44.002629", "failed": true, "msg": "non-zero return code", "rc": 1, "start": "2021-10-14 14:32:43.567666", "stderr": "Error: No matching Packages to list", "stderr_lines": ["Error: No matching Packages to list"], "stdout": "Loaded plugins: fastestmirror", "stdout_lines": ["Loaded plugins: fastestmirror"]}
...ignoring
TASK [bahmni-web : Check if bahmni-web rpm needs an update] *********************************************************************************************************************************************************************************
task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-web/tasks/main.yml:1
fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["yum", "list", "installed", "bahmni-web"], "delta": "0:00:00.480126", "end": "2021-10-14 14:33:18.224567", "failed": true, "msg": "non-zero return code", "rc": 1, "start": "2021-10-14 14:33:17.744441", "stderr": "Error: No matching Packages to list", "stderr_lines": ["Error: No matching Packages to list"], "stdout": "Loaded plugins: fastestmirror", "stdout_lines": ["Loaded plugins: fastestmirror"]}
...ignoring
TASK [bahmni-implementer-interface : Check if bahmni-implementer-interface rpm needs an update] *********************************************************************************************************************************************
task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-implementer-interface/tasks/main.yml:1
fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["yum", "list", "installed", "bahmni-implementer-interface"], "delta": "0:00:00.470349", "end": "2021-10-14 14:33:27.589731", "failed": true, "msg": "non-zero return code", "rc": 1, "start": "2021-10-14 14:33:27.119382", "stderr": "Error: No matching Packages to list", "stderr_lines": ["Error: No matching Packages to list"], "stdout": "Loaded plugins: fastestmirror", "stdout_lines": ["Loaded plugins: fastestmirror"]}
...ignoring

TASK [postgres : Download postgres yum repo rpm if not present] *****************************************************************************************************************************************************************************
task path: /opt/bahmni-installer/bahmni-playbooks/roles/postgres/tasks/main.yml:5
fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["wget", "-q", "-O", "/opt/pgdg-redhat-repo-42.0-11.noarch.rpm", "https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-redhat-repo-42.0-11.noarch.rpm"], "delta": "0:00:00.145455", "end": "2021-10-14 14:33:56.255184", "failed": true, "msg": "non-zero return code", "rc": 5, "start": "2021-10-14 14:33:56.109729", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
        to retry, use: --limit @/opt/bahmni-installer/bahmni-playbooks/all.retry

PLAY RECAP **********************************************************************************************************************************************************************************************************************************
localhost                  : ok=165  changed=106  unreachable=0    failed=1

This is the status of the services:

[root@centos7x86-64genericcloud1811qcow2-s-4vcpu-8gb-intel-fra1-01 ~]# sudo service bahmni-reports status
Service bahmni-reports is running with pid: 19322
[root@centos7x86-64genericcloud1811qcow2-s-4vcpu-8gb-intel-fra1-01 ~]# sudo service bahmni-lab status
Redirecting to /bin/systemctl status bahmni-lab.service
Unit bahmni-lab.service could not be found.
[root@centos7x86-64genericcloud1811qcow2-s-4vcpu-8gb-intel-fra1-01 ~]# sudo service bahmni-lab status
Redirecting to /bin/systemctl status bahmni-lab.service
Unit bahmni-lab.service could not be found.
[root@centos7x86-64genericcloud1811qcow2-s-4vcpu-8gb-intel-fra1-01 ~]# Redirecting to /bin/systemctl status bahmni-lab.service
-bash: Redirecting: command not found
[root@centos7x86-64genericcloud1811qcow2-s-4vcpu-8gb-intel-fra1-01 ~]# Unit bahmni-lab.service could not be found.
-bash: Unit: command not found
[root@centos7x86-64genericcloud1811qcow2-s-4vcpu-8gb-intel-fra1-01 ~]# sudo service odoo status
Redirecting to /bin/systemctl status odoo.service
Unit odoo.service could not be found.
[root@centos7x86-64genericcloud1811qcow2-s-4vcpu-8gb-intel-fra1-01 ~]# sudo service openerp status
Redirecting to /bin/systemctl status openerp.service
Unit openerp.service could not be found.
[root@centos7x86-64genericcloud1811qcow2-s-4vcpu-8gb-intel-fra1-01 ~]# sudo service bahmni-erp-connect status
Redirecting to /bin/systemctl status bahmni-erp-connect.service
Unit bahmni-erp-connect.service could not be found.
[root@centos7x86-64genericcloud1811qcow2-s-4vcpu-8gb-intel-fra1-01 ~]# sudo service atomfeed-console status
Redirecting to /bin/systemctl status atomfeed-console.service
Unit atomfeed-console.service could not be found.
[root@centos7x86-64genericcloud1811qcow2-s-4vcpu-8gb-intel-fra1-01 ~]# sudo service mysqld status
Redirecting to /bin/systemctl status mysqld.service
● mysqld.service - MySQL Server
   Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 2021-10-14 14:32:20 EEST; 8min ago
     Docs: man:mysqld(8)
           http://dev.mysql.com/doc/refman/en/using-systemd.html
 Main PID: 15461 (mysqld)
   CGroup: /system.slice/mysqld.service
           └─15461 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid

Oct 14 14:32:19 centos7x86-64genericcloud1811qcow2-s-4vcpu-8gb-intel-fra1-01 systemd[1]: Starting MySQL Server...
Oct 14 14:32:20 centos7x86-64genericcloud1811qcow2-s-4vcpu-8gb-intel-fra1-01 systemd[1]: Started MySQL Server.
[root@centos7x86-64genericcloud1811qcow2-s-4vcpu-8gb-intel-fra1-01 ~]# sudo service postgresql-9.6 status
Redirecting to /bin/systemctl status postgresql-9.6.service
Unit postgresql-9.6.service could not be found.
[root@centos7x86-64genericcloud1811qcow2-s-4vcpu-8gb-intel-fra1-01 ~]# sudo service postgresql-9.2 status
Redirecting to /bin/systemctl status postgresql-9.2.service
Unit postgresql-9.2.service could not be found.
[root@centos7x86-64genericcloud1811qcow2-s-4vcpu-8gb-intel-fra1-01 ~]# sudo service openmrs status
Service openmrs is running with pid: 17727
[root@centos7x86-64genericcloud1811qcow2-s-4vcpu-8gb-intel-fra1-01 ~]# sudo service httpd status
Redirecting to /bin/systemctl status httpd.service
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 2021-10-14 14:32:32 EEST; 8min ago
     Docs: man:httpd(8)
           man:apachectl(8)
 Main PID: 16221 (httpd)
   Status: "Total requests: 0; Current requests/sec: 0; Current traffic:   0 B/sec"
   CGroup: /system.slice/httpd.service
           ├─16221 /usr/sbin/httpd -DFOREGROUND
           ├─18238 /usr/sbin/rotatelogs /var/log/httpd/error_log 10M
           ├─18239 /usr/sbin/rotatelogs /var/log/httpd/access_log 10M
           ├─18240 /usr/sbin/httpd -DFOREGROUND
           ├─18241 /usr/sbin/httpd -DFOREGROUND
           ├─18242 /usr/sbin/httpd -DFOREGROUND
           ├─18243 /usr/sbin/httpd -DFOREGROUND
           ├─18244 /usr/sbin/httpd -DFOREGROUND
           ├─18245 /usr/sbin/httpd -DFOREGROUND
           ├─20359 /usr/sbin/httpd -DFOREGROUND
           ├─20362 /usr/sbin/httpd -DFOREGROUND
           ├─20381 /usr/sbin/httpd -DFOREGROUND
           ├─20383 /usr/sbin/httpd -DFOREGROUND
           └─20410 /usr/sbin/httpd -DFOREGROUND

Oct 14 14:32:32 centos7x86-64genericcloud1811qcow2-s-4vcpu-8gb-intel-fra1-01 httpd[16221]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive gl...this message
Oct 14 14:32:32 centos7x86-64genericcloud1811qcow2-s-4vcpu-8gb-intel-fra1-01 systemd[1]: Started The Apache HTTP Server.
Oct 14 14:33:32 centos7x86-64genericcloud1811qcow2-s-4vcpu-8gb-intel-fra1-01 systemd[1]: Reloading The Apache HTTP Server.
Oct 14 14:33:32 centos7x86-64genericcloud1811qcow2-s-4vcpu-8gb-intel-fra1-01 httpd[18237]: [Thu Oct 14 14:33:32.680059 2021] [so:warn] [pid 18237] AH01574: module cache_module is already loaded, skipping
Oct 14 14:33:32 centos7x86-64genericcloud1811qcow2-s-4vcpu-8gb-intel-fra1-01 httpd[18237]: [Thu Oct 14 14:33:32.680846 2021] [so:warn] [pid 18237] AH01574: module cache_disk_module is already loaded, skipping
Oct 14 14:33:32 centos7x86-64genericcloud1811qcow2-s-4vcpu-8gb-intel-fra1-01 httpd[18237]: [Thu Oct 14 14:33:32.686200 2021] [so:warn] [pid 18237] AH01574: module ssl_module is already loaded, skipping
Oct 14 14:33:32 centos7x86-64genericcloud1811qcow2-s-4vcpu-8gb-intel-fra1-01 httpd[18237]: [Thu Oct 14 14:33:32.696462 2021] [core:warn] [pid 18237] AH00117: Ignoring deprecated use of DefaultType in line 381 of /etc/httpd.../httpd.conf.
Oct 14 14:33:32 centos7x86-64genericcloud1811qcow2-s-4vcpu-8gb-intel-fra1-01 httpd[18237]: [Thu Oct 14 14:33:32.696492 2021] [alias:warn] [pid 18237] AH00671: The Alias directive in /etc/httpd/conf/httpd.conf at line 498 w...rlier Alias.
Oct 14 14:33:32 centos7x86-64genericcloud1811qcow2-s-4vcpu-8gb-intel-fra1-01 httpd[18237]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive gl...this message
Oct 14 14:33:32 centos7x86-64genericcloud1811qcow2-s-4vcpu-8gb-intel-fra1-01 systemd[1]: Reloaded The Apache HTTP Server.
Hint: Some lines were ellipsized, use -l to show in full.


Recently some of the python/rpm packages on which Bahmni installation depends are no longer available in the mentioned links (on the installation page). So, some custom commands have to be fired. I think the install steps need a re-write due to this.

I see the following options for now:

  1. V0.93 of Bahmni will be out soon. In about 2 weeks. Wait for that, and follow the install steps mentioned with the V0.93 release.
  2. Dockerisation of Bahmni is in progress. With docker, all you need to install on the machine is “docker” + docker-compose. After that all installation happens using docker images (which are like mini-VMs running as processes on the host OS). Since all packages and softwares are pre-baked into these docker images by us, one doesn’t need to install anything – just start/stop the container running these images. You can see the documentation on docker for Bahmni here: bahmni-package/bahmni-docker at master · Bahmni/bahmni-package · GitHub. Here Odoo, ELIS and OpenMRS are already dockerised. Next steps are to dockerize EMR UI, Dcm4chee, etc. You can try these out, and point your local EMR UI to point to dockerized OpenMRS backend. See instructions. We will create a video for this too soon.
  3. Continue with the V0.92 install process, debug the issues as they arise – and see the talk forum for specific answers and move ahead. Admittedly, I find this option painful. I would rather have one bash script that I run on CentOS – and that should just DO IT ALL for me.
  4. You can also try and run Vagrant on DigitalOcean (V0.92). That should also be fine for now. There are some installations in production that run on Vagrant (although this will be the first one to install Bahmni Vagrant on Cloud in my opinion).

Docker is the way to go in the future. It removes all the worries about packages/dependencies no longer being available in 3rd party repositories. And docker images are pre-created by us, and therefore pre-tested/pre-secured to a degree.

Hello! I will sure wait for the solutions 1 & 2 But in next week i have to make a presentation. I install bahmni vagrant on digital ocean, can you please help me with the IP? how can i access it?

I haven’t installed Vagrant myself ever on DigitalOcean, but I think this should work, if you want to try:

  1. On a CentOS droplet, install vagrant. Steps here: Install Vagrant with VirtualBox on CentOS 7 - CentLinux

  2. Instead of deploying the vagrant box above, use the Bahmni vagrant box mentioned here: https://bahmni.atlassian.net/wiki/spaces/BAH/pages/14712841/Bahmni+Virtual+Box

  3. Once Bahmni vagrant box is downloaded and starts, it will do it in 192.168.33.10. That IP is not accessible from outside. You will need to edit the VagrantFile to expose the vagrant url public. vagrantfile - How to access Vagrant Box in public network - Stack Overflow.