There was no openmrs.pid file in var/run/openmrs so I created openmrs.pid then restarted openmrs. When I changed owner of openmrs.pid, then restarted openmrs, the owner of openmrs.pid changed automatically to bahmni.
openmrs.service - LSB: start and stop openmrs system,
Loaded: loaded (/etc/rc.d/init.d/openmrs; bad; vendor preset: disabled)
Active: failed (Result: resources) since Mon 2019-09-30 14:29:47 IST; 16min ago
Docs: man:systemd-sysv-generator(8)
Process: 8954 ExecStart=/etc/rc.d/init.d/openmrs start (code=exited, status=0/SUCCESS)
Sep 30 14:29:47 ip-172-31-8-84.ap-south-1.compute.internal openmrs[8954]: Service openmrs is already running (pid: 5938)
Sep 30 14:29:47 ip-172-31-8-84.ap-south-1.compute.internal systemd[1]: New main PID 5938 does not belong to service, and PID file is not owned by root. Refusing.
Sep 30 14:29:47 ip-172-31-8-84.ap-south-1.compute.internal systemd[1]: New main PID 5938 does not belong to service, and PID file is not owned by root. Refusing.
Sep 30 14:29:47 ip-172-31-8-84.ap-south-1.compute.internal systemd[1]: Failed to start LSB: start and stop openmrs system,.
Sep 30 14:29:47 ip-172-31-8-84.ap-south-1.compute.internal systemd[1]: Unit openmrs.service entered failed state.
Odoo is unable to start after server unexpected power outage, i tried letting Odoo start at boot with the command chkconfig odoo on but this does not work when server unexpectedly shutdown- odoo won’t start unless started manually. Any solution to this?
Hello @angshuonline, I have been trying for over 2 weeks now to install Bahmni 0.92 on Centos7 but it’s failing. Initially I had a custom inventory file because I am installing all DBs on a separate server. When I ran command bahmni -i inventory install, nothing gets installed except MySQL on the remote server.
I then tried installing everything on the localhost with bahmni -i local install, but I got this error message
TASK [mysql : Update mysql root password] *************************************************************************************************************************
task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/main.yml:60
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "mysql -e \"UPDATE mysql.user SET authentication_string=PASSWORD('**********') WHERE User='root'; FLUSH PRIVILEGES;\" -u root -i -p'**********'", "delta": "0:00:00.009389", "end": "2019-10-15 11:01:54.306947", "msg": "non-zero return code", "rc": 1, "start": "2019-10-15 11:01:54.297558", "stderr": "mysql: [Warning] Using a password on the command line interface can be insecure.\nERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)", "stderr_lines": ["mysql: [Warning] Using a password on the command line interface can be insecure.", "ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)"], "stdout": "", "stdout_lines": []}
to retry, use: --limit @/opt/bahmni-installer/bahmni-playbooks/all.retry
PLAY RECAP ********************************************************************************************************************************************************
localhost : ok=65 changed=22 unreachable=0 failed=1
Thanks @angshuonline, the issue with invalid characters was resolved.
Is there a solution for this one
I followed this workaround but it did not work
I get this error message when I run systemctl status openmrs.service
New main PID 1463 does not belong to service, and PID file is not owned by root.
And this when I run systemctl start openmrs
Job for openmrs.service failed because a configured resource limit was exceeded. See "systemctl status openmrs.service" and "journalctl -xe" for details.
Hello @stephencoduor, were you able to resolve the odoo problem? May you please share how you resolved it because I am facing the same issue
Hello @angshuonline, any idea why this is happening?
service odoo status
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
mkdir: cannot create directory ‘odoo’: File exists
I also noticed that openerp database was not created
This problem (resource limit exceeded issue) still persists in our new deployments , actually this is the blocker issue for us to go for production implementations.
Though ODOO works fine on master but patients do not sync from Bahmni to ODOO. bahmni-erp-connect is running fine and markers as well as failed_events are empty on both openmrs and odoo databases.
On slave, ODOO is showing this jquery error which is surprising as this being a master - slave setup and slave db should have been exact copy of master, right?
So we may have to test installing without bahmni-lab if bahmni-erp-connect runs normally or does the file erp-atomfeed.properties need manual modifications?
Bahmni ERP Connect should work irrespective of whether LAB is installed or not.
the Feed URLs of the lab should be blank, which makes the feed consumer ignore it.
Hi @angshuonline , when I change odoo password from the default admin username and password, bahmni does not send orders to odoo. When I revert back the to the default everything works again
Is anyone experiencing this? Must the password remain as the default
Need to update the changed username and password to file path
/opt/bahmni-erp-connect/bahmni-erp-connect/WEB-INF/classes/erp-atomfeed.properties on odoo section:
openerp.port=8069
openerp.host=localhost
openerp.database=odoo
openerp.user=admin(default)
openerp.password=admin(default)
for sync from openmrs to odoo.
Thats because “admin” is the user that was used for integration.
To do this, you need to
shut down the “bahmni-erp-connect” service
modify the file “/opt/bahmni-erp-connect/bahmni-erp-connect/WEB-INF/classes/erp-atomfeed.properties” and modify the properties - “openerp.user” and “openerp.password”.
there are other ways of modifying such runtime properties. Check the WIKI documentation here