@angshuonline I uninstalled erp-connect together with odoo and reinstalled again, everything works except for that 1 error. I even checked if the .csv file was there and it was. I don’t really know the issue is now
…and systemctl still fails with resource limit was exceeded
error so I use service all the time
I am confused as well. Which version of ERP is this? 0.92 uses Odoo. Check “https://github.com/Bahmni/odoo-modules/blob/master/bahmni_atom_feed/security/ir.model.access.csv” there is no “order_picking_type”. the model exists in codebase, but its redundant. wonder why are you facing this issue. Can you compare the ir.model.access.csv?
@amolsatvix @anandpatel - can you help out here?
@angshuonline @ramashish Unable to install bahmni on a local Server
sh: ansible: command not found
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.piconets.webwerks.in
* epel: epel.dionipe.id
* extras: mirrors.piconets.webwerks.in
* updates: mirrors.piconets.webwerks.in
No package ansible-2.4.2.0 available.
Error: Nothing to do
ansible-playbook -i /etc/bahmni-installer/local all.yml -vv --extra-vars '@/etc/bahmni-installer/rpm_versions.yml' --extra-vars '@/etc/bahmni-installer/setup.yml'
/bin/sh: ansible-playbook: command not found
Traceback (most recent call last):
File "/usr/bin/bahmni", line 9, in <module>
load_entry_point('bahmni==0.1', 'console_scripts', 'bahmni')()
File "/usr/lib/python2.7/site-packages/click-7.1.2-py2.7.egg/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/click-7.1.2-py2.7.egg/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/lib/python2.7/site-packages/click-7.1.2-py2.7.egg/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python2.7/site-packages/click-7.1.2-py2.7.egg/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python2.7/site-packages/click-7.1.2-py2.7.egg/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/click-7.1.2-py2.7.egg/click/decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "build/bdist.linux-x86_64/egg/bahmni.py", line 79, in install
File "/usr/lib64/python2.7/subprocess.py", line 542, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'ansible-playbook -i /etc/bahmni-installer/local all.yml -vv --extra-vars '@/etc/bahmni-installer/rpm_versions.yml' --extra-vars '@/etc/bahmni-installer/setup.yml'' returned non-zero exit status 127
Did anyone in the community have any clue about it?
i have been facing this same problem, No package ansible-2.4.2.0 available
Running into same issue. Anyone had luck with getting ansible issue fixed? My full error stack
sh: ansible: command not found
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core | 3.7 kB 00:00:00
191 packages excluded due to repository priority protections
No package ansible-2.4.2.0 available.
Error: Nothing to do
ansible-playbook -i /etc/bahmni-installer/local all.yml -vv --extra-vars '@/etc/bahmni-installer/rpm_versions.yml' --extra-vars '@/etc/bahmni-installer/setup.yml'
/bin/sh: ansible-playbook: command not found
Traceback (most recent call last):
File "/bin/bahmni", line 11, in <module>
load_entry_point('bahmni==0.1', 'console_scripts', 'bahmni')()
File "/usr/lib/python2.7/site-packages/click-7.1.2-py2.7.egg/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/click-7.1.2-py2.7.egg/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/lib/python2.7/site-packages/click-7.1.2-py2.7.egg/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python2.7/site-packages/click-7.1.2-py2.7.egg/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python2.7/site-packages/click-7.1.2-py2.7.egg/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/click-7.1.2-py2.7.egg/click/decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "build/bdist.linux-x86_64/egg/bahmni.py", line 79, in install
File "/usr/lib64/python2.7/subprocess.py", line 190, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'ansible-playbook -i /etc/bahmni-installer/local all.yml -vv --extra-vars '@/etc/bahmni-installer/rpm_versions.yml' --extra-vars '@/etc/bahmni-installer/setup.yml'' returned non-zero exit status 127
Hey Ritesh, were you able to get this resolved?
Try installing ansible manually before running installation command
yum install -y https://releases.ansible.com/ansible/rpm/release/epel-7-x86_64/ansible-2.4.6.0-1.el7.ans.noarch.rpm
Thank you! that actually helped, I was able to get past the ansible error. But I had ansible installed before using pip so little confused on why that didn’t work.
I get a different error now.
TASK [bahmni-base : Import EPEL GPG key.] ****************************************************************************************************************************************
task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-base/tasks/main.yml:13
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Not a valid key /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-NA"}
[WARNING]: Could not create retry file '/opt/bahmni-installer/bahmni-playbooks/all.retry'. [Errno 13] Permission denied: u'/opt/bahmni-installer/bahmni-
playbooks/all.retry'
PLAY RECAP ***********************************************************************************************************************************************************************
localhost : ok=9 changed=4 unreachable=0 failed=1
Hello @angshuonline
My ir.model.access.csv file entries are different form this one
See my file below
ir.model.access.csv (1.0 KB)
I could try replacing it with the one on github, but I’m not sure if that’s a good idea
So I removed the lines that are not in use in the .csv file…
BAH-914 | Remove unneeded ir.model.access entries
…now I’m getting this error
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/http.py", line 642, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/http.py", line 684, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/http.py", line 334, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/service/model.py", line 101, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/http.py", line 327, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/http.py", line 942, in __call__
return self.method(*args, **kw)
File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/http.py", line 507, in response_wrap
response = f(*args, **kw)
File "/opt/bahmni-erp/odoo/addons/web/controllers/main.py", line 899, in call_button
action = self._call_kw(model, method, args, {})
File "/opt/bahmni-erp/odoo/addons/web/controllers/main.py", line 887, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/api.py", line 689, in call_kw
return call_kw_multi(method, model, args, kwargs)
File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/api.py", line 680, in call_kw_multi
result = method(recs, *args, **kwargs)
File "/opt/bahmni-erp/odoo/addons/base/module/module.py", line 413, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "/opt/bahmni-erp/odoo/addons/base/module/module.py", line 495, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/modules/registry.py", line 83, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/modules/loading.py", line 377, in load_modules
loaded_modules, update_module, models_to_check)
File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/modules/loading.py", line 270, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/modules/loading.py", line 182, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/modules/loading.py", line 96, in _load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/tools/convert.py", line 840, in convert_file
convert_csv_import(cr, module, pathname, fp.read(), idref, mode, noupdate)
File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/tools/convert.py", line 892, in convert_csv_import
result = env[model].load(fields, datas)
File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/models.py", line 874, in load
for id, xid, record, info in converted:
File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/models.py", line 1020, in _convert_records
for record, extras in stream:
File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/tools/misc.py", line 977, in next
val = next(self.stream, _ph)
File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/models.py", line 944, in _extract_records
if fields[fnames[0]].type == 'one2many'