Error messages during installation of V0.80 Bahmni

Hello My name is deepak and i am currently trying to set up my Bahmni software for test and developer purposes. So for now i just want to set up Bahmni in order to use and implement it. I have installed centOS FRESH 6.4 and using the following link, “Install+Bahmni+on+CentOS”<<(Link).

DURING THE INSTALLATION I’M FACING THE FOLLOWING ERRORS

1.

Installed: postgresql92-server.x86_64 0:9.2.16-1PGDG.rhel6

Dependency Installed: postgresql92.x86_64 0:9.2.16-1PGDG.rhel6
postgresql92-libs.x86_64 0:9.2.16-1PGDG.rhel6

Complete! Initializing database: [ OK ] Starting postgresql-9.2 service: [ OK ] –2016-05-11 09:44:29-- ##https://github.com/Bahmni/emr-functional-tests/blob/master/dbdump/pgsql_backup.sql.gz?raw=true Resolving github.com… 192.30.252.121 Connecting to github.com|192.30.252.121|:443… connected. HTTP request sent, awaiting response… 302 Found Location: ##https://github.com/Bahmni/emr-functional-tests/raw/master/dbdump/pgsql_backup.sql.gz [following] –2016-05-11 09:44:30-- ##https://github.com/Bahmni/emr-functional-tests/raw/master/dbdump/pgsql_backup.sql.gz Connecting to github.com|192.30.252.121|:443… connected. HTTP request sent, awaiting response… 302 Found Location: ##https://raw.githubusercontent.com/Bahmni/emr-functional-tests/master/dbdump/pgsql_backup.sql.gz [following] –2016-05-11 09:44:31-- ##https://raw.githubusercontent.com/Bahmni/emr-functional-tests/master/dbdump/pgsql_backup.sql.gz Resolving raw.githubusercontent.com… 103.245.222.133 Connecting to raw.githubusercontent.com|103.245.222.133|:443… connected. HTTP request sent, awaiting response… 200 OK Length: 35093933 (33M) [application/octet-stream] Saving to: “pgsql_backup.sql.gz”

100%[======================================>] 35,093,933 328K/s in 35s

2016-05-11 09:45:09 (973 KB/s) - “pgsql_backup.sql.gz” saved [35093933/35093933]

NOTICE: database “CAMBIAR_CLAVE” does not exist, skipping NOTICE: database “DEMO” does not exist, skipping NOTICE: database “arsh” does not exist, skipping NOTICE: database “bahmnireportsdata” does not exist, skipping NOTICE: database “clinlims” does not exist, skipping NOTICE: database “ghanshyam” does not exist, skipping NOTICE: database “jklo” does not exist, skipping NOTICE: database “lab” does not exist, skipping NOTICE: database “mydb” does not exist, skipping NOTICE: database “nueva” does not exist, skipping NOTICE: database “openerp” does not exist, skipping NOTICE: database “openerp1” does not exist, skipping NOTICE: database “pacsdb” does not exist, skipping NOTICE: database “referenceData” does not exist, skipping NOTICE: database “reference_data” does not exist, skipping NOTICE: database “test” does not exist, skipping NOTICE: database “test2” does not exist, skipping NOTICE: database “test_replication_db” does not exist, skipping NOTICE: database “testdb” does not exist, skipping NOTICE: database “testkl” does not exist, skipping NOTICE: database “zsh” does not exist, skipping NOTICE: database “zsh1” does not exist, skipping ERROR: role “postgres” already exists

Question : I have not priorly installed any postgress database instances. I ignored this error and passed by it. Can i install and link to the postgresql database for openErp later? Is this only related to the backup test data provided?

2.

Out of 62 packages of Bahmni , the openers one always failed to download properly which leads to an error installing it.

openerp-7.0-20130301-002301/openerp/report/print_xml.py openerp-7.0-20130301-002301/openerp/pooler.py openerp-7.0-20130301-002301/openerp/exceptions.py openerp-7.0-20130301-002301/PKG-INFO openerp-7.0-20130301-002301/README openerp-7.0-20130301-002301/setup.py openerp-7.0-20130301-002301/setup.cfg openerp-7.0-20130301-002301/setup_rpm.sh warning: no directories found matching ‘tests’ warning: no files found matching ‘gunicorn.conf.py’ warning: no previously-included files matching ‘pyc’ found anywhere in distribution warning: no previously-included files matching '~’ found anywhere in distribution zip_safe flag not set; analyzing archive contents… openerp.addons.web.tests.qunitsuite.suite: module references file openerp.addons.resource.faces.utils: module references file

