Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo course community database gettingstarted
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo course community database gettingstarted
Despre acest forum
  1. Getting Started
  2. Forum

ERROR: relation "ir_module_module" does not exist at character 53

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
databasedockerdocker-compose
1 Răspunde
12399 Vizualizări
Imagine profil
lalebarde2

Hi, 

I am trying to test odoo deployment under docker on my testing PC without reverse proxy. After `docker-compose up`, I get the following error: `ERROR: relation "ir_module_module" does not exist at character 53`, and the browser at `https://localhost:8069/` says approximately: `Secure connexion failure - error while connecting to localhost:8069. PR_END_OF_FILE_ERROR`.


The terminal where I have launched `docker-compose up` logs:

db    | PostgreSQL init process complete; ready for start up.
db |
db | 2022-09-11 16:52:28.526 UTC [1] LOG: starting PostgreSQL 14.5 (Debian 14\\.5\\-1\\.pgdg110\\+1\\)\\ on\\ x86_64\\-pc\\-linux\\-gnu,\\ compiled\\ by\\ gcc\\ \\(Debian\\ 10\\.2\\.1\\-6\\)\\ 10\\.2\\.1\\ 20210110,\\ 64\\-bit
db\\ \\ \\ \\ \\|\\ 2022\\-09\\-11\\ 16:52:28\\.526\\ UTC\\ \\[1\\]\\ LOG:\\ \\ listening\\ on\\ IPv4\\ address\\ "0\\.0\\.0\\.0",\\ port\\ 5432
db\\ \\ \\ \\ \\|\\ 2022\\-09\\-11\\ 16:52:28\\.526\\ UTC\\ \\[1\\]\\ LOG:\\ \\ listening\\ on\\ IPv6\\ address\\ "::",\\ port\\ 5432
db\\ \\ \\ \\ \\|\\ 2022\\-09\\-11\\ 16:52:28\\.529\\ UTC\\ \\[1\\]\\ LOG:\\ \\ listening\\ on\\ Unix\\ socket\\ "/var/run/postgresql/\\.s\\.PGSQL\\.5432"
db\\ \\ \\ \\ \\|\\ 2022\\-09\\-11\\ 16:52:28\\.534\\ UTC\\ \\[62\\]\\ LOG:\\ \\ database\\ system\\ was\\ shut\\ down\\ at\\ 2022\\-09\\-11\\ 16:52:28\\ UTC
db\\ \\ \\ \\ \\|\\ 2022\\-09\\-11\\ 16:52:28\\.541\\ UTC\\ \\[1\\]\\ LOG:\\ \\ database\\ system\\ is\\ ready\\ to\\ accept\\ connections
db\\ \\ \\ \\ \\|\\ 2022\\-09\\-11\\ 16:53:35\\.060\\ UTC\\ \\[76\\]\\ ERROR:\\ \\ relation\\ "ir_module_module"\\ does\\ not\\ exist\\ at\\ character\\ 53
db\\ \\ \\ \\ \\|\\ 2022\\-09\\-11\\ 16:53:35\\.060\\ UTC\\ \\[76\\]\\ STATEMENT:\\ \\
db\\ \\ \\ \\ \\|\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ SELECT\\ latest_version
db\\ \\ \\ \\ \\|\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ FROM\\ ir_module_module
db\\ \\ \\ \\ \\|\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ WHERE\\ name='base'

There\ is\ something\ interesting\ here, but it has changed nothing to the result for me:


Error about db not initialized may still show up when using volume:
volumes:
- odoo-db-data:/var/lib/postgresql/data/pgdata # removing this volume removes the error
Somehow got it to work by:
docker-compose exec web bash
odoo -i base -d odoo --stop-after-init --db_host=db -r odoo -w odoo
...
re-up using docker-compose

Here is my `docker-compose.yml`:

