İçereği Atla
Odoo Menü
  • Portal
  • Ücretsiz deneyin
  • Uygulamalar
    Finans
    • Muhasebe
    • Faturalama
    • Masraf Yönetimi
    • Elektronik Çizelge (BI)
    • Belgeler
    • İmza
    Satış
    • Müşteri İlişkileri Yönetimi (CRM)
    • Satış
    • Satış Noktası Mağaza
    • Satış Noktası Restoran
    • Abonelikler
    • Kiralama
    Web Sitesi
    • Web Sitesi Oluşturucu
    • eTicaret
    • Blog
    • Forum
    • Canlı Sohbet
    • eÖğrenme
    Tedarik Zinciri
    • Envanter
    • Üretim
    • Ürün Yaşam Döngüsü Yönetimi
    • Satın Alma
    • Bakım
    • Kalite
    İnsan Kaynakları
    • Çalışanlar
    • İşe Alım
    • İzin
    • Değerlendirme
    • Referans
    • Filo Yönetimi
    Pazarlama
    • Sosyal Medyada Pazarlama
    • E-posta ile Pazarlama
    • SMS ile Pazarlama
    • Etkinlikler
    • Pazarlama Otomasyonu
    • Anket
    Hizmetler
    • Proje Yönetimi
    • Çalışma Çizelgeleri
    • Saha Hizmeti
    • Yardım Masası
    • Planlama
    • Randevular
    Verimlilik
    • Sohbet
    • Onay
    • Nesnelerin İnterneti
    • VoIP
    • Bilgi Bankası
    • WhatsApp
    Üçüncü taraf uygulamalar Odoo Stüdyo Odoo Bulut Platformu
  • Sektörler
    Perakende satış
    • Kitapçı
    • Giyim Mağazası
    • Mobilya Mağazası
    • Gıda Marketi
    • Hırdavat Dükkanı
    • Oyuncak Dükkanı
    Gıda ve Konaklama
    • Bar ve Pub
    • Restoran
    • Fast Food Restoranı
    • Konuk Evi
    • İçecek Distribütörü
    • Otel
    Gayrimenkul
    • Emlak Acentesi
    • Mimarlık Firması
    • İnşaat
    • Emlak Yönetimi
    • Bahçe Tasarımı
    • Mülk Sahipleri Derneği
    Uzmanlık
    • Muhasebe Firması
    • Odoo Partner
    • Pazarlama Ajansı
    • Hukuk Firması
    • Yetenek Kazanımı
    • Denetim ve Belgelendirme
    Üretim
    • Tekstil
    • Metal
    • Mobilyalar
    • Gıda
    • Bira fabrikası
    • Kurumsal Hediye
    Sağlık ve Spor
    • Spor Kulübü
    • Optik Mağazası
    • Fitness Merkezi
    • Sağlıklı Yaşam Merkezi
    • Eczane
    • Kuaför Salonu
    Ticaret
    • Tamirci
    • BT Donanım & Destek
    • Güneş Enerjisi Sistemleri
    • Ayakkabı İmalatçısı
    • Temizlik Hizmetleri
    • HVAC Hizmetleri
    Diğerleri
    • Kar Amacı Gütmeyen Kuruluş
    • Çevre Ajansı
    • Reklam Panosu Kiralama
    • Fotoğrafçılık
    • Bisiklet Kiralama
    • Yazılım Bayisi
    Tüm Sektörlere Göz Atın
  • Topluluk
    Öğrenim
    • Eğitim Araçları
    • Dokümantasyon
    • Sertifikasyonlar
    • Eğitim Etkinlikleri
    • Blog
    • Podcast
    Eğitim ve Gelişim
    • Eğitim Programı
    • Scale Up! İşletme Oyunu
    • Odoo'yu Ziyaret Edin
    Yazılım
    • İndirin
    • Sürümleri Kıyaslayın
    • Sürümler
    İş Birliği
    • Github
    • Forum
    • Etkinlikler
    • Çeviriler
    • Partner Olun
    • Partnerler için Hizmetler
    • Muhasebe Firmanızı Kaydettirin
    Hizmetler
    • Partner Bulun
    • Muhasebeci Bulun
    • Bir danışmanla görüşün
    • Kurulum Hizmetleri
    • Müşteri Referansları
    • Destek
    • Sürüm Yükseltme
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Demo randevusu alın
  • Fiyatlandırma
  • Yardım

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

  • Müşteri İlişkileri Yönetimi
  • e-Commerce
  • Muhasebe
  • Envanter
  • PoS
  • Proje Yönetimi
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
Yardım

Sample docker compose file from Docker Hub showing error

Abone Ol

Get notified when there's activity on this post

Bu soru işaretlendi
2 Cevaplar
6222 Görünümler
Avatar
joseph jomon

Hallo Odoo community i have a windows computer with WSL installed and Docker running
i tried the code form docker hub for my docker compose file .
https://hub.docker.com/_/odoo
version 18 but even though with minimum configuration i get this error while running docker compose up , does anyone have an idea on how to get this up and running 
Thanks in advance 
db-1   | 2024-11-06 10:31:20.791 UTC [92] FATAL:  password authentication failed for user "odoo"

db-1   | 2024-11-06 10:31:20.791 UTC [92] DETAIL:  Connection matched pg_hba.conf line 100: "host all all all scram-sha-256"

0
Avatar
Vazgeç
Avatar
Michael Angelo
En İyi Yanıt