openerp.modules.module: module references file could not identify current directory: No such file or directory could not identify current directory: No such file or directory error reading information on service openerp: No such file or directory Installing : bahmni-web-0.80-373.noarch 67/72 groupadd: group ‘bahmni’ already exists useradd: user ‘bahmni’ already exists useradd: user ‘bahmni’ already exists Running bahmni_config migrations

  • . /etc/bahmni-web/bahmni-web.conf ++ OPENMRS_DB_SERVER=localhost

Liquibase Update Failed: Communications link failure

Question : How do i fix this?

3.

Installing : bahmni-lab-0.80-58.noarch 68/72 groupadd: group ‘bahmni’ already exists useradd: user ‘bahmni’ already exists The database clinlims already exits Adding required extensions psql:scripts/setupExtensions.sql:1: ERROR: could not open extension control file “/usr/pgsql-9.2/share/extension/uuid-ossp.control”: No such file or directory

  • . /etc/bahmni-lab/bahmni-lab.conf ++ export SERVER_PORT=8081 ++ SERVER_PORT=8081 ++ export BASE_DIR=/var/run/bahmni-lab

This is another error that i come across.

Kindly help me resolve this issues. Thanking you all. And lets talk more about this, so we learn more to make it easier to install Bahmni and other open source softs… in future…

Bahmni installer installs postgres too. The error messages you mentioned are actually not “errors” in Bahmni context. You can ignore them. The only worrying one is the “Communications Link Failure”. Seems like maybe an Internet spike issue, or OpenMRS could not connect to local db because of “selinux” or “iptables” being enabled, which blocked the DB connection request. Can you check if selinux / iptables are running, if so, stop them, and then check.

Most likely most of your setup has already succeeded.

I went ahead with the installation and After the installation with those “error” i check for bahmni homepage “http://192.168.1.26/home

                       " Unable to fetch locations. Please reload the page. "

I ran the following in the command 1. [root@localhost /]# chkconfig --list NetworkManager 0:off 1:off 2:on 3:on 4:on 5:on 6:off atd 0:off 1:off 2:off 3:on 4:on 5:on 6:off auditd 0:off 1:off 2:on 3:on 4:on 5:on 6:off bahmni-erp-connect 0:off 1:off 2:off 3:off 4:off 5:off 6:off bahmni-lab 0:off 1:off 2:on 3:on 4:on 5:on 6:off bahmni-reports 0:off 1:off 2:off 3:off 4:off 5:off 6:off httpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off ip6tables 0:off 1:off 2:on 3:on 4:on 5:on 6:off iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off network 0:off 1:off 2:on 3:on 4:on 5:on 6:off openerp 0:off 1:off 2:off 3:off 4:off 5:off 6:off openmrs 0:off 1:off 2:on 3:on 4:on 5:on 6:off pacs-integration 0:off 1:off 2:on 3:on 4:on 5:on 6:off

2. All the services listed for bahmni are running EXCEPT Openerp and mysqld

[root@localhost /]# service openerp status openerp-server is stopped [root@localhost /]# service openerp start Starting OpenERP Server Daemon (openerp-server): [ OK ] [root@localhost /]# service openerp status openerp-server is stopped [root@localhost /]# service openerp start OpenERP Server Daemon already started.

[root@localhost /]# service mysqld status mysqld: unrecognized service

PAGES STATI Openelis page - not working bahmni home - error as above openerp - running but not connecting to database or modification not possible openmrp - not working - blank page

Kindky help me with the above, it seems more like configuration error If you think i should i re-install any particular module, let me know Thanking you

Please read the following discussion. You need http://[ip]/openmrs to be running fine, before you can login into bahmni.

MySQL is the backend database for OpenMRS, and if that isn’t running / available, then OpenMRS won’t work, and therefore even Bahmni wont work, since Bahmni is a UI over OpenMRS.

