Upgrade owncloud to 7.0.2

Source: Internet
Author: User
Tags owncloud

My basic version is messy. The configuration file is 5.0.17, but the admin page shows 5.0.10. When I access the update center, it shows that the official website has been upgraded to 7.0.2. It should be because the update of the local detection version failed, and the latest version is always displayed.

Two manual upgrade documents are found:

Major version upgrade: http://doc.owncloud.org/server/7.0/admin_manual/maintenance/update.html

Minor version upgrade: http://doc.owncloud.org/server/7.0/admin_manual/maintenance/upgrade.html

Follow the major version upgrade method. The error message is:

Updating owncloud to version 7.0.2, this may take a while.

Enable maintenance mode
Checked database schema update
An exception occurred while executing 'alter table' OC _ oc_1_e_status_a08bc8968febf 'add primary key ('fileid') ': sqlstate [23000]: Integrity Constraint Violation: 1062 duplicate entry '10' for key 'Primary'

The update was unsuccessful. Please report this issue to the owncloud community.

This error is prompted when you use./OCC upgrade.

Suddenly, this may be due to a failure in upgrading 5.0.17, So we re-download 5.0.17 manual upgrade (process omitted ). Manually upgrade the major version:

Process memo:

mv owncloud owncloud-5.0.17cd /home/downloads/tar xjf owncloud-7.0.2.tar.bz2 mv owncloud /home/data/webHome/web_3/cd /home/data/webHome/web_3/chown -R apache:apache ./owncloudchcon -R -t httpd_user_content_t ./owncloudcp ./owncloud-5.0.17/config/config.php ./owncloud/config/

 

Upgrade owncloud to 7.0.2

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.