Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

create database by odoo command line in a docker container.

Subscribe

Get notified when there's activity on this post

This question has been flagged
odoo
1 Reply
9753 Views
Avatar
GiancaFTx

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.
0
Avatar
Discard
Niyas Raphy (Walnut Software Solutions)

"[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

Avatar
Cybrosys Techno Solutions Pvt.Ltd
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

0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
How Odoo Help Businesses??
odoo
Avatar
0
Dec 25
200
Odoo Studio Many2one field not appearing in automations
odoo
Avatar
Avatar
1
Dec 25
366
SOC 1 Report
odoo
Avatar
Avatar
2
Nov 25
452
邮箱无法正常使用
odoo
Avatar
Avatar
1
Nov 25
2375
How do I go about this error? I am trying to uninstall a module
odoo
Avatar
Avatar
1
Nov 25
3641
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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