OpenERP Server Error Access denied

断了今生、忘了曾经 提交于 2019-12-10 17:07:21

问题


After installing Odoo, I went to web panel where it asked create new database.

As I entered details I got error. I can change master password successfully. I already created database on putty and there is no openerp-server.conf file under /etc/ folder.

    Odoo
OpenERP Server Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 500, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 517, in dispatch
    result = self._call_function(**self.params)
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 284, in _call_function
    return self.endpoint(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 733, in __call__
    return self.method(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 376, in response_wrap
    response = f(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 714, in create
    params['create_admin_pwd'])
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 807, in proxy_method
    result = dispatch_rpc(self.service_name, method, args)
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 100, in dispatch_rpc
    result = dispatch(method, params)
  File "/usr/lib/python2.7/dist-packages/openerp/service/db.py", line 62, 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.

回答1:


Using following command you will get location of .conf file

locate openerp-server.conf

Now go to that path and open it and check out master password whether it's same as you given while creating a new database.




回答2:


@Danish the master password should be "admin" it is required to newly create your database




回答3:


The master password that you are using to create the database is not same as what you have set for the PostgreSQL server.




回答4:


@Danish

  1. Check the tools -> config file and look what are the username and password been set for accessing the database.
  2. Check pg_hba.conf file under /etc/postgresql/9.1/main, that it is allowing the connection for the specified database user in tools -> config file.


来源:https://stackoverflow.com/questions/27202448/openerp-server-error-access-denied

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!