postgresql OpenERP 服务器错误 访问被拒绝
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/27202448/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
OpenERP Server Error Access denied
提问by Danish
After installing Odoo, I went to web panel where it asked create new database.
安装 Odoo 后,我转到 Web 面板,它要求创建新数据库。
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.
当我输入详细信息时,出现错误。我可以成功更改主密码。我已经在 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.
回答by Bhavesh Odedra
Using following command you will get location of .conf file
使用以下命令,您将获得 .conf 文件的位置
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.
现在转到该路径并打开它并检查主密码是否与您在创建新数据库时给出的相同。
回答by Nwawel A Iroume
@Danish the master password should be "admin" it is required to newly create your database
@Danish 主密码应该是“ admin”它需要新创建您的数据库
回答by Parthiv
The master password that you are using to create the database is not same as what you have set for the PostgreSQL server.
您用于创建数据库的主密码与您为 PostgreSQL 服务器设置的密码不同。
回答by Hardik Patadia
@Danish
@丹麦语
- Check the tools -> config file and look what are the username and password been set for accessing the database.
- 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.
- 检查工具 -> 配置文件并查看为访问数据库设置的用户名和密码是什么。
- 检查 /etc/postgresql/9.1/main 下的 pg_hba.conf 文件,它允许在工具 -> 配置文件中连接指定的数据库用户。