It looks like an issue with integration of openmrs service with systemd of centos 7.7 (systemd - 219-67.el7_7.1) - as mentioned here ( as pointed out by angshu in one of the threads)
I dint face this while installing bahmni in on centos 7.6 which comes with older version of systemd (It is the recommended OS verion in Bahmni wiki as well). I would suggest you to use the same if possible.
It might need some analysis and fixing in product to get openmrs working for newer versions of systemd.
If you really want to go ahead with 7.7 - you could try downgrading systemd by running -
run bahmni install
that works for me in AWS. But I am getting similar error for erp-connect,
fatal: [localhost]: FAILED! => {âchangedâ: false, âmsgâ: âUnable to start service bahmni-erp-connect: Job for bahmni-erp-connect.service failed because a configured resource limit was exceeded. See âsystemctl status bahmni-erp-connect.serviceâ and âjournalctl -xeâ for details.\nâ}
What I have discovered is that, its very inconsistent. (btw, I couldnât downgrade because of dependency for libgudev1 - and didnât want to downgrade with skip broken option).
So hereâs what I did
I installed Bahmni components one at a time. Will probably update the community tomorrow, after I have done another round of testingâŠ
bahmin -i local --only bahmni-erp install
interesting enough, the installation goes perfectly alright.
While downgrading systemd - did you do yum downgrade systemd or yum downgrade systemd.x86_64 systemd-libs.x86_64 systemd-sysv.x86_64
Also, had a question regarding the service configuration while installing for centos 7. Why are we still using /etc/init.d to configure our services - instead of service UNITS in /etc/systemd/system. Any specific reason why we chose not to move out from init.d.
Hi @angshuonline,
I found the installation problem is not following a pattern. In fact tried to install bahmni .92 in centos 7.6 and still fetching the same issue. I tried to install it by component still getting the same error.
rpm -q centos-release
centos-release-7-6.1810.2.el7.centos.x86_64
Error,
fatal: [localhost]: FAILED! => {âchangedâ: false, âmsgâ: âUnable to start service openmrs: Job for openmrs.service failed because a configured resource limit was exceeded. See âsystemctl status openmrs.serviceâ and âjournalctl -xeâ for details.\nâ}
regarding init.d/functions: till recently provisioning and startup issue as this was never experienced and LSB scripts were working perfectly fine. We are yet to ascertain if higher version of systemd is the issue.
@sohel - I also have the exact same version. Even full Installation working for me (with zlib upgraded before installing bahmni-installer). Others have reported the same on CentOS7.6.
On CentOS7.7, this seems to be due to the PID file issue that I reported in the other thread. We are trying to see whats the least unobstructive way to support without making a patch release if the same issue creeps up on CentoS 7.6.
Can you please let us know the following?
Can you run âjournalctl -xeâ and
In the meantime?
What centos distro are you using? e.g. Everything, liveGNOME/KDE, Minimal, NetInstall?
What is the systemd version that you have?
When you are running bahmni installer, are you using running as a ârootâ user?
Though I have some improvement now, after component wise installation failed.
Manually I start and stop the process now I able to run and browse,
bahmni-emr and bahmi-lab
still fetching problem with bahmni-erp and bahmni-lab-connect
from odoo log file I am getting this error while start process manually by
running command
sudo service odoo stop
sudo service odoo start
Error:
Permission denied" while parsing /opt/bahmni-erp/odoo/addons/base/base_menu.xml:4, near
Host PC: Window 10 64bit. After executing vagrant up i have checked the centos version whish is centos-release-7-6.1810.2.el7.centos.x86_64.
I have checked list of installed modules by executing yum list installed | grep bahmni & found the bellow list:
Again get the bellow error in the fresh installation in vagrant:
TASK [bahmni-emr : Start openmrs] **********************************************
task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-emr/tasks/main.yml:218
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Unable to start service openmrs: Job for openmrs.service failed because a configured resource limit was exceeded. See \"systemctl status openmrs.service\" and \"journalctl -xe\" for details.\n"}
to retry, use: --limit @/opt/bahmni-installer/bahmni-playbooks/all.retry
PLAY RECAP *********************************************************************
localhost : ok=127 changed=86 unreachable=0 failed=1
Odoo is running well. OpenMRS & OpenElis is not running well.
@angshuonline@laxman@binduak@ramashish@mksrom
can you please help me. I am still stucked in this point.
Thank you in advance.