OpenERP is not working

Hello,

I have installed v0.87 and it was installed correctly. But when i try to run openerp it doesn’t connect to the database,

from the log file,

2017-04-20 08:08:19,903 2106 INFO openerp openerp.service: Initiating shutdown 2017-04-20 08:08:19,933 2106 INFO openerp openerp.service: Hit CTRL-C again or send a second signal to force the shutdown. 2017-04-21 04:12:22,275 10817 INFO ? openerp: OpenERP version 7.0-20130301-002301 2017-04-21 04:12:22,277 10817 INFO ? openerp: addons paths: /usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/addons 2017-04-21 04:12:22,277 10817 INFO ? openerp: database hostname: localhost 2017-04-21 04:12:22,277 10817 INFO ? openerp: database port: 5432 2017-04-21 04:12:22,277 10817 INFO ? openerp: database user: openerp 2017-04-21 04:12:22,859 10817 INFO ? openerp.addons.google_docs.google_docs: GData lib version %s GData-Python/2.0.11 detected 2017-04-21 04:12:23,193 10817 INFO ? openerp.service.wsgi_server: HTTP service (werkzeug) running on 0.0.0.0:8069 2017-04-21 04:12:23,197 10817 ERROR openerp openerp.sql_db: Connection to the database failed Traceback (most recent call last): File “/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/sql_db.py”, line 441, in borrow result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection) File “/usr/lib64/python2.6/site-packages/psycopg2/init.py”, line 164, in connect conn = _connect(dsn, connection_factory=connection_factory, async=async) OperationalError: fe_sendauth: no password supplied

2017-04-21 04:12:23,199 10817 ERROR openerp openerp: Failed to initialize database openerp. Traceback (most recent call last): File “/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/cli/server.py”, line 98, in preload_registry db, registry = openerp.pooler.get_db_and_pool(dbname,update_module=update_module) File “/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/pooler.py”, line 33, in get_db_and_pool registry = RegistryManager.get(db_name, force_demo, status, update_module) File “/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/modules/registry.py”, line 192, in get update_module) File “/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/modules/registry.py”, line 204, in new registry = Registry(db_name) File “/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/modules/registry.py”, line 76, in init cr = self.db.cursor() File “/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/sql_db.py”, line 485, in cursor return Cursor(self._pool, self.dbname, serialized=serialized) File “/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/sql_db.py”, line 183, in init self._cnx = pool.borrow(dsn(dbname)) File “/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/sql_db.py”, line 378, in _locked return fun(self, *args, **kwargs) File “/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/sql_db.py”, line 441, in borrow result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection) File “/usr/lib64/python2.6/site-packages/psycopg2/init.py”, line 164, in connect conn = _connect(dsn, connection_factory=connection_factory, async=async) OperationalError: fe_sendauth: no password supplied

2017-04-21 04:12:23,200 10817 INFO openerp openerp: OpenERP server is running, waiting for connections…

Hi @munnavhai

Please can you compare the results from the command

yum list installed | grep bahmni

The output should be as below: 1.0-18 @bahmni bahmni-emr.noarch 0.87-205 @bahmni bahmni-erp.noarch 0.87-44 @bahmni bahmni-erp-connect.noarch 0.87-44 @bahmni bahmni-installer.noarch 0.87-81 @/bahmni-installer-0.87-81.noarch bahmni-lab.noarch 0.87-26 @bahmni bahmni-lab-connect.noarch 0.87-205 @bahmni bahmni-openmrs.noarch 0.87-52 @bahmni bahmni-reports.noarch 0.87-32 @bahmni bahmni-web.noarch 0.87-205 @bahmni python-gdata.noarch 2.0.11-1.el6 @bahmni

Run the command sudo service --status-all Please check if the openerp server is running and bahmni-erp-connect is also running. If not start them and also check the logs under /var/log/openerp folder

Hi,

I have matched and everything is same. I have checked all the services are running fine. I have checked the log and i have pasted it here.

Thank you

Are you able to logon to the postgres is the postgres service also running?

Does the below command connect you to the database from terminal. psql -Uopenerp

yes i can log in to postgres with that user.