{"id":730,"date":"2024-08-25T21:22:50","date_gmt":"2024-08-26T02:22:50","guid":{"rendered":"https:\/\/www.jasonsblog.place\/?p=730"},"modified":"2024-08-25T21:27:42","modified_gmt":"2024-08-26T02:27:42","slug":"for-when-my-install-of-nextcloud-doesnt-want-to-upgrade","status":"publish","type":"post","link":"https:\/\/www.jasonsblog.place\/index.php\/2024\/08\/25\/for-when-my-install-of-nextcloud-doesnt-want-to-upgrade\/","title":{"rendered":"For when my install of Nextcloud doesn&#8217;t want to upgrade"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">When I need to upgrade my installed version of Nextcloud (previously version 28.0.7; now updated to version 28.0.9), I usually have to use the command line interface update option either because a backup step fails in the update, or the tarball integrity check fails for the new files. I use the steps recommended in the <a href=\"https:\/\/docs.nextcloud.com\/server\/latest\/admin_manual\/maintenance\/update.html#using-the-command-line-based-updater\">Nextcloud documentation<\/a>. The command I use is this one (I have an install of Ubuntu):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo -u www-data php \/var\/www\/nextcloud\/updater\/updater.phar<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Sometimes, though, this isn&#8217;t enough. I may also have to deal with an APCu error (the system or the installer may not detect it running). A part of this problem stems from having an old install and the configuration needs to be changed. That, and the server I host it on doesn&#8217;t have enough resources to run <em>all<\/em> these servers. When APCu fails me, I use this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo -u www-data php --define apc.enable_cli=1 \/var\/www\/nextcloud\/updater\/updater.phar<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">After that, the upgrade usually goes smoothly. Maybe I need to update an app or something in the database. But that&#8217;s it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Hope this helps anyone with an APCu error when they&#8217;re trying to update their install of Nextcloud.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When I need to upgrade my installed version of Nextcloud (previously version 28.0.7; now updated to version 28.0.9), I usually have to use the command line interface update option either because a backup step fails in the update, or the tarball integrity check fails for the new files. I use the steps recommended in the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[236,132,237,67,99,235,194],"class_list":["post-730","post","type-post","status-publish","format-standard","hentry","category-information-technology","tag-apcu","tag-database","tag-documentation","tag-nextcloud","tag-servers","tag-system-administration","tag-upgrades"],"_links":{"self":[{"href":"https:\/\/www.jasonsblog.place\/index.php\/wp-json\/wp\/v2\/posts\/730","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jasonsblog.place\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jasonsblog.place\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jasonsblog.place\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jasonsblog.place\/index.php\/wp-json\/wp\/v2\/comments?post=730"}],"version-history":[{"count":2,"href":"https:\/\/www.jasonsblog.place\/index.php\/wp-json\/wp\/v2\/posts\/730\/revisions"}],"predecessor-version":[{"id":733,"href":"https:\/\/www.jasonsblog.place\/index.php\/wp-json\/wp\/v2\/posts\/730\/revisions\/733"}],"wp:attachment":[{"href":"https:\/\/www.jasonsblog.place\/index.php\/wp-json\/wp\/v2\/media?parent=730"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jasonsblog.place\/index.php\/wp-json\/wp\/v2\/categories?post=730"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jasonsblog.place\/index.php\/wp-json\/wp\/v2\/tags?post=730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}