Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Artificial Intelligence
    • IoT
    • VoIP
    • Knowledge
    • 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
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & 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
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Running as user 'root' is a security risk, aborting ?

Subscribe

Get notified when there's activity on this post

This question has been flagged
installationerroropenerprootubunt
4 Replies
21810 Views
Avatar
Madura

This error is got when I try to  start the openerp-server using thia command : sudo ./openerp-server

Can anyone help me to resolve this?

Thank You.

0
Avatar
Discard
Avatar
Dhinesh
Best Answer

Hi, No need to add sudo to run the openerp-server. Try running it from a normal user.
For security reasons, it doesnt allow you to proceed further and throws "Running as user 'root' is a security risk, aborting."
Try removing sudo from command (i.e) ./openerp-server

 

3
Avatar
Discard
Madura
Author

@Dhinesh thankx for the reply, I tried with " ./openerp-server " but no luck. getting this error, _____Traceback (most recent call last): File "./openerp-server", line 5, in openerp.cli.main() File "/home/zone/openerp-8.0-29e08a2/openerp/cli/__init__.py", line 71, in main o.run(args) File "/home/zone/openerp-8.0-29e08a2/openerp/cli/server.py", line 174, in run main(args) File "/home/zone/openerp-8.0-29e08a2/openerp/cli/server.py", line 139, in main openerp.tools.config.parse_config(args) File "/home/zone/openerp-8.0-29e08a2/openerp/tools/config.py", line 336, in parse_config openerp.netsvc.init_logger() File "/home/zone/openerp-8.0-29e08a2/openerp/netsvc.py", line 136, in init_logger resetlocale() File "/home/zone/openerp-8.0-29e08a2/openerp/tools/translate.py", line 1084, in resetlocale for ln in get_locales(): File "/home/zone/openerp-8.0-29e08a2/openerp/tools/translate.py", line 1052, in get_locales lang = locale.getdefaultlocale()[0] File "/usr/lib/python2.7/locale.py", line 543, in getdefaultlocale return _parse_localename(localename) File "/usr/lib/python2.7/locale.py", line 475, in _parse_localename raise ValueError, 'unknown locale: %s' % localename ValueError: unknown locale: UTF-8

Avatar
Fabian Tribrunner
Best Answer

you should add a user ie "odoo" or  "openerp" to run the server

sudo adduser --system --home=/opt/odoo --group odoo

home ist the path of your odoo instalation.

sudo su - odoo -s /bin/bash
./openerp-server

another way could be, adding a init script. ie http://www.theopensourcerer.com/wp-content/uploads/2014/09/odoo-server

 

 

2
Avatar
Discard
Madura
Author

Thank You @Fabian, it helped me… :)

Avatar
Atchuthan - Technical Consultant, Sodexis Inc
Best Answer

try to login with openerp user

su - openerp
and then try to start with it.

OR if you need to start the openerp from root

sudo /etc/init.d/openerp-server start

0
Avatar
Discard
Avatar
Mariusz Mizgier
Best Answer

If you really want to run openerp-server as a root for a development purpose, you might try to change function check_root_user, which is in server/openerp/cli/server.py file so that it returns True instead of sys.exit(1). But this should be used strictly in a development enviroment!

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

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

Sign up
Related Posts Replies Views Activity
how to fix the problem during installing odoo 8 ??
installation error
Avatar
0
Mar 17
5360
Odoo Internal Server Error while installing on amazon web server EC2
installation error
Avatar
Avatar
1
Jul 15
6624
Odoo Masters install error on Debian 7 Wheezy [Solved]
installation error
Avatar
1
Mar 15
6115
problems with opening modules
error openerp
Avatar
0
Mar 15
4824
custom modulue in open erp
installation openerp
Avatar
Avatar
1
Mar 15
5030
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 Svenska ภาษาไทย 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