{"id":6426,"date":"2020-10-17T13:14:54","date_gmt":"2020-10-17T10:14:54","guid":{"rendered":"http:\/\/mummila.net\/kommentit\/?p=6426"},"modified":"2020-10-17T13:14:54","modified_gmt":"2020-10-17T10:14:54","slug":"i-was-affected-by-this-too-but-im-not-using-encryption","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2020\/10\/17\/i-was-affected-by-this-too-but-im-not-using-encryption\/","title":{"rendered":"I was affected by this too, but I&#8217;m not using encryption"},"content":{"rendered":"<p>I was affected by this too, but I&#8217;m not using encryption:<\/p>\n<pre><code># sudo -u www-data php occ encryption:status\r\n  - enabled: false\r\n  - defaultModule: OC_DEFAULT_MODULE\r\n<\/code><\/pre>\n<p>The server log just showed\u00a0<code>ServerNotAvailableException:\"Could not decrypt key\"<\/code>\u00a0for any connection attempts after 19-&gt;20 upgrade.<\/p>\n<p>I have another instance where I\u00a0<em>am<\/em>\u00a0using encryption, and there I was able to log in just fine. I did some diffing and found the working installation (with encryption enabled) had\u00a0<code>'encryption.legacy_format_support' =&gt; true,<\/code>, while the non-working installation (with encryption disabled) didn&#8217;t. Adding that to my config.php alone didn&#8217;t fix the issue, so I also added\u00a0<code>'encryption.key_storage_migrated' =&gt; false,<\/code>\u00a0and after that I was able to log in again.<\/p>\n<p>According to documentation,\u00a0<a href=\"https:\/\/docs.nextcloud.com\/server\/latest\/admin_manual\/configuration_files\/encryption_migration.html\" rel=\"nofollow\">starting with version 20 the legacy encryption is off by default<\/a>.\u00a0<code>occ encryption:scan:legacy-format<\/code>\u00a0is supposed to tell whether you can disable the compatibility mode, but for the instance\u00a0<em>without encryption<\/em>\u00a0it seems to produce a false positive (complete with a typo):<\/p>\n<pre><code>All scanned files are propperly encrypted. You can disable the legacy compatibility mode.\r\n<\/code><\/pre>\n<p>For the admin user, the now otherwise working, unencrypted instance also shows a &#8221;Please enable server side encryption in the admin settings in order to use the encryption module&#8221; notification in the web UI, for every page load (i.e. even after dismissal it just pops back up whenever I navigate in the UI).<\/p>\n<p>The errors reported by\u00a0<code>app:check-code encryption<\/code>\u00a0are probably unrelated, as the same errors are reported for both my instances.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The server log just showed ServerNotAvailableException:&#8221;Could not decrypt key&#8221; for any connection attempts after 19-&gt;20 upgrade.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8860],"tags":[13996],"class_list":["post-6426","post","type-post","status-publish","format-standard","hentry","category-vianhallintajarjestelmat","tag-nextcloud","sijainti-github"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/6426","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=6426"}],"version-history":[{"count":1,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/6426\/revisions"}],"predecessor-version":[{"id":6427,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/6426\/revisions\/6427"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=6426"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=6426"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=6426"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}