Skip to Content
Menu
This question has been flagged
6 Replies
33885 Views

Try to debug openerp 7 source code in Windows with Eclipse

When Startin server (i.e.) Openerp-server Start the Server:

pydev debugger: starting
2013-12-17 17:18:34,125 1636 INFO ? openerp: OpenERP version 7.0-20131023-232420
2013-12-17 17:18:34,140 1636 INFO ? openerp: addons paths: D:\OpenERP 7.0-20130701-231330\svn\openerp\addons
2013-12-17 17:18:34,140 1636 INFO ? openerp: database hostname: localhost
2013-12-17 17:18:34,140 1636 INFO ? openerp: database port: 5432
2013-12-17 17:18:34,140 1636 INFO ? openerp: database user: Administrator
2013-12-17 17:18:35,812 1636 WARNING ? openerp.addons.email_template.email_template: jinja2 not available, templating features will not work!
2013-12-17 17:18:35,890 1636 WARNING ? openerp.addons.google_docs.google_docs: Please install latest gdata-python-client from code.google.com/p/gdata-python-client/downloads/list
2013-12-17 17:18:37,780 1636 INFO ? openerp.service.wsgi_server: HTTP service (werkzeug) running on 0.0.0.0:8069
2013-12-17 17:18:37,796 1636 INFO ? openerp: OpenERP server is running, waiting for connections...

By hosting in Web by localhost:8069 throws the Internal Server Error

 2013-12-17 17:19:15,812 1636 ERROR ? openerp.sql_db: Connection to the database failed
 Traceback (most recent call last):
 File "D:\OpenERP 7.0-20130701-231330\svn\openerp\sql_db.py", line 440, in borrow
result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)
 File "C:\Python26\lib\site-packages\psycopg2\__init__.py", line 164, in connect
conn = _connect(dsn, connection_factory=connection_factory, async=async)
OperationalError: fe_sendauth: no password supplied

2013-12-17 17:19:15,828 1636 ERROR ? openerp.netsvc: fe_sendauth: no password supplied
Traceback (most recent call last):
 File "D:\OpenERP 7.0-20130701-231330\svn\openerp\netsvc.py", line 292, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
 File "D:\OpenERP 7.0-20130701-231330\svn\openerp\service\web_services.py", line 122, in dispatch
return fn(*params)
 File "D:\OpenERP 7.0-20130701-231330\svn\openerp\service\web_services.py", line 359, in exp_list
cr = db.cursor()
 File "D:\OpenERP 7.0-20130701-231330\svn\openerp\sql_db.py", line 484, in cursor
return Cursor(self._pool, self.dbname, serialized=serialized)
 File "D:\OpenERP 7.0-20130701-231330\svn\openerp\sql_db.py", line 182, in __init__
self._cnx = pool.borrow(dsn(dbname))
 File "D:\OpenERP 7.0-20130701-231330\svn\openerp\sql_db.py", line 377, in _locked
return fun(self, *args, **kwargs)
 File "D:\OpenERP 7.0-20130701-231330\svn\openerp\sql_db.py", line 440, in borrow
result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)
 File "C:\Python26\lib\site-packages\psycopg2\__init__.py", line 164, in connect
conn = _connect(dsn, connection_factory=connection_factory, async=async)
OperationalError: fe_sendauth: no password supplied

 2013-12-17 17:19:15,858 1636 INFO ? werkzeug: 127.0.0.1 - - [17/Dec/2013 17:19:15] "GET / HTTP/1.1" 500 -

Given the DB information in openerp-server.cfg file

db_host = localhost db_port = 5432 db_user = openpg db_password = openpgpwd

How do i resolve?

Avatar
Discard

1) Check services.msc PostgreSQL server is running 2) Try to Connect using pg_admin to check able to open database and check db_user openpg available or create the same

Author

Yes i can connect db_user in pgadmin tool

Best Answer

Use PgAdmin (or any other tool or editor) to edit your pg_hba.conf by following the instructions provided in this page

Avatar
Discard

The solution in your link works great, thanks!

Good luck; Thanks.

Best Answer

make sure that you can connect in with login user and passwd in pgadmin if the autentification  is good then restart your postgres server and it work fine 

Avatar
Discard
Best Answer

hi plz i have the some problem; and i can't resolve it plz if you have resolved it tell me how ???

Avatar
Discard
Best Answer

Steps suggested to get rid of this error:

1. Stop your OpenERP server.

2. Stop your PostgreSQL server : $ sudo /etc/init.d/postgresql stop

3. Edit your PostgreSQL configuration file pg_hb.conf using nano or gedit editor :
$ sudo gedit /etc/postgresql/9.X/main/pg_hba.conf

4. Now, In the pg_hba.conf file search for the following lines:
# "local" is for Unix domain socket connections only
local         all        all        peer

Here, in above line type of connection used is “peer”, change it to a “trust” i.e.
local         all        all        trust

Now, Save and close the file.
5. After making the above changes to the configuration filepg_hba.conf, Reload and start the PostgreSQL server :
$ sudo /etc/init.d/postgresql restart

This approach works too in Odoo 11 and Ubuntu 16.04 and should resolve the error.

Avatar
Discard
Related Posts Replies Views Activity
0
Apr 25
2
2
Mar 25
551
0
Mar 25
350
1
Mar 25
600
0
Feb 25
448