NC 20 hex2bin(): Input string must be hexadecimal string at /var/www/nextcloud/lib/private/Security/Crypto.php#125
How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Steps to reproduce
Getting the following error:
NC 20 Apache2 PHP 7.4.10
hex2bin(): Input string must be hexadecimal string at /var/www/nextcloud/lib/private/Security/Crypto.php#125
hex2bin(): Hexadecimal input string must have an even length at /var/www/nextcloud/lib/private/Security/Crypto.php#127

Web server error 1
Error: hash_equals(): Expected user_string to be a string, bool given at /var/www/nextcloud/lib/private/Security/Crypto.php#138
{
"reqId": "4ZTVeGlWnJN9UCkv6opc",
"level": 3,
"time": "2020-10-05T16:02:04+00:00",
"remoteAddr": "X.X.X.X",
"user": "USERNAME",
"app": "PHP",
"method": "GET",
"url": "/apps/text/session/create?fileId=731299&filePath=%2FDocuments%2FNextcloud+Setup+Docmunets%2FUnblock+BruteForce+Attempts.md&guestName=Daikon+Radish&forceRecreate=false",
"message": {
"Exception": "Error",
"Message": "hash_equals(): Expected user_string to be a string, bool given at /var/www/nextcloud/lib/private/Security/Crypto.php#138",
"Code": 0,
"Trace": [
{
"function": "onError",
"class": "OC\\Log\\ErrorHandler",
"type": "::"
},
{
"file": "/var/www/nextcloud/lib/private/Security/Crypto.php",
"line": 138,
"function": "hash_equals"
},
{
"file": "/var/www/nextcloud/lib/private/Encryption/Keys/Storage.php",
"line": 303,
"function": "decrypt",
"class": "OC\\Security\\Crypto",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/nextcloud/lib/private/Encryption/Keys/Storage.php",
"line": 104,
"function": "getKey",
"class": "OC\\Encryption\\Keys\\Storage",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/encryption/lib/KeyManager.php",
"line": 554,
"function": "getFileKey",
"class": "OC\\Encryption\\Keys\\Storage",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/encryption/lib/KeyManager.php",
"line": 460,
"function": "getShareKey",
"class": "OCA\\Encryption\\KeyManager",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/encryption/lib/Crypto/Encryption.php",
"line": 202,
"function": "getFileKey",
"class": "OCA\\Encryption\\KeyManager",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Files/Stream/Encryption.php",
"line": 268,
"function": "begin",
"class": "OCA\\Encryption\\Crypto\\Encryption",
"type": "->"
},
{
"function": "stream_open",
"class": "OC\\Files\\Stream\\Encryption",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Files/Stream/Encryption.php",
"line": 207,
"function": "fopen"
},
{
"file": "/var/www/nextcloud/lib/private/Files/Stream/Encryption.php",
"line": 187,
"function": "wrapSource",
"class": "OC\\Files\\Stream\\Encryption",
"type": "::"
},
{
"file": "/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php",
"line": 473,
"function": "wrap",
"class": "OC\\Files\\Stream\\Encryption",
"type": "::"
},
{
"file": "/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php",
"line": 300,
"function": "fopen",
"class": "OC\\Files\\Storage\\Wrapper\\Encryption",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Files/View.php",
"line": 1159,
"function": "fopen",
"class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Files/View.php",
"line": 995,
"function": "basicOperation",
"class": "OC\\Files\\View",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Files/Node/File.php",
"line": 115,
"function": "fopen",
"class": "OC\\Files\\View",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/text/lib/Service/DocumentService.php",
"line": 157,
"function": "fopen",
"class": "OC\\Files\\Node\\File",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/text/lib/Service/ApiService.php",
"line": 99,
"function": "createDocument",
"class": "OCA\\Text\\Service\\DocumentService",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/text/lib/Controller/SessionController.php",
"line": 49,
"function": "create",
"class": "OCA\\Text\\Service\\ApiService",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 169,
"function": "create",
"class": "OCA\\Text\\Controller\\SessionController",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 100,
"function": "executeController",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/App.php",
"line": 152,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Route/Router.php",
"line": 308,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::"
},
{
"file": "/var/www/nextcloud/lib/base.php",
"line": 1009,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->"
},
{
"file": "/var/www/nextcloud/index.php",
"line": 37,
"function": "handleRequest",
"class": "OC",
"type": "::"
}
],
"File": "/var/www/nextcloud/lib/private/Log/ErrorHandler.php",
"Line": 91,
"CustomMessage": "--"
},
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
"version": "20.0.0.9",
"id": "5f7b775319a85"
}
Web server error 2
Error: hex2bin(): Input string must be hexadecimal string at /var/www/nextcloud/lib/private/Security/Crypto.php#127
{
"reqId": "4ZTVeGlWnJN9UCkv6opc",
"level": 3,
"time": "2020-10-05T16:02:04+00:00",
"remoteAddr": "X.X.X.X",
"user": "username",
"app": "PHP",
"method": "GET",
"url": "/apps/text/session/create?fileId=731299&filePath=%2FDocuments%2FNextcloud+Setup+Docmunets%2FUnblock+BruteForce+Attempts.md&guestName=Daikon+Radish&forceRecreate=false",
"message": {
"Exception": "Error",
"Message": "hex2bin(): Input string must be hexadecimal string at /var/www/nextcloud/lib/private/Security/Crypto.php#127",
"Code": 0,
"Trace": [
{
"function": "onError",
"class": "OC\\Log\\ErrorHandler",
"type": "::"
},
{
"file": "/var/www/nextcloud/lib/private/Security/Crypto.php",
"line": 127,
"function": "hex2bin"
},
{
"file": "/var/www/nextcloud/lib/private/Encryption/Keys/Storage.php",
"line": 303,
"function": "decrypt",
"class": "OC\\Security\\Crypto",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/nextcloud/lib/private/Encryption/Keys/Storage.php",
"line": 104,
"function": "getKey",
"class": "OC\\Encryption\\Keys\\Storage",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/encryption/lib/KeyManager.php",
"line": 554,
"function": "getFileKey",
"class": "OC\\Encryption\\Keys\\Storage",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/encryption/lib/KeyManager.php",
"line": 460,
"function": "getShareKey",
"class": "OCA\\Encryption\\KeyManager",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/encryption/lib/Crypto/Encryption.php",
"line": 202,
"function": "getFileKey",
"class": "OCA\\Encryption\\KeyManager",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Files/Stream/Encryption.php",
"line": 268,
"function": "begin",
"class": "OCA\\Encryption\\Crypto\\Encryption",
"type": "->"
},
{
"function": "stream_open",
"class": "OC\\Files\\Stream\\Encryption",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Files/Stream/Encryption.php",
"line": 207,
"function": "fopen"
},
{
"file": "/var/www/nextcloud/lib/private/Files/Stream/Encryption.php",
"line": 187,
"function": "wrapSource",
"class": "OC\\Files\\Stream\\Encryption",
"type": "::"
},
{
"file": "/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php",
"line": 473,
"function": "wrap",
"class": "OC\\Files\\Stream\\Encryption",
"type": "::"
},
{
"file": "/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php",
"line": 300,
"function": "fopen",
"class": "OC\\Files\\Storage\\Wrapper\\Encryption",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Files/View.php",
"line": 1159,
"function": "fopen",
"class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Files/View.php",
"line": 995,
"function": "basicOperation",
"class": "OC\\Files\\View",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Files/Node/File.php",
"line": 115,
"function": "fopen",
"class": "OC\\Files\\View",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/text/lib/Service/DocumentService.php",
"line": 157,
"function": "fopen",
"class": "OC\\Files\\Node\\File",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/text/lib/Service/ApiService.php",
"line": 99,
"function": "createDocument",
"class": "OCA\\Text\\Service\\DocumentService",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/text/lib/Controller/SessionController.php",
"line": 49,
"function": "create",
"class": "OCA\\Text\\Service\\ApiService",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 169,
"function": "create",
"class": "OCA\\Text\\Controller\\SessionController",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 100,
"function": "executeController",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/App.php",
"line": 152,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Route/Router.php",
"line": 308,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::"
},
{
"file": "/var/www/nextcloud/lib/base.php",
"line": 1009,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->"
},
{
"file": "/var/www/nextcloud/index.php",
"line": 37,
"function": "handleRequest",
"class": "OC",
"type": "::"
}
],
"File": "/var/www/nextcloud/lib/private/Log/ErrorHandler.php",
"Line": 91,
"CustomMessage": "--"
},
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
"version": "20.0.0.9",
"id": "5f7b775319c32"
}
Web server error 3
Error: hex2bin(): Hexadecimal input string must have an even length at /var/www/nextcloud/lib/private/Security/Crypto.php#125
{
"reqId": "4ZTVeGlWnJN9UCkv6opc",
"level": 3,
"time": "2020-10-05T16:02:04+00:00",
"remoteAddr": "X.X.X.X",
"user": "username",
"app": "PHP",
"method": "GET",
"url": "/apps/text/session/create?fileId=731299&filePath=%2FDocuments%2FNextcloud+Setup+Docmunets%2FUnblock+BruteForce+Attempts.md&guestName=Daikon+Radish&forceRecreate=false",
"message": {
"Exception": "Error",
"Message": "hex2bin(): Hexadecimal input string must have an even length at /var/www/nextcloud/lib/private/Security/Crypto.php#125",
"Code": 0,
"Trace": [
{
"function": "onError",
"class": "OC\\Log\\ErrorHandler",
"type": "::"
},
{
"file": "/var/www/nextcloud/lib/private/Security/Crypto.php",
"line": 125,
"function": "hex2bin"
},
{
"file": "/var/www/nextcloud/lib/private/Encryption/Keys/Storage.php",
"line": 303,
"function": "decrypt",
"class": "OC\\Security\\Crypto",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/nextcloud/lib/private/Encryption/Keys/Storage.php",
"line": 104,
"function": "getKey",
"class": "OC\\Encryption\\Keys\\Storage",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/encryption/lib/KeyManager.php",
"line": 554,
"function": "getFileKey",
"class": "OC\\Encryption\\Keys\\Storage",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/encryption/lib/KeyManager.php",
"line": 460,
"function": "getShareKey",
"class": "OCA\\Encryption\\KeyManager",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/encryption/lib/Crypto/Encryption.php",
"line": 202,
"function": "getFileKey",
"class": "OCA\\Encryption\\KeyManager",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Files/Stream/Encryption.php",
"line": 268,
"function": "begin",
"class": "OCA\\Encryption\\Crypto\\Encryption",
"type": "->"
},
{
"function": "stream_open",
"class": "OC\\Files\\Stream\\Encryption",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Files/Stream/Encryption.php",
"line": 207,
"function": "fopen"
},
{
"file": "/var/www/nextcloud/lib/private/Files/Stream/Encryption.php",
"line": 187,
"function": "wrapSource",
"class": "OC\\Files\\Stream\\Encryption",
"type": "::"
},
{
"file": "/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php",
"line": 473,
"function": "wrap",
"class": "OC\\Files\\Stream\\Encryption",
"type": "::"
},
{
"file": "/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php",
"line": 300,
"function": "fopen",
"class": "OC\\Files\\Storage\\Wrapper\\Encryption",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Files/View.php",
"line": 1159,
"function": "fopen",
"class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Files/View.php",
"line": 995,
"function": "basicOperation",
"class": "OC\\Files\\View",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Files/Node/File.php",
"line": 115,
"function": "fopen",
"class": "OC\\Files\\View",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/text/lib/Service/DocumentService.php",
"line": 157,
"function": "fopen",
"class": "OC\\Files\\Node\\File",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/text/lib/Service/ApiService.php",
"line": 99,
"function": "createDocument",
"class": "OCA\\Text\\Service\\DocumentService",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/text/lib/Controller/SessionController.php",
"line": 49,
"function": "create",
"class": "OCA\\Text\\Service\\ApiService",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 169,
"function": "create",
"class": "OCA\\Text\\Controller\\SessionController",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 100,
"function": "executeController",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/App.php",
"line": 152,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Route/Router.php",
"line": 308,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::"
},
{
"file": "/var/www/nextcloud/lib/base.php",
"line": 1009,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->"
},
{
"file": "/var/www/nextcloud/index.php",
"line": 37,
"function": "handleRequest",
"class": "OC",
"type": "::"
}
],
"File": "/var/www/nextcloud/lib/private/Log/ErrorHandler.php",
"Line": 91,
"CustomMessage": "--"
},
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
"version": "20.0.0.9",
"id": "5f7b775319dc0"
}
Please post the complete stack trace.
@kesselb Here you got as you requested. Thanks
Web server error 1
Error: hash_equals(): Expected user_string to be a string, bool given at /var/www/nextcloud/lib/private/Security/Crypto.php#138
{"reqId":"4ZTVeGlWnJN9UCkv6opc","level":3,"time":"2020-10-05T16:02:04+00:00","remoteAddr":"X.X.X.X","user":"USERNAME","app":"PHP","method":"GET","url":"/apps/text/session/create?fileId=731299&filePath=%2FDocuments%2FNextcloud+Setup+Docmunets%2FUnblock+BruteForce+Attempts.md&guestName=Daikon+Radish&forceRecreate=false","message":{"Exception":"Error","Message":"hash_equals(): Expected user_string to be a string, bool given at /var/www/nextcloud/lib/private/Security/Crypto.php#138","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/var/www/nextcloud/lib/private/Security/Crypto.php","line":138,"function":"hash_equals"},{"file":"/var/www/nextcloud/lib/private/Encryption/Keys/Storage.php","line":303,"function":"decrypt","class":"OC\\Security\\Crypto","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/Encryption/Keys/Storage.php","line":104,"function":"getKey","class":"OC\\Encryption\\Keys\\Storage","type":"->"},{"file":"/var/www/nextcloud/apps/encryption/lib/KeyManager.php","line":554,"function":"getFileKey","class":"OC\\Encryption\\Keys\\Storage","type":"->"},{"file":"/var/www/nextcloud/apps/encryption/lib/KeyManager.php","line":460,"function":"getShareKey","class":"OCA\\Encryption\\KeyManager","type":"->"},{"file":"/var/www/nextcloud/apps/encryption/lib/Crypto/Encryption.php","line":202,"function":"getFileKey","class":"OCA\\Encryption\\KeyManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Stream/Encryption.php","line":268,"function":"begin","class":"OCA\\Encryption\\Crypto\\Encryption","type":"->"},{"function":"stream_open","class":"OC\\Files\\Stream\\Encryption","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Stream/Encryption.php","line":207,"function":"fopen"},{"file":"/var/www/nextcloud/lib/private/Files/Stream/Encryption.php","line":187,"function":"wrapSource","class":"OC\\Files\\Stream\\Encryption","type":"::"},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":473,"function":"wrap","class":"OC\\Files\\Stream\\Encryption","type":"::"},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":300,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":1159,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":995,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/File.php","line":115,"function":"fopen","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Service/DocumentService.php","line":157,"function":"fopen","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Service/ApiService.php","line":99,"function":"createDocument","class":"OCA\\Text\\Service\\DocumentService","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Controller/SessionController.php","line":49,"function":"create","class":"OCA\\Text\\Service\\ApiService","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":169,"function":"create","class":"OCA\\Text\\Controller\\SessionController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":152,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":308,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1009,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":91,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36","version":"20.0.0.9","id":"5f7b775319a85"}
Web server error 2
Error: hex2bin(): Input string must be hexadecimal string at /var/www/nextcloud/lib/private/Security/Crypto.php#127
{"reqId":"4ZTVeGlWnJN9UCkv6opc","level":3,"time":"2020-10-05T16:02:04+00:00","remoteAddr":"X.X.X.X","user":"username","app":"PHP","method":"GET","url":"/apps/text/session/create?fileId=731299&filePath=%2FDocuments%2FNextcloud+Setup+Docmunets%2FUnblock+BruteForce+Attempts.md&guestName=Daikon+Radish&forceRecreate=false","message":{"Exception":"Error","Message":"hex2bin(): Input string must be hexadecimal string at /var/www/nextcloud/lib/private/Security/Crypto.php#127","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/var/www/nextcloud/lib/private/Security/Crypto.php","line":127,"function":"hex2bin"},{"file":"/var/www/nextcloud/lib/private/Encryption/Keys/Storage.php","line":303,"function":"decrypt","class":"OC\\Security\\Crypto","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/Encryption/Keys/Storage.php","line":104,"function":"getKey","class":"OC\\Encryption\\Keys\\Storage","type":"->"},{"file":"/var/www/nextcloud/apps/encryption/lib/KeyManager.php","line":554,"function":"getFileKey","class":"OC\\Encryption\\Keys\\Storage","type":"->"},{"file":"/var/www/nextcloud/apps/encryption/lib/KeyManager.php","line":460,"function":"getShareKey","class":"OCA\\Encryption\\KeyManager","type":"->"},{"file":"/var/www/nextcloud/apps/encryption/lib/Crypto/Encryption.php","line":202,"function":"getFileKey","class":"OCA\\Encryption\\KeyManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Stream/Encryption.php","line":268,"function":"begin","class":"OCA\\Encryption\\Crypto\\Encryption","type":"->"},{"function":"stream_open","class":"OC\\Files\\Stream\\Encryption","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Stream/Encryption.php","line":207,"function":"fopen"},{"file":"/var/www/nextcloud/lib/private/Files/Stream/Encryption.php","line":187,"function":"wrapSource","class":"OC\\Files\\Stream\\Encryption","type":"::"},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":473,"function":"wrap","class":"OC\\Files\\Stream\\Encryption","type":"::"},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":300,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":1159,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":995,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/File.php","line":115,"function":"fopen","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Service/DocumentService.php","line":157,"function":"fopen","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Service/ApiService.php","line":99,"function":"createDocument","class":"OCA\\Text\\Service\\DocumentService","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Controller/SessionController.php","line":49,"function":"create","class":"OCA\\Text\\Service\\ApiService","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":169,"function":"create","class":"OCA\\Text\\Controller\\SessionController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":152,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":308,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1009,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":91,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36","version":"20.0.0.9","id":"5f7b775319c32"}
Web server error 3
Error: hex2bin(): Hexadecimal input string must have an even length at /var/www/nextcloud/lib/private/Security/Crypto.php#125
{"reqId":"4ZTVeGlWnJN9UCkv6opc","level":3,"time":"2020-10-05T16:02:04+00:00","remoteAddr":"X.X.X.X","user":"username","app":"PHP","method":"GET","url":"/apps/text/session/create?fileId=731299&filePath=%2FDocuments%2FNextcloud+Setup+Docmunets%2FUnblock+BruteForce+Attempts.md&guestName=Daikon+Radish&forceRecreate=false","message":{"Exception":"Error","Message":"hex2bin(): Hexadecimal input string must have an even length at /var/www/nextcloud/lib/private/Security/Crypto.php#125","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/var/www/nextcloud/lib/private/Security/Crypto.php","line":125,"function":"hex2bin"},{"file":"/var/www/nextcloud/lib/private/Encryption/Keys/Storage.php","line":303,"function":"decrypt","class":"OC\\Security\\Crypto","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/Encryption/Keys/Storage.php","line":104,"function":"getKey","class":"OC\\Encryption\\Keys\\Storage","type":"->"},{"file":"/var/www/nextcloud/apps/encryption/lib/KeyManager.php","line":554,"function":"getFileKey","class":"OC\\Encryption\\Keys\\Storage","type":"->"},{"file":"/var/www/nextcloud/apps/encryption/lib/KeyManager.php","line":460,"function":"getShareKey","class":"OCA\\Encryption\\KeyManager","type":"->"},{"file":"/var/www/nextcloud/apps/encryption/lib/Crypto/Encryption.php","line":202,"function":"getFileKey","class":"OCA\\Encryption\\KeyManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Stream/Encryption.php","line":268,"function":"begin","class":"OCA\\Encryption\\Crypto\\Encryption","type":"->"},{"function":"stream_open","class":"OC\\Files\\Stream\\Encryption","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Stream/Encryption.php","line":207,"function":"fopen"},{"file":"/var/www/nextcloud/lib/private/Files/Stream/Encryption.php","line":187,"function":"wrapSource","class":"OC\\Files\\Stream\\Encryption","type":"::"},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":473,"function":"wrap","class":"OC\\Files\\Stream\\Encryption","type":"::"},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":300,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":1159,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":995,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/File.php","line":115,"function":"fopen","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Service/DocumentService.php","line":157,"function":"fopen","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Service/ApiService.php","line":99,"function":"createDocument","class":"OCA\\Text\\Service\\DocumentService","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Controller/SessionController.php","line":49,"function":"create","class":"OCA\\Text\\Service\\ApiService","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":169,"function":"create","class":"OCA\\Text\\Controller\\SessionController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":152,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":308,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1009,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":91,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36","version":"20.0.0.9","id":"5f7b775319dc0"}
https://guides.github.com/features/mastering-markdown/ for your next posting. We also have a lot of formatting already in place for those smart people using the issue template.
At first I encountered a different problem (#23595) and manually applied the existing patch #23606. After that patch I encountered this problem with hex2bin. I'm not sure if there is any relation between these issues.
Please ping me if I can povide any new logs/info that has not already been posted above.
My error log is getting filled up by this error system to happen when users are syncing. @nickvergessen I know you've asked not to mention people but im not sure how to go about this but this error started since NC 20 and its not going away.

Looks like if you setup a fresh install of NC20 you dont get this error but when you upgrade from an earlier version then you get this error.
I am affected by this also. The error first appeared after upgrading from Nextcloud 19 to 20.
Can someone from @nextcloud help with this
Ok so after the NC 20.0.2 update I think I could narrow it down a bit: these errors are logged together with #23078 when I use the Notes app using a desktop web browser or when I open photos from the NC iOS app.
@axheli do you have the same experience or when does it happen for you?
Ok so after the NC 20.0.2 update I think I could narrow it down a bit: these errors are logged together with #23078 when I use the Notes app using a desktop web browser or when I open photos from the NC iOS app.
@axheli do you have the same experience or when does it happen for you?
I get it when users sync the most or open files.
Yep I am also experiencing this issue. In fact, our files is not even accessible right now after upgrading from NC 19 to 20
I just updated from 19.0.5 to 20.0.2 and can see these error messages as well in Nextcloud Logging. I remember that I switched the config parameter 'encryption.legacy_format_support' from true to false, after I ran the OCC command occ encryption:scan:legacy-format.
I went back a little further in the logs and it seems that these error messages, already appeared while running the OCC command occ encryption:scan:legacy-format.
Apart from those error messages, it seems to run smoothly and without any issues.
System Infos:
CentOS 7.8 Apache 2 PHP 7.4.13 NC 20.0.2
These appeared while browsing through Nextcloud and changing things in the dashboard:
{
"reqId": "X897iCpUeCe5gxPzuGb3UQAAACw",
"level": 3,
"time": "2020-12-08T13:11:37+00:00",
"remoteAddr": "xx.xx.xx.xx",
"user": "test.user",
"app": "PHP",
"method": "POST",
"url": "/index.php/apps/dashboard/background/custom",
"message": {
"Exception": "Error",
"Message": "hash_equals(): Expected user_string to be a string, bool given at /var/www/html/nextcloud/htdocs/lib/private/Security/Crypto.php#138",
"Code": 0,
"Trace": [
{
"function": "onError",
"class": "OC\\Log\\ErrorHandler",
"type": "::"
},
{
"file": "/var/www/html/nextcloud/htdocs/lib/private/Security/Crypto.php",
"line": 138,
"function": "hash_equals"
},
{
"file": "/var/www/html/nextcloud/htdocs/lib/private/Encryption/Keys/Storage.php",
"line": 303,
"function": "decrypt",
"class": "OC\\Security\\Crypto",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/nextcloud/htdocs/lib/private/Encryption/Keys/Storage.php",
"line": 104,
"function": "getKey",
"class": "OC\\Encryption\\Keys\\Storage",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/htdocs/apps/encryption/lib/KeyManager.php",
"line": 554,
"function": "getFileKey",
"class": "OC\\Encryption\\Keys\\Storage",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/htdocs/apps/encryption/lib/KeyManager.php",
"line": 460,
"function": "getShareKey",
"class": "OCA\\Encryption\\KeyManager",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/htdocs/apps/encryption/lib/Crypto/Encryption.php",
"line": 202,
"function": "getFileKey",
"class": "OCA\\Encryption\\KeyManager",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/htdocs/lib/private/Files/Stream/Encryption.php",
"line": 268,
"function": "begin",
"class": "OCA\\Encryption\\Crypto\\Encryption",
"type": "->"
},
{
"function": "stream_open",
"class": "OC\\Files\\Stream\\Encryption",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/htdocs/lib/private/Files/Stream/Encryption.php",
"line": 207,
"function": "fopen"
},
{
"file": "/var/www/html/nextcloud/htdocs/lib/private/Files/Stream/Encryption.php",
"line": 187,
"function": "wrapSource",
"class": "OC\\Files\\Stream\\Encryption",
"type": "::"
},
{
"file": "/var/www/html/nextcloud/htdocs/lib/private/Files/Storage/Wrapper/Encryption.php",
"line": 473,
"function": "wrap",
"class": "OC\\Files\\Stream\\Encryption",
"type": "::"
},
{
"file": "/var/www/html/nextcloud/htdocs/lib/private/Files/Storage/Wrapper/Wrapper.php",
"line": 300,
"function": "fopen",
"class": "OC\\Files\\Storage\\Wrapper\\Encryption",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/htdocs/lib/private/Files/View.php",
"line": 1165,
"function": "fopen",
"class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/htdocs/lib/private/Files/View.php",
"line": 1001,
"function": "basicOperation",
"class": "OC\\Files\\View",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/htdocs/lib/private/Files/Node/File.php",
"line": 115,
"function": "fopen",
"class": "OC\\Files\\View",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/htdocs/apps/dashboard/lib/Service/BackgroundService.php",
"line": 146,
"function": "fopen",
"class": "OC\\Files\\Node\\File",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/htdocs/apps/dashboard/lib/Controller/DashboardController.php",
"line": 162,
"function": "setFileBackground",
"class": "OCA\\Dashboard\\Service\\BackgroundService",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/htdocs/lib/private/AppFramework/Http/Dispatcher.php",
"line": 169,
"function": "setBackground",
"class": "OCA\\Dashboard\\Controller\\DashboardController",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/htdocs/lib/private/AppFramework/Http/Dispatcher.php",
"line": 100,
"function": "executeController",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/htdocs/lib/private/AppFramework/App.php",
"line": 152,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/htdocs/lib/private/Route/Router.php",
"line": 308,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::"
},
{
"file": "/var/www/html/nextcloud/htdocs/lib/base.php",
"line": 1008,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/htdocs/index.php",
"line": 37,
"function": "handleRequest",
"class": "OC",
"type": "::"
}
],
"File": "/var/www/html/nextcloud/htdocs/lib/private/Log/ErrorHandler.php",
"Line": 91,
"CustomMessage": "--"
},
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36",
"version": "20.0.2.2",
"id": "5fcf9b231d75f"
}
Followed by:
{
"reqId": "X897iCpUeCe5gxPzuGb3UQAAACw",
"level": 3,
"time": "2020-12-08T13:11:37+00:00",
"remoteAddr": "xx.xx.xx.xx",
"user": "test.user",
"app": "PHP",
"method": "POST",
"url": "/index.php/apps/dashboard/background/custom",
"message": {
"Exception": "Error",
"Message": "hex2bin(): Input string must be hexadecimal string at /var/www/html/nextcloud/htdocs/lib/private/Security/Crypto.php#127",
"Code": 0,
"Trace": [
{
"function": "onError",
"class": "OC\\Log\\ErrorHandler",
"type": "::"
},
{
"file": "/var/www/html/nextcloud/htdocs/lib/private/Security/Crypto.php",
"line": 127,
"function": "hex2bin"
},
{
"file": "/var/www/html/nextcloud/htdocs/lib/private/Encryption/Keys/Storage.php",
"line": 303,
"function": "decrypt",
"class": "OC\\Security\\Crypto",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/nextcloud/htdocs/lib/private/Encryption/Keys/Storage.php",
"line": 104,
"function": "getKey",
"class": "OC\\Encryption\\Keys\\Storage",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/htdocs/apps/encryption/lib/KeyManager.php",
"line": 554,
"function": "getFileKey",
"class": "OC\\Encryption\\Keys\\Storage",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/htdocs/apps/encryption/lib/KeyManager.php",
"line": 460,
"function": "getShareKey",
"class": "OCA\\Encryption\\KeyManager",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/htdocs/apps/encryption/lib/Crypto/Encryption.php",
"line": 202,
"function": "getFileKey",
"class": "OCA\\Encryption\\KeyManager",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/htdocs/lib/private/Files/Stream/Encryption.php",
"line": 268,
"function": "begin",
"class": "OCA\\Encryption\\Crypto\\Encryption",
"type": "->"
},
{
"function": "stream_open",
"class": "OC\\Files\\Stream\\Encryption",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/htdocs/lib/private/Files/Stream/Encryption.php",
"line": 207,
"function": "fopen"
},
{
"file": "/var/www/html/nextcloud/htdocs/lib/private/Files/Stream/Encryption.php",
"line": 187,
"function": "wrapSource",
"class": "OC\\Files\\Stream\\Encryption",
"type": "::"
},
{
"file": "/var/www/html/nextcloud/htdocs/lib/private/Files/Storage/Wrapper/Encryption.php",
"line": 473,
"function": "wrap",
"class": "OC\\Files\\Stream\\Encryption",
"type": "::"
},
{
"file": "/var/www/html/nextcloud/htdocs/lib/private/Files/Storage/Wrapper/Wrapper.php",
"line": 300,
"function": "fopen",
"class": "OC\\Files\\Storage\\Wrapper\\Encryption",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/htdocs/lib/private/Files/View.php",
"line": 1165,
"function": "fopen",
"class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/htdocs/lib/private/Files/View.php",
"line": 1001,
"function": "basicOperation",
"class": "OC\\Files\\View",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/htdocs/lib/private/Files/Node/File.php",
"line": 115,
"function": "fopen",
"class": "OC\\Files\\View",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/htdocs/apps/dashboard/lib/Service/BackgroundService.php",
"line": 146,
"function": "fopen",
"class": "OC\\Files\\Node\\File",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/htdocs/apps/dashboard/lib/Controller/DashboardController.php",
"line": 162,
"function": "setFileBackground",
"class": "OCA\\Dashboard\\Service\\BackgroundService",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/htdocs/lib/private/AppFramework/Http/Dispatcher.php",
"line": 169,
"function": "setBackground",
"class": "OCA\\Dashboard\\Controller\\DashboardController",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/htdocs/lib/private/AppFramework/Http/Dispatcher.php",
"line": 100,
"function": "executeController",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/htdocs/lib/private/AppFramework/App.php",
"line": 152,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/htdocs/lib/private/Route/Router.php",
"line": 308,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::"
},
{
"file": "/var/www/html/nextcloud/htdocs/lib/base.php",
"line": 1008,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/htdocs/index.php",
"line": 37,
"function": "handleRequest",
"class": "OC",
"type": "::"
}
],
"File": "/var/www/html/nextcloud/htdocs/lib/private/Log/ErrorHandler.php",
"Line": 91,
"CustomMessage": "--"
},
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36",
"version": "20.0.2.2",
"id": "5fcf9b231d883"
}
Having the same issue. All my files are encrypted with a password that supposedly doesn't match my current password anymore (which is bullshit, I never changed it). While the files are still intact on my already synced clients, I cannot open them anymore via the web UI. This started happening after the upgrade to 20.0.
occ encryption:scan:legacy-format said everything was fine, so I turned legacy support off. Turning it back on, doesn't change anything. I only get an error 500 and a message saying I should recover my files by entering my "old" password. I have no "old" password and when I enter the same password for old and new, it just says "Saving....", but does nothing. When I check the browser's developer console why, then I see a JSON parser error due to an error page being returned, which says "Missing signature".
This Discourse chat is related: https://help.nextcloud.com/t/cant-update-private-key/53662
So the way I was able to grab photos via downgrading to NC19 (luckily my backup works) and goto Photos --> Album, only there can I click the picture 1 at a time, pretty sad. But the photo function can read and decrypt the file.
However, I cannot save the PDF or non picture file.
I try many of the OCC command like encryption:decrypt-all or encryption:decrypt-all [user] doesn't work. I review my overview section to ensure I resolved all errors. I had better luck with PHP7.4 but PHP 7.2 I cannot even login saying my password was wrong.
I haven't had time to look but I'm tempted to roll back another month to NC18 or something
Any reaction? This is basically a complete data loss due to the upgrade. My cloud file storage is completely dysfunctional right now. My only option at the moment is to delete everything and restore from backup. I will most likely have to delete the whole account with calendars and contacts, since there seems to be no other way to reset the broken encryption key.
Disclaimer: I don't know much about the encryption in Nextcloud. Be careful with everything I suggest. Better have a full backup.
https://github.com/nextcloud/server/blob/b3037dee6a578254161fa96766d77bf8d007b55c/apps/encryption/lib/Crypto/Crypt.php#L579-L596
@phoerious You can turn off the signature check with encryption_skip_signature_check set to true in config.php. That might help to gain access to your files again.
Thanks. Commenting out that line allowed me to reset the private key password in the encryption settings.
I had the same issue after a server failure: I restored a backup of my DB and data files to a new server and I had the same message as @phoerious about a changed password which was not...
I added a line 'encryption_skip_signature_check' => true, in the config.php file and then updated my encryption password providing the same password for old and new, and the error message disappeared. I'm now able to access all my files through the UI.
Thanks for your suggestion @kesselb!
I find it startling that this critical issue still hasn't had any response from the developers after three months. Doesn't really boost my confidence in the product.
@phoerious yes i agree with you on this. I understand they are busy but at least to get some movement on this i have 4 servers and all have the same issue after i updateded them from nc19 to nc20.
i setup a new nc 20 and i dont get these errors so these seems more related from updating. @nickvergessen Anyway we can have someone look at this please 🙏🏼