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

Please help. I got this error while installing the latest stable version of Bahmni. I followed the instructions for 0.92 installation. Unfortunately, I can’t proceed because of this error. It says fatal: [localhost]: FAILED! => {“changed”: false, “msg”: “Unable to start service odoo: Job for odoo.service failed because a configured resource limit was exceeded. See "systemctl status odoo.service" and "journalctl -xe" for details.\n”}

I got 8gb of ram, by the way.

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: systemd-devel Info Page – – 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 - #10 by bhiravabhatla 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 - #10 by bhiravabhatla 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):