Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Priemyselné odvetvia
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Reštaurácia
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Reality
    • Real Estate Agency
    • Architecture Firm
    • Konštrukcia
    • Estate Managament
    • Gardening
    • Property Owner Association
    Poradenstvo
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Jedlo
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Iní
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Pomoc

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

[V9]postgresql connection error

Odoberať

Get notified when there's activity on this post

This question has been flagged
errorpostgresqlconnectionv9.0
4 Replies
12228 Zobrazenia
Avatar
betton

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 ?



0
Avatar
Zrušiť
Avatar
Michelle Martinez
Best Answer

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

metro sale este error



0
Avatar
Zrušiť
Avatar
betton
Autor Best Answer

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]

0
Avatar
Zrušiť
Avatar
Deepa Venkatesh
Best Answer

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




0
Avatar
Zrušiť
Avatar
Dilip Dabhi
Best Answer

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 "




    


0
Avatar
Zrušiť
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrácia
Related Posts Replies Zobrazenia Aktivita
OperationalError: could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "localhost"
error connection
Avatar
Avatar
Avatar
Avatar
3
nov 23
52947
Connection Error OpenERP 7.0 on Ubuntu 12.04 LTS?
error connection
Avatar
Avatar
2
mar 15
10029
Reinstalacion del Odoo
installation error postgresql
Avatar
Avatar
1
nov 23
3360
Odoo 12 Connection Lost... Trying to reconnect on nginx Solved
error connection odoo12.0
Avatar
Avatar
Avatar
Avatar
Avatar
5
mar 22
18049
Error 503 - After restoring Backup
error postgresql Odoo13.0
Avatar
1
aug 20
6160
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now