Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Validations
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Épicerie
    • Quincaillerie
    • Magasin de jouets
    Food & Hospitality
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brewery
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Trades
    • Bricoleur
    • Matériel informatique et support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Browse all Industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenez partenaire
    • Services for Partners
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide

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

  • CRM
  • e-Commerce
  • Comptabilité
  • Inventaire
  • PoS
  • Projet
  • MRP
All apps
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

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

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
developmentconfigurationsetupdebug
2342 Vues
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
Ignorer
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Publications associées Réponses Vues Activité
Error while importing module.
development configuration setup system debug
Avatar
Avatar
Avatar
2
oct. 25
2997
Nix0s Self-hosted: Permission denied to create database
webclient development configuration setup debug
Avatar
0
mai 25
1852
[Aide] Modules custom non détectés ou non exécutés sur Odoo 18 (Windows)
development configuration debug
Avatar
Avatar
1
oct. 25
979
My Custom Module don't show in apps list after update.
development configuration debug
Avatar
Avatar
Avatar
2
août 25
1745
Creating a field in res.user is throwing internal server error
development configuration debug
Avatar
Avatar
Avatar
2
juin 25
1694
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenez partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة 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 est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

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