I fresh installed Bahmni(0.79) on a new centOS , as per post 1. This time by disabling the ip tables and seLINUX. After the installation , Bahmni home is still not working, but mysqld and openmrs page are working. I had copied the setup ‘logs’ from the bash file after the procedure and found a few things that might help.

1.

HTTP request sent, awaiting response… 503 backend read error 2016-05-12 05:40:13 ERROR 503: backend read error.

gzip: pgsql_backup.sql.gz: unexpected end of file grep: pgsql_backup.sql: No such file or directory ./install-bahmni.sh: line 67: pgsql_backup.sql: No such file or directory

2.

Installing : bahmni-erp-connect-0.79-8.noarch 27/72 groupadd: group ‘bahmni’ already exists useradd: user ‘bahmni’ already exists error reading information on service bahmni-erp-connect: No such file or directory Running liquibase migrations warning: %post(bahmni-erp-connect-0:0.79-8.noarch) scriptlet failed, exit status 255 Non-fatal POSTIN scriptlet failure in rpm package bahmni-erp-connect-0.79-8.noarch

3. openerp-7.0-20130301-002301/PKG-INFO openerp-7.0-20130301-002301/README openerp-7.0-20130301-002301/setup.py openerp-7.0-20130301-002301/setup.cfg openerp-7.0-20130301-002301/setup_rpm.sh warning: no directories found matching ‘tests’ warning: no files found matching ‘gunicorn.conf.py’ warning: no previously-included files matching ‘pyc’ found anywhere in distribution warning: no previously-included files matching '~’ found anywhere in distribution zip_safe flag not set; analyzing archive contents… openerp.modules.module: module references file

4. openerp.tools.func: module MAY be using inspect.getsourcefile openerp.tools.config: module references file error reading information on service openerp: No such file or directory Installing : bahmni-web-0.79-47.noarch 68/72 groupadd: group ‘bahmni’ already exists useradd: user ‘bahmni’ already exists useradd: user ‘bahmni’ already exists Running bahmni_config migrations

  • . /etc/bahmni-web/bahmni-web.conf ++ OPENMRS_DB_SERVER=localhost ++ OPENMRS_DB_PASSWORD=password ++ OPENMRS_DB_USERNAME=openmrs-user
  • CHANGE_LOG_TABLE=’-Dliquibase.databaseChangeLogTableName=liquibasechangelog -Dliquibase.databaseChangeLogLockTableName=liquibasechangeloglock -DschemaName=openmrs’
  • LIQUIBASE_JAR=/opt/openmrs/openmrs/WEB-INF/lib/liquibase-core-2.0.5.jar
  • DRIVER=com.mysql.jdbc.Driver
  • CLASSPATH=/opt/openmrs/openmrs/WEB-INF/lib/mysql-connector-java-5.1.28.jar
  • CHANGE_LOG_FILE=/opt/bahmni-web/etc/bahmni_config/openmrs/migrations/liquibase.xml
  • ‘[’ -f /etc/bahmni-installer/bahmni.conf ‘]’
  • java -Dliquibase.databaseChangeLogTableName=liquibasechangelog -Dliquibase.databaseChangeLogLockTableName=liquibasechangeloglock -DschemaName=openmrs -jar /opt/openmrs/openmrs/WEB-INF/lib/liquibase-core-2.0.5.jar --driver=com.mysql.jdbc.Driver --classpath=/opt/openmrs/openmrs/WEB-INF/lib/mysql-connector-java-5.1.28.jar --changeLogFile=/opt/bahmni-web/etc/bahmni_config/openmrs/migrations/liquibase.xml --url=jdbc:mysql://localhost:3306/openmrs --username=openmrs-user --password=password update INFO 5/12/16 5:48 AM:liquibase: Successfully acquired change log lock INFO 5/12/16 5:48 AM:liquibase: Reading from liquibasechangelog INFO 5/12/16 5:48 AM:liquibase: Reading from liquibasechangelog INFO 5/12/16 5:48 AM:liquibase: Successfully released change log lock Liquibase Update Successful Installing : bahmni-reports-0.79-10.noarch 69/72 groupadd: group ‘bahmni’ already exists useradd: user ‘bahmni’ already exists error reading information on service bahmni-reports: No such file or directory Running liquibase migrations Linking properties file Installing : bahmni-lab-connect-0.79-47.noarch 70/72 chown: cannot access /opt/openmrs/modules/openelis-atomfeed-client*.omod': Not a directory chmod: cannot access/opt/openmrs/modules/openelis-atomfeed-client*.omod’: Not a directory Running openelis-atomfeed-client and atomfeed-client migrations

