{"id":1625,"date":"2017-02-19T14:54:16","date_gmt":"2017-02-19T14:54:16","guid":{"rendered":"http:\/\/cdblog.cdstealer.com\/?p=1625"},"modified":"2017-04-02T18:58:13","modified_gmt":"2017-04-02T17:58:13","slug":"nextcloud","status":"publish","type":"post","link":"https:\/\/cdblog.cdstealer.com\/?p=1625","title":{"rendered":"Nextcloud"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1626\" src=\"http:\/\/cdblog.cdstealer.com\/wp-content\/uploads\/2017\/02\/Nextcloud_Logo.svg_-1024x726.png\" alt=\"\" width=\"474\" height=\"336\" srcset=\"https:\/\/cdblog.cdstealer.com\/wp-content\/uploads\/2017\/02\/Nextcloud_Logo.svg_-1024x726.png 1024w, https:\/\/cdblog.cdstealer.com\/wp-content\/uploads\/2017\/02\/Nextcloud_Logo.svg_-300x213.png 300w, https:\/\/cdblog.cdstealer.com\/wp-content\/uploads\/2017\/02\/Nextcloud_Logo.svg_.png 1200w\" sizes=\"auto, (max-width: 474px) 100vw, 474px\" \/><\/p>\n<p>Just a few little tips I've had to use.<\/p>\n<h6>Disable 2FA on CLI.<\/h6>\n<pre>su - apache -c \"php \/path\/to\/nextcloud\/occ twofactorauth:disable username\"<\/pre>\n<p>This will disable 2FA regardless of it it is enabled in the GUI. \u00a0You will need to enable 2FA by running the command again, but with enable instead.<\/p>\n<h6>Delete the undeleteables.<\/h6>\n<p>I had a situation where a user had ~30Gb of data in their nextcloud trash which they could not delete. \u00a0There were also files\/directories in their active files that they also could not delete. \u00a0No errors in the logs, just unable to delete :( \u00a0The work around is to manually delete them from the server and then run the following command.<\/p>\n<pre>su - apache -c \"php \/path\/to\/nextcloud\/occ files:scan &lt;user&gt;\"<\/pre>\n<p>This removes invalid file references from the database.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just a few little tips I've had to use. Disable 2FA on CLI. su - apache -c \"php \/path\/to\/nextcloud\/occ twofactorauth:disable username\" This will disable 2FA regardless of it it is enabled in the GUI. \u00a0You will need to enable 2FA by running the command again, but with enable instead. Delete the undeleteables. I had a &hellip; <a href=\"https:\/\/cdblog.cdstealer.com\/?p=1625\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Nextcloud<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[280,18,279],"class_list":["post-1625","post","type-post","status-publish","format-standard","hentry","category-gentoo","tag-2fa","tag-linux","tag-nextcloud"],"_links":{"self":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts\/1625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1625"}],"version-history":[{"count":5,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts\/1625\/revisions"}],"predecessor-version":[{"id":1690,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts\/1625\/revisions\/1690"}],"wp:attachment":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}