OpenERP服务器错误访问被拒绝

时间:2014-11-29 12:49:19

标签: postgresql ubuntu openerp putty

安装Odoo之后,我去了网页面板,要求创建新的数据库。

当我输入详细信息时,我收到了错误消息。我可以成功更改主密码。 我已经在putty上创建了数据库,并且在/ etc /文件夹下没有openerp-server.conf文件。

    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.

4 个答案:

答案 0 :(得分:9)

使用以下命令,您将获得.conf文件的位置

locate openerp-server.conf

现在转到该路径并打开它并检查主密码是否与创建新数据库时的相同。

答案 1 :(得分:5)

@Danish主密码应为" admin "它需要新建数据库

答案 2 :(得分:2)

用于创建数据库的主密码与为PostgreSQL服务器设置的主密码不同。

答案 3 :(得分:0)

@Danish

  1. 检查工具 - >配置文件,看看用户名和 密码已设置为访问数据库。
  2. 检查/etc/postgresql/9.1/main下的pg_hba.conf文件,它是 允许在工具中指定数据库用户的连接 - > 配置文件。