Encryption after backup restore

  • installed: true
  • version: 16.0.1.1
  • versionstring: 16.0.1
  • edition:
    According to occ status version before i trigger a update is 16.0.1.1
    Operating system and version , Ubuntu 18.04
    nginx version: nginx/1.14.0 (Ubuntu)

php 7.2

The issue you are facing:
I backuped database and files as per the backup documents.
restored same way,
i’m guessing that because I now have one version up there’s a update to to 16.0.1.1 it breaks the encryption

I can’t find a download for version 16.0.1

unencrypt doesnt’ work,
i’m at a loss at this point

y

Steps to replicate it:

  1. backup encrypted users and the database for version 16.0.1
  2. restore to version 16.0.1.1

The output of your Nextcloud log in Admin > Logging:

{"reqId":"eihexOHbHqomCeeHt8Zu","level":3,"time":"2019-06-05T12:32:33+00:00","remoteAddr":"117.102.143.136","user":"glen","app":"no app in context","method":"GET","url":"\/nextcloud\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":{"Exception":"OCP\\Encryption\\Exceptions\\GenericEncryptionException","Message":"Bad Signature","Code":0,"Trace":[{"file":"\/var\/www\/html\/nextcloud\/apps\/encryption\/lib\/Crypto\/Crypt.php","line":467,"function":"checkSignature","class":"OCA\\Encryption\\Crypto\\Crypt","type":"->","args":["SbgZS8uNl9twd4IFQCPdqi5+ysymtAO0Aq6a75\/uvK\/2A8I9xNZwXS7kt\/gJYAMYZhMJTCCWTOh0ceIksTxXHVOlNprYF7+O8y0P3f13OQG\/JF8swX0sGdE2xdDTGFPVSxnDHW1cNIzjQZk3gjvERdqJqOy35lY58pMmFnzxh4\/1uawENbgPwibTAVXHzcSwbETPzbeuaFcYEVKMKVf0j8RCXaxQylejrGB5PZArAwL3po5kS2dvuRgaVktj3y7\/EGZV8FB0f7XQB3wL8BQEEqOoxAHGaEemY8gU\/Mfjv9dKnbrZhT8Le5jb7uVbtPl9w56+cREBF2CVQfnFkt3xyhRl9HjVMfnST0zryteigeNXfKaJ6O7cvm\/3Rr3Abc\/lyS3vbalJYRZhwOE2IO7SKc1mVuR\/Dj1g0Zb0GFLNndXWP9+yLFakEZqlK3U6NT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U14B1zPaoRDUdE6c3grVZndqOX5uPWmgctpylMowis3Mulg3elpg5xnD432XQxvaeLGrHMldwTUoApYkIbvaxaIwo4dV6GUVCqi4nTxX2rJK4B8hnd+7JruSFe9B1E4S0ytPeCStg+sQNRnCLlmCQTFYRbul69oa86fn250ti6Ls6ArqpaXuqS\/IsGWwf4NbEw6wf4KaKj4l9huL6uGvVj3e49fNM1vqcNc8TbG6bam8Lgch7YWXkwKlLXyeWXIqfVfLYpFdPmtNNqB6nVhGMRijbNH1QeL5d2CC6tkMgAHgGJPUonc1JKobiPSYje1t65K3q6sqnlb\/gO\/aLTuAOdwzV84pLMyMEyus+N3K0UoTBAF6Dd02sMd7vvXycl9wTJHKc4EDkp04pUvqpEY\/pIeM\/xaTzo\/9tK9Olmc0AdPh45tVE5MxvGlQu2pZx8HAuX9TD\/gTjhSyUcECvhAUwJZM14pGO7Pv0C5gRv56Qj4xth8QaZdoiI3WJJsvP0n2T3NxXBIeVx9ssODqyOP+3OJq1n4Gxu3zI9eTpJsh9jGCbt\/8KbIIhxt9KpxlPaTyF7a7cCqVctF+GZEOZY2N69ROFC4pLMKGH47+fEzFxDmtnp\/2v5oBY6EYw+Gn8rhliAKibmSJG+L28owvGqds6N80p\/2mjRTes6wGbstXg2H5Ng1qKwXwgFXPuxiz8e7ppVY2nI0=",null,"5ad03a4a260eb25adf297e9aa65b53f7f6db0d01c60b4303e3dc51bc7073578c"]},{"file":"\/var\/www\/html\/nextcloud\/apps\/encryption\/lib\/Crypto\/Crypt.php","line":422,"function":"symmetricDecryptFileContent","class":"OCA\\Encryption\\Crypto\\Crypt","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***","AES-256-CTR",0]},{"file":"\/var\/www\/html\/nextcloud\/apps\/encryption\/lib\/KeyManager.php","line":201,"function":"decryptPrivateKey","class":"OCA\\Encryption\\Crypto\\Crypt","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"\/var\/www\/html\/nextcloud\/apps\/encryption\/lib\/Users\/Setup.php","line":87,"function":"validateMasterKey","class":"OCA\\Encryption\\KeyManager","type":"->","args":[]},{"file":"\/var\/www\/html\/nextcloud\/apps\/encryption\/lib\/AppInfo\/Application.php","line":70,"function":"setupSystem","class":"OCA\\Encryption\\Users\\Setup","type":"->","args":[]},{"file":"\/var\/www\/html\/nextcloud\/apps\/encryption\/appinfo\/app.php","line":35,"function":"setUp","class":"OCA\\Encryption\\AppInfo\\Application","type":"->","args":[]},{"file":"\/var\/www\/html\/nextcloud\/lib\/private\/legacy\/app.php","line":261,"args":["\/var\/www\/html\/nextcloud\/apps\/encryption\/appinfo\/app.php"],"function":"require_once"},{"file":"\/var\/www\/html\/nextcloud\/lib\/private\/legacy\/app.php","line":154,"function":"requireAppFile","class":"OC_App","type":"::","args":[{"__class__":"OCA\\Encryption\\AppInfo\\Application"}]},{"file":"\/var\/www\/html\/nextcloud\/lib\/private\/legacy\/app.php","line":127,"function":"loadApp","class":"OC_App","type":"::","args":["encryption"]},{"file":"\/var\/www\/html\/nextcloud\/ocs\/v1.php","line":56,"function":"loadApps","class":"OC_App","type":"::","args":[]},{"file":"\/var\/www\/html\/nextcloud\/ocs\/v2.php","line":24,"args":["\/var\/www\/html\/nextcloud\/ocs\/v1.php"],"function":"require_once"}],"File":"\/var\/www\/html\/nextcloud\/apps\/encryption\/lib\/Crypto\/Crypt.php","Line":491,"Hint":"Bad Signature","CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/74.0.3729.169 Safari\/537.36","version":"16.0.1.1"}
{"reqId":"wWHeYlMHL0N7LTnGQPei","level":3,"time":"2019-06-05T12:32:36+00:00","remoteAddr":"117.102.143.136","user":"glen","app":"no app in context","method":"GET","url":"\/nextcloud\/logout?requesttoken=okDHypZp%2B38ulrQCDG39%2BSnUZJdh92hn1eLe73FinY0%3D%3A6Timk9EjkTR58p9kOxyxv1iSAOFQwV0T46eVpiJa7Mw%3D","message":{"Exception":"OCP\\Encryption\\Exceptions\\GenericEncryptionException","Message":"Bad Signature","Code":0,"Trace":[{"file":"\/var\/www\/html\/nextcloud\/apps\/encryption\/lib\/Crypto\/Crypt.php","line":467,"function":"checkSignature","class":"OCA\\Encryption\\Crypto\\Crypt","type":"->","args":["SbgZS8uNl9twd4IFQCPdqi5+ysymtAO0Aq6a75\/uvK\/2A8I9xNZwXS7kt\/gJYAMYZhMJTCCWTOh0ceIksTxXHVOlNprYF7+O8y0P3f13OQG\/JF8swX0sGdE2xdDTGFPVSxnDHW1cNIzjQZk3gjvERdqJqOy35lY58pMmFnzxh4\/1uawENbgPwibTAVXHzcSwbETPzbeuaFcYEVKMKVf0j8RCXaxQylejrGB5PZArAwL3po5kS2dvuRgaVktj3y7\/EGZV8FB0f7XQB3wL8BQEEqOoxAHGaEemY8gU\/Mfjv9dKnbrZhT8Le5jb7uVbtPl9w56+cREBF2CVQfnFkt3xyhRl9HjVMfnST0zryteigeNXfKaJ6O7cvm\/3Rr3Abc\/lyS3vbalJYRZhwOE2IO7SKc1mVuR\/Dj1g0Zb0GFLNndXWP9+yLFakEZqlK3U6NTsE0cQTsvX32PhPUDqNOB2rK9LcOwGbB4ZaYKhaJHaFwOjozUcRS9EEklwuRQ0x0Q3gIMrKJJhxJ5uuUvBaUKPcU3baXLNBb6NfMOtGdUxnYHnP6TRetEtvLjZVaBEgOdyC4eW4KKmrMOEsa0dEKHVBtvPT0T\/MJvau3Sx\/OzRP4eBNHS\/0z6BZ1erOGRpmhPY3qNAu25v1qvh+4Gtk2TOGV2kxKm3bRporZAZqDJSoxRwIZfVUQRkY8sVRZk9vs0k+ExfU0u86ZNkQ4KrIO20uDlhisbAsAE9avDrrpXI0bK5KfCyz9byqz3PfhR6Im86nCq5dpoCJG1qjpYwnM\/UYPABis1WfNEj\/uWYGlHRV840hPG9OAuafO0rKj0Wh9KHsaIWdEqKeAXWLiKbBaVTuGS44795OaMxvA5zy4o1QHEOFVwwXwtduYiMZY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hSyUcECvhAUwJZM14pGO7Pv0C5gRv56Qj4xth8QaZdoiI3WJJsvP0n2T3NxXBIeVx9ssODqyOP+3OJq1n4Gxu3zI9eTpJsh9jGCbt\/8KbIIhxt9KpxlPaTyF7a7cCqVctF+GZEOZY2N69ROFC4pLMKGH47+fEzFxDmtnp\/2v5oBY6EYw+Gn8rhliAKibmSJG+L28owvGqds6N80p\/2mjRTes6wGbstXg2H5Ng1qKwXwgFXPuxiz8e7ppVY2nI0=",null,"5ad03a4a260eb25adf297e9aa65b53f7f6db0d01c60b4303e3dc51bc7073578c"]},{"file":"\/var\/www\/html\/nextcloud\/apps\/encryption\/lib\/Crypto\/Crypt.php","line":422,"function":"symmetricDecryptFileContent","class":"OCA\\Encryption\\Crypto\\Crypt","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***","AES-256-CTR",0]},{"file":"\/var\/www\/html\/nextcloud\/apps\/encryption\/lib\/KeyManager.php","line":201,"function":"decryptPrivateKey","class":"OCA\\Encryption\\Crypto\\Crypt","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"\/var\/www\/html\/nextcloud\/apps\/encryption\/lib\/Users\/Setup.php","line":87,"function":"validateMasterKey","class":"OCA\\Encryption\\KeyManager","type":"->","args":[]},{"file":"\/var\/www\/html\/nextcloud\/apps\/encryption\/lib\/AppInfo\/Application.php","line":70,"function":"setupSystem","class":"OCA\\Encryption\\Users\\Setup","type":"->","args":[]},{"file":"\/var\/www\/html\/nextcloud\/apps\/encryption\/appinfo\/app.php","line":35,"function":"setUp","class":"OCA\\Encryption\\AppInfo\\Application","type":"->","args":[]},{"file":"\/var\/www\/html\/nextcloud\/lib\/private\/legacy\/app.php","line":261,"args":["\/var\/www\/html\/nextcloud\/apps\/encryption\/appinfo\/app.php"],"function":"require_once"},{"file":"\/var\/www\/html\/nextcloud\/lib\/private\/legacy\/app.php","line":154,"function":"requireAppFile","class":"OC_App","type":"::","args":[{"__class__":"OCA\\Encryption\\AppInfo\\Application"}]},{"file":"\/var\/www\/html\/nextcloud\/lib\/private\/legacy\/app.php","line":127,"function":"loadApp","class":"OC_App","type":"::","args":["encryption"]},{"file":"\/var\/www\/html\/nextcloud\/lib\/base.php","line":960,"function":"loadApps","class":"OC_App","type":"::","args":[]},{"file":"\/var\/www\/html\/nextcloud\/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/var\/www\/html\/nextcloud\/apps\/encryption\/lib\/Crypto\/Crypt.php","Line":491,"Hint":"Bad Signature","CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/74.0.3729.169 Safari\/537.36","version":"16.0.1.1"}
"nextcloud.log" 11L, 78908C    

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

$CONFIG = array (
  'instanceid' => 'oc0qe8ljynkj',
  'passwordsalt' => 'wOHIKTrthR1iHoIyiYUsHS/4bfulIC',
  'secret' => 'jHiAJpX+QXrMMK6rI5gU/zM29veYxNjqyH0TgV4SmmneKiXE',
  'trusted_domains' =>
  array (
    0 => 'devyn.zapto.org',
  ),
  'datadirectory' => '/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '16.0.1.1',
  'overwrite.cli.url' => 'https://devyn.zapto.org/nextcloud',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_root2',
  'dbpassword' => '*******',
  'installed' => true,
  'maintenance' => true,
);

I put it in maintenance to prevent users from connectiong till I get the encryption thing figured out.

The output of your Apache/nginx/system log in /var/log/____:

error log
2019/06/04 15:05:54 [error] 407#407: *68 "/var/www/html/nextcloud/index.php" is not found (2: No such file or directory), client: 117.102.143.136, server: _, request: "GET /nextcloud/ HTTP/1.1", host: "devyn.zapto.org"
2019/06/04 15:06:00 [error] 407#407: *80 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 77.247.108.71, server: _, request: "GET /vtigercrm/vtigerservice.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "173.212.211.142"
2019/06/04 18:21:09 [error] 407#407: *215 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 77.247.108.71, server: _, request: "GET /vtigercrm/vtigerservice.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "173.212.211.142"
2019/06/04 22:13:53 [crit] 407#407: *296 SSL_do_handshake() failed (SSL: error:1417D102:SSL routines:tls_process_client_hello:unsupported protocol) while SSL handshaking, client: 221.212.99.106, server: 0.0.0.0:443
2019/06/04 22:13:54 [crit] 407#407: *297 SSL_do_handshake() failed (SSL: error:1417D18C:SSL routines:tls_process_client_hello:version too low) while SSL handshaking, client: 221.212.99.106, server: 0.0.0.0:443
2019/06/04 22:18:47 [crit] 407#407: *298 SSL_do_handshake() failed (SSL: error:1417D102:SSL routines:tls_process_client_hello:unsupported protocol) while SSL handshaking, client: 159.203.169.16, server: 0.0.0.0:443
2019/06/04 23:27:57 [error] 407#407: *303 open() "/var/www/html/a2billing/customer/templates/default/footer.tpl" failed (2: No such file or directory), client: 77.247.108.71, server: _, request: "GET /a2billing/customer/templates/default/footer.tpl HTTP/1.1", host: "173.212.211.142"
2019/06/05 01:03:57 [error] 407#407: *369 access forbidden by rule, client: 193.232.106.88, server: _, request: "GET /.env HTTP/1.1", host: "173.212.211.142"
2019/06/05 02:38:25 [error] 407#407: *704 open() "/var/www/html/a2billing/customer/templates/default/footer.tpl" failed (2: No such file or directory), client: 77.247.108.71, server: _, request: "GET /a2billing/customer/templates/default/footer.tpl HTTP/1.1", host: "173.212.211.142"
2019/06/05 03:11:50 [crit] 407#407: *860 SSL_do_handshake() failed (SSL: error:1417D18C:SSL routines:tls_process_client_hello:version too low) while SSL handshaking, client: 74.82.47.3, server: 0.0.0.0:443
2019/06/05 03:31:55 [error] 407#407: *932 "/var/www/html/recordings/index.php" is not found (2: No such file or directory), client: 77.247.108.71, server: _, request: "GET /recordings/ HTTP/1.1", host: "173.212.211.142"
2019/06/05 06:43:54 [error] 407#407: *1855 "/var/www/html/recordings/index.php" is not found (2: No such file or directory), client: 77.247.108.71, server: _, request: "GET /recordings/ HTTP/1.1", host: "173.212.211.142"
2019/06/05 11:45:11 [emerg] 14413#14413: "root" directive is duplicate in /etc/nginx/templates/nextcloud.tmpl:13
2019/06/05 11:45:31 [emerg] 14421#14421: "root" directive is duplicate in /etc/nginx/templates/nextcloud.tmpl:13
2019/06/05 11:46:10 [emerg] 14441#14441: "root" directive is duplicate in /etc/nginx/templates/nextcloud.tmpl:13
2019/06/05 11:46:48 [emerg] 14464#14464: duplicate location "/robots.txt" in /etc/nginx/templates/nextcloud.tmpl:15
2019/06/05 11:47:37 [notice] 14487#14487: signal process started
2019/06/05 11:48:22 [notice] 14505#14505: signal process started
2019/06/05 11:48:36 [notice] 14512#14512: signal process started
2019/06/05 11:49:54 [notice] 14546#14546: signal process started
2019/06/05 12:46:56 [crit] 14547#14547: *3779 SSL_do_handshake() failed (SSL: error:1417D18C:SSL routines:tls_process_client_hello:version too low) while SSL handshaking, client: 198.108.66.96, server: 0.0.0.0:443
2019/06/05 12:47:35 [error] 14547#14547: *3781 FastCGI sent in stderr: "Unable to open primary script: /var/www/html/admin/config.php (No such file or directory)" while reading response header from upstream, client: 71.6.143.208, server: devyn.zapto.org, request: "GET /admin//config.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "173.212.211.142"
2019/06/05 13:03:25 [error] 14547#14547: *3987 FastCGI sent in stderr: "PHP message: PHP Warning:  fileperms(): stat failed for /nextcloud/data/nextcloud.log in /var/www/html/nextcloud/lib/private/Log/File.php on line 140
PHP message: {"reqId":"1KykRYSEb9xGCsPID4um","level":3,"time":"2019-06-05T11:03:25+00:00","remoteAddr":"117.102.143.136","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/csrftoken","message":"file_get_contents(\/nextcloud\/data\/appdata_ocl2ley8ira7\/js\/core\/merged-template-prepend.js.deps): failed to open stream: Permission denied at \/var\/www\/html\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#216","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/74.0.3729.169 Safari\/537.36","version":"16.0.1.1"}
PHP message: PHP Warning:  fileperms(): stat failed for /nextcloud/data/nextcloud.log in /var/www/html/nextcloud/lib/private/Log/File.php on line 140
PHP message: {"reqId":"1KykRYSEb9xGCsPID4um","level":3,"time":"2019-06-05T11:03:25+00:00","remoteAddr":"117.102.143.136","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/csrftoken","message":"stat(): stat failed for \/nextcloud\/data\/appdata_ocl2ley8ira7\/js\/core\/merged-template-prepend.js.deps at \/var\/www\/html\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#142","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/74.0.3729.169 Safari\/537.36","version":"16.0.1.1"}
PHP message: PHP Warning:  fileperms(): stat failed for /nextcloud/data/nextcloud.log in /var/www/html/nextcloud/lib/private/Log/File.php on line 140
PHP message: {"reqId":"1KykRYSEb9xGCsPID4um","level":3,"time":"2019-06-05T11:03:25+00:00","remoteAddr":"117.102.143.136","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/csrftoken","message":"stat(): stat failed for \/nextcloud\/data\/appdata_ocl2ley8ira7\/js\/core at \/var\/www\/html\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#142","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64;
2019/06/05 13:03:25 [error] 14547#14547: *3987 FastCGI sent in stderr: "":"16.0.1.1"}
PHP message: PHP Warning:  fileperms(): stat failed for /nextcloud/data/nextcloud.log in /var/www/html/nextcloud/lib/private/Log/File.php on line 140
PHP message: {"reqId":"1KykRYSEb9xGCsPID4um","level":3,"time":"2019-06-05T11:03:25+00:00","remoteAddr":"117.102.143.136","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/csrftoken","message":"touch(): Unable to create file \/nextcloud\/data\/appdata_ocl2ley8ira7\/js\/core\/merged-template-prepend.js.deps because Permission denied at \/var\/www\/html\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#206","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/74.0.3729.169 Safari\/537.36","version":"16.0.1.1"}
PHP message: PHP Warning:  fileperms(): stat failed for /nextcloud/data/nextcloud.log in /var/www/html/nextcloud/lib/private/Log/File.php on line 140
PHP message: {"reqId":"1KykRYSEb9xGCsPID4um","level":3,"time":"2019-06-05T11:03:25+00:00","remoteAddr":"117.102.143.136","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/csrftoken","message":"touch(): Unable to create file \/nextcloud\/data\/appdata_ocl2ley8ira7\/js\/core\/merged-template-prepend.js.gzip because Permission denied at \/var\/www\/html\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#206","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/74.0.3729.169 Safari\/537.36","version":"16.0.1.1"}
PHP message: PHP Warning:  fileperms(): stat failed for /nextcloud/data/nextcloud.log in /var/www/html/nextcloud/lib/private/Log/File.php on line 140
PHP message: {"reqId":"1KykRYSEb9xGCsPID4um","level":3,"time":"2019-06-05T11:03:25+00:00","remoteAddr":"117.102.143.136","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/csrftoken","message":"stat(): stat failed for \/nextcloud\/data\/appdata_ocl2ley8ira7\/js\/core\/merged-template-prepend.js at \/var\/www\/html\/nextcloud\/lib\/private\/Files\/Stor
2019/06/05 13:03:25 [error] 14547#14547: *3987 FastCGI sent in stderr: "p":"PHP","method":"GET","url":"\/nextcloud\/csrftoken","message":"touch(): Unable to create file \/nextcloud\/data\/appdata_ocl2ley8ira7\/js\/core\/merged-template-prepend.js because Permission denied at \/var\/www\/html\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#206","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/74.0.3729.169 Safari\/537.36","version":"16.0.1.1"}
PHP message: PHP Warning:  fileperms(): stat failed for /nextcloud/data/nextcloud.log in /var/www/html/nextcloud/lib/private/Log/File.php on line 140
PHP message: {"reqId":"1KykRYSEb9xGCsPID4um","level":3,"time":"2019-06-05T11:03:25+00:00","remoteAddr":"117.102.143.136","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/csrftoken","message":"touch(): Unable to create file \/nextcloud\/data\/appdata_ocl2ley8ira7\/js\/core\/merged-template-prepend.js.deps because Permission denied at \/var\/www\/html\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#206","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/74.0.3729.169 Safari\/537.36","version":"16.0.1.1"}
PHP message: PHP Warning:  fileperms(): stat failed for /nextcloud/data/nextcloud.log in /var/www/html/nextcloud/lib/private/Log/File.php on line 140
PHP message: {"reqId":"1KykRYSEb9xGCsPID4um","level":3,"time":"2019-06-05T11:03:25+00:00","remoteAddr":"117.102.143.136","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/csrftoken","message":"touch(): Unable to create file \/nextcloud\/data\/appdata_ocl2ley8ira7\/js\/core\/merged-template-prepend.js.gzip because Permission denied at \/var\/www\/html\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#206","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/74.0.3729.169 Safari\/537.36","version":"16.0.1.1"}
PHP message: PHP Warning:  fileperms(): stat failed for /nextcloud/data/nextcloud.log in /v
2019/06/05 13:03:25 [error] 14547#14547: *3987 FastCGI sent in stderr: "tml\/nextcloud\/lib\/private\/Template\/JSCombiner.php","line":194,"function":"putContent","class":"OC\\Files\\SimpleFS\\SimpleFile","type...
PHP message: PHP Warning:  fileperms(): stat failed for /nextcloud/data/nextcloud.log in /var/www/html/nextcloud/lib/private/Log/File.php on line 140
PHP message: {"reqId":"1KykRYSEb9xGCsPID4um","level":3,"time":"2019-06-05T11:03:25+00:00","remoteAddr":"117.102.143.136","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/csrftoken","message":"fileperms(): stat failed for \/nextcloud\/data\/nextcloud.log at \/var\/www\/html\/nextcloud\/lib\/private\/Log\/File.php#140","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/74.0.3729.169 Safari\/537.36","version":"16.0.1.1"}
PHP message: {"reqId":"1KykRYSEb9xGCsPID4um","level":3,"time":"2019-06-05T11:03:25+00:00","remoteAddr":"117.102.143.136","user":"--","app":"core","method":"GET","url":"\/nextcloud\/csrftoken","message":{"Exception":"OCP\\Files\\NotFoundException","Message":"\/appdata_ocl2ley8ira7\/js\/core","Code":0,"Trace":[{"file":"\/var\/www\/html\/nextcloud\/lib\/private\/Files\/Node\/Node.php","line":274,"function":"get","class":"OC\\Files\\Node\\Root","type":"->","args":["\/appdata_ocl2ley8ira7\/js\/core"]},{"file":"\/var\/www\/html\/nextcloud\/lib\/private\/Files\/SimpleFS\/SimpleFile.php","line":126,"function":"getParent","class":"OC\\Files\\Node\\Node","type":"->","args":[]},{"file":"\/var\/www\/html\/nextcloud\/lib\/private\/Files\/SimpleFS\/SimpleFile.php","line":108,"function":"checkFile","class":"OC\\Files\\SimpleFS\\SimpleFile","type":"->","args":[]},{"file":"\/var\/www\/html\/nextcloud\/lib\/private\/Template\/JSCombiner.php","line":194,"function":"putContent","class":"OC\\Files\\SimpleFS\\SimpleFile","type" while reading response header from upstream, client: 117.102.143.136, server: devyn.zapto.org, request: "GET /nextcloud/csrftoken HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001
2019/06/05 13:03:25 [error] 14547#14547: *3987 FastCGI sent in stderr: "PHP message: PHP Warning:  fileperms(): stat failed for /nextcloud/data/nextcloud.log in /var/www/html/nextcloud/lib/private/Log/File.php on line 140
PHP message: {"reqId":"1KykRYSEb9xGCsPID4um","level":3,"time":"2019-06-05T11:03:25+00:00","remoteAddr":"117.102.143.136","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/csrftoken","message":"fileperms(): stat failed for \/nextcloud\/data\/nextcloud.log at \/var\/www\/html\/nextcloud\/lib\/private\/Log\/File.php#140","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/74.0.3729.169 Safari\/537.36","version":"16.0.1.1"}
PHP message: {"reqId":"1KykRYSEb9xGCsPID4um","level":3,"time":"2019-06-05T11:03:25+00:00","remoteAddr":"117.102.143.136","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/csrftoken","message":"chmod(): Permission denied at \/var\/www\/html\/nextcloud\/lib\/private\/Log\/File.php#141","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/74.0.3729.169 Safari\/537.36","version":"16.0.1.1"}" while reading upstream, client: 117.102.143.136, server: devyn.zapto.org, request: "GET /nextcloud/csrftoken HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "devyn.zapto.org"
2019/06/05 13:23:51 [error] 14547#14547: *4247 FastCGI sent in stderr: "PHP message: PHP Warning:  Unknown: failed to open stream: No such file or directory in Unknown on line 0
PHP message: PHP Fatal error:  Unknown: Failed opening required '/var/www/html/nextcloud/ocs/v2.php' (include_path='.:/usr/share/php') in Unknown on line 0" while reading response header from upstream, client: 117.102.143.136, server: devyn.zapto.org, request: "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "devyn.zapto.org"
2019/06/05 13:26:57 [error] 14547#14547: *4304 FastCGI sent in stderr: "PHP message: PHP Warning:  Unknown: failed to open stream: No such file or directory in Unknown on line 0
PHP message: PHP Fatal error:  Unknown: Failed opening required '/var/www/html/nextcloud/index.php' (include_path='.:/usr/share/php') in Unknown on line 0" while reading response header from upstream, client: 117.102.143.136, server: devyn.zapto.org, request: "GET /nextcloud/index.php/apps/files/ajax/getstoragestats.php?dir=%2F HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "devyn.zapto.org"

I could be wrong about what version I had, is there a way to check version from the database tables?

never mind, it seems to actualy be the right version after messing with logs, but somethings not working right with the encryption, i’m guessing when I did the backup I missed something. wish I knew what.

We’ve written a tool that allows you to decrypt individual files if you still have your Nextcloud data directory and configuration file. It supports master key encrypted files, user key encrypted files (you additionally need the user passwords) and recovery key encrypted files (you additionally need the recovery password): decrypt-file.php