跳至內容
選單
此問題已被標幟
4 回覆
11213 瀏覽次數

Hi everyone

My first and new installation of 9.0 community

When I start odoo using my user and odoo.py it's ok

When I try with "service odoo start" I have a issue

  File "/usr/lib/python2.7/dist-packages/psycopg2/__init__.py", line 164, in connect
    conn = _connect(dsn, connection_factory=connection_factory, async=async)
OperationalError: FATAL:  password authentication failed for user "odoo"
FATAL:  password authentication failed for user "odoo"


So I delete the odoo user and crate a new one whith all permissions


CREATE ROLE odoo WITH PASSWORD 'mypasswd' SUPERUSER;

But nothing change


what's the solution ?



頭像
捨棄
最佳答案

buenos dias me pueden ayudarme  es de mi base de dato no puedo tener los permisos 

metro sale este error



頭像
捨棄
作者 最佳答案

thanks for your answeers

-> deep

I have no .openerp_serverrc file in my server

And I think postgre is in the good port because I can launch odoo from my user

is here my /etc/odoo/openerp-server.conf

[options]
; This is the password that allows database operations:
; admin_passwd = admin
db_host = 127.0.0.1
#db_host = "/tmp/.s.PGSQL.5432"
db_port = False
db_user = odoo
db_password = False
addons_path = /usr/lib/python2.7/dist-packages/openerp/addons

 

-> dilip

 odoo usr exist on postgresql

so I change /etc/postgresql/9.5/main/pg_hba.conf like this

# Database administrative login by Unix domain socket
local   all             postgres                                peer
local   all              odoo       		           trust


and nothing change

I try to bee clear

odoo is a user creat by odoo installation. It have no /home directory.


[edit]

I uninstal odoo,  delete and clean postgresql.

I reinstall postrsql first and then odoo

And it's working out of the box

With my debian when I install odoo for the first time postgresql wasn't on my computer and it seems necessary to install postgresql first


[/edit]

頭像
捨棄
最佳答案

Check in the .openerp_serverrc file,

In that whether you have specified db related setup correctly such as db_host, db_user, db_password, db_port.

Further check in which port does the postgreSQL is running, sometimes the postgre will be running in the port 5432 but Odoo server may be pointed to port 5433.

So in that case, if you wished to change the PostgreSQL port, then execute the below code in the terminal.

sudo -u postgres psql -p 5433 postgres




頭像
捨棄
最佳答案

First open terminal in ubantu OS.


In that type following commands :

->  sudo su postgres


if user odoo is not created.

            ->   createuser -s user_name

-> psql template1

-> alter user postgres password 'newpassword';


==============================OR====================

go in following path :

/etc/postgresql/9.3/main/

 ->   sudo vi /etc/postgresql/9.3/main/pg_hba.conf

.

.

.

# Database administrative login by Unix domain socket

local        all              postgres            peer

local        all              odoo                  trust

# TYPE DATABASE USER ADDRESS METHOD

# "local" is for Unix domain socket connections only

.

.

.

======================================

in above code add BOLD line

" local        all              odoo                  trust "




    


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
11月 23
51413
2
3月 15
8924
1
11月 23
2594
5
3月 22
16915
1
8月 20
5232