将ownCloud更新到版本8.1.9不成功

时间:2020-02-23 14:45:22  来源:igfitidea点击:

使用ownCloud存储库,升级到版本8.1.9时遇到以下错误?

Updating ownCloud to version 8.1.9, this Jan take a while.
Set log level to debug  current level: "Warning";
Turned on maintenance mode
Checked database schema update
Checked database schema update for apps
Updated database
Exception: App can't be installed because it is not compatible with this version of ownCloud
The update was unsuccessful. Please report this issue to the ownCloud community.

出于未知的原因,使用浏览器的自动方法进行的升级未达到预期效果(过去对我而言一直如此)。
要变通解决此问题,您可以改为手动运行更新。

1.首先需要确保为php-cli启用了APC。
要启用它,请编辑" apcu.ini"或者将以下内容附加到PHP配置文件:

/etc/php5/cli/php.ini

附加(或者启用)此参数:

apc.enable_cli=1

2.以运行Web服务器运行您的ownCloud安装的用户身份登录。

su - www-data

注意:Web服务器设置是变量,您可能需要临时将用户shell程序从nologin更改为bash

3.浏览到您的ownCloud安装(默认位置是/var/www/owncloud /)并运行以下命令:

./occ upgrade

输出示例:

www-data@cloud:~/owncloud$./occ upgrade
ownCloud or one of the apps require upgrade  only a limited number of commands are available
Set log level to debug  current level: 'Warning'
Turned on maintenance mode
Checked database schema update
Checked database schema update for apps
Updated database
Update successful
Turned off maintenance mode
Reset log level to 'Warning'