Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Sociale media-marketing
    • E-mailmarketing
    • Sms-marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

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

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

"Page is not working" on localhost:8069

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
bugdockerDockerBug
2 Antwoorden
18694 Weergaven
Avatar
Dennis Wulfert

Github Issue to this: https://github.com/odoo/docker/issues/380

My Repo:https://github.com/Stakdek/docker-odoo


I have a naked PSQL and Odoo Docker with docker-compose configured.
After I started the docker Odoo wants to serve on cece3aa227a5:8069, so localhost:8069 is also not working…

Response from Chrome: Page is not working.

System: Ubuntu 20.04 LTS

Command: docker-compose up

docker-compose.yml:

version: '2.0'
services:
  # Information needed set up an odoo web
  # application container.
  web:
    image: odoo:14.0
    container_name: odoo_14
    depends_on:
    - db
    # Port Mapping
    #We need to map the port on the host machine(left side) to the
    #Port inside the container on the right. By default Odoo
    #Runs on port 8069 and inside the container, it is running on 8069.
    #Locally we are going to access it via localhost:9000
    ports:
    - 8069:8069
    # Data Volumes
    # --------
    #
    # This defines files that we are sharing from the host machine
    # into the container.
    #
    #Here we are using to map the extra add ons or enterprise addons
    # as well as the configuration file. Also, we need to map the data
    #directory where Odoo will storesome attachments etc.
    volumes:
    - ./data/odoo:/var/lib/odoo
    - ./config:/etc/odoo
    - ./addons:/mnt/addons
    - ./enterprise:/mnt/enterprise
    #Username and password of the Host DB
    # Make sure to give the same credentials
    #inside the postgres service
    environment:
    - HOST=db
    - USER=odoo14
    - PASSWORD=odoo14
   # All of the information needed to start up a Postgresql
# Container.
  db:
    image: postgres:10
    container_name: postgres_10
    ports:
    - 5432:5432
    #Add this volume to map the Postgres data. It may be lost
    #if we execute docker-compose down where all the data
    #in the layered file system will be lost
    volumes:
    - ./data/postgres:/var/lib/postgresql/data
    #make sure to use the same which were given above.
    environment:
    - POSTGRES_PASSWORD=odoo14
    - POSTGRES_USER=odoo14
    - POSTGRES_DB=postgres

Docker Output:

docker-compose up
Starting postgres_10 ... done
Recreating odoo_14   ... done
Attaching to postgres_10, odoo_14
postgres_10 | 
postgres_10 | PostgreSQL Database directory appears to contain a database; Skipping initialization
postgres_10 | 
postgres_10 | 2021-07-23 11:20:41.534 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
postgres_10 | 2021-07-23 11:20:41.534 UTC [1] LOG:  listening on IPv6 address "::", port 5432
postgres_10 | 2021-07-23 11:20:41.545 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_10 | 2021-07-23 11:20:41.585 UTC [26] LOG:  database system was shut down at 2021-07-23 11:20:38 UTC
postgres_10 | 2021-07-23 11:20:41.595 UTC [1] LOG:  database system is ready to accept connections
odoo_14 | 2021-07-23 11:20:42,480 1 INFO ? odoo: Odoo version 14.0-20210720 
odoo_14 | 2021-07-23 11:20:42,480 1 INFO ? odoo: Using configuration file at /etc/odoo/odoo.conf 
odoo_14 | 2021-07-23 11:20:42,480 1 INFO ? odoo: addons paths: ['/usr/lib/python3/dist-packages/odoo/addons', '/mnt/extra-addons', '/mnt/enterprise'] 
odoo_14 | 2021-07-23 11:20:42,481 1 INFO ? odoo: database: odoo14@db:5432 
odoo_14 | 2021-07-23 11:20:42,622 1 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at /usr/local/bin/wkhtmltopdf 
odoo_14 | 2021-07-23 11:20:42,707 1 INFO ? odoo.service.server: HTTP service (werkzeug) running on cece3aa227a5:8069 

0
Avatar
Annuleer
Avatar
Keith Irwin
Beste antwoord

