Bahmni cloud setup issues

I have done a setup on Digitalocean following this link for version 0.90.

Having multiple issues:

  1. Getting this error when I go to different tabs: "TypeError: Cannot read property ‘uuid’ of undefined"

  2. Consultation does not have all the options shown here http://demo.mybahmni.org/

Could you please suggest any hints to fix this?

Thanks

FYI, got below error while installing:

fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “cpan -i parent”, “delta”: “0:00:24.113081”, “end”: “2018-04-24 23:36:08.026662”, “failed”: true, “rc”: 255, “start”: “2018-04-24 23:35:43.913581”, “stderr”: “Can’t locate object method “data” via package “CPAN::Modulelist” (perhaps you forgot to load “CPAN::Modulelist”?) at (eval 18) line 1.\n at /usr/share/perl5/CPAN/Index.pm line 518\n\tCPAN::Index::rd_modlist(‘CPAN::Index’, ‘/root/.cpan/sources/modules/03modlist.data.gz’) called at /usr/share/perl5/CPAN/Index.pm line 85\n\tCPAN::Index::reload(‘CPAN::Index’) called at /usr/share/perl5/CPAN.pm line 955\n\tCPAN::exists(‘CPAN=HASH(0x2b4e0b8)’, ‘CPAN::Module’, ‘parent’) called at /usr/share/perl5/CPAN/Shell.pm line 1243\n\tCPAN::shell::expandany(‘CPAN::Shell’, ‘parent’) called at /usr/share/perl5/CPAN/Shell.pm line 1639\n\tCPAN::shell::rematein(‘CPAN::Shell’, ‘install’, ‘parent’) called at /usr/share/perl5/CPAN/Shell.pm line 1935\n\tCPAN::shell::ANON(‘CPAN::Shell’, ‘parent’) called at /usr/bin/cpan line 319\n\tmain::_default(‘ARRAY(0x2289fb8)’) called at /usr/bin/cpan line 278”, “stdout”: “CPAN: Storable loaded ok (v2.20)\nGoing to read ‘/root/.cpan/sources/authors/01mailrc.txt.gz’\n…DONE\nGoing to read ‘/root/.cpan/sources/modules/02packages.details.txt.gz’\n Database was generated on Tue, 24 Apr 2018 17:17:02 GMT\n HTTP::Date not available\n…\n New CPAN.pm version (v2.16) available.\n [Currently running version is v1.9402]\n You might want to try\n install CPAN\n reload cpan\n to both upgrade CPAN.pm and run the new version without leaving\n the current session.\n\nCPAN: Time::HiRes loaded ok (v1.9721)\n\n…DONE\nGoing to read ‘/root/.cpan/sources/modules/03modlist.data.gz’”, “stdout_lines”: [“CPAN: Storable loaded ok (v2.20)”, “Going to read ‘/root/.cpan/sources/authors/01mailrc.txt.gz’”, “…DONE”, “Going to read ‘/root/.cpan/sources/modules/02packages.details.txt.gz’”, " Database was generated on Tue, 24 Apr 2018 17:17:02 GMT", " HTTP::Date not available", “…”, " New CPAN.pm version (v2.16) available.", " [Currently running version is v1.9402]", " You might want to try", " install CPAN", " reload cpan", " to both upgrade CPAN.pm and run the new version without leaving", " the current session.", “”, “CPAN: Time::HiRes loaded ok (v1.9721)”, “”, “…DONE”, “Going to read ‘/root/.cpan/sources/modules/03modlist.data.gz’”], “warnings”: []} to retry, use: --limit @/opt/bahmni-installer/bahmni-playbooks/all.retry

PLAY RECAP ********************************************************************* localhost : ok=181 changed=67 unreachable=0 failed=1

Just ran “bahmni restart”, getting blank screen now.

How to I get whatever features we have in http://demo.mybahmni.org/ ?

Hi @krishnashetty, Can you try the solution mentioned in Missing all concepts in Bahmni V 0.90 talk thread to load the concepts.

we don’t have bahmni restart command. To start different services please check this wiki page.

I run into a similar error when installing Bahmni on a bare CentOS 6:

TASK [pgbackrest-install : Assigning CPAN parent] ******************************
task path: /opt/bahmni-installer/bahmni-playbooks/roles/pgbackrest-install/tasks/main.yml:24
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "cpan -i parent", "delta": "0:00:43.936777", "end": "2018-07-16 05:24:25.131130", "failed": true, "rc": 255, "start": "2018-07-16 05:23:41.194353", "stderr": "Warning: no success downloading '/root/.cpan/sources/authors/01mailrc.txt.gz.tmp13486'. Giving up on it. at /usr/share/perl5/CPAN/Index.pm line 225
Warning: no success downloading '/root/.cpan/sources/modules/02packages.details.txt.gz.tmp13486'. Giving up on it. at /usr/share/perl5/CPAN/Index.pm line 225
Warning: no success downloading '/root/.cpan/sources/modules/03modlist.data.gz.tmp13486'. Giving up on it. at /usr/share/perl5/CPAN/Index.pm line 225
Warning: no success downloading '/root/.cpan/sources/modules/03modlist.data.gz.tmp13486'. Giving up on it. at /usr/share/perl5/CPAN/Index.pm line 225
Warning: no success downloading '/root/.cpan/sources/modules/03modlist.data.gz.tmp13486'. Giving up on it. at /usr/share/perl5/CPAN/Index.pm line 225
Can't locate object method \"data\" via package \"CPAN::Modulelist\" (perhaps you forgot to load \"CPAN::Modulelist\"?) at (eval 20) line 1.
 at /usr/share/perl5/CPAN/Index.pm line 518
 \tCPAN::Index::rd_modlist('CPAN::Index', '/root/.cpan/sources/modules/03modlist.data.gz') called at /usr/share/perl5/CPAN/Index.pm line 85
