Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Social media Marketing
    • E-mailmarketing
    • SMS Marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

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

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

Setting up development environment

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
3 Antwoorden
302 Weergaven
Avatar
Lincoln Eddy

I'm setting up a development environment on Windows 10. I have installed GIT, PyCharm and PostgreSQL.

When I run Odoo and attempt to create the database I get this error ...

psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: FATAL:  collations with different collate and ctype values are not supported on this platform


 

0
Avatar
Annuleer
Codesphere Tech

Can you share the screenshot of this error and values of the database you entered.?

Lincoln Eddy
Auteur

Here is the command to run odoo, followed by the log ...

(.venv) PS C:\Users\linco\Development\odoo> python odoo-bin -r odoo -w odoo --addons-path=C:\Users\linco\Development\odoo\addons -d odoo -i base
2025-11-27 08:17:33,876 7648 WARNING ? odoo.tools.config: missing --http-interface/http_interface, using 0.0.0.0 by default, will change to 127.0.0.1 in 20.0
2025-11-27 08:17:33,877 7648 INFO ? odoo: Odoo version 19.0
2025-11-27 08:17:33,877 7648 INFO ? odoo: Using configuration file at c:\users\linco\development\odoo\odoo.conf
2025-11-27 08:17:33,877 7648 INFO ? odoo: addons paths: _NamespacePath(['C:\\Users\\linco\\Development\\odoo\\odoo\\addons', 'C:\\Users\\linco\\AppData\\Local\\OpenERP S.A.\\Odoo\\addons\\19.0', 'c:\\users\\linco\\development\\odoo\\addons'])
2025-11-27 08:17:33,877 7648 INFO ? odoo: database: odoo@localhost:5432
2025-11-27 08:17:34,225 7648 INFO ? odoo.sql_db: Connection to the database failed
2025-11-27 08:17:34,225 7648 WARNING ? odoo.service.db: Unable to create PostgreSQL extensions : connection to server at "localhost" (::1), port 5432 failed: FATAL: collations with different collate and ctype values are not supported on this platform

Codesphere Tech

Share the odoo.conf file here or you can match it with my conf
admin_passwd = Your Password
db_host = localhost
db_port = 5432
db_user = odoo
db_password = odoo
addons_path = Your Odoo Addons path
http_port = 1202
bin_path = C:\Program Files\wkhtmltopdf\bin
pg_path= C:\Program Files\PostgreSQL\14\bin

Avatar
Cybrosys Techno Solutions Pvt.Ltd
Beste antwoord

Hi,

This error happens on Windows when PostgreSQL is installed with mismatched collation and ctype settings, something Windows does not support. Odoo needs the database cluster to use the same LC_COLLATE and LC_CTYPE, but your PostgreSQL instance was initialized with different values, so Odoo cannot create or connect to the database. The solution is to reinstall or reinitialize PostgreSQL using matching locales—for example, reinstall PostgreSQL and allow it to use the default Windows locale (English_United States.1252 for both collate and ctype). Alternatively, you can manually drop and recreate the database using matching settings through pgAdmin or SQL: CREATE DATABASE odoo WITH TEMPLATE template0 LC_COLLATE='English_United States.1252' LC_CTYPE='English_United States.1252';. Once PostgreSQL has consistent collation settings, Odoo will connect and create databases normally.

For reference, you can also follow the Odoo Windows installation steps here: https://www.cybrosys.com/blog/how-to-install-odoo-17-in-windows


Hope it helps


0
Avatar
Annuleer
Avatar
Mr. Rana
Beste antwoord
Here, you can set basic conf for odoo.conf

db_host = localhost
db_port = 5432
db_user = postgres
db_password = yourpassword
addons_path = C:\Users\linco\Development\odoo\addons

After that,

Check your python version by :-
​python --version
(Because for Odoo 19.0, python3.12 is suitable)

Activate the Python virtual environment and run below :-
​pip install -r requirements.txt


Then after you can start Odoo by :-
​python odoo-bin -d DB_NAME -i base

0
Avatar
Annuleer
Avatar
Lincoln Eddy
Auteur Beste antwoord

Adding this to the .conf file fixed the issue ... 

db_template = template1
0
Avatar
Annuleer
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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