Passa al contenuto
Odoo Menu
  • Accedi
  • Provalo gratis
  • App
    Finanze
    • Contabilità
    • Fatturazione
    • Note spese
    • Fogli di calcolo (BI)
    • Documenti
    • Firma
    Vendite
    • CRM
    • Vendite
    • Punto vendita Negozio
    • Punto vendita Ristorante
    • Abbonamenti
    • Noleggi
    Siti web
    • Configuratore sito web
    • E-commerce
    • Blog
    • Forum
    • Live chat
    • E-learning
    Supply chain
    • Magazzino
    • Produzione
    • PLM
    • Acquisti
    • Manutenzione
    • Qualità
    Risorse umane
    • Dipendenti
    • Assunzioni
    • Ferie
    • Valutazioni
    • Referral dipendenti
    • Parco veicoli
    Marketing
    • Social marketing
    • E-mail marketing
    • SMS marketing
    • Eventi
    • Marketing automation
    • Sondaggi
    Servizi
    • Progetti
    • Fogli ore
    • Assistenza sul campo
    • Helpdesk
    • Pianificazione
    • Appuntamenti
    Produttività
    • Comunicazioni
    • Approvazioni
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    App di terze parti Odoo Studio Piattaforma cloud Odoo
  • Settori
    Retail
    • Libreria
    • Negozio di abbigliamento
    • Negozio di arredamento
    • Alimentari
    • Ferramenta
    • Negozio di giocattoli
    Cibo e ospitalità
    • Bar e pub
    • Ristorante
    • Fast food
    • Pensione
    • Grossista di bevande
    • Hotel
    Agenzia immobiliare
    • Agenzia immobiliare
    • Studio di architettura
    • Edilizia
    • Gestione immobiliare
    • Impresa di giardinaggio
    • Associazione di proprietari immobiliari
    Consulenza
    • Società di contabilità
    • Partner Odoo
    • Agenzia di marketing
    • Studio legale
    • Selezione del personale
    • Audit e certificazione
    Produzione
    • Tessile
    • Metallo
    • Arredamenti
    • Alimentare
    • Birrificio
    • Ditta di regalistica aziendale
    Benessere e sport
    • Club sportivo
    • Negozio di ottica
    • Centro fitness
    • Centro benessere
    • Farmacia
    • Parrucchiere
    Commercio
    • Tuttofare
    • Hardware e assistenza IT
    • Ditta di installazione di pannelli solari
    • Calzolaio
    • Servizi di pulizia
    • Servizi di climatizzazione
    Altro
    • Organizzazione non profit
    • Ente per la tutela ambientale
    • Agenzia di cartellonistica pubblicitaria
    • Studio fotografico
    • Punto noleggio di biciclette
    • Rivenditore di software
    Carica tutti i settori
  • Community
    Apprendimento
    • Tutorial
    • Documentazione
    • Certificazioni 
    • Formazione
    • Blog
    • Podcast
    Potenzia la tua formazione
    • Programma educativo
    • Scale Up! Business Game
    • Visita Odoo
    Ottieni il software
    • Scarica
    • Versioni a confronto
    • Note di versione
    Collabora
    • Github
    • Forum
    • Eventi
    • Traduzioni
    • Diventa nostro partner
    • Servizi per partner
    • Registra la tua società di contabilità
    Ottieni servizi
    • Trova un partner
    • Trova un contabile
    • Incontra un esperto
    • Servizi di implementazione
    • Testimonianze dei clienti
    • Supporto
    • Aggiornamenti
    GitHub Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Richiedi una demo
  • Prezzi
  • Aiuto

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

  • CRM
  • e-Commerce
  • Contabilità
  • Magazzino
  • PoS
  • Progetti
  • MRP
All apps
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo course community database gettingstarted
Sul forum
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo course community database gettingstarted
Sul forum
  1. Getting Started
  2. Forum

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

Iscriviti

Ricevi una notifica quando c'è un'attività per questo post

La domanda è stata contrassegnata
databasedockerdocker-compose
1 Rispondi
12396 Visualizzazioni
Avatar
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
Avatar
Abbandona
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Risposta migliore

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
Avatar
Abbandona
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!

Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!

Registrati
Post correlati Risposte Visualizzazioni Attività
Odoo 18 enterprice in Docker
docker
Avatar
Avatar
Avatar
2
feb 25
12122
Odoo 18 docker image ? Risolto
docker
Avatar
Avatar
Avatar
2
nov 24
46926
Odoo Community connection to Postgres DB Issues
database connection docker community odoo16
Avatar
Avatar
1
ago 23
10997
docker odoo build custom module
docker
Avatar
Avatar
1
gen 23
8802
local installation Risolto
database odoo
Avatar
Avatar
1
ott 24
8360
Community
  • Tutorial
  • Documentazione
  • Forum
Open source
  • Scarica
  • Github
  • Runbot
  • Traduzioni
Servizi
  • Hosting Odoo.sh
  • Supporto
  • Aggiornamenti
  • Sviluppi personalizzati
  • Formazione
  • Trova un contabile
  • Trova un partner
  • Diventa nostro partner
Chi siamo
  • La nostra azienda
  • Branding
  • Contattaci
  • Lavora con noi
  • Eventi
  • Podcast
  • Blog
  • Clienti
  • Note legali • Privacy
  • Sicurezza
الْعَرَبيّة 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 è un gestionale di applicazioni aziendali open source pensato per coprire tutte le esigenze della tua azienda: CRM, Vendite, E-commerce, Magazzino, Produzione, Fatturazione elettronica, Project Management e molto altro.

Il punto di forza di Odoo è quello di offrire un ecosistema unico di app facili da usare, intuitive e completamente integrate tra loro.

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