简体   繁体   English

Odoo 15:致命:用户“odoo15”的密码验证失败

[英]Odoo 15: FATAL: password authentication failed for user "odoo15"

I have installed Odoo 15 and postgreSQL with all other Odoo 15 dependencies.我已经安装了 Odoo 15 和 postgreSQL 以及所有其他 Odoo 15 依赖项。 I am facing a problem when I going to run this by custom.conf file with another port(8015).当我要通过 custom.conf 文件和另一个端口(8015)运行它时,我遇到了一个问题。 Note that, I didn't have any custom module till now .请注意,到目前为止,我还没有任何自定义模块 In port: 8069, I create a database and I run it after setting the custom.conf file with related and valid parameters.在端口:8069 中,我创建了一个数据库,并在使用相关且有效的参数设置 custom.conf 文件后运行它。 But still it say password authentication error.但它仍然说密码验证错误。 Can anybody suggest me the solution, please?有人可以建议我解决方案吗? I attached all the screenshot related to this problem as I far as I understood.据我所知,我附上了与此问题相关的所有屏幕截图。

custom.conf自定义.conf

[options]
addons_path = /home/src/odoo/addons,/home/src/odoo/odoo/addons,/home/src/custom,/home/tarikol/Projects/OdooProjects/custom
admin_passwd = Admin123
db_host = localhost
db_port = 5432
db_user = odoo15
db_password = odoo15
http_port = 8015

postgresSQL postgresSQL

   Name    |  Owner   | Encoding |   Collate   |    Ctype    |   Access privileges   
-----------+----------+----------+-------------+-------------+-----------------------
 mydb      | tarikol  | UTF8     | C           | en_US.UTF-8 | 
 odoo15    | odoo     | UTF8     | C           | en_US.UTF-8 | 
 postgres  | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | 
 template0 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +
           |          |          |             |             | postgres=CTc/postgres
 template1 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +
           |          |          |             |             | postgres=CTc/postgres
(5 rows)

Odoo 15 page, from where I created the database. Odoo 15 页面,我从这里创建了数据库。

在此处输入图像描述

也许我遗漏了其他东西,但在 .conf 中,您将 db 密码设置为 0odoo15,而在图片中,您拥有 odoo15

This error states that the db_user and db_password that Odoo server using to connect to Postgres is wrong.此错误表明 Odoo 服务器用于连接 Postgres 的db_userdb_password错误。

You can try to run the command \du in Postgres and make sure the odoo15 user is there and has Superuser, Create role, Create DB roles.您可以尝试在 Postgres 中运行命令\du并确保 odoo15 用户在那里并且具有Superuser, Create role, Create DB角色。

If you found the odoo15 user then you can change password as below:如果您找到了 odoo15 用户,那么您可以更改密码,如下所示:

ALTER USER odoo15 WITH PASSWORD 'odoo15';

If you created the db user from ubuntu as below then you can connect to db without password ( Odoo Installation Documentation ):如果您从 ubuntu 创建了 db 用户,如下所示,那么您可以在没有密码的情况下连接到 db( Odoo 安装文档):

$ sudo -u postgres createuser -s $USER

Because your PostgreSQL user has the same name as your Unix login, you will be able to connect to the database without password.因为您的 PostgreSQL 用户与您的 Unix 登录名同名,所以您无需密码即可连接到数据库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM