コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
10815 ビュー

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


アバター
破棄
最善の回答

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.


アバター
破棄

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

著作者 最善の回答

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


アバター
破棄

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

関連投稿 返信 ビュー 活動
4
12月 23
45946
1
1月 23
3655
1
3月 24
6481
1
2月 21
2786
0
12月 20
4712