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č

Installting OpenERP 7 - PostgreSQL issues

Naroči se

Get notified when there's activity on this post

This question has been flagged
postgresqlubuntuopenerp
1 Odgovori
8510 Prikazi
Avatar
bizres

Hello,

I'm trying to setup the Postgresql for OpenERP on an Ubuntu 12.04 minimal server with no shell and am following instructions at theopensourcerer[DOT]com/2012/12/how-to-install-openerp-7-0-on-ubuntu-12-04-lts/comment-page-1/

I do however need some help creating a database in Postgresql. The command I'm required to use is (after changing to postgres user):

createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt openerp

But unfortunately am ending up with the following error:

createuser: could not connect to database postgres: could not connect to server: No such file or directory

Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

According to the PostgreSQL official documentation, it 'cos the server was not started, or it was not started where createdb expected it

I then removed PostgreSQL inorder that I may be able to do a clean reinstall and note any error messages along the way.

Using the following to uninstall in 2 steps: First dpkg -l | grep postgres results with the following:

ii postgresql 9.1+129ubuntu1 object-relational SQL database (supported version)

ii postgresql-9.1 9.1.9-0ubuntu12.04 object-relational SQL database, version 9.1 server

ii postgresql-client 9.1+129ubuntu1 front-end programs for PostgreSQL (supported version)

ii postgresql-client-9.1 9.1.9-0ubuntu12.04 front-end programs for PostgreSQL 9.1

ii postgresql-client-common 129ubuntu1 manager for multiple PostgreSQL client versions

ii postgresql-common 129ubuntu1 PostgreSQL database-cluster manager

Then sudo apt-get --purge remove postgresql results:

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following packages will be REMOVED:

postgresql*

0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.

After this operation, 64.5 kB disk space will be freed.

Do you want to continue [Y/n]? y

perl: warning: Setting locale failed.

perl: warning: Please check that your locale settings:

LANGUAGE = (unset),

LC_ALL = (unset),

LC_CTYPE = "en_CA.UTF-8",

LC_COLLATE = "en_CA.UTF-8",

LC_MESSAGES = "en_CA.UTF-8",

LANG = "en_CA.UTF-8"

are supported and installed on your system.

perl: warning: Falling back to the standard locale ("C").

locale: Cannot set LC_CTYPE to default locale: No such file or directory

locale: Cannot set LC_MESSAGES to default locale: No such file or directory

locale: Cannot set LC_ALL to default locale: No such file or directory

(Reading database ... 75235 files and directories currently installed.)

Removing postgresql ...

Now using sudo apt-get install postgresql results to:

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following NEW packages will be installed:

postgresql

0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.

Need to get 0 B/5552 B of archives.

After this operation, 64.5 kB of additional disk space will be used.

perl: warning: Setting locale failed.

perl: warning: Please check that your locale settings:

LANGUAGE = (unset),

LC_ALL = (unset),

LC_CTYPE = "en_CA.UTF-8",

LC_COLLATE = "en_CA.UTF-8",

LC_MESSAGES = "en_CA.UTF-8",

LANG = "en_CA.UTF-8"

are supported and installed on your system.

perl: warning: Falling back to the standard locale ("C").

locale: Cannot set LC_CTYPE to default locale: No such file or directory

locale: Cannot set LC_MESSAGES to default locale: No such file or directory

locale: Cannot set LC_ALL to default locale: No such file or directory

Selecting previously unselected package postgresql.

(Reading database ... 75234 files and directories currently installed.)

Unpacking postgresql (from .../postgresql_9.1+129ubuntu1_all.deb) ...

Setting up postgresql (9.1+129ubuntu1) ...

When I try to start the postgresql server with /etc/init.d/postgresql start - no errors or messages are displayed

Would this give any indication as to why I'm getting the error as per my earlier post above?

Would really appreciate some help on this, pls. Thanks in anticipation.

0
Avatar
Opusti
Bhavik

i guess u need to supply hostname and port number also while creating db

Avatar
patrick
Best Answer

I see some error messages regarding languages, when you install postgreSQL. Are you sure you have configured/specified the correct language for your server? I am talking about the following messages:

perl: warning: Setting locale failed.

perl: warning: Please check that your locale settings:

LANGUAGE = (unset),

LC_ALL = (unset),

LC_CTYPE = "en_CA.UTF-8",

LC_COLLATE = "en_CA.UTF-8",

LC_MESSAGES = "en_CA.UTF-8",

LANG = "en_CA.UTF-8"

are supported and installed on your system.

perl: warning: Falling back to the standard locale ("C").

locale: Cannot set LC_CTYPE to default locale: No such file or directory

locale: Cannot set LC_MESSAGES to default locale: No such file or directory

locale: Cannot set LC_ALL to default locale: No such file or directory

## Maybe you should reinstall the server from scratch, and make sure you have specified a language.

0
Avatar
Opusti
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
postgres DB connect error on Ubuntu
postgresql ubuntu
Avatar
3
jun. 20
7386
ubuntu 14.04lts run odoo reports 'OpenERP Server Error' Solved
postgresql ubuntu
Avatar
Avatar
1
mar. 15
5626
Openerp PostgreSQL issue
postgresql ubuntu
Avatar
0
mar. 15
4920
Wrong Data posted in openerp
postgresql openerp
Avatar
0
mar. 15
3786
What is the locale recommended for postgres?
postgresql ubuntu odoo
Avatar
0
okt. 20
3459
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