Ir al contenido
Odoo Menú
  • Inicia sesión
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • PdV para tiendas
    • PdV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en vivo
    • eLearning
    Cadena de suministro
    • Inventario
    • Manufactura
    • PLM
    • Compras
    • Mantenimiento
    • Calidad
    Recursos humanos
    • Empleados
    • Reclutamiento
    • Vacaciones
    • Evaluaciones
    • Referencias
    • Flotilla
    Marketing
    • Redes sociales
    • Marketing por correo
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyectos
    • Registro de horas
    • Servicio externo
    • Soporte al cliente
    • Planeación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Artículos
    • WhatsApp
    Aplicaciones externas Studio de Odoo Plataforma de Odoo en la nube
  • Industrias
    Venta minorista
    • Librería
    • Tienda de ropa
    • Mueblería
    • Tienda de abarrotes
    • Ferretería
    • Juguetería
    Alimentos y hospitalidad
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidora de bebidas
    • Hotel
    Bienes inmuebles
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión de propiedades
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Firma contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Manufactura
    • Textil
    • Metal
    • Muebles
    • Comida
    • Cervecería
    • Regalos corporativos
    Salud y ejercicio
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Trades
    • Personal de mantenimiento
    • Hardware y soporte de TI
    • Sistemas de energía solar
    • Zapateros y fabricantes de calzado
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin fines de lucro
    • Agencia para la protección del medio ambiente
    • Alquiler de anuncios publicitarios
    • Fotografía
    • Alquiler de bicicletas
    • Distribuidor de software
    Descubre todas las industrias
  • Odoo Community
    Aprende
    • Tutoriales
    • Documentación
    • Certificaciones
    • Capacitación
    • Blog
    • Podcast
    Fortalece la educación
    • Programa educativo
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtén el software
    • Descargar
    • Compara ediciones
    • Versiones
    Colabora
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Conviértete en partner
    • Servicios para partners
    • Registra tu firma contable
    Obtén servicios
    • Encuentra un partner
    • Encuentra un contador
    • Contacta a un consultor
    • Servicios de implementación
    • Referencias de clientes
    • Soporte
    • Actualizaciones
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicita una demostración
  • Precios
  • Ayuda
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

Using a managed PostgreSQL instance with Odoo

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
configuration
2 Respuestas
3515 Vistas
Avatar
Horacio Gonzalez

Hello,

I am trying to deploy Odoo in Clever Cloud, an European cloud provider.
Clever Cloud has a managed PostgreSQL service, where you get a PG instance. In order to connect to it, they give you the host, port, user password and database name. I have owner right on that database, but no right to create or connect any other database on the host. And that's the part is blocking me to deploy Odoo on it, it seems that Odoo needs to have connect access to a database named 'postgres' in the database host.

That's my config file:

[options]

db_host = bixdjXXXXXXXXXXX-postgresql.services.clever-cloud.com

db_port = 50013

db_user = u7mtpoXXXXXXXXXX

db_password = ******************

db_name = bixdjXXXXXXXXXXX

dbfilter = bixdjXXXXXXXXXXX

database = bixdjXXXXXXXXXXX

addons-path=addons


I have tried with db_name only, database only and both, same result.

I have tried also passing the --database option to the command line, but I always find the same error :


2025-08-27T11:28:05.202Z: psycopg2.OperationalError: connection to server at "bixdjXXXXXXXXXXX-postgresql.services.clever-cloud.com" (xx.xx.xx.xx), port 50013 failed: FATAL:  permission denied for database "postgres"
2025-08-27T11:28:05.202Z: DETAIL:  User does not have CONNECT privilege



What am I doing wrong?

0
Avatar
Descartar
Dawid Gacek

Hmm, configuration seems valid for me.
Could you try passing the `--no-database-list` parameter when starting Odoo?

Horacio Gonzalez
Autor

That's my current command line `python3 odoo-bin -c ./clevercloud/odoo.conf --no-database-list --database=bixdjXXXXXXXXXXX`

Horacio Gonzalez
Autor

Tried also @Dawid Gacek solution, didn't work:

2025-08-27T14:01:40.764Z: Running `python3 odoo-bin -c ./clevercloud/odoo.conf --no-database-list -i base --db-filter=bixdj7mlnllvfru6thv0 --database=bixdj7mlnllvfru6thv0` instead of WSGI
2025-08-27T14:01:42.674Z: 2025-08-27 14:01:42,674 2790 INFO ? odoo: Odoo version 18.0
2025-08-27T14:01:42.675Z: 2025-08-27 14:01:42,675 2790 INFO ? odoo: Using configuration file at /home/bas/app_b51005d8-da63-40b8-992a-a38672136334/clevercloud/odoo.conf
2025-08-27T14:01:42.675Z: 2025-08-27 14:01:42,675 2790 INFO ? odoo: addons paths: ['/home/bas/app_b51005d8-da63-40b8-992a-a38672136334/odoo/addons', '/home/bas/.local/share/Odoo/addons/18.0', '/home/bas/app_b51005d8-da63-40b8-992a-a38672136334/addons']
2025-08-27T14:01:42.675Z: 2025-08-27 14:01:42,675 2790 INFO ? odoo: database: u7mtpoena6btco6u92hw@bixdj7mlnllvfru6thv0-postgresql.services.clever-cloud.com:50013
2025-08-27T14:01:42.713Z: 2025-08-27 14:01:42,712 2790 INFO ? odoo.sql_db: Connection to the database failed

