Passa al contenuto
Odoo Menu
  • Accedi
  • Provalo gratis
  • App
    Finanze
    • Contabilità
    • Fatturazione
    • Note spese
    • Fogli di calcolo (BI)
    • Documenti
    • Firma
    Vendite
    • CRM
    • Vendite
    • Punto vendita Negozio
    • Punto vendita Ristorante
    • Abbonamenti
    • Noleggi
    Siti web
    • Configuratore sito web
    • E-commerce
    • Blog
    • Forum
    • Live chat
    • E-learning
    Supply chain
    • Magazzino
    • Produzione
    • PLM
    • Acquisti
    • Manutenzione
    • Qualità
    Risorse umane
    • Dipendenti
    • Assunzioni
    • Ferie
    • Valutazioni
    • Referral dipendenti
    • Parco veicoli
    Marketing
    • Social marketing
    • E-mail marketing
    • SMS marketing
    • Eventi
    • Marketing automation
    • Sondaggi
    Servizi
    • Progetti
    • Fogli ore
    • Assistenza sul campo
    • Helpdesk
    • Pianificazione
    • Appuntamenti
    Produttività
    • Comunicazioni
    • Approvazioni
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    App di terze parti Odoo Studio Piattaforma cloud Odoo
  • Settori
    Retail
    • Libreria
    • Negozio di abbigliamento
    • Negozio di arredamento
    • Alimentari
    • Ferramenta
    • Negozio di giocattoli
    Cibo e ospitalità
    • Bar e pub
    • Ristorante
    • Fast food
    • Pensione
    • Grossista di bevande
    • Hotel
    Agenzia immobiliare
    • Agenzia immobiliare
    • Studio di architettura
    • Edilizia
    • Gestione immobiliare
    • Impresa di giardinaggio
    • Associazione di proprietari immobiliari
    Consulenza
    • Società di contabilità
    • Partner Odoo
    • Agenzia di marketing
    • Studio legale
    • Selezione del personale
    • Audit e certificazione
    Produzione
    • Tessile
    • Metallo
    • Arredamenti
    • Alimentare
    • Birrificio
    • Ditta di regalistica aziendale
    Benessere e sport
    • Club sportivo
    • Negozio di ottica
    • Centro fitness
    • Centro benessere
    • Farmacia
    • Parrucchiere
    Commercio
    • Tuttofare
    • Hardware e assistenza IT
    • Ditta di installazione di pannelli solari
    • Calzolaio
    • Servizi di pulizia
    • Servizi di climatizzazione
    Altro
    • Organizzazione non profit
    • Ente per la tutela ambientale
    • Agenzia di cartellonistica pubblicitaria
    • Studio fotografico
    • Punto noleggio di biciclette
    • Rivenditore di software
    Carica tutti i settori
  • Community
    Apprendimento
    • Tutorial
    • Documentazione
    • Certificazioni 
    • Formazione
    • Blog
    • Podcast
    Potenzia la tua formazione
    • Programma educativo
    • Scale Up! Business Game
    • Visita Odoo
    Ottieni il software
    • Scarica
    • Versioni a confronto
    • Note di versione
    Collabora
    • Github
    • Forum
    • Eventi
    • Traduzioni
    • Diventa nostro partner
    • Servizi per partner
    • Registra la tua società di contabilità
    Ottieni servizi
    • Trova un partner
    • Trova un contabile
    • Incontra un esperto
    • Servizi di implementazione
    • Testimonianze dei clienti
    • Supporto
    • Aggiornamenti
    GitHub Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Richiedi una demo
  • Prezzi
  • Aiuto

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

  • CRM
  • e-Commerce
  • Contabilità
  • Magazzino
  • PoS
  • Progetti
  • MRP
All apps
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
Assistenza

Enable developer features in a Docker container (--dev all)

Iscriviti

Ricevi una notifica quando c'è un'attività per questo post

La domanda è stata contrassegnata
containerDocker
2 Risposte
11757 Visualizzazioni
Avatar
Douwe Van Loenen

Hi there,

I'm running Odoo 14 via Docker on an Ubuntu server. Everything is working well. However, I'm unable to get the developer features working. I'm able to ssh into the docker container and then enter the command

    $ odoo -c odoo.conf --dev all


Then everything seems to work well until I get the following error (complete log below):

    OSError: [Errno 98] Address already in use

Does anyone have any idea on how to solve this?

Cheers, Douwe


Full terminal output:

odoo@fc989dd14a92:/etc/odoo$ odoo -c odoo.conf --dev all

2020-12-10 08:09:43,262 396 INFO ? odoo: Odoo version 14.0-20201208 

