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
    • Approvals
    • 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
    • Estate 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

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
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

ERROR with .deb install

Subscribe

Get notified when there's activity on this post

This question has been flagged
installaddons8.08.0rc1
2 Replies
14274 Views
Avatar
Sebastian Bollatti

After a fresh install of Debian 7 Wheezzy Gnome2 64 bits and doing "todays" .deb install of 8.0 got this error:

:~$ openerp-server stop
Traceback (most recent call last):
  File "/usr/bin/openerp-server", line 5, in <module>
    openerp.cli.main()
  File "/usr/lib/python2.7/dist-packages/openerp/cli/__init__.py", line 58, in main
    for m in module.get_modules():
  File "/usr/lib/python2.7/dist-packages/openerp/modules/module.py", line 348, in get_modules
    plist.extend(listdir(ad))
  File "/usr/lib/python2.7/dist-packages/openerp/modules/module.py", line 343, in listdir
    return map(clean, filter(is_really_module, os.listdir(dir)))
OSError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/addons'

 

...i checked the folder and doesn't exist. So... and now?

I tried to create one with mkdir on root user and then:

:~$ openerp-server stop

and seems to work but when I start again I get:

admin@Admin:~$ odoo.py -c /opt/odoo/addons/odoo.conf -s
ERROR: couldn't write the config file cos' i am not odoo user and don't have permision, OK
2014-09-19 14:33:29,462 19145 INFO ? openerp: OpenERP version 8.0-29e08a2
2014-09-19 14:33:29,462 19145 INFO ? openerp: addons paths: ['/home/admin/.local/share/Odoo/addons/8.0', u'/usr/lib/python2.7/dist-packages/openerp/addons', u'/usr/lib/python2.7/dist-packages/addons']
2014-09-19 14:33:29,462 19145 INFO ? openerp: database hostname: localhost
2014-09-19 14:33:29,462 19145 INFO ? openerp: database port: 5432
2014-09-19 14:33:29,462 19145 INFO ? openerp: database user: admin  <=== HERE IS 1st PROBLEM User should be: odoo and password ??? i don't know, tryed with "admin" or "odoo" or "False" but no way
2014-09-19 14:33:29,793 19145 INFO ? openerp.service.server: HTTP service (werkzeug) running on 0.0.0.0:8069

 

I think it's easy to reboot and will work flawlessly. I also want addons of "country localization" of other unsupported addons, so it shows 3 path for that:

1) /home/admin/.local/share/Odoo/addons/8.0

2) /usr/lib/python2.7/dist-packages/openerp/addons

3) /usr/lib/python2.7/dist-packages/addons

Which one?

...i tryed on these 3 of them and it was not possible to see an extra-addons on shinnig brand new odoo final release!

What am I doing wrong?

Regards and thanks in advance!

0
Avatar
Discard
Avatar
Fabian Tribrunner
Best Answer

hi,

there should be a config file in /etc/odoo-server.conf

if not it is in /path/to/odoo-server/debian/openerp-server.conf 
cp it to /etc/ (odoo-Default: /etc/openerp-server.conf)

the conf.file contains:
---------------------------------------------------
[options]
; This is the password that allows database operations:
; admin_passwd = admin
db_host = False
db_port = False
#you might have an other db user
db_user = odoo 
db_password = False
#for more addons path use "," between
addons_path = /usr/lib/python2.7/dist-packages/openerp/addons, /opt/odoo/mycustomaddons
---------------------------------------------------

starting the server with ./path to your odooserver/openerp-server

this also may help: https://www.odoo.com/forum/help-1/question/what-is-the-full-list-of-command-line-options-for-odoo-59139

I prefer the install with a shell-script via github. more of control ;-)

regards
fabian 

 

0
Avatar
Discard
Avatar
momo
Best Answer

Hello here are my findings with the nightly DEB

Running odoo.py , will run the server with the user ownership instead of odoo.

To Run Odoo Server as "odoo"

sudo -H -u odoo odoo.py

It should work but you would get the previously mentioned error

OSError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/addons'

It means odoo is loading a "default" configuration file from "somewhere" (still haven't found where it is yet).

To enforce using the correct config file rerun the command providing the "correct" config file

sudo -H -u odoo odoo.py --config=/etc/odoo/openerp-server.conf

Hope it did some problem solving, but still scaffolding and other command tend to fail due to the "default configuration file that exists somewhere".

You should be probably be good by just creating an addon folder in the meantime

'/usr/lib/python2.7/dist-packages/addons'

 

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 remove addons from database ? Solved
install addons
Avatar
Avatar
Avatar
3
Dec 22
15263
Error when installing "G.C.C - Arabic/English" 'l10n_gcc_invoice' or "K.S.A - Invoice" 'l10n_sa_invoice' Solved
error install addons
Avatar
Avatar
1
Aug 24
4655
Custom addons installation
installation install addons
Avatar
Avatar
1
Feb 24
5625
Why community modules don't try to install in /opt/openerp/addons
module install addons
Avatar
1
Mar 15
8952
How to update Addons Apps in Ubuntu 12.04 OpenERP v7?
install addons update
Avatar
Avatar
Avatar
2
Mar 15
8696
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 ภาษาไทย 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