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