Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Artificial Intelligence
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Property Management
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

Internal server error

Subscriure's

Get notified when there's activity on this post

This question has been flagged
5 Respostes
3681 Vistes
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
Descartar
Avatar
Mily Shajan
Best Answer

Hi 

Check this forum 


Regards

0
Avatar
Descartar
Avatar
avbnet
Best Answer

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

0
Avatar
Descartar
Avatar
Sunfe, koeppa2
Best Answer

What are some common causes and solutions for this error?

0
Avatar
Descartar
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
Descartar
Avatar
lipman
Autor Best Answer

thank you ,i will try it ...

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

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

Registrar-se
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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