cookbook
cookbook copied to clipboard
Error 500 when browsing cookbook
Description Sometimes I get a error 500 when browsing cookbook app. Most of the time it works.
Some specialities on my Setup:
- Redis
- Groupfolders (main recipie folder)
- SAML Backend
I already read this issues. They seem related: #871 #968
I understand the following log line, that the app wants to create the folder "Rezepte" but it already exists!? Looks like some Problem with Groupfolders?
I extracted this line from the Nextcloud logs:
{
"reqId": "Fr0Fz154266de5eKMw5O",
"level": 3,
"time": "2023-05-04T19:04:27+00:00",
"remoteAddr": "10.10.20.57",
"user": "cthulhu",
"app": "index",
"method": "GET",
"url": "/apps/cookbook/",
"message": "\"Rezepte\" is locked, existing lock on file: none",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/112.0",
"version": "26.0.1.1",
"exception": {
"Exception": "OCP\\Lock\\LockedException",
"Message": "\"Rezepte\" is locked, existing lock on file: none",
"Code": 0,
"Trace": [
{
"file": "/var/www/nextcloud/lib/private/Files/View.php",
"line": 1171,
"function": "changeLock",
"class": "OC\\Files\\View",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Files/View.php",
"line": 272,
"function": "basicOperation",
"class": "OC\\Files\\View",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Files/Node/Folder.php",
"line": 165,
"function": "mkdir",
"class": "OC\\Files\\View",
"type": "->"
},
{
"function": "newFolder",
"class": "OC\\Files\\Node\\Folder",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Files/Node/LazyFolder.php",
"line": 72,
"function": "call_user_func_array"
},
{
"file": "/var/www/nextcloud/lib/private/Files/Node/LazyFolder.php",
"line": 419,
"function": "__call",
"class": "OC\\Files\\Node\\LazyFolder",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/cookbook/lib/Helper/UserFolderHelper.php",
"line": 116,
"function": "newFolder",
"class": "OC\\Files\\Node\\LazyFolder",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/cookbook/lib/Helper/UserFolderHelper.php",
"line": 105,
"function": "getOrCreateFolder",
"class": "OCA\\Cookbook\\Helper\\UserFolderHelper",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/cookbook/lib/Controller/MainController.php",
"line": 45,
"function": "getFolder",
"class": "OCA\\Cookbook\\Helper\\UserFolderHelper",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 230,
"function": "index",
"class": "OCA\\Cookbook\\Controller\\MainController",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 137,
"function": "executeController",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/App.php",
"line": 183,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Route/Router.php",
"line": 315,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::"
},
{
"file": "/var/www/nextcloud/lib/base.php",
"line": 1056,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->"
},
{
"file": "/var/www/nextcloud/index.php",
"line": 36,
"function": "handleRequest",
"class": "OC",
"type": "::"
}
],
"File": "/var/www/nextcloud/lib/private/Files/View.php",
"Line": 2018,
"Previous": {
"Exception": "OCP\\Lock\\LockedException",
"Message": "\"files/4bbeb6cb0098ed4ca79725b0fa8773df\" is locked, existing lock on file: none",
"Code": 0,
"Trace": [
{
"file": "/var/www/nextcloud/lib/private/Files/Storage/Common.php",
"line": 826,
"function": "changeLock",
"class": "OC\\Lock\\MemcacheLockingProvider",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php",
"line": 629,
"function": "changeLock",
"class": "OC\\Files\\Storage\\Common",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Jail.php",
"line": 469,
"function": "changeLock",
"class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php",
"line": 629,
"function": "changeLock",
"class": "OC\\Files\\Storage\\Wrapper\\Jail",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php",
"line": 629,
"function": "changeLock",
"class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php",
"line": 629,
"function": "changeLock",
"class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php",
"line": 629,
"function": "changeLock",
"class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Files/View.php",
"line": 2012,
"function": "changeLock",
"class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Files/View.php",
"line": 1171,
"function": "changeLock",
"class": "OC\\Files\\View",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Files/View.php",
"line": 272,
"function": "basicOperation",
"class": "OC\\Files\\View",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Files/Node/Folder.php",
"line": 165,
"function": "mkdir",
"class": "OC\\Files\\View",
"type": "->"
},
{
"function": "newFolder",
"class": "OC\\Files\\Node\\Folder",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Files/Node/LazyFolder.php",
"line": 72,
"function": "call_user_func_array"
},
{
"file": "/var/www/nextcloud/lib/private/Files/Node/LazyFolder.php",
"line": 419,
"function": "__call",
"class": "OC\\Files\\Node\\LazyFolder",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/cookbook/lib/Helper/UserFolderHelper.php",
"line": 116,
"function": "newFolder",
"class": "OC\\Files\\Node\\LazyFolder",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/cookbook/lib/Helper/UserFolderHelper.php",
"line": 105,
"function": "getOrCreateFolder",
"class": "OCA\\Cookbook\\Helper\\UserFolderHelper",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/cookbook/lib/Controller/MainController.php",
"line": 45,
"function": "getFolder",
"class": "OCA\\Cookbook\\Helper\\UserFolderHelper",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 230,
"function": "index",
"class": "OCA\\Cookbook\\Controller\\MainController",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 137,
"function": "executeController",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/App.php",
"line": 183,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Route/Router.php",
"line": 315,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::"
},
{
"file": "/var/www/nextcloud/lib/base.php",
"line": 1056,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->"
},
{
"file": "/var/www/nextcloud/index.php",
"line": 36,
"function": "handleRequest",
"class": "OC",
"type": "::"
}
],
"File": "/var/www/nextcloud/lib/private/Lock/MemcacheLockingProvider.php",
"Line": 109
},
"CustomMessage": "--"
}
}
Reproduction Steps to reproduce the behavior (not tested):
- Install Groupfolders App
- Setup Redis as Nextcloud locking system
- Navigate to cookbook multiple times
Expected behavior There shouldn't be a error 500.
Actual behavior Sometimes I get error 500. After a reload everything is fine.
Screenshots

Browser Firefox 112
Versions Nextcloud server version: 26.1 Cookbook version: 0.10.2 Database system: MariaDB
This seems rather hard to track down.
Just some ideas (to rule them out):
- Is there any other user in the group that could cause this by opening the same folder either via the files app or via another cookbook session?
- How often is this happening? Is there a good chance that you can see if a certain fix will at least solve the problem partially or are the issues happening too few times a week/month to have at least some statistical statement?
- It is just a 2 Person cloud and we both got access. But only one of us was logged in.
- Just tested it again 1-2 times from 10 (browsing cookbook) Testing would be no Problem.
This issue was not updated for 45 days. It is therefore marked as stale. When no update occurs within the next 7 days, this issue will be closed automatically in the next 7 days.
Bug still exists
I've the same issue. Uninstall/install again of the cookbook doesn't help.
Same here. I install redis for caching -> cookbook doesn't work.