{"id":2048,"date":"2019-08-20T11:35:53","date_gmt":"2019-08-20T10:35:53","guid":{"rendered":"https:\/\/www.thenaylors.co.uk\/wordpress\/?p=2048"},"modified":"2020-05-20T09:50:56","modified_gmt":"2020-05-20T08:50:56","slug":"updating-nextcloud-with-the-open-updater-button-does-not-work","status":"publish","type":"post","link":"https:\/\/www.thenaylors.co.uk\/wordpress\/updating-nextcloud-with-the-open-updater-button-does-not-work\/","title":{"rendered":"Updating NextCloud with the Open Updater button does not work"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Updated the items below as not working.  Much easier to navigate to the nextcloud folder and execute<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo -u www-data php updater\/updater.phar<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8212;&#8212;&#8212;&#8212;-<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the &#8220;Open Updater&#8221; button does not work then try this.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Go to \/updater\/login.php<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Open terminal window and execute php -r &#8216;$password = trim(shell_exec(&#8220;openssl rand -base64 48&#8221;));if(strlen($password) === 64) {$hash = password_hash($password, PASSWORD_DEFAULT) . &#8220;\\n&#8221;; echo &#8220;Insert as \\&#8221;updater.secret\\&#8221;: &#8220;.$hash; echo &#8220;The plaintext value is: &#8220;.$password.&#8221;\\n&#8221;;}else{echo &#8220;Could not execute OpenSSL.\\n&#8221;;};&#8217;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check that the updater.secret is as the hashed version in the config.php file for next cloud.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Enter the non hashed version as the password if requested on the login.php page.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It should then work.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is also possible to run this manually from the next cloud home directory like this &#8230;..<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo -u www-data php \/media\/www\/nextcloud\/updater\/updater.phar<br>sudo -u www-data php occ upgrade<br>sudo -u www-data php occ maintenance:mode &#8211;off<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Updated the items below as not working. Much easier to navigate to the nextcloud folder and execute sudo -u www-data php updater\/updater.phar &#8212;&#8212;&#8212;&#8212;- If the &#8220;Open Updater&#8221; button does not work then try this. Go to \/updater\/login.php Open terminal window and execute php -r &#8216;$password = trim(shell_exec(&#8220;openssl rand -base64 48&#8221;));if(strlen($password) === 64) {$hash = password_hash($password, &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.thenaylors.co.uk\/wordpress\/updating-nextcloud-with-the-open-updater-button-does-not-work\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Updating NextCloud with the Open Updater button does not work&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,5,1],"tags":[],"class_list":["post-2048","post","type-post","status-publish","format-standard","hentry","category-linux-nas","category-nextcloud","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/posts\/2048","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/comments?post=2048"}],"version-history":[{"count":3,"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/posts\/2048\/revisions"}],"predecessor-version":[{"id":2078,"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/posts\/2048\/revisions\/2078"}],"wp:attachment":[{"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/media?parent=2048"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/categories?post=2048"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/tags?post=2048"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}