

Verbose ownCloud upgrade
source link: https://morrisjobke.de/2015/07/23/Verbose-ownCloud-upgrade/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Verbose ownCloud upgrade 23 Jul 2015
ownCloud offers the ability to upgrade an owncloud instance via command line. In the past this was a very quiet command and only listed the very rough steps that were executed. On instances with more user data this results in long times without any visible progress.
$ ./occ upgrade # 7.0 -> 8.0
Turned on maintenance mode
Checked database schema update
Checked database schema update for apps
Updated database
Disabled 3rd-party app: gallery
Updated <files_sharing> to 0.6.2
Turned off maintenance mode
Update successful
This is totally fine if everything works as it should. But there were a few drawbacks with this output. When an app gets updated this is only printed once it is done. It would be more helpful to see which app gets updated next, because then you exactly know where to look for problems.
Beside that there are repair steps executed before and after the DB update. It would be nice to also list these steps and know a bit more about what happens during and upgrade.
These two enhancements landed in ownCloud 8.1.1 and the upcoming 8.2.0 when you specify the command line option -v
which is widely used in other command line tools to increase verbosity too.
$ ./occ upgrade -v # 8.0 -> 8.1
Turned on maintenance mode
Repair step: Repair MySQL database engine
Repair info: Not a mysql database -> nothing to do
Repair step: Repair MySQL collation
Repair info: Not a mysql database -> nothing to no
Repair step: Repair SQLite autoincrement
Repair step: Repair duplicate entries in oc_lucene_status
Repair info: lucene_status table does not exist -> nothing to do
Repair step: Repair config
Checked database schema update
Checked database schema update for apps
Updated database
Repair step: Repair mime types
Repair step: Repair legacy storages
Repair step: Repair config
Repair step: Clear asset cache after upgrade
Repair info: Asset pipeline disabled -> nothing to do
Repair step: Generate ETags for file where no ETag is present.
Repair info: ETags have been fixed for 0 files/folders.
Repair step: Clean tags and favorites
Repair info: 0 tags for delete files have been removed.
Repair info: 0 tag entries for deleted tags have been removed.
Repair info: 0 tags with no entries have been removed.
Repair step: Drop old database tables
Repair info: Table locks has been deleted
Repair step: Drop old background jobs
Repair step: Repair outdated OCS IDs
Update successful
Turned off maintenance mode
Because it is more fine granular you also know more precise what the upgrade process is actually doing.
Upcoming enhancements
In the next version of ownCloud we also will add a timestamp to each line of output while the -v
option is specified. Then the admin knows exactly at which time a step happened and can give rough estimates which steps took how long.
$ ./occ upgrade -v # 8.1 -> 8.2
2015-07-23T07:32:25+00:00 Turned on maintenance mode
2015-07-23T07:32:25+00:00 Repair step: Repair MySQL database engine
2015-07-23T07:32:25+00:00 Repair info: Not a mysql database -> nothing to do
2015-07-23T07:32:25+00:00 Repair step: Repair MySQL collation
2015-07-23T07:32:25+00:00 Repair info: Not a mysql database -> nothing to no
2015-07-23T07:32:25+00:00 Repair step: Repair SQLite autoincrement
2015-07-23T07:32:26+00:00 Repair step: Repair duplicate entries in oc_lucene_status
2015-07-23T07:32:26+00:00 Repair info: lucene_status table does not exist -> nothing to do
2015-07-23T07:32:26+00:00 Repair step: Repair config
2015-07-23T07:32:26+00:00 Checked database schema update
2015-07-23T07:32:26+00:00 Checked database schema update for apps
2015-07-23T07:32:26+00:00 Updated database
2015-07-23T07:32:26+00:00 Repair step: Repair mime types
2015-07-23T07:32:26+00:00 Repair step: Repair legacy storages
2015-07-23T07:32:26+00:00 Repair step: Repair config
2015-07-23T07:32:26+00:00 Repair step: Clear asset cache after upgrade
2015-07-23T07:32:26+00:00 Repair info: Asset pipeline disabled -> nothing to do
2015-07-23T07:32:26+00:00 Repair step: Generate ETags for file where no ETag is present.
2015-07-23T07:32:26+00:00 Repair info: ETags have been fixed for 0 files/folders.
2015-07-23T07:32:26+00:00 Repair step: Clean tags and favorites
2015-07-23T07:32:26+00:00 Repair info: 0 tags for delete files have been removed.
2015-07-23T07:32:26+00:00 Repair info: 0 tag entries for deleted tags have been removed.
2015-07-23T07:32:26+00:00 Repair info: 0 tags with no entries have been removed.
2015-07-23T07:32:26+00:00 Repair step: Drop old database tables
2015-07-23T07:32:26+00:00 Repair step: Drop old background jobs
2015-07-23T07:32:26+00:00 Repair step: Remove getetag entries in properties table
2015-07-23T07:32:26+00:00 Repair info: Removed 0 unneeded "{DAV:}getetag" entries from properties table.
2015-07-23T07:32:26+00:00 Update successful
2015-07-23T07:32:26+00:00 Turned off maintenance mode
Recommend
-
171
ownCloud Core ownCloud gives you freedom and control over your own data. A personal cloud which runs on your own server.
-
93
Docker简介:Docker是个进程级的轻量化虚拟机,从狭义上来讲就是一个进程,从广义上来讲是一个虚拟容器,或者叫应用容器(ApplicationContainer)Docker中有三个核心概念:Image、Container、Repository。Image:和Windows的那种ISO镜像相比,Docker中的镜像是分层...
-
86
导读 ownCloud是一种系统,用于存储您自己或您公司的数据,而不是在别人的计算机(也称为“云”)上,而在您自己的计算机上可以控制。 privacyIDEA是一种用于管理身份验证设备的系统,用于您自己的网络中的两个身份验证,而不是任何身份提供者,从而保持您的...
-
14
How To Tell If The Verbose Parameter Of A Function Is From [CmdletBinding()] Or Manually Added Pardon the long title. I had a task recently to go through a big folder full of scripts written by random people with equally...
-
5
PowerShell 小技巧:除錯好幫手 - Write-Verbose()-黑暗執行緒呼叫 PowerShell 模組函式或跑 .ps1 程式難免會遇到程式跑完但結果不如預期的狀況,要找出哪裡出錯,加 Log 是最直接有效的做法。而 PowerShell 有一件好用武器,允許事先在程式偷偷埋入偵錯資訊,...
-
17
ERROR: An HTTP request took too long to complete. Retry with –verbose to obtain debug information 2021-07-19 这两天升级 Docker 中的 mysql 容器时报的错,其实这个解决方案不够完美,但我也不清楚具体原因,所以暂且这样...
-
7
New issue Make shadow_reuse suggestion less verbose #7782
-
6
-
12
The unreasonable effectiveness of f-strings and re.VERBOSE May 2022 ∙ six minute read ... in which we look at one or two ways to make life easier when working with Python reg...
-
6
SivaLabsMy Experiments on TechnologyShare this: Few months ago I asked on...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK