Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
4 Odpovědi
11166 Zobrazení

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 ?



Avatar
Zrušit
Nejlepší odpověď

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

metro sale este error



Avatar
Zrušit
Autor Nejlepší odpověď

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]

Avatar
Zrušit
Nejlepší odpověď

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




Avatar
Zrušit
Nejlepší odpověď

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 "




    


Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
lis 23
51335
2
bře 15
8875
1
lis 23
2563
5
bře 22
16862
1
srp 20
5192