\tCPAN::Index::reload('CPAN::Index') called at /usr/share/perl5/CPAN.pm line 955
\tCPAN::exists('CPAN=HASH(0x2cda120)', 'CPAN::Module', 'parent') called at /usr/share/perl5/CPAN/Shell.pm line 1243
\tCPAN::Shell::expandany('CPAN::Shell', 'parent') called at /usr/share/perl5/CPAN/Shell.pm line 1639
\tCPAN::Shell::rematein('CPAN::Shell', 'install', 'parent') called at /usr/share/perl5/CPAN/Shell.pm line 1935
\tCPAN::Shell::__ANON__('CPAN::Shell', 'parent') called at /usr/bin/cpan line 319
\tmain::_default('ARRAY(0x2415f88)') called at /usr/bin/cpan line 278", "stdout": "

See full log: https://paste.ubuntu.com/p/g9KGF765RN/

Then after running the installer again:

TASK [pgbackrest-install : Assigning CPAN parent] ******************************
task path: /opt/bahmni-installer/bahmni-playbooks/roles/pgbackrest-install/tasks/main.yml:24
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "cpan -i parent", "delta": "0:00:12.590515", "end": "2018-07-16 05:28:45.425263", "failed": true, "rc": 255, "start": "2018-07-16 05:28:32.834748", "stderr": "Can't locate object method \"data\" via package \"CPAN::Modulelist\" (perhaps you forgot to load \"CPAN::Modulelist\"?) at (eval 18) line 1.
 at /usr/share/perl5/CPAN/Index.pm line 518
  CPAN::Index::rd_modlist('CPAN::Index', '/root/.cpan/sources/modules/03modlist.data.gz') called at /usr/share/perl5/CPAN/Index.pm line 85
  CPAN::Index::reload('CPAN::Index') calleHow tod at /usr/share/perl5/CPAN.pm line 955
  CPAN::exists('CPAN=HASH(0x10f7120)', 'CPAN::Module', 'parent') called at /usr/share/perl5/CPAN/Shell.pm line 1243
  CPAN::Shell::expandany('CPAN::Shell', 'parent') called at /usr/share/perl5/CPAN/Shell.pm line 1639
  CPAN::Shell::rematein('CPAN::Shell', 'install', 'parent') called at /usr/share/perl5/CPAN/Shell.pm line 1935
  CPAN::Shell::__ANON__('CPAN::Shell', 'parent') called at /usr/bin/cpan line 319
  main::_default('ARRAY(0x832f88)') called at /usr/bin/cpan line 278", "stdout": "CPAN: Storable loaded ok (v2.20)
Going to read '/root/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Going to read '/root/.cpan/sources/modules/02packages.details.txt.gz'
  Database was generated on Mon, 16 Jul 2018 08:29:03 GMT
  HTTP::Date not available
  .............
  New CPAN.pm version (v2.16) available.
  [Currently running version is v1.9402]
  You might want to try
    install CPAN
    reload cpan
  to both upgrade CPAN.pm and run the new version without leaving
  the current session.

  CPAN: Time::HiRes loaded ok (v1.9721)

...............................................................DONE
Going to read '/root/.cpan/sources/modules/03modlist.data.gz'", "stdout_lines": ["CPAN: Storable loaded ok (v2.20)", "Going to read '/root/.cpan/sources/authors/01mailrc.txt.gz'", "............................................................................DONE", "Going to read '/root/.cpan/sources/modules/02packages.details.txt.gz'", "  Database was generated on Mon, 16 Jul 2018 08:29:03 GMT", "  HTTP::Date not available", ".............", "  New CPAN.pm version (v2.16) available.", "  [Currently running version is v1.9402]", "  You might want to try", "    install CPAN", "    reload cpan", "  to both upgrade CPAN.pm and run the new version without leaving", "  the current session.", "", "CPAN: Time::HiRes loaded ok (v1.9721)", "", "...............................................................DONE", "Going to read '/root/.cpan/sources/modules/03modlist.data.gz'"], "warnings": []}
  to retry, use: --limit @/opt/bahmni-installer/bahmni-playbooks/all.retry

How did you solve this @krishnashetty ?

Note that Bahmni EMR seems to be fully functional but not OpenERP.

ansible --version

ansible 2.2.0.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides

cat /etc/redhat-release

CentOS release 6.9 (Final)

For the record, disabling the PostgreSQL backup tool in the inventory file works as a temporary workaround.

1 Like

Seems like pgBackrest is causing some issue? Would it be possible to manually install the pgbackrest (appropriate version) first and trying it out?

We have had issues reported with backup and restore in the past, although we could never really reproduce this.

@binduak @swathivarkala

@angshuonline I tried installing pgBackrest tool in one of the qa (qa04) instances and the installation went well.

hello @mksrom , may I know Whether you could solve this error. Even I am getting the same. CentOS release 7, ansible 2.4.6.0.

And bahmni version 0.93.

what problems are you having? If its about the “UUID of undefined”, have you tried rebuilding the search index?