The error you're seeing (password authentication failed for user "odoo") indicates that the PostgreSQL database is rejecting the connection due to incorrect credentials. You can resolve this by ensuring that the POSTGRES_USER, POSTGRES_PASSWORD, and DB_USER environment variables in your docker-compose.yml file are correctly set and consistent between the Odoo and PostgreSQL containers.

For example:
'''
services:

  db:

    image: postgres:13

    environment:

      POSTGRES_USER: odoo

      POSTGRES_PASSWORD: odoo

      POSTGRES_DB: odoo

  odoo:

    image: odoo:18

    environment:

      - HOST=db

      - USER=odoo

      - PASSWORD=odoo

    depends_on:

      - db


'''

Ensure that both containers have matching credentials for the odoo user. After adjusting the configuration, rebuild the containers with docker-compose up --build.

0
Avatar
Vazgeç
joseph jomon
Üretici

Hallo Michael Angelo, Thank you for your Answer but it seems the problem still persist even after making the changes you mentioned , i will paste my compose file here and the error message
Error-Message
----------------

2024-11-06 12:05:07.552 UTC [1] LOG: starting PostgreSQL 15.8 (Debian 15.8-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit

2024-11-06 12:05:07.553 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432

2024-11-06 12:05:07.553 UTC [1] LOG: listening on IPv6 address "::", port 5432

2024-11-06 12:05:07.561 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"

2024-11-06 12:05:07.576 UTC [29] LOG: database system was shut down at 2024-11-06 12:01:23 UTC

2024-11-06 12:05:07.590 UTC [1] LOG: database system is ready to accept connections

2024-11-06 12:05:08.249 UTC [33] FATAL: password authentication failed for user "odoo"

2024-11-06 12:05:08.249 UTC [33] DETAIL: Connection matched pg_hba.conf line 100: "host all all all scram-sha-256"

2024-11-06 12:05:09.272 UTC [34] FATAL: password authentication failed for user "odoo"

2024-11-06 12:05:09.272 UTC [34] DETAIL: Connection matched pg_hba.conf line 100: "host all all all scram-sha-256"

2024-11-06 12:05:10.283 UTC [35] FATAL: password authentication failed for user "odoo"

2024-11-06 12:05:10.283 UTC [35] DETAIL: Connection matched pg_hba.conf line 100: "host all all all scram-sha-256"
--------------------------------------------------------------------------
The compose file used
--------------------------------------------------------------------------
version: '3.1'

services:

web:

image: odoo:18.0

depends_on:

- db

ports:

- "8069:8069"

volumes:

- odoo-web-data:/var/lib/odoo # Persistent data for Odoo

- ./config:/etc/odoo # Custom config directory for Odoo

- ./addons:/mnt/extra-addons # Custom add-ons directory

environment:

HOST: db # Hostname for the database container

USER: odoo # Username for PostgreSQL

PASSWORD: odoo # Password for PostgreSQL

db:

image: postgres:15

environment:

POSTGRES_DB: odoo # Database name for Odoo

POSTGRES_USER: odoo # PostgreSQL user (must match Odoo's settings)

POSTGRES_PASSWORD: odoo # PostgreSQL password (must match Odoo's settings)

PGDATA: /var/lib/postgresql/data/pgdata # Persistent data for PostgreSQL

volumes:

- odoo-db-data:/var/lib/postgresql/data/pgdata

volumes:

odoo-web-data:

odoo-db-data:

Michael Angelo

Hi,

Here are a few things to try to resolve the issue:

Environment Variable Names: For Odoo, make sure the database-related environment variables in your web service match the expected naming format in Odoo:
'''
environment:
- DB_HOST=db
- DB_USER=odoo
- DB_PASSWORD=odoo
'''

Rebuild Containers: Run docker-compose down -v to remove all containers and volumes, then docker-compose up --build to rebuild and start fresh.

Confirm pg_hba.conf Configuration: Ensure that the PostgreSQL configuration in the pg_hba.conf file (usually found in /var/lib/postgresql/data/pgdata when using Docker) is set to md5 for authentication instead of scram-sha-256.

joseph jomon
Üretici

Hallo Michael Angelo, I did try the changed name of environment variables you mentioned but it seems the error persists, I also changed the config file of postgres with attatched volumes and the contents to be md5, then I get the same error message but this time with md5 at the end instead of the name of the other encryption.

Enjoying the discussion? Don't just read, join in!

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

Üye Ol
Topluluk
  • Eğitim Araçları
  • Dokümantasyon
  • Forum
Açık Kaynak
  • İndirin
  • Github
  • Runbot
  • Çeviriler
Hizmetler
  • Odoo.sh Hosting
  • Destek
  • Sürüm Yükseltme
  • Özel Geliştirmeler
  • Eğitim
  • Muhasebeci Bulun
  • Partner Bulun
  • Partner Olun
Hakkında
  • Şirketimiz
  • Pazarlama Gereçleri
  • İletişim
  • Kariyer
  • Etkinlikler
  • Podcast
  • Blog
  • Müşteriler
  • Hukuki • Gizlilik
  • Güvenlik
الْعَرَبيّة 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, müşteri ilişkileri yönetimi, eTicaret, muhasebe, envanter, satış noktası, proje yönetimi gibi şirketinizin tüm ihtiyaçlarını karşılayan bir açık kaynak işletme uygulamaları paketidir.

Odoo’nun eşsiz değer önermesi, aynı anda hem kullanımının çok kolay olup hem de tamamen entegre olmasıdır.

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