Error while installing Bahmni 0.92 - Start Odoo and enable at boot error

Tags: #<Tag:0x00007f0a3103e430> #<Tag:0x00007f0a3103e340> #<Tag:0x00007f0a3103e228> #<Tag:0x00007f0a3103e110>

Facing Same issue. “unable to start service odoo: Job for odoo.service failed because a configured resource limit was exceeded.” My versions are:- ansible :- 2.4.2.0 systemd:- 219-67.el7_7.1

Also there is “rpm” (rpm -Uvh https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm) not found for PostgreSQL. PostgreSQL may be removed that rpm from the list of rpm.

You can find my solution in PostgresSQL error here.

@darius can you please help us in this error? we are stuck.

@aldrin19

Please follow Bahmni 0.92 Install on CentOS 7.6 Minimal Fails Steps for odoo boot issue. I solved my error using that steps. Just Downgrade systemd and use yum version lock.

1 Like

Okay. will confirm it if it is okay

I did a fresh install using CentOS 7.7 (1908 minimal) and after update postgres repo, I had the same issue as reported by @aldrin19 on starting odoo service.

After journalctl -xe command I get:

Unit odoo.service has begun starting up. Apr 27 14:37:36 localhost.localdomain odoo[18318]: mkdir: cannot create directory ‘odoo’: File exists Apr 27 14:37:36 localhost.localdomain runuser[18327]: pam_unix(runuser:session): session opened for user odoo by (uid=0) Apr 27 14:37:36 localhost.localdomain runuser[18327]: pam_unix(runuser:session): session closed for user odoo Apr 27 14:37:36 localhost.localdomain odoo[18318]: Starting Odoo Server Daemon (odoo-server): [ OK ] Apr 27 14:37:36 localhost.localdomain systemd[1]: Can’t open PID file /var/run/odoo/odoo-server.pid (yet?) after start: No such file or directory Apr 27 14:37:36 localhost.localdomain odoo[18318]: Traceback (most recent call last): Apr 27 14:37:36 localhost.localdomain odoo[18318]: File “/usr/bin/odoo”, line 4, in Apr 27 14:37:36 localhost.localdomain odoo[18318]: import(‘pkg_resources’).run_script(‘odoo==10.0.post20190619’, ‘odoo’) Apr 27 14:37:36 localhost.localdomain odoo[18318]: File “/usr/lib/python2.7/site-packages/pkg_resources/init.py”, line 3098, in Apr 27 14:37:36 localhost.localdomain odoo[18318]: @_call_aside Apr 27 14:37:36 localhost.localdomain odoo[18318]: File “/usr/lib/python2.7/site-packages/pkg_resources/init.py”, line 3082, in _call_aside Apr 27 14:37:36 localhost.localdomain odoo[18318]: f(*args, **kwargs) Apr 27 14:37:36 localhost.localdomain odoo[18318]: File “/usr/lib/python2.7/site-packages/pkg_resources/init.py”, line 3111, in _initialize_master_working_set Apr 27 14:37:36 localhost.localdomain odoo[18318]: working_set = WorkingSet._build_master() Apr 27 14:37:36 localhost.localdomain odoo[18318]: File “/usr/lib/python2.7/site-packages/pkg_resources/init.py”, line 575, in _build_master Apr 27 14:37:36 localhost.localdomain odoo[18318]: return cls._build_from_requirements(requires) Apr 27 14:37:36 localhost.localdomain odoo[18318]: File “/usr/lib/python2.7/site-packages/pkg_resources/init.py”, line 588, in _build_from_requirements Apr 27 14:37:36 localhost.localdomain odoo[18318]: dists = ws.resolve(reqs, Environment()) Apr 27 14:37:36 localhost.localdomain odoo[18318]: File “/usr/lib/python2.7/site-packages/pkg_resources/init.py”, line 782, in resolve Apr 27 14:37:36 localhost.localdomain odoo[18318]: raise VersionConflict(dist, req).with_context(dependent_req) Apr 27 14:37:36 localhost.localdomain odoo[18318]: pkg_resources.ContextualVersionConflict: (soupsieve 2.0 (/usr/lib/python2.7/site-packages/soupsieve-2.0-py2.7.egg), Requirement.parse(’ Apr 27 14:37:36 localhost.localdomain systemd[1]: odoo.service never wrote its PID file. Failing. Apr 27 14:37:36 localhost.localdomain systemd[1]: Failed to start LSB: Launches the Odoo server… – Subject: Unit odoo.service has failed – Defined-By: systemd – Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel – – Unit odoo.service has failed. – – The result is failed. Apr 27 14:37:36 localhost.localdomain systemd[1]: Unit odoo.service entered failed state. Apr 27 14:37:36 localhost.localdomain systemd[1]: odoo.service failed. Apr 27 14:37:36 localhost.localdomain polkitd[1075]: Unregistered Authentication Agent for unix-process:18312:6977134 (system bus name :1.365, object path /org/freedesktop/PolicyKit1/Aut lines 1486-1526/1526 (END)

I have tried another fresh installation with the steps reported by @bhiravabhatla on this post Bahmni 0.92 Install on CentOS 7.6 Minimal Fails and the installation could end without any error, but still I was not able to start odoo service with “service odoo restart” or “systemctl odoo restart”. All other services work well.

When the last release was announced by @angshuonline in this post Announcing release of Bahmni 0.92 I gave it a try with a fresh install and all worked well (including odoo) in the first attempt. This release fix the systemd issues reported in previous release which had this Bahmni 0.92 Install on CentOS 7.6 Minimal Fails as work around. Something happen meanwhile.

It would be nice to hear if someone has a resolution for this problem.

I had the same error but according to this particular error message, i have downgraded this library and installed below version.

pip install soupsieve==1.9.5

and i reinstalled only bahmni-erp

bahmni -i local --only bahmni-erp install

2 Likes

Thank you so much @mupagasi, that was indeed the issue! All modules work fine now.

1 Like

@mupagasi hi. I have the same issue of Odoo services not starting. I have seen the fix you have provided and I hear it has worked. I’m new to Linux, therefore unable to perform the downgrade of the library you suggested and install the new one. Kindly guide me here on how I’m going to do it. Regards

You can avoid the problem just fire the following two commands . Hope the problem will be solved.

  1. pip uninstall beautifulsoup4

  2. pip install beautifulsoup4

Then fire the bahmni install command .

2 Likes

Thank you very much @rakib for your fix, it has worked very well. I have really struggled. How are we going to make team update the process so that it is clear and straight forward? Thank you again!

1 Like

This worked for me too on ( CentOS Linux release 7.8.2003 Core ). I had previously encountered problems downgrading the “systemd.”

Hello Bahmni Team… For long now been trying installation of bahmni 0.92 on centos 7.6 but fails on BAHMNI ODOO bahmni odoo start and enable at boot

@dmukungi, @sushantpatil1214, @rkaringuri, any help… Thanks Apuda

this the clear view of the error Thanks

Hello @apuda, have you tried to run the two commands provided by @rakib above Error while installing Bahmni 0.92 - Start Odoo and enable at boot error

Hello @dmukungi,thanks for the reference…I will surely try to run the commands and let you know of the outcome. Thanks

Am really much greatful for your kind referrals… Bahmni installation completed and now remaining post installation touches @rkaringuri, @dmukungi Thanks so much

1 Like

I tried this and still seeing same error.

sudo service --status-all
atomfeed-console is running with pid: 1542
Service bahmni-erp-connect is running with pid: 1442
Service bahmni-lab is running with pid: 1459
Service bahmni-reports is running with pid: 1470
Checking jexec statusnetconsole module not loaded
Configured devices:
lo eth0
Currently active devices:
lo eth0
mkdir: cannot create directory ‘odoo’: File exists
odoo-server is running...

Few errors from the odoo log file

2020-06-29 00:49:47,772 1467 ERROR odoo odoo.modules.registry: Model order.save.service has no table.
2020-06-29 00:49:47,773 1467 ERROR odoo odoo.modules.registry: Model reference.data.service has no table.
2020-06-29 00:49:47,773 1467 ERROR odoo odoo.modules.registry: Model product.uom.service has no table.
2020-06-29 00:49:47,774 1467 ERROR odoo odoo.modules.registry: Model drug.data.service has no table.
2020-06-29 00:50:48,508 1467 INFO odoo odoo.sql_db: bad query: SELECT "ir_property".id FROM "ir_property" LEFT JOIN "res_company" as "ir_property__company_id" ON ("ir_property"."company_id" = "ir_property__company_id"."id") WHERE ((("ir_property"."fields_id" = 4787)  AND  (("ir_property"."company_id" in (1)) OR "ir_property"."company_id" IS NULL))  AND  (("ir_property"."res_id" in ('product.category,8')) OR "ir_property"."res_id" IS NULL)) ORDER BY "ir_property__company_id"."sequence" ,"ir_property__company_id"."name"  
2020-06-29 00:50:48,509 1467 ERROR odoo odoo.http: connection already closed
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/http.py", line 118, in dispatch_rpc
    result = dispatch(method, params)
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/service/model.py", line 38, in dispatch
    res = fn(db, uid, *params)
  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/service/model.py", line 167, in execute
    return res
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/sql_db.py", line 405, in __exit__
    self.close()
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/sql_db.py", line 154, in wrapper
    return f(self, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/sql_db.py", line 289, in close
    return self._close(False)
  File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/sql_db.py", line 319, in _close
    self._cnx.rollback()
InterfaceError: connection already closed
2020-06-29 01:03:11,602 12154 ERROR odoo odoo.modules.registry: Model atom.event.worker has no table.
2020-06-29 01:03:11,617 12154 ERROR odoo odoo.modules.registry: Model order.save.service has no table.
2020-06-29 01:03:11,618 12154 ERROR odoo odoo.modules.registry: Model reference.data.service has no table.
2020-06-29 01:03:11,618 12154 ERROR odoo odoo.modules.registry: Model product.uom.service has no table.
2020-06-29 01:03:11,619 12154 ERROR odoo odoo.modules.registry: Model drug.data.service has no table.
2020-06-29 01:03:12,937 12154 ERROR odoo odoo.modules.registry: Model atom.event.worker has no table.
2020-06-29 01:03:12,953 12154 ERROR odoo odoo.modules.registry: Model order.save.service has no table.
2020-06-29 01:03:12,953 12154 ERROR odoo odoo.modules.registry: Model reference.data.service has no table.
2020-06-29 01:03:12,954 12154 ERROR odoo odoo.modules.registry: Model product.uom.service has no table.
2020-06-29 01:03:12,954 12154 ERROR odoo odoo.modules.registry: Model drug.data.service has no table.
2020-06-29 01:16:26,137 29099 INFO odoo odoo.sql_db: bad query:  UPDATE ir_model
                       SET name='POP/IMAP Server', info='Incoming POP/IMAP mail server account', transient=false
                       WHERE model='fetchmail.server'
                       RETURNING id 
2020-06-29 01:16:26,141 29099 INFO odoo odoo.sql_db: Connection to the database failed
2020-06-29 01:16:26,142 29099 ERROR odoo odoo.modules.registry: Failed to load registry
Traceback (most recent call last):

Hello @rakib

I am also seeing the same thing in our PROD when I check service status

    atomfeed-console is running with pid: 3876
    Service bahmni-erp-connect is running with pid: 20881
    Service bahmni-reports is running with pid: 32019
    Checking jexec statusnetconsole module not loaded
    Configured devices:
    lo ens192
    Currently active devices:
    lo ens192
    mkdir: cannot create directory ‘odoo’: File exists
    odoo-server is running...
    Service openmrs is running with pid: 4232

I’m not sure if these are related but I can’t seem to install Bahmni Atom Feed because I keep getting below error when I click install

image

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 896, in convert_csv_import
    raise Exception(_('Module loading %s failed: file %s could not be processed:\n %s') % (module, fname, warning_msg))
Exception: Module loading bahmni_atom_feed failed: file bahmni_atom_feed/security/ir.model.access.csv could not be processed:
 No matching record found for external id 'model_order_picking_type_mapping' in field 'Object'
Missing required value for the field 'Object' (model_id)
No matching record found for external id 'model_drug_service_create' in field 'Object'
Missing required value for the field 'Object' (model_id)