Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

"Page is not working" on localhost:8069

Subscribe

Get notified when there's activity on this post

This question has been flagged
bugdockerDockerBug
2 Replies
18660 Views
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
Discard
Avatar
Keith Irwin
Best Answer

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
Discard
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
Best Answer

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
Discard
Dennis Wulfert
Author

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
Author

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

Dennis Wulfert
Author

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
Author

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
Author

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
Author

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
Author

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

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

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

Sign up
Related Posts Replies Views Activity
What http server is used in official docker image?
http_server docker Docker
Avatar
Avatar
1
May 24
2343
Odoo docker error creating log file. Solved
odoo docker Docker
Avatar
Avatar
Avatar
2
Oct 23
7423
How to work with docker-image? Solved
documentation docker Docker
Avatar
Avatar
1
Mar 25
10073
500 Internal Server Error after uninstalling the website module
docker Docker v15
Avatar
0
May 22
3012
odoo docker-compose exited with code 1 Solved
installation docker Docker
Avatar
Avatar
Avatar
3
Sep 21
8703
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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