Skip to Content
Menu
This question has been flagged
1 Reply
7926 Views

good afternoon,
I have odoo with docker in aws, and I want to be able to create a database from the docker console.
Because I disable the option of database administration for security (odoo.conf - db_list = False), although I have a password to create and delete database I do not wish to see it.

Steps:
Enter the odoo container, use the command: odoo -d newName. but I have errors according to the log. How could I comment?
* how could the admin_passwd parameter, country, language, etc.

use modules to hide the bbdd but they don't work very well as a subdomain. how could i do What do you use?
Thank you,
ERROR: couldn't create the logfile directory. Logging to the standard output.
2019-12-26 21:37:17,420 644 INFO ? odoo: Odoo version 11.0-20190322
2019-12-26 21:37:17,421 644 INFO ? odoo: Using configuration file at /etc/odoo/odoo.conf
2019-12-26 21:37:17,422 644 INFO ? odoo: database: odoo@odoo
Exception in thread odoo.service.httpd:
Traceback (most recent call last):
File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 261, in http_thread
self.httpd = ThreadedWSGIServerReloadable(self.interface, self.port, app)
File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 111, in __init__
handler=RequestHandler)
File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 476, in __init__
HTTPServer.__init__(self, (host, int(port)), handler)
File "/usr/lib/python3.5/socketserver.py", line 440, in __init__
self.server_bind()
File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 121, in server_bind
super(ThreadedWSGIServerReloadable, self).server_bind()
File "/usr/lib/python3.5/http/server.py", line 138, in server_bind
socketserver.TCPServer.server_bind(self)
File "/usr/lib/python3.5/socketserver.py", line 454, in server_bind
self.socket.bind(self.server_address)
OSError: [Errno 98] Address already in use

2019-12-26 21:37:17,478 644 INFO comando odoo.modules.loading: loading 1 modules...
2019-12-26 21:37:17,567 644 INFO comando odoo.addons.base.ir.ir_actions_report: Will use the Wkhtmltopdf binary at /usr/local/bin/wkhtmltopdf
2019-12-26 21:37:17,778 644 INFO comando odoo.modules.registry: module base: creating or updating database tables

2019-12-26 21:38:43,516 644 WARNING ? odoo.addons.base.ir.ir_cron: Skipping database comando because of modules to install/upgrade/remove.
2019-12-26 21:38:44,528 644 WARNING ? odoo.addons.base.ir.ir_cron: Skipping database comando because of modules to install/upgrade/remove.
Avatar
Discard

"[Errno 98] Address already in use" if you are having issue with this, just stop the running service of odoo and then try the same again

Best Answer

Hi,

Start the Odoo Docker container: Make sure you have the Odoo Docker image available on your system. If not, you can pull it from the Docker Hub by running the command: 

docker pull odoo

Once you have the image, start the container using the following command:

docker run -d -p 8069:8069 --name odoo-container odoo

Access the Docker container: To run commands inside the Docker container, you need to access the container's terminal. Use the following command to open a terminal session in the container:

docker exec -it odoo-container bash

Create the database: Once inside the container's terminal, you can use the Odoo command-line interface (odoo-bin) to create a new database. Run the following command:

odoo-bin -c /etc/odoo/odoo.conf -d your_database_name -i base

Regards

Avatar
Discard
Related Posts Replies Views Activity
0
May 25
96
2
Apr 25
2354
1
Feb 25
721
2
Feb 25
1224
2
Jan 25
1339