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

Docker Container user odoo is problematic

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
permissionslinuxvolumeuiddocker
1 Beantwoorden
4116 Weergaven
Avatar
Sebastian swp

Hello to all,

I rollout Odoo 18.0 via Ansible and Docker. If I open the website I get an error:


"Internal Server Error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application."


I looked into the Docker log of the odoo-container and I got this error:

"PermissionError: [Errno 13] Permission denied: '/var/lib/odoo/.local'"


The folder in the container is a Docker volume on the host system (an Ubuntu 22.04).

I identifyed the problem as the different UIDs and GIDs of the container user (named odoo) and the not existing odoo-user on the host. But I can not create the missing odoo-user on the host, because he needs the same UID and GID (Docker use the UID and GID to access the volume from the container). In the container, the UID and the GID of the user odoo is uid=100(odoo) gid=101(odoo) groups=101(odoo). That's awful, because my host Ubuntu used this IDs for system applications. The UID 100 is reserved for _apt and the GID 101 is reserved for systemd-journal. If I set the permissions of volumes on the host to _apt and systemd-journal:

chown -R _apt:systemd-journal /mnt/odoo-daten/addons/

chown -R _apt:systemd-journal /mnt/odoo-daten/config/

chown -R _apt:systemd-journal /mnt/odoo-daten/odoo-web-daten/


Odoo works. But I think this is a dirty solution! First, as far as I am informed, the UID range between 100-999 is dynamically and can be changed.* So, my configuration can be invalid, if a different user ID is available depending on the available user ID in the range at the time of creation. Furthermore, I think to use UIDs and GIDs from other system applications is problematic on a security view, because it invalidate the permissons concept.

With the information I have, I think the container user should be changed.


* h__ps://www.baeldung.___com/linux/user-ids-reserved-values#the-application-users

(remove the underlines, I have not enough Karma points, to post the link of the source of information)

0
Avatar
Annuleer
Avatar
Chris Mann
Beste antwoord

I just encountered this, maybe still of use to you?
In the end the solution was to add to my docker-compose.yml file under the odoo section:

user: "1000:1001"

Where these are the user and group ID from your local machine, that map to the odoo user you created locally.
(Hint get these by using command "id odoo")

1
Avatar
Annuleer
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
Deploying on Kubernetes and permission error on data dir Opgelost
permissions docker kubernetes
Avatar
1
okt. 23
3233
Question about volume in docker-compose
compose volume docker
Avatar
0
sep. 21
2741
Make volume from /usr/lib/python3/dist-packages/odoo
source_code volume docker
Avatar
0
jan. 20
6939
Docker migration Sales module error
sales help linux docker
Avatar
0
mrt. 19
3801
[SOLVED][8.0] Runbot permissions in Docker container
permissions runbot odoo8.0 odoo8 docker
Avatar
Avatar
1
okt. 20
8594
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