I had this exact problem and what fixed it for me was to run:

$ sudo chown 101 data/

On the host machine, if data/ is the directory being mounted to /var/lib/odoo in the container. 

What seems to be the problem is that odoo expects this directory to be owned by the "odoo" user inside the container, which has UID 101.  But if the directory doesn't exist, it's created with the docker image, but it gets created by root and is owned by root.  

1
Avatar
Annuleer
Steven Bouillon

This is definitely the answer. Had this problem as well when I first ran odoo in docker. Alternatively you can use volumes instead of bind mounts to avoid this issue.

salah

That's right

Avatar
Mat
Beste antwoord

Hi, please check this answer:
https://www.odoo.com/forum/help-1/odoo-installed-and-running-on-0-0-0-0-8069-but-not-in-browser-waiting-for-answer-112630
Additionally You can add these lines to config file

xmlrpc_interface = 127.0.0.1
http_interface = 127.0.0.1 http_port = 8069
1
Avatar
Annuleer
Dennis Wulfert
Auteur

No difference with the additional lines. Except the Log says now:

odoo_14 | 2021-07-30 12:47:09,707 1 INFO ? odoo.service.server: HTTP service (werkzeug) running on localhost:8069

Dennis Wulfert
Auteur

Also my firewall is completely down. So no firewall problem… but thank you for the suggestion!

Dennis Wulfert
Auteur

After trying to connect to the address, this message docker is logging:

odoo_14 | 2021-07-30 12:48:27,033 1 INFO ? odoo.http: HTTP Configuring static files

Dennis Wulfert
Auteur

A curl from INSIDE the docker:

odoo@9e5d9f74237d:/$ curl http://localhost:8069

curl: (52) Empty reply from server

Mat

Ok, now i see next probably helpfull answer: https://www.odoo.com/forum/help-1/installing-odoo-11-enterprise-on-ubuntu-16-4-running-on-opensvc-129095

it considers topic of curl: (52) Empty reply from server

Dennis Wulfert
Auteur

odoo@c1dd7a200ceb:/$ ls -lisah /var/lib/

total 52K

21763683 4.0K drwxr-xr-x 1 root root 4.0K Jul 28 23:29 .

21243975 4.0K drwxr-xr-x 1 root root 4.0K Jul 21 00:00 ..

17177596 4.0K drwxr-xr-x 2 root root 4.0K Jul 23 13:19 odoo

It could be a permission error… How can I tell docker-compose to change the permission? In the container is no sudo, so i cannot change the permission after starting the container

Dennis Wulfert
Auteur

if I do "sudo chown -R 1000:1000 ./data/odoo" it works inside the container. But not from host… My firewall is down and TCP listener prints that the container is listening on localhost:8069…

Dennis Wulfert
Auteur

Output of docker port tools:

docker ps

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

2ba5aabdf13a odoo:14 "/entrypoint.sh odoo" 19 minutes ago Up 19 minutes 0.0.0.0:8069->8069/tcp, 8071-8072/tcp odoo_14

2e5f033917aa postgres:12 "docker-entrypoint.s…" 19 minutes ago Up 19 minutes 0.0.0.0:5432->5432/tcp postgres_12

wulfert@lnb013:~/odooProjects/Template/docker/odoo14$ docker port odoo_14

8069/tcp -> 0.0.0.0:8069

wulfert@lnb013:~/odooProjects/Template/docker/odoo14$ docker port odoo_14 8069/tcp

0.0.0.0:8069

Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
What http server is used in official docker image?
http_server docker Docker
Avatar
Avatar
1
mei 24
2351
Odoo docker error creating log file. Opgelost
odoo docker Docker
Avatar
Avatar
Avatar
2
okt. 23
7439
How to work with docker-image? Opgelost
documentation docker Docker
Avatar
Avatar
1
mrt. 25
10105
500 Internal Server Error after uninstalling the website module
docker Docker v15
Avatar
0
mei 22
3019
odoo docker-compose exited with code 1 Opgelost
installation docker Docker
Avatar
Avatar
Avatar
3
sep. 21
8713
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 is een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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