Everything else seemed fine.

After which I ran the following from the previous forum. CHALLENGE:

Service Temporarily Unavailable

**The server is temporarily unable to service your request due to ** maintenance downtime or capacity problems. Please try again later. Apache/2.2.15 (CentOS) Server at localhost Port 443

SOLUTION:

Run the command ‘setsebool -P httpd_can_network_connect true’ and restart the apache server.Reply as linked Topic

and now Bahmni Home is working, thanks for the posts in the previous forum, but some sub-pages in the Bahmni home after login are not working. I then checked if all the OpenMRS modules are running, everything is running except this module "There was an error starting the module: BahmniEMR Core OMOD "

Kindly help me fix this, I feel like i am very close to a successful installation.

By looking at your error messages it seems you have installed V0.79, instead of V0.80. Also, the download of the pgsql / mysql database dumps seem to have failed (either due to poor internet, or because of intermixing of v0.79/v0.80 installs).

I would recommend you uninstall all Bahmni components, and restart by setting BAHMNI_VERSION=0.80, as mentioned in this document: https://bahmni.atlassian.net/wiki/display/BAH/Install+Bahmni+on+CentOS

Otherwise debugging v0.79 mixed with v0.80 based installs will be difficult in this case.

yes i had installed 0.80 yesterday and then i formatted the entire system and on a fresh copy of centos, i installed 0.79 with this link “https://bahmni.atlassian.net/wiki/display/BAH/Install+Bahmni+on+CentOS” by changing 0.80 in both places.

The thing is that, the pgsql database dump fails everytime, it has failed for me since last 5 FRESH installation tries, and i have tried from two different internet connections.

That link talks about installing V0.80. Why did you install V0.79?

I installed v0.79 because my last few 0.80 trials were unsuccessful, so i thought i’d try a change of version, but in both cases , the pgsql dump were not successful :confused:

I feel if i re-install a fresh 0.80 again, the pgsql dump difficulty will not be resoslved. Can i download the pgsql dump and place it in a particular directory so that the installation will be 100% success? If so which directory do i create and place it in?

HTTP request sent, awaiting response… 503 backend read error 2016-05-12 05:40:13 ERROR 503: backend read error.

gzip: pgsql_backup.sql.gz: unexpected end of file grep: pgsql_backup.sql: No such file or directory ./install-bahmni.sh: line 67: pgsql_backup.sql: No such file or directory

My recommendation. Please install v0.80. V0.79 is too old, and has some bugs.

If the DB download fails, you can download the database yourself from command line and restore it. Here are the commands to do that. First stop openmrs, bahmni-lab and openerp services, and then execute these:

Restore mysql db

Restore pgsql db