version: '3.9'
services:
odoo:
container_name: odoo
image: odoo:15.0
volumes:
- ./extra-addons:/opt/odoo/extra-addons
- ./etc:/etc/odoo
- odoo-web-data:/var/lib/odoo
ports:
- "8069:8069"
depends_on:
- db
environment:
- PASSWORD_FILE=/run/secrets/postgresql_password
secrets:
- postgresql_password
restart: always
db:
container_name: db
image: postgres:14
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD_FILE=/run/secrets/postgresql_password
- POSTGRES_USER=glopibuf
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- odoo-db-data:/var/lib/postgresql/data/pgdata
secrets:
- postgresql_password
ports:
- 5432:5432
restart: always
volumes:
odoo-web-data:
odoo-db-data:

secrets:
postgresql_password:
file: odoo_pg_pass

and my `odoo.conf`:

[options]
db_host = db
db_user = glopibuf
db_name = postgres
db_template = template0
db_maxconn = 64
db_filter = ^xxxxxx.*$
db_sslmode = allow
logfile = /var/log/odoo/openerp-server.log
logrotate = True
log-db = False
syslog = False
log-level = warn
interface = localhost
port = 8069
secure = True
proxy_mode = False
addons_path = /opt/odoo/extra-addons,/opt/openerp/odoo/addons,/home/myaddons
timezone = Europe/Paris
secure_cert_file = server.cert
secure_pkey_file = server.pkey
xmlrpcs = False
xmlrpcs_interface = 127.0.0.1
xmlrpcs_port = 8071
xmlrpc = False
xmlrpc_interface = 127.0.0.1
xmlrpc_port = 8069
longpolling_port = 8072
import_partial =
unaccent = False
translate_modules = ['all']
server_wide_modules = None
smtp_server = localhost
smtp_user = False
smtp_password = False
smtp_ssl = False
email_from = "xxx@yyy.com"
smtp_port = 25
workers = 1
max_cron_threads = 1
limit_time_cpu = 60
limit_time_real = 170
limit_memory_soft = 255652815
limit_memory_hard = 1395864371
limit_request = 8196
osv_memory_count_limit = False
osv_memory_age_limit = 1.0
test_enable = False
test_file = False
test_report_directory = False
test_commit = False
without_demo = none

Here is the project tree:

.
├── docker-compose.yml
├── etc
│   └── odoo.conf
├── extra-addons
├── odoo_pg_pass








0
Imagine profil
Abandonează
Imagine profil
Cybrosys Techno Solutions Pvt.Ltd
Cel mai bun răspuns

Hi,

Try to change your docker-composer.yaml file like below

version: '3'
services:
odoo:
image: odoo:15.0 #image of the odoo
env_file: .env #environment file(contains odoo environment)
depends_on:
- postgres
ports:
- "8000:8069" #port mapping
Volumes: #mapping directory
- data:/var/lib/odoo
- ./config:/etc/odoo 
- ./extra-addons:/mnt/extra-addons
postgres: 
image: postgres:13 #postgres image
env_file: .env #environment file(contains postgres environment)
volumes:
- db:/var/lib/postgresql/data/pgdata

volumes:
data:
db:

Try to create an .env file with following configuration.

#psql environment variable
POSTGRES_DB=postgres
POSTGRES_PASSWORD=odoo
POSTGRES_USER=odoo15
PGDATA=/var/lib/postgresql/data/pgdata
#odoo environment variables
HOST=postgres
USER=odoo15
PASSWORD=odoo

For any further reference visit following link

https://www.cybrosys.com/blog/odoo-14-deployment-using-docker

Regards

0
Imagine profil
Abandonează
Enjoying the discussion? Don't just read, join in!

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

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
Odoo 18 enterprice in Docker
docker
Imagine profil
Imagine profil
Imagine profil
2
feb. 25
12125
Odoo 18 docker image ? Rezolvat
docker
Imagine profil
Imagine profil
Imagine profil
2
nov. 24
46933
Odoo Community connection to Postgres DB Issues
database connection docker community odoo16
Imagine profil
Imagine profil
1
aug. 23
10999
docker odoo build custom module
docker
Imagine profil
Imagine profil
1
ian. 23
8802
local installation Rezolvat
database odoo
Imagine profil
Imagine profil
1
oct. 24
8360
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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