Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

acess denied error while creating a company database

By
amitm
on 1/23/15, 12:16 AM 1,459 views

i have installed odoo on ubuntu 14 and receiving following error while creating a company database on UI:

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 525, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 562, in dispatch result = self._call_function(**self.params) File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 303, in _call_function return self.endpoint(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 791, in __call__ return self.method(*args, **kw) File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 395, in response_wrap response = f(*args, **kw) File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 694, in create params['create_admin_pwd']) File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 867, in proxy_method result = dispatch_rpc(self.service_name, method, args) File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 114, in dispatch_rpc result = dispatch(method, params) File "/usr/lib/python2.7/dist-packages/openerp/service/db.py", line 65, in dispatch security.check_super(passwd) File "/usr/lib/python2.7/dist-packages/openerp/service/security.py", line 33, in check_super raise openerp.exceptions.AccessDenied() AccessDenied: Access denied.

any help ???

 

0
amitm
On 1/23/15, 2:02 AM

thanks for the reply but the user odoo has permission to create database...

this is my postgres role permissions

postgres=# \du
                             List of roles
 Role name |                   Attributes                   | Member of
-----------+------------------------------------------------+-----------
 am        | Superuser                                      | {}
 odoo      | Create DB                                      | {}
 postgres  | Superuser, Create role, Create DB, Replication | {}

--------------->>> ------------------

Thanks Evan your answer helped me. I was not entering the correct password while creating the company database.

 

0

Vasanth

--Vasanth--
3458
| 5 3 8
Pondicherry, India
--Vasanth--
Vasanth
On 1/23/15, 12:21 AM

Hi amitm,

You can give bn_openerp user the right to create database (superuser), so you won't need to go through the cli to manage DB.

Please refer the following link to resolve the issue:

http://doc.openerp.com/v7.0/install/linux/postgres/index.html#first-method

0

Ivan

--Ivan--
3210
| 5 3 6
Jakarta, Indonesia
--Ivan--
Ivan
On 1/23/15, 2:38 AM

The traceback indicates that you are blocked in service/security.py check_super method.  This method checks OpenERP's master password.  So, when you creating a database, enter the correct Master Password (this is NOT the same as the admin password)

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 1/23/15, 12:16 AM
Seen: 1459 times
Last updated: 3/16/15, 8:10 AM