Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Managament
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Help

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

How to change the user running the Odoo process?

Odoberať

Get notified when there's activity on this post

This question has been flagged
installationinstall
2 Replies
17311 Zobrazenia
Avatar
Kasper Souren

This runs fine as my normal user: `cd /opt/odoo; python openerp-server --addons-path=addons`

But when I want to run it as another user, e.g. through

     sudo su odoo -c "cd /opt/odoo; python openerp-server --addons-path=addons"

I get this error: `OperationalError: FATAL:  role "odoo" does not exist`

I found out it breaks less after `createuser odoo` but then my existing installation is not there anymore. What is a smooth way to change the user running the process? Where is the database configuration?

How come it's breaking for odoo while it's working for my normal user and how to fix it?

Are there other things to change as well?

0
Avatar
Zrušiť
Avatar
Leonardo Donelli
Best Answer

OperationalError: FATAL:  role "odoo" does not exist`

This is a PostgreSQL error, saying that the database user odoo does not exist.

It probably means that your postgresql is using peer or ident authentication: instead for asking for user and password (postgres user and password, not your openerp one! they are different) it runs as the same user as the OS one. So, when you change the user you run the process as with sudo su, you are also chaning the user you're trying to connect to postgresql with.

"createuser odoo" creates an odoo user in postgres, but you probably created the openerp db with your "normal" user, so odoo has no databases associated with it.

The solution:

You should decouple your system user from your database user. You can, for example, use "normal" postgresql password authentication, that lets you specify which user you want to connect to postgres as.

2
Avatar
Zrušiť
Avatar
Wouter Tebbens
Best Answer

Hi Kasper,

I understand that you have set up the whole installation based on your normal user instead of an openerp or odoo user.  Most howtos explain how you set it up for such specific user, which keeps you more in control of this specific process and adds to your systsem's security.

If you look at this forum's Howto or the Opensourcerer's: https://www.odoo.com/forum/Help-1/question/How-to-install-OpenERP-V70-on-Ubuntu-1204-from-Launchpad-sources-2562, http://www.theopensourcerer.com/2012/12/how-to-install-openerp-7-0-on-ubuntu-12-04-lts/

You'll see howto create the openerp/odoo user correctly in postgres. Personally I'm not sufficiently skilled in Postgres to tell you in detail on how to change your current settings, but those howto's can hopefully help you out.

-1
Avatar
Zrušiť
Enjoying the discussion? Don't just read, join in!

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

Registrácia
Related Posts Replies Zobrazenia Aktivita
Url:8069 is not working script Installation
installation install
Avatar
Avatar
1
júl 23
3313
Custom addons installation
installation install addons
Avatar
Avatar
1
feb 24
5563
Oops! Google Chrome could not connect to localhost:8069 - Fixed Solved
installation install first_install
Avatar
Avatar
Avatar
Avatar
Avatar
9
dec 23
32578
Many OpenERP installation on same machine Solved
installation install instances
Avatar
Avatar
Avatar
Avatar
Avatar
9
jan 18
18483
How to Install OpenERP 7 from Home Directory to Run time directory
installation install copying
Avatar
0
mar 15
4800
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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