Skip to Content
Odoo Menu
  • Prijavi
  • Try it free
  • Aplikacije
    Finance
    • Knjigovodstvo
    • Obračun
    • Stroški
    • Spreadsheet (BI)
    • Dokumenti
    • Podpisovanje
    Prodaja
    • CRM
    • Prodaja
    • POS Shop
    • POS Restaurant
    • Naročnine
    • Najem
    Spletne strani
    • Website Builder
    • Spletna trgovina
    • Blog
    • Forum
    • Pogovor v živo
    • eUčenje
    Dobavna veriga
    • Zaloga
    • Proizvodnja
    • PLM
    • Nabava
    • Vzdrževanje
    • Kakovost
    Kadri
    • Kadri
    • Kadrovanje
    • Odsotnost
    • Ocenjevanja
    • Priporočila
    • Vozni park
    Marketing
    • Družbeno Trženje
    • Email Marketing
    • SMS Marketing
    • Dogodki
    • Avtomatizacija trženja
    • Ankete
    Storitve
    • Projekt
    • Časovnice
    • Storitve na terenu
    • Služba za pomoč
    • Načrtovanje
    • Termini
    Produktivnost
    • Razprave
    • Odobritve
    • IoT
    • Voip
    • Znanje
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industrije
    Trgovina na drobno
    • Book Store
    • Trgovina z oblačili
    • Trgovina s pohištvom
    • Grocery Store
    • Trgovina s strojno opremo računalnikov
    • Trgovina z igračami
    Food & Hospitality
    • Bar and Pub
    • Restavracija
    • Hitra hrana
    • Guest House
    • Beverage Distributor
    • Hotel
    Nepremičnine
    • Real Estate Agency
    • Arhitekturno podjetje
    • Gradbeništvo
    • Estate Management
    • Vrtnarjenje
    • Združenje lastnikov nepremičnin
    Svetovanje
    • Računovodsko podjetje
    • Odoo Partner
    • Marketinška agencija
    • Law firm
    • Pridobivanje talentov
    • Audit & Certification
    Proizvodnja
    • Tekstil
    • Metal
    • Pohištvo
    • Hrana
    • Brewery
    • Poslovna darila
    Health & Fitness
    • Športni klub
    • Trgovina z očali
    • Fitnes center
    • Wellness Practitioners
    • Lekarna
    • Frizerski salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Sistemi sončne energije
    • Izdelovalec čevljev
    • Čistilne storitve
    • HVAC Services
    Ostali
    • Neprofitna organizacija
    • Agencija za okolje
    • Najem oglasnih panojev
    • Fotografija
    • Najem koles
    • Prodajalec programske opreme
    Browse all Industries
  • Skupnost
    Learn
    • Tutorials
    • Dokumentacija
    • Certifikati
    • Šolanje
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Prenesi
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Dogodki
    • Prevodi
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Sklici kupca
    • Podpora
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Določanje cen
  • Pomoč

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

  • CRM
  • e-Commerce
  • Knjigovodstvo
  • Zaloga
  • PoS
  • Projekt
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
Pomoč

Internal Server "could not connect to server: Connection refused" Error after installing Odoo 9.0c on windows 10 - PostgreSQL not running?

Naroči se

Get notified when there's activity on this post

This question has been flagged
windowspostgresqlodoo-v9
3 Odgovori
46988 Prikazi
Avatar
Mark Egloff

Dear all
After successful installation of Odoo on Windows 10 (All in One Package)  I get an Internal Error 500 on the local odoo site.
Looking at the log file of the odoo server it seems that the server is not able to access the postgresql server

OperationalError: could not connect to server: Connection refused (0x0000274D/10061)    Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432?
I checked the service management console on windows but there has no service "postgresql" os similar running.

My Questions

  • How can I verify if the postgresql server is up and running?

  • How can I start the "postgresql" server ?

  • Should the installer not install the postgresql as a service? if so what is the name of the service and how can I install it manually?

thank you regards
Mark

0
Avatar
Opusti
Avatar
Mark Egloff
Avtor Best Answer

Thank you, I verified and notices that the Odoo (all in One) installes the postgre binary but did not initialized the DB and also did not installed the service "postgre". I don't know if this is a problem of windows 10. May be other users can confirm this?

However I collected several information how to initialize postgresql and how it can be installed as a service from different sites on the internet.

finally I could it get running by following these steps:

1. Open cmd line environment with Administrator privileges

2. got to postgresql isntallation from odoo e.g.: cd "C:\Program Files (x86)\Odoo 9.0-20161005\PostgreSQL\bin"

3. initialize the postgresql server with the credentials you have entered during the odoo installer

initdb.exe --locale=German_Germany -E UTF-8 -U openpg -W "C:\Program Files (x86)\Odoo 9.0-20161005\PostgreSQL\data"

Remarks: please make sure that the data directory is empty. please use your "locale" according your platform. the -U is the option to create a superuser with that name while -W will prompt you for the password for this new user.

4. register the "postgres" service: pg_ctl.exe register -N postgres -D "c:\Program Files (x86)\Odoo 9.0-20161005\PostgreSQL\data"

5. start the service in the windows mgmt console

6. after that you should be able to access the odoo page and start with the DB installation

Hope this helps



1
Avatar
Opusti
Avatar
Jaime Vasquez
Best Answer

Hi,
Odoo in Windows with the all in one package installs postgresql inside the openerp folder :

C:\Program Files\OpenERP 7.0-20150312\PostgreSQL

This is an old winxp installation of openerp.  Maybe for odoo and recent version of windows are the same.

To check for Postgresql service, in cmd run
net start | findstr "Postgre"

Or  Start -> Run ->  services.msc
Look for Posgresql_For_Openerp  or something similar

To access the postgresql server you have to modify the pg_hba.conf file.  This file resides in the data dir of the posgresql folder.  (C:\Program Files\OpenERP 7.0-20150312\PostgreSQL\data)

At the end of the file add something like this:

host all openerp all  md5     (or the name of the user you created when the installer asked for one)
host all odoo all md5


HTH.


0
Avatar
Opusti
Jaime Vasquez

see https://www.postgresql.org/docs/9.1/static/auth-pg-hba-conf.html

for details.

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

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

Prijavi
Related Posts Odgovori Prikazi Aktivnost
Postgresql installation on windows Solved
windows postgresql
Avatar
Avatar
Avatar
Avatar
Avatar
5
feb. 24
39513
Where can I get the PostgreSQL Connection Information of my OpenERP Account?
windows postgresql
Avatar
Avatar
1
mar. 15
6063
Windows all-in-one package non-working
windows install postgresql connection
Avatar
Avatar
2
avg. 15
5057
meli_oerp web hook
windows
Avatar
0
mar. 25
1858
When Odoo 14 connects to PostgreSQL 15.7, the connection is idle but cannot be released
postgresql
Avatar
0
feb. 25
2883
Community
  • Tutorials
  • Dokumentacija
  • Forum
Open Source
  • Prenesi
  • Github
  • Runbot
  • Prevodi
Services
  • Odoo.sh Hosting
  • Podpora
  • Nadgradnja
  • Custom Developments
  • Izobraževanje
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Sredstva blagovne znamke
  • Kontakt
  • Zaposlitve
  • Dogodki
  • Podcast
  • Blog
  • Stranke
  • Pravno • Zasebnost
  • Varnost
الْعَرَبيّة 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