Fresh Installation (0.80 Bahmni on Fresh CENTOS) 70/72 _Installing : bahmni-emr-0.80-373.noarch 70/72 _ ln: creating symbolic link `/home/bahmni/.OpenMRS/modules’: No such file or directory Running openmrs liquibase-core-data.xml and liquibase-update-to-latest.xml

Can you help me why this error is coming? Is there any configuration i can do after installation to negate this error? This is probably why OpenMRS O mod was not successfully installed.

Also I found another error while the bahmni-web-service was being installed. _Installing : bahmni-web-0.80-373.noarch 67/72 _ groupadd: group ‘bahmni’ already exists useradd: user ‘bahmni’ already exists useradd: user ‘bahmni’ already exists Running bahmni_config migrations + . /etc/bahmni-web/bahmni-web.conf ++ OPENMRS_DB_SERVER=localhost

The second error “bahmni” already exists is OK, and can be ignored.

The first one, I don’t know why it occurs. Modules are stored in /opt/openmrs/modules. If you have Bahmni modules in this folder, then you are OK. We don’t read modules from home directory anymore.

I ignored the second error and went ahead. I then checked the folder /opt/openmrs/modules which was empty, and through another forum i found a solution that you had written, which is to re-install bahmni emr through the following commands. yum remove bahmni-emr yum install bahmni-emr-0.80-373 I also disabled SElinux tables.

and now bahmni home, Emr and OpenMRS is successfully running with database. Thank you Gurpreet.

Awesome!! : )

As of now OpenEMR and OpenMRS are working fine. I would also like to get OpenErp to the same state. I noticed that the open-erp was not installed or configured properly, but I anyway ran it with the link http://IP:8069 As the home screen works, I am able to login as ‘admin\admin’ into the OpenERP onto the database ‘openerp’. When I access the list of installed apps, it shows only “Base”. I am able to create new Users under the Users TAB and I am able to see these changes on the Pgsql database on the command line too. But it seems that the ERP page layout is almost blank. When I try to install other apps(Like Events Organisation") i get the following error… OpenERP Server Error

    **Client Traceback (most recent call last):**

File “/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/addons/web/http.py”, line 195, in dispatch ** response[“result”] = method(self, self.params) ImportError: No module named nonblockingloghandler

I find this error similar to OpenMRS OMOD missing error so i decided to re-install Bahmni-ERP using the commands yum remove bahmni-erp yum install bahmni-erp-0.80-59

After which i get the following error, so does anyone have any suggestions? My PG_SQL and database linking seems to be fine as i tested it.

openerp-7.0-20130301-002301/setup.py openerp-7.0-20130301-002301/setup.cfg openerp-7.0-20130301-002301/setup_rpm.sh warning: no directories found matching ‘tests’ warning: no files found matching ‘gunicorn.conf.py’ warning: no previously-included files matching ‘pyc’ found anywhere in distribution warning: no previously-included files matching '~’ found anywhere in distribution zip_safe flag not set; analyzing archive contents… openerp.addons.resource.faces.plocale: module references file openerp.addons.resource.faces.utils: module references file openerp.addons.web.tests.qunitsuite.suite: module references file openerp.modules.module: module references file openerp.tools.test_config: module references file openerp.tools.func: module MAY be using inspect.getsourcefile openerp.tools.config: module references file could not identify current directory: No such file or directory could not identify current directory: No such file or directory error reading information on service openerp: No such file or directory

Can you please try restoring the PGSQL database (which is what both OpenELIS and OpenERP use) by following the steps mentioned here: Bahmni-OpenELIS integration

I have restored the PGSQL database but my Openerp is still disfunctional with the same errors. I tried to re-install by the following commands. yum remove bahmni-erp yum install bahmni-erp-0.80-59 and get the same error as above during installation.

openerp-7.0-20130301-002301/PKG-INFO openerp-7.0-20130301-002301/README openerp-7.0-20130301-002301/setup.py openerp-7.0-20130301-002301/setup.cfg openerp-7.0-20130301-002301/setup_rpm.sh warning: no directories found matching ‘tests’ warning: no files found matching ‘gunicorn.conf.py’ warning: no previously-included files matching ‘pyc’ found anywhere in distribution warning: no previously-included files matching '~’ found anywhere in distribution zip_safe flag not set; analyzing archive contents… openerp.addons.resource.faces.plocale: module references file openerp.addons.resource.faces.utils: module references file openerp.addons.web.tests.qunitsuite.suite: module references file openerp.modules.module: module references file openerp.tools.test_config: module references file openerp.tools.func: module MAY be using inspect.getsourcefile openerp.tools.config: module references file could not identify current directory: No such file or directory could not identify current directory: No such file or directory Restoring base dump of openerp could not identify current directory: No such file or directory could not identify current directory: No such file or directory could not identify current directory: No such file or directory SET SET

As of now, the OpenElis is working ( though not yet synced to Bahmni - working on it). But the ERP is giving me the nonblockingloghandler error. Was the OpenERP installed properly? (Reference : above error) Or can i configure it now after the installation?

I think you should try to re-install openerp. Maybe you can uninstall “yum remove openerp”, ensure any folder left behind by openerp in /opt is deleted, and install it back again. Hopefully, things will work fine after that. Worth a shot.