2020-12-10 08:09:43,262 396 INFO ? odoo: Using configuration file at /etc/odoo/odoo.conf 

2020-12-10 08:09:43,263 396 INFO ? odoo: addons paths: ['/usr/lib/python3/dist-packages/odoo/addons', '/var/lib/odoo/.local/share/Odoo/addons/14.0', '/mnt/extra-addons'] 

2020-12-10 08:09:43,263 396 INFO ? odoo: database: odoo@db:5432 

2020-12-10 08:09:43,529 396 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at /usr/local/bin/wkhtmltopdf 

2020-12-10 08:09:43,883 396 INFO ? odoo.service.server: Watching addons folder /usr/lib/python3/dist-packages/odoo/addons 

2020-12-10 08:09:43,884 396 INFO ? odoo.service.server: Watching addons folder /var/lib/odoo/.local/share/Odoo/addons/14.0 

2020-12-10 08:09:43,885 396 INFO ? odoo.service.server: Watching addons folder /mnt/extra-addons 

2020-12-10 08:09:44,241 396 INFO ? odoo.service.server: AutoReload watcher running with watchdog 

Exception in thread odoo.service.httpd:

Traceback (most recent call last):

  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner

    self.run()

  File "/usr/lib/python3.7/threading.py", line 865, in run

    self._target(*self._args, **self._kwargs)

  File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 441, in http_thread

    self.httpd = ThreadedWSGIServerReloadable(self.interface, self.port, app)

  File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 150, in __init__

    handler=RequestHandler)

  File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 577, in __init__

    self.address_family), handler)

  File "/usr/lib/python3.7/socketserver.py", line 452, in __init__

    self.server_bind()

  File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 165, in server_bind

    super(ThreadedWSGIServerReloadable, self).server_bind()

  File "/usr/lib/python3.7/http/server.py", line 137, in server_bind

    socketserver.TCPServer.server_bind(self)

  File "/usr/lib/python3.7/socketserver.py", line 466, in server_bind

    self.socket.bind(self.server_address)

OSError: [Errno 98] Address already in use


0
Avatar
Abbandona
Avatar
Dave LOWPER
Risposta migliore

Hello,
If I understand correctly, you are running odoo in a container, attaching a shell to it and run "odoo .. --dev all" inside the container.
If so, "Address already in use" is quite normal : you are launching a new odoo server inside a container already running odoo (on the same address/port).

I'd suggest (at least during your dev sessions), that you  append "--dev all" in the command line or docker-compose you are using to initailly launch your odoo instance.


3
Avatar
Abbandona
Kilian Melcher

How can you append that in a docker-compose file?

Avatar
Douwe Van Loenen
Autore Risposta migliore

Yes, awesome! That works perfectly. Changed to:

docker run -v /config:/etc/odoo -v /addons:/mnt/extra-addons -p 8069:8069 --name odoo --link db:db -t odoo --dev=all

Also works by adding command: --dev=all to the .yml file 

Cheers, Douwe


3
Avatar
Abbandona
Faris Fathurrahman

hello, can you tell me precisely where did you put the command inside your .yml file?

Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!

Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!

Registrati
Post correlati Risposte Visualizzazioni Attività
how to Install odoo 15 with docker? Risolto
Docker
Avatar
Avatar
Avatar
Avatar
Avatar
4
dic 23
47630
where is the POS Odoo logo located on Odoo installed on Docker? - Odoo 16 Community version
Docker
Avatar
Avatar
1
gen 23
4468
How to setup odoo project using Odoo doodba ?
Docker
Avatar
Avatar
1
mar 24
7654
Docker Odoo
Docker
Avatar
1
feb 21
3419
Odoo on Docker: how to change environment variables
Docker
Avatar
0
dic 20
5744
Community
  • Tutorial
  • Documentazione
  • Forum
Open source
  • Scarica
  • Github
  • Runbot
  • Traduzioni
Servizi
  • Hosting Odoo.sh
  • Supporto
  • Aggiornamenti
  • Sviluppi personalizzati
  • Formazione
  • Trova un contabile
  • Trova un partner
  • Diventa nostro partner
Chi siamo
  • La nostra azienda
  • Branding
  • Contattaci
  • Lavora con noi
  • Eventi
  • Podcast
  • Blog
  • Clienti
  • Note legali • Privacy
  • Sicurezza
الْعَرَبيّة 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 è un gestionale di applicazioni aziendali open source pensato per coprire tutte le esigenze della tua azienda: CRM, Vendite, E-commerce, Magazzino, Produzione, Fatturazione elettronica, Project Management e molto altro.

Il punto di forza di Odoo è quello di offrire un ecosistema unico di app facili da usare, intuitive e completamente integrate tra loro.

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