Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Jídlo a pohostinství
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Penzion
    • Distributor nápojů
    • Hotel
    Nemovitost
    • Realitní kancelář
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Poradenství
    • Účetní firma
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textile
    • Kov
    • Nábytek
    • Jídlo
    • Brewery
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Transakce
    • Údržbář
    • IT hardware a podpora
    • Systémy solární energie
    • Výrobce obuvi
    • Úklidové služby
    • Služby HVAC
    Ostatní
    • Nezisková organizace
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Browse all Industries
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Services for Partners
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

ERROR SQL Connection (bad user)

Odebírat

Get notified when there's activity on this post

This question has been flagged
userconnectionsql
3 Odpovědi
19278 Zobrazení
Avatar
cere

Hi, I am starting to use OpenERP in my Linux Ubunutu, everything works fine until when any user is trying to access via web:

victor@victor-VirtualBox:~$ /opt/openerp/server/openerp-server 
2013-04-19 05:55:47,684 2439 INFO ? openerp: OpenERP version 7.0-20130417-232500
2013-04-19 05:55:47,684 2439 INFO ? openerp: addons paths: /opt/openerp/server/openerp/addons
2013-04-19 05:55:47,684 2439 INFO ? openerp: database hostname: localhost
2013-04-19 05:55:47,684 2439 INFO ? openerp: database port: 5432
2013-04-19 05:55:47,684 2439 INFO ? openerp: database user: victor
2013-04-19 05:55:48,083 2439 INFO ? openerp.addons.google_docs.google_docs: GData lib version `%s GData-Python/2.0.17` detected
2013-04-19 05:55:48,406 2439 INFO ? openerp.service.wsgi_server: HTTP service (werkzeug) running on 0.0.0.0:8069
2013-04-19 05:55:48,407 2439 INFO ? openerp: OpenERP server is running, waiting for connections...
2013-04-19 05:56:00,787 2439 ERROR ? openerp.sql_db: Connection to the database failed
Traceback (most recent call last):
  File "/opt/openerp/server/openerp/sql_db.py", line 440, in borrow
    result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)
  File "/usr/lib/python2.7/dist-packages/psycopg2/__init__.py", line 179, in connect
    connection_factory=connection_factory, async=async)
OperationalError: FATAL:  role "victor" does not exist

And the file /etc/openerp-server.config :

; This is the password that allows database operations:
; admin_passwd = admin
db_host = False
db_port = False
db_user = openerp
db_password = demo

So, my question is: the openerp-server.config is configured as user 'openerp', why the openerp-server is tryng to connect the database using the role 'victor'?

Many thanks to take some minutes to read this.

Regards.

0
Avatar
Zrušit
Avatar
Naresh Soni (nch)
Nejlepší odpověď

Hi Cere,

You need to create a postgres user "victor" as the config file that is used by OpenERP doesn't have db_user set, either set the correct config file or create the user 'victor'.

Refer:HOW TO CREATE POSTGRES USER

Thanks,

1
Avatar
Zrušit
Avatar
Daniel Reis
Nejlepší odpověď

The server is not using that conf file. probably because its name .config instead of .conf. Try:

/opt/openerp/server/openerp-server --config=/etc/openerp-server.config
0
Avatar
Zrušit
Avatar
cere
Autor Nejlepší odpověď

Daniel, you're right, but I was wrong typing the question, the real path is:

/etc/openerp-server.conf

So, as you know, the problem is still persists......

I do not understant because I cannot find anywhere the line: "db_user = victor" that OpenERP tries to connect with 'victor' role (I was looking with this command: sudo grep -lir "db_user = victor" /etc, and /opt/openerp/server without results)

So, where did OpenERP gets 'victor' role from?


Thanks Naresh, but I want to use 'openerp' user, described in /etc/openerp-server-conf and this user exists in postgres:

postgres=# \du
                             List of roles
 Role name |                   Attributes                   | Member of 
-----------+------------------------------------------------+-----------
 openerp   | Superuser, Create role, Create DB, Replication | {}
 openerp80 | Superuser, Create role, Create DB, Replication | {}
 postgres  | Superuser, Create role, Create DB, Replication | {}

Thanks.

0
Avatar
Zrušit
Naresh Soni (nch)

Try one thing. start your server with db_user=openerp and see if it works then there is some problem in finding the correct config file.

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

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

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
Where is defined the user_id field of the model hr_employee? Vyřešeno
user employee sql
Avatar
Avatar
Avatar
2
bře 18
10663
How to limit max connection per OpenERP user?
user connection limit
Avatar
Avatar
1
bře 15
10827
Usage Of SQl Queries In odoo
sql
Avatar
Avatar
1
lis 22
7467
can i use sql query in my automated (user interface) action with odoo?
user query sql interface AutomatedActions
Avatar
Avatar
Avatar
2
zář 24
6668
What does the LATEST CONNECTION / LATEST AUTHENTICATION field in the Users List View represent? Vyřešeno
authentication user session connection latest
Avatar
Avatar
Avatar
3
lis 21
7124
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة 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 je balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

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