Bỏ qua để đến Nội dung
Odoo Menu
  • Đăng nhập
  • Dùng thử miễn phí
  • Ứng dụng
    Tài chính
    • Kế toán
    • Hóa đơn
    • Chi phí
    • Bảng tính (BI)
    • Tài liệu
    • Ký tên
    Bán hàng
    • CRM
    • Bán hàng
    • POS Cửa hàng
    • POS Nhà hàng
    • Đăng ký
    • Cho thuê
    Trang web
    • Trình tạo trang web
    • Thương mại điện tử
    • Blog
    • Diễn đàn
    • Trò chuyện trực tiếp
    • Học trực tuyến
    Chuỗi cung ứng
    • Tồn kho
    • Sản xuất
    • PLM
    • Mua hàng
    • Bảo dưỡng
    • Chất lượng
    Nhân sự
    • Nhân viên
    • Tuyển dụng
    • Ngày nghỉ
    • Đánh giá
    • Giới thiệu
    • Đội xe
    Marketing
    • Marketing trên MXH
    • Marketing qua email
    • Marketing qua SMS
    • Sự kiện
    • Tự động hóa Marketing
    • Khảo sát
    Dịch vụ
    • Dự án
    • Bảng chấm công
    • Dịch vụ hiện trường
    • Hỗ trợ
    • Kế hoạch
    • Lịch hẹn
    Năng suất
    • Thảo luận
    • Phê duyệt
    • IoT
    • VoIP
    • Kiến thức
    • WhatsApp
    Ứng dụng của bên thứ ba Studio Odoo Nền tảng Đám mây Odoo
  • Ngành
    Bán lẻ
    • Nhà sách
    • Cửa hàng quần áo
    • Cửa hàng nội thất
    • Cửa hàng tạp hóa
    • Cửa hàng đồ kim khí
    • Cửa hàng đồ chơi
    Ẩm thực & Dịch vụ lưu trú
    • Bar và quán rượu
    • Nhà hàng
    • Đồ ăn nhanh
    • Guest house
    • Nhà phân phối đồ uống
    • Khách sạn
    Bất động sản
    • Công ty môi giới bất động sản
    • Công ty kiến trúc
    • Xây dựng
    • Quản lý bất động sản
    • Làm vườn
    • Hiệp hội chủ sở hữu bất động sản
    Tư vấn
    • Công ty kế toán
    • Đối tác Odoo
    • Công ty marketing
    • Công ty luật
    • Tuyển dụng
    • Thanh tra & chứng nhận
    Sản xuất
    • Dệt may
    • Kim loại
    • Nội thất
    • Ẩm thực
    • Nhà máy bia
    • Quà tặng doanh nghiệp
    Sức khoẻ & fitness
    • CLB thể thao
    • Cửa hàng kính mắt
    • Trung tâm fitness
    • Chuyên gia chăm sóc sức khỏe
    • Hiệu thuốc
    • Tiệm làm tóc
    Thương mại
    • Dịch vụ sửa chữa
    • Phần cứng CNTT & Hỗ trợ
    • Hệ thống năng lượng mặt trời
    • Công ty sản xuất giày
    • Dịch vụ vệ sinh
    • Dịch vụ HVAC
    Khác
    • Tổ chức phi lợi nhuận
    • Cơ quan môi trường
    • Cho thuê biển quảng cáo
    • Nhiếp ảnh
    • Cho thuê xe đạp
    • Đại lý phần mềm
    Xem tất cả ngành
  • Cộng đồng
    Học tập
    • Khóa học
    • Tài liệu
    • Chứng chỉ
    • Đào tạo
    • Blog
    • Podcast
    Thúc đẩy đào tạo
    • Chương trình đào tạo
    • Trò chơi kinh doanh Scale Up!
    • Tham quan Odoo
    Nhận phần mềm
    • Tải xuống
    • So sánh các phiên bản
    • Phiên bản
    Hợp tác
    • Github
    • Diễn đàn
    • Sự kiện
    • Dịch thuật
    • Trở thành đối tác
    • Dịch vụ dành cho Đối tác
    • Đăng ký công ty kế toán của bạn
    Nhận dịch vụ
    • Tìm đối tác
    • Tìm kế toán
    • Gặp chuyên gia hỗ trợ
    • Dịch vụ Triển khai
    • Khách hàng tham khảo
    • Hỗ trợ
    • Nâng cấp
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Nhận một buổi demo
  • Bảng giá
  • Trợ giúp

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

  • CRM
  • e-Commerce
  • Kế toán
  • Tồn kho
  • PoS
  • Dự án
  • MRP
All apps
Bạn cần phải đăng ký để tương tác với cộng đồng.
Tất cả bài viết Người Huy hiệu
Thẻ (Xem tất cả)
odoo accounting v14 pos v15
Về diễn đàn này
Bạn cần phải đăng ký để tương tác với cộng đồng.
Tất cả bài viết Người Huy hiệu
Thẻ (Xem tất cả)
odoo accounting v14 pos v15
Về diễn đàn này
Hỗ trợ

Sample docker compose file from Docker Hub showing error

Đăng ký nhận tin

Nhận thông báo khi có hoạt động trên bài viết này

Câu hỏi này đã bị gắn cờ
2 Trả lời
6223 Lượt xem
Ảnh đại diện
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
Ảnh đại diện
Huỷ bỏ
Ảnh đại diện
Michael Angelo
Câu trả lời hay nhấ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
Ảnh đại diện
Huỷ bỏ
joseph jomon
Tác giả

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
Tác giả

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.

Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!

Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!

Đăng ký
Cộng đồng
  • Khóa học
  • Tài liệu
  • Diễn đàn
Open source
  • Tải xuống
  • Github
  • Runbot
  • Dịch thuật
Dịch vụ
  • Lưu trữ Odoo.sh
  • Hỗ trợ
  • Nâng cấp
  • Phát triển tùy chỉnh
  • Đào tạo
  • Tìm kế toán
  • Tìm đối tác
  • Trở thành đối tác
Giới thiệu công ty
  • Công ty của chúng tôi
  • Tài sản thương hiệu
  • Liên hệ
  • Việc làm
  • Sự kiện
  • Podcast
  • Blog
  • Khách hàng
  • Pháp lý • Riêng tư
  • Bảo mật
الْعَرَبيّة 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 là bộ ứng dụng kinh doanh có open source đáp ứng tất cả các nhu cầu của công ty bạn: CRM, thương mại điện tử, kế toán, tồn kho, POS, quản lý dự án, v.v.

Định hướng giá trị riêng biệt của Odoo là tích hợp hoàn toàn và dễ dàng sử dụng.

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