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

How do I completely STOP and START openerp server

Subscribe

Get notified when there's activity on this post

This question has been flagged
modulerestart
1 Reply
139283 Views
Avatar
Cameron

Hi I'm developing a module and constantly making changes to the module.

To stop and start the deb Openerp server I use

sudo /etc/init.d/openerp stop and sudo /etc/init.d/openerp start

However I've noticed its not very consistent! More often than not, errors are not cleared

I'm having do a sudo reboot to make sure , but this is very time consuming!

Does anyone know of a better way? OR is their another service I need to stop?

EDIT The behavior is ....I'll right some bad code (I'm good at this) transfer the module to the addons folder restart the openerp server and I'll get some error message (openerp obviously runs through the addons code to check and validate it), Then I'll remove the module, restart the server, but the error wont clear until I reboot.

THOUGHTS Could it be a python or postgresql service?

RESEARCH If if I use ps -Al to list running services then sudo /etc/init.d/openerp stop followed by `ps -Al again, I can identify that openerp-server is stopped by this command!

2
Avatar
Discard
Mr. Kinjal Dixit

if i am logged in to openerp and i do a /etc/init.d/openerp restart, i go back to the browser and refresh and I am still logged in. All I know so far is that web server role and the session handling is done by a python module called werkzeug. in my system it is at /usr/lib/python2.7/dist-packages/werkzeug. if you want to reset the state of web side of things, you may want to search further there. if you are developing/testing, you may try the usual steps of clearing the cache on the browser, etc.

IBS Group

Can you give an example of the behavior you get? because if you save your code changes, restart the server and update your modified module, this behavior should not happen.

Cameron
Author

Cheers Karim - please see EDIT above.

IBS Group

Can you share the error you are getting?

Cameron
Author

Cheers Kinjal, Yes I to have I've noticed you stay logged in when you stop / start the server. (I wonder if their is a security issue here?) However I don't think this is the cause of my problem! - please see the Edit above. I'm going to try Andreas offering and see how I go! - I suppose the real answer is to write better code first time!

Cameron
Author

I've forgotten the error, when I get it again I'll report it , but I'm 99.9% sure the error relates to my poor code and is not relevant to this issue. The error message relates to me trying to work out how to use fields.related see here...http://help.openerp.com/question/32739/retrieve-a-field-using-related-to-select-a-selection-field/

Avatar
Andreas Brueckl
Best Answer

Sometimes it happens that there is a deadlock in postgresql. You can see such situations if you see waiting postgres processes when you execute ps ax .

For a complete restart perform:

  • service openerp-server stop
  • service postgresql restart
  • service openerp-server start

(I assume that you have the required scripts in /etc/init.d)

6
Avatar
Discard
Cameron
Author

Many thanks... I was starting to think that I imagined it as I had experianced the problem since reporting it ..sods law!

I dont have openerp-server in init.d, I have openerp - also ubuntu server, so I'll try

sudo service openerp stop

sudo service postgresql restart

sudo service openerp start

and see how it goes

gunnar

rebooting the computer (sudo shutdown -r now in your case) on which OpenERP is installed would do the job as well. Maybe not as elegant as the "service .... restart" solution by Andreas but if someone is in doubt .... this will work.

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
Error when importing module Product Bidding In ECommerce in odoo 17
module
Avatar
Avatar
1
Jul 24
2570
Missing required value for the field 'Model' (model_id)
module
Avatar
Avatar
1
Jan 24
6433
View newly installed Module
module
Avatar
Avatar
Avatar
2
Mar 23
3494
How to restart server? (odoo.sh v13) Solved
restart
Avatar
Avatar
Avatar
Avatar
3
Sep 20
38601
How to check for installed modules from my __init__.py?
module
Avatar
Avatar
3
Jun 20
11383
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