{"id":2262,"date":"2018-12-12T05:29:47","date_gmt":"2018-12-11T20:29:47","guid":{"rendered":"http:\/\/matoken.org\/blog\/?p=2262"},"modified":"2018-12-12T05:32:22","modified_gmt":"2018-12-11T20:32:22","slug":"failure-trying-to-upgrade-nextcloud-to-15","status":"publish","type":"post","link":"https:\/\/matoken.org\/blog\/2018\/12\/12\/failure-trying-to-upgrade-nextcloud-to-15\/","title":{"rendered":"Nextcloud \u3092 15 \u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u3088\u3046\u3068\u3057\u3066\u30b3\u30b1\u308b"},"content":{"rendered":"<p><a data-flickr-embed=\"true\"  href=\"https:\/\/www.flickr.com\/photos\/matoken\/46227373492\/in\/dateposted\/\" title=\"20181212_05:12:42-18746\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/farm5.staticflickr.com\/4857\/46227373492_0fbee113f2.jpg\" width=\"500\" height=\"316\" alt=\"20181212_05:12:42-18746\"\/><\/a><\/p>\n<p>Nextcloud 15 \u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\uff0e<\/p>\n<ul>\n<li><a href=\"https:\/\/nextcloud.com\/changelog\/#latest15\">Changelog \u2013 Nextcloud<\/a><\/li>\n<\/ul>\n<p>14.0.4 \u304b\u3089\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u3088\u3046\u3068\u3057\u307e\u3057\u305f\u304c\u5931\u6557\u3057\u307e\u3057\u305f\uff0e\u305d\u306e\u30e1\u30e2\u3067\u3059\uff0e<\/p>\n<pre><code>$ sudo -u www-data php7.0 .\/occ upgrade\r\nNextcloud or one of the apps require upgrade - only a limited number of commands are available\r\nYou may use your browser or the occ upgrade command to do the upgrade\r\nSet log level to debug\r\nUpdating database schema\r\nUpdated database\r\nUnexpectedValueException: The files of the app &quot;user_external&quot; were not correctly replaced before running the update\r\nUpdate failed\r\nMaintenance mode is kept active\r\nReset log level\r\n<\/code><\/pre>\n<p>\u6574\u5408\u6027\u304c\u4fdd\u305f\u308c\u3066\u3044\u306a\u3044\u3088\u3046\u306a\u306e\u3067\u624b\u52d5\u3067\u30a2\u30fc\u30ab\u30a4\u30d6\u3092\u5165\u624b\u3057\u3066\u6bd4\u8f03\u3059\u308b\u3068\u540c\u3058\u306b\u898b\u3048\u308b<\/p>\n<pre><code>$ wget https:\/\/download.nextcloud.com\/server\/releases\/nextcloud-15.0.0.tar.bz2 https:\/\/download.nextcloud.com\/server\/releases\/nextcloud-15.0.0.tar.bz2.asc\r\n$ gpg --verify .\/nextcloud-15.0.0.tar.bz2.asc\r\ngpg: \u7f72\u540d\u3055\u308c\u305f\u30c7\u30fc\u30bf\u304c'.\/nextcloud-15.0.0.tar.bz2'\u306b\u3042\u308b\u3068\u60f3\u5b9a\u3057\u307e\u3059 \r\ngpg: 2018\u5e7412\u670810\u65e5 19\u664227\u520611\u79d2 JST\u306bRSA\u9375ID A724937A\u3067\u65bd\u3055\u308c\u305f\u7f72\u540d\r\ngpg: &quot;Nextcloud Security &lt;security@nextcloud.com&gt;&quot;\u304b\u3089\u306e\u6b63\u3057\u3044\u7f72\u540d\r\ngpg: *\u8b66\u544a*: \u3053\u306e\u9375\u306f\u4fe1\u7528\u3067\u304d\u308b\u7f72\u540d\u3067\u8a3c\u660e\u3055\u308c\u3066\u3044\u307e\u305b\u3093!\r\ngpg:          \u3053\u306e\u7f72\u540d\u304c\u6240\u6709\u8005\u306e\u3082\u306e\u304b\u3069\u3046\u304b\u306e\u691c\u8a3c\u624b\u6bb5\u304c\u3042\u308a\u307e\u305b\u3093\u3002 \r\n\u4e3b\u9375\u30d5\u30a3\u30f3\u30ac\u30fc\u30fb\u30d7\u30ea\u30f3\u30c8: 2880 6A87 8AE4 23A2 8372  792E D758 99B9 A724 937A\r\n$ tar tvf .\/nextcloud-15.0.0.tar.bz2 | lv\r\n$ tar xf .\/nextcloud-15.0.0.tar.bz2\r\n$ sudo -u www-data rsync -acvvn .\/nextcloud\/apps\/user_external \/var\/www\/home.matoken.org\/nextcloud\/apps\/\r\nsending incremental file list\r\ndelta-transmission disabled for local transfer or --whole-file\r\nuser_external\/\r\nuser_external\/appinfo\/app.php is uptodate\r\nuser_external\/appinfo\/database.xml is uptodate\r\nuser_external\/appinfo\/info.xml is uptodate\r\nuser_external\/appinfo\/signature.json is uptodate\r\nuser_external\/img\/app.svg is uptodate\r\nuser_external\/lib\/base.php is uptodate\r\nuser_external\/lib\/ftp.php is uptodate\r\nuser_external\/lib\/imap.php is uptodate\r\nuser_external\/lib\/smb.php is uptodate\r\nuser_external\/lib\/webdavauth.php is uptodate\r\ntotal: matches=0  hash_hits=0  false_alarms=0 data=0\r\n\r\nsent 515 bytes  received 587 bytes  2,204.00 bytes\/sec\r\ntotal size is 19,690  speedup is 17.87 (DRY RUN)\r\n<\/code><\/pre>\n<p>\u3053\u306e\u3042\u305f\u308a\u306e\u30d0\u30b0\u307d\u3044<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/nextcloud\/server\/issues\/12506\">Upgrade from 14 to 15 Beta failed \u00b7 Issue #12506 \u00b7 nextcloud\/server<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/nextcloud\/apps\/issues\/68\">Nextcloud-15.0 &amp; user_external-0.4 #68<\/a><\/li>\n<\/ul>\n<p>\u3061\u306a\u307f\u306b <code>user_external<\/code> \u306fFTP, IMAP, SMB \u306e\u8a8d\u8a3c\u5468\u308a\u306e\u3088\u3046\uff0e<\/p>\n<blockquote>\n<p>Authenticate user login against FTP, IMAP or SMB.<\/p>\n<\/blockquote>\n<ul>\n<li><a href=\"https:\/\/github.com\/nextcloud\/apps\/tree\/master\/user_external\">&#8220;apps\/user_external at master \u00b7 nextcloud\/apps&#8221; https:\/\/github.com\/nextcloud\/apps\/tree\/master\/user_external<\/a><\/li>\n<\/ul>\n<p>\u3068\u308a\u3042\u3048\u305a\u8a72\u5f53\u306e user_external \u3092\u7121\u52b9\u306b\u3057\u3066\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u306f\u901a\u3063\u305f<\/p>\n<pre><code>$ sudo -u www-data php7.0 .\/occ app:disable user_external\r\n$ sudo -u www-data php7.0 .\/occ upgrade\r\n<\/code><\/pre>\n<p>\u901a\u3063\u305f\u3051\u3069\u7121\u52b9\u306b\u3057\u3066\u3044\u3066\u3082\u6012\u3089\u308c\u308b<\/p>\n<blockquote>\n<p>Some files have not passed the integrity check. Further information on how to resolve this issue can be found in the documentation. (List of invalid files\u2026 \/ Rescan\u2026)<\/p>\n<\/blockquote>\n<pre><code>Technical information\r\n=====================\r\nThe following list covers which files have failed the integrity check. Please read\r\nthe previous linked documentation to learn more about the errors and how to fix\r\nthem.\r\n\r\nResults\r\n=======\r\n- user_external\r\n    - EXTRA_FILE\r\n        - user_external\/appinfo\/signature.json\r\n\r\nRaw output\r\n==========\r\nArray\r\n(\r\n    [user_external] =&gt; Array\r\n        (\r\n            [EXTRA_FILE] =&gt; Array\r\n                (\r\n                    [user_external\/appinfo\/signature.json] =&gt; Array\r\n                        (\r\n                            [expected] =&gt; \r\n                            [current] =&gt; 37efcee67605ab01a595df9b8e37a63f0260a8d795cb4af9b1b40e137ace928193747445954b22455fcbfd1758ea9b663153afc73438f5370725682e344c8723\r\n                        )\r\n\r\n                )\r\n\r\n        )\r\n\r\n)\r\n<\/code><\/pre>\n<p>\u307e\u3060\u975e\u5bfe\u5fdc\u30a2\u30d7\u30ea\u3082\u591a\u3044\u3057\u30e1\u30a4\u30f3\u74b0\u5883\u306f\u66ab\u304f\u5f85\u3063\u305f\u307b\u3046\u304c\u826f\u3055\u305d\u3046\u306a\u611f\u3058\u3067\u3059\uff0e<\/p>\n<h2>\u74b0\u5883<\/h2>\n<pre><code>$ sudo -u www-data php7.0 .\/occ status -v\r\n  - installed: true\r\n  - version: 15.0.0.10\r\n  - versionstring: 15.0.0\r\n  - edition: \r\n$ lsb_release -d\r\nDescription:    Ubuntu 16.04.5 LTS\r\n$ uname -m\r\nx86_64\r\n<\/code><\/pre>\n<p><iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=matokensmeme-22&#038;language=ja_JP&#038;o=9&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=as_ss_li_til&#038;asins=B01N90X0TI&#038;linkId=73c54a5112dbc65f48c7450d00350a2d\"><\/iframe><iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=matokensmeme-22&#038;language=ja_JP&#038;o=9&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=as_ss_li_til&#038;asins=B01N00F9YO&#038;linkId=8d15c85089c864a33e1bf2957a928ee2\"><\/iframe><iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=matokensmeme-22&#038;language=ja_JP&#038;o=9&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=as_ss_li_til&#038;asins=B073ZGQZM1&#038;linkId=5121bdd38f08bc6c627d3e3d69a3e43f\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nextcloud 15 \u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\uff0e Changelog \u2013 Nextcloud 14.0.4 \u304b\u3089\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u3088\u3046\u3068\u3057\u307e\u3057\u305f\u304c\u5931\u6557\u3057\u307e\u3057\u305f\uff0e\u305d\u306e\u30e1\u30e2\u3067\u3059\uff0e $ sudo -u www-data php7 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"webmentions_disabled_pings":false,"webmentions_disabled":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[6,63,152],"tags":[316],"class_list":["post-2262","post","type-post","status-publish","format-standard","hentry","category-linux","category-ubuntu","category-xenial16-04","tag-nextcloud"],"_links":{"self":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/2262","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/comments?post=2262"}],"version-history":[{"count":0,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/2262\/revisions"}],"wp:attachment":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/media?parent=2262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/categories?post=2262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/tags?post=2262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}