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

Internal server error

Subscribe

Get notified when there's activity on this post

This question has been flagged
5 Replies
3280 Views
Avatar
lipman

Hello odoo friends, I have a problem deploying a test in odoo。

The version of odoo  is 17.

This is the error in log.


Running as user 'root' is a security risk.2024-01-03 16:28:37,712 32414 INFO ? odoo: Odoo version 17.0+e-20231224 2024-01-03 16:28:37,712 32414 INFO ? odoo: addons paths: ['/usr/lib/python3/dist-packages/odoo/addons', '/root/.local/share/Odoo/addons/17.0'] 2024-01-03 16:28:37,713 32414 INFO ? odoo: database: default@default:default 2024-01-03 16:28:38,321 32414 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at /usr/bin/wkhtmltopdf Exception in thread odoo.service.httpd:Traceback (most recent call last): File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/usr/lib/python3.10/threading.py", line 953, in run2024-01-03 16:28:39,737 32414 INFO ? odoo.sql_db: Connection to the database failed Exception in thread odoo.service.cron.cron0:Traceback (most recent call last): self._target(*self._args, **self._kwargs) File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 505, in http_thread File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.httpd = ThreadedWSGIServerReloadable(self.interface, self.port, self.app) File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 170, in __init__ self.run() File "/usr/lib/python3.10/threading.py", line 953, in run super(ThreadedWSGIServerReloadable, self).__init__(host, port, app, File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 688, in __init__ self._target(*self._args, **self._kwargs) File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 497, in target super().__init__(server_address, handler) # type: ignore File "/usr/lib/python3.10/socketserver.py", line 452, in __init__2024-01-03 16:28:39,748 32414 INFO ? odoo.sql_db: Connection to the database failed Exception in thread odoo.service.cron.cron1:Traceback (most recent call last): File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.server_bind() File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 186, in server_bind self.run() File "/usr/lib/python3.10/threading.py", line 953, in run super(ThreadedWSGIServerReloadable, self).server_bind() self.cron_thread(i) File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 455, in cron_thread File "/usr/lib/python3.10/http/server.py", line 137, in server_bind socketserver.TCPServer.server_bind(self) File "/usr/lib/python3.10/socketserver.py", line 466, in server_bind with conn.cursor() as cr: File "/usr/lib/python3/dist-packages/odoo/sql_db.py", line 752, in cursor self._target(*self._args, **self._kwargs) File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 497, in target self.socket.bind(self.server_address)OSError: [Errno 98] Address already in use return Cursor(self.__pool, self.__dbname, self.__dsn) File "/usr/lib/python3/dist-packages/odoo/sql_db.py", line 267, in __init__ self.cron_thread(i) File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 455, in cron_thread with conn.cursor() as cr: File "/usr/lib/python3/dist-packages/odoo/sql_db.py", line 752, in cursor self._cnx = pool.borrow(dsn) File "", line 2, in borrow return Cursor(self.__pool, self.__dbname, self.__dsn) File "/usr/lib/python3/dist-packages/odoo/sql_db.py", line 267, in __init__ self._cnx = pool.borrow(dsn) File "", line 2, in borrow File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 87, in locked return func(inst, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/sql_db.py", line 681, in borrow File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 87, in locked result = psycopg2.connect( File "/usr/lib/python3/dist-packages/psycopg2/__init__.py", line 122, in connect return func(inst, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/sql_db.py", line 681, in borrow conn = _connect(dsn, connection_factory=connection_factory, **kwasync)psycopg2.OperationalError: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL: role "root" does not exist result = psycopg2.connect( File "/usr/lib/python3/dist-packages/psycopg2/__init__.py", line 122, in connect conn = _connect(dsn, connection_factory=connection_factory, **kwasync)psycopg2.OperationalError: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL: role "root" does not exist

0
Avatar
Discard
Avatar
Mily Shajan
Best Answer

Hi 

Check this forum 


Regards

0
Avatar
Discard
Avatar
avbnet
Best Answer

Ensure Odoo runs as a non-root user, fix the PostgreSQL role, resolve port conflicts, and restart services.

0
Avatar
Discard
Avatar
koeppa2
Best Answer

What are some common causes and solutions for this error?

0
Avatar
Discard
Avatar
Niyas Raphy (Walnut Software Solutions)
Best Answer

Hi,
Create a postgres user and set the credentials inside the odoo configuration file:  How To Create Database User For Odoo Instance

Thanks

0
Avatar
Discard
Avatar
lipman
Author Best Answer

thank you ,i will try it ...

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