Solution for ownCloud “Downgrading not supported” error

Seems like the rsync method has been obsolete. So I rewrote them according to the Manual upgrade document. The new method may be more compatible… Hopefully.

Error overview

This error usually happens when you are updating ownCloud via command lines(e.g. apt- get command). Sometimes happens even updating with the built-in web updater. The ownCloud web page just show a single notification saying “Downgrading is not supported and is likely to cause unpredictable issues” and there’re no buttons to click.

Cause(just guesses) 

This error occurs due to a mismatch of ownCloud version in the config.php. I noticed that the Source maintains a relatively older oC version, which, in my case, directly lead to the “Downgrading not supported” error.

Solutions

Acknowledged that this error is actually a version mismatch, it’ll be easier to deal with. However, if you have already “updated” ownCloud to a different version, directly editing the config.php won’t help. In my case, I downloaded the latest oC from the Website and synced them to the current oC directory. This will not harm the files uploaded, however, I strongly recommend a backup of your directory or the entire server.

  • Download & unzip the latest oC manually

You don’t have to perform the action in your oC directory. Well, to be honest, you can’t do that.

Download the latest version of oC from the official ownCloud website and extract it with unzip command. The unzip process takes about 10 sec depending on the server performance.

  • Replace the files

Here we’ll do it in the old-fashioned way. Just rename the /owncloud directory in /var/www to any other name you want like owncloud-old. DO NOT DELETE IT UNLESS YOU WANT A FRESH OWNCLOUD SERVER.

Then, we just move the new ownCloud folder we’ve extracted to /var/www. A simplecp command is just enough. Then, go to your old ownCloud folder (hopefully you haven’t deleted it yet), and copy the whole /data directory to the new ownCloud dir.

  • Upgrade ownCloud

Since I’m unable to upgrade from the occfile since… I assume there is something buggy? My command is no different from that in the documentation. Anyway I would perform a dirty hack here . Don’t worry, your previous data are still accessble… Unless you have previously toggled encryption on. THIS OPERATION WILL CAUSE YOU TO LOSE ACCESS TO YOUR ENCRYPTED DATA.

First we’ll drop the database which is in use by owncloud; I don’t know which database you are using, so I cannot give specified commands. Then, create a new database. I have to do this because I cannot register with the same name as Admin, which in the next step it would be requied for.

Then, simply preform a sudo apt-get update && sudo apt-get autoremove owncloud && sudo apt-get install owncloud. This would perform a (relatively) clean install, and you can now access your domain/owncloud page to set it up. Again, ALL ENCRYPTED DATA WOULD BE INACCESSIBLE. I wonder if restorring previous database backup would be useful…?

Anyway, now you have regained access to your Owncloud server. That’s … still great.

*English is not my first language. If you find anything that can caused misunderstanding, please comment and point out. Thanks!

Mark

广岛大学社会心理学(预备)研究生。忙。AE/PR/FCPX/PS/LR/AI(Adobe Illustrator)。会一点Python。

相关推荐

站点评论系统切换至EchoChamber

今天开始,网站的评论系统会切换到Echo Chamber。 Echo Chamber主要的功能有: spam和广告信息自动过滤,管理员不用费 …

编译4.11内核,使用BBR

昨天没忍住剁了2b小姐姐,我觉得我又要失踪三个月了…… 6-30:更新了内核下载链接。 概要 虽然Linode早已加入了Linux 4. …

使用CSS美化页面

因为换了宿舍开始蹭外星人壕舍友的路由,所以hostapd的坑大概是填不上了吧。 最近在看Material Design/Motion Graphics …

暂无评论

有什么想法说出来听听?

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据