Horacio Gonzalez
Autor

But I already have the name in db_name, as shown in my config file.
I have looked ad your config file example, and I don't see any differences with mine. And it still insists to connect to 'postgres'.

Same thing if I try to force the database name in the commande line with -d or --database.

And in the code, I see lots of references to db_connect('postgres') that seems to indicate that it connects to the db called 'postgres'. 


Dawid Gacek

No idea what happen, but I am pretty sure your comment "But I already have the name in db_name, as [...]" was to previous answer, and now I see it below my comment.

Let me know, if dbfilter​ -> db-filter in your config help.


Best Regards,

Dawid Gacek

Horacio Gonzalez
Autor

Yes, I have tried both --db-filter in command line and in config file, and db_filter too in config file :(

Dawid Gacek

Here was the comment about db-filter​. The name of parameter is good, my bad.

Dawid Gacek

Well, then I don't know, probably during testing locally I made some stupid mistake with reproduction. Could be that it is intended, Odoo always connects to `postgres` here:
https://github.com/odoo/odoo/blob/18.0/odoo/service/db.py#L132

Best Regards,
Dawid

Horacio Gonzalez
Autor

Yersterday's evening I spent some time looking at the code and I tend to agree, it seems Odoo connects specifically to 'postgres' database regardless of configuration :(

Avatar
Rani Tathod
Mejor respuesta

It seems you're encountering a common issue with Odoo's database connection requirements.



  Ensure that the user has the necessary privileges to connect to the 'postgres' database, as Odoo typically checks this during startup.

  If modifying privileges is not possible, consider setting up a local PostgreSQL instance where you have full control, and then migrate your data to Clever Cloud once configured.

  Alternatively, consult Clever Cloud's support for a workaround or additional permissions needed for Odoo's requirements.


If you’d like to explore this further for your use case, you’re welcome to connect with us at Pragmatic Techsoft.

0
Avatar
Descartar
Avatar
Transition Technologies
Mejor respuesta

This error is coming directly from PostgreSQL permissions.

FATAL:  permission denied for database "postgres"

DETAIL:  User does not have CONNECT privilege


Why it happens:

On most managed providers (like Clever Cloud, Heroku, etc.), the default postgres database is reserved for internal use.


Your database user has no CONNECT privilege to it, so if your app tries to connect to postgres, PostgreSQL will block it.


Fix

You need to make sure your application connects to the right database name, not the system one.


Check the credentials provided by Clever Cloud:

Host (server address)

Port (like 50013)

Database name (often a random string, not postgres)

Username

Password


Update your connection string / DATABASE_URL in your app to use that actual database name. For example: postgresql://USERNAME:PASSWORD@HOST:PORT/DATABASENAME


Replace DATABASENAME with the one given in your Clever Cloud dashboard (not postgres).


If you really need to use another database, you’d have to grant CONNECT manually:

GRANT CONNECT ON DATABASE mydb TO myuser;

…but on hosted services, you usually can’t grant privileges on postgres. That’s why you must connect to your assigned database instead.


If your correct database name is bixdjXXXXXXXXXXX

But from the error message, your Odoo is trying to connect to the postgres database, which your user doesn’t have rights for.


>>Correct Odoo configuration

Update your odoo.conf so it uses the right database name:


[options]

db_host = bixdjXXXXXXXXXXX-postgresql.services.clever-cloud.com

db_port = 50013

db_user = u7mtpoXXXXXXXXXX

db_password = ******************

db_name = bixdjXXXXXXXXXXX

dbfilter = bixdjXXXXXXXXXXX

addons-path = addons


>>Important Notes for Odoo


db_name must be your actual Clever Cloud DB name (bixdjXXXXXXXXXXX), not postgres.


dbfilter = bixdjXXXXXXXXXXX is fine if you want Odoo to only work with this single DB.


If db_name is missing or wrong, Odoo will try to connect to postgres by default → causing the permission denied error you saw.


After fixing, restart your Odoo service. It should now connect to your Clever Cloud PostgreSQL database without hitting the postgres DB.



0
Avatar
Descartar
¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Registrarse
Publicaciones relacionadas Respuestas Vistas Actividad
Subject: Error While Importing Custom Module pos_receipt_extend – "Module not installable"
configuration
Avatar
1
abr 26
436
how i contact fom argentina latam airline to spain?
configuration
Avatar
0
abr 26
6
product image to fit the box (cover in contain)!!
configuration
Avatar
0
abr 26
5
Bank Deposits?
configuration
Avatar
0
abr 26
5
I cannot connect the cash drawer to my printer Epson TM-M30 III.
configuration
Avatar
Avatar
2
abr 26
632
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento en Odoo.sh
  • Soporte
  • Actualizaciones del software
  • Desarrollos personalizados
  • Educación
  • Encuentra un contador
  • Encuentra un partner
  • Conviértete en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contáctanos
  • Empleos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidad
  • Seguridad
الْعَرَبيّة 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 es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y estar totalmente integrado.

Sitio web hecho con

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