Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

Odoo not working - no CSS on login page and blank screen post-login

Subscriure's

Get notified when there's activity on this post

This question has been flagged
developmentconfigurationsetupdebug
2338 Vistes
Avatar
Boujjou Achraf

I cloned a project from GitLab that uses Docker to set up multiple services, including Odoo 16, PostgreSQL, a FastAPI backend, and a Next.js frontend.


The project works perfectly on my colleague's machine, but on my setup (macOS), and on another colleague's machine, we are facing the same issue:


The containers start successfully, and I can configure the database connection without any issues. However, when I try to access Odoo at http://localhost:8069/, I encounter the following problem:


- The login page loads without CSS.

- After entering valid credentials, I'am redirected to http://localhost:8069/web, but the page is completely blank.


What I Tried:


I attempted several fixes, but none resolved the issue:


1- Regenerating Odoo assets:


```

docker exec -it odoo bash

odoo --update=all --stop-after-init

docker-compose restart odoo

```


2- Checking permissions for mounted volumes:


```

sudo chmod -R 777 odoo_data

sudo chmod -R 777 odoo_source

sudo chmod -R 777 odoo_custom_addons

```

3- Clearing browser cache and trying in incognito mode.

4- Verifying Docker logs for errors (nothing unusual found).


docker-compose.yml (Relevant parts):


```

services:

postgres_db:

image: postgres:15

container_name: postgres_db

environment:

POSTGRES_USER: postgres

POSTGRES_PASSWORD: password

POSTGRES_DB: xiptelecom

volumes:

- postgres_data:/var/lib/postgresql/data

- ./init_postgres_odoo.sql:/docker-entrypoint-initdb.d/init_postgres_odoo.sql

ports:

- "5432:5432"


pgadmin:

image: dpage/pgadmin4

container_name: pgadmin4_container

restart: always

ports:

- "5050:80"

environment:

PGADMIN_DEFAULT_EMAIL: admin@admin.com

PGADMIN_DEFAULT_PASSWORD: admin

volumes:

- pgadmin_data:/var/lib/pgadmin


backend:

build:

context: ./Backend

container_name: backend

command: uvicorn main:app --host 0.0.0.0 --port 8080 --reload

volumes:

- ./Backend:/app

ports:

- "8080:8080"

depends_on:

- postgres_db


frontend:

build:

context: ./Frontend

container_name: frontend

command: "npm run dev"

volumes:

- ./Frontend:/app

ports:

- "3000:3000"

depends_on:

- backend


odoo:

image: odoo:16

container_name: odoo

depends_on:

- postgres_db

ports:

- "8069:8069"

environment:

HOST: postgres_db

USER: odoo_user # utilisateur postgres sql

PASSWORD: odoo_password # mot de passe postgres sql

DATABASE: odoo # nom de la bdd pour Odoo

MASTER_PASSWORD: admin

volumes:

- odoo_data:/var/lib/odoo

- ./odoo_source:/mnt/odoo_source # monte le dossier local

- ./odoo.conf:/etc/odoo/odoo.conf # Ajout de la configuration locale

- ./odoo_custom_addons:/mnt/extra-addons # répertoire local pour les modules Odoo personnalisés



volumes:

postgres_data:

pgadmin_data:

odoo_data:


```


odoo.conf:


```

[options]

; Infos de connexion à la bdd

db_host = postgres_db

db_port = 5432

db_user = odoo_user

db_password = odoo_password

db_name = odoo


; Configuration des modules

addons_path = /mnt/odoo_source/addons,/mnt/extra-addons


; Autres paramètres

data_dir = /var/lib/odoo

admin_passwd = $pbkdf2-sha512$600000$DAEAQKjV2jsHYKwVIoQwpg$ScuSHwYyRuGfJqbi65UUajG/kN7E5DxptFq1S.hwATMA7o/Mfx7M2dftb4VLDYmR5T1SVgCRaAcd8iHZCJ2QKQ

xmlrpc_port = 8069

longpolling_port = 8072

logfile = /var/log/odoo/odoo.log


```



Here is a well-structured post you can use for Stack Overflow:


Title:

Odoo 16 in Docker: Blank Page After Login on http://localhost:8069/web


Description:

I am running an Odoo 16 instance using Docker on macOS. My docker-compose.yml file sets up several services, including PostgreSQL, pgAdmin, a FastAPI backend, a Next.js frontend, and Odoo.


The containers start successfully, and I can configure the database connection without any issues. However, when I try to access Odoo at http://localhost:8069/, I encounter the following problem:


The login page loads without CSS.

After entering valid credentials, I am redirected to http://localhost:8069/web, but the page is completely blank.

What I Tried:

I attempted several fixes, but none resolved the issue:


Regenerating Odoo assets:


bash

Copy

Edit

docker exec -it odoo bash

odoo --update=all --stop-after-init

docker-compose restart odoo

Checking permissions for mounted volumes:


bash

Copy

Edit

sudo chmod -R 777 odoo_data

sudo chmod -R 777 odoo_source

sudo chmod -R 777 odoo_custom_addons

Clearing browser cache and trying in incognito mode.


Verifying Docker logs for errors (nothing unusual found).


docker-compose.yml (Relevant parts):

yaml

Copy

Edit

services:

odoo:

image: odoo:16

container_name: odoo

depends_on:

- postgres_db

ports:

- "8069:8069"

environment:

HOST: postgres_db

USER: odoo_user

PASSWORD: odoo_password

DATABASE: odoo

MASTER_PASSWORD: admin

volumes:

- odoo_data:/var/lib/odoo

- ./odoo_source:/mnt/odoo_source

- ./odoo.conf:/etc/odoo/odoo.conf

- ./odoo_custom_addons:/mnt/extra-addons

odoo.conf:

ini

Copy

Edit

[options]

db_host = postgres_db

db_port = 5432

db_user = odoo_user

db_password = odoo_password

db_name = odoo


addons_path = /mnt/odoo_source/addons,/mnt/extra-addons


data_dir = /var/lib/odoo

admin_passwd = $pbkdf2-sha512$600000$DAEAQKjV2jsHYKwVIoQwpg$ScuSHwYyRuGfJqbi65UUajG/kN7E5DxptFq1S.hwATMA7o/Mfx7M2dftb4VLDYmR5T1SVgCRaAcd8iHZCJ2QKQ

xmlrpc_port = 8069

longpolling_port = 8072

logfile = /var/log/odoo/odoo.log

Logs & Errors:

No critical errors appear in the logs. The Odoo service starts without issues, and I can even configure the database.


Questions:


1. Why is the login page missing CSS?

2. Why do I get a blank page after login (http://localhost:8069/web)?

3. How can I debug and resolve this issue?


Any insights or troubleshooting steps would be greatly appreciated!


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

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

Registrar-se
Related Posts Respostes Vistes Activitat
Error while importing module.
development configuration setup system debug
Avatar
Avatar
Avatar
2
d’oct. 25
2987
Nix0s Self-hosted: Permission denied to create database
webclient development configuration setup debug
Avatar
0
de maig 25
1849
[Aide] Modules custom non détectés ou non exécutés sur Odoo 18 (Windows)
development configuration debug
Avatar
Avatar
1
d’oct. 25
975
My Custom Module don't show in apps list after update.
development configuration debug
Avatar
Avatar
Avatar
2
d’ag. 25
1733
Creating a field in res.user is throwing internal server error
development configuration debug
Avatar
Avatar
Avatar
2
de juny 25
1692
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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