OpenERP source code Changes after the database upgrade

Source: Internet
Author: User

Transferred from: Http://vivianyw.blog.163.com/blog/static/13454742220142114422130/?latestBlog

OpenERP code upgrade needs to upgrade the data, or just replace the purchase, you will encounter a lot of unexpected problems. Here is a record of the process of the upgrade operation (here is a manual source installation based on the change-in instructions:

1. You need to stop openerp services, depending on the specific startup script at the time of installation may be:

Sudo/etc/init.d/openerp stop

Or

Sudo/etc/init.d/openerp-server stop

2. Replace the code, first back up the existing code, here is simply to modify the directory name

sudo mv/opt/openerp/server/opt/openerp/server.old

Install new code to/opt/openerp/server, the specific method is not repeated here, please refer to the "Ubuntu 12 server on the source installation OpenERP 8.0" The 6th step of the instructions, complete and then go to the next step.

3. Updating the database

First you need to use the OpenERP user's shell,

sudo su-openerp-s/bin/bash

Update the database under OPENERP user shell
/opt/openerp/server/openerp-server-d Dbname-u All
The dbname is the name of the database you need to update, and if you have multiple databases, you need to execute the above command for each database.
This time may be longer, need patience and so on.
If you want to confirm that the above command is executing, use the following command to see if the user process is executing:

Top-u Opene

Wait until the "... werkzeug:127.0.0.1 ..." appears. When the upgrade is complete, press CTRL-C to exit the upgrade. Exit the OpenERP user shell.
4. After completing the database update, restart the Open

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

Web Client connection OE, complete the upgrade!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.