Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 500 when browsing cookbook #1655

Open
cuthulino opened this issue May 4, 2023 · 6 comments
Open

Error 500 when browsing cookbook #1655

cuthulino opened this issue May 4, 2023 · 6 comments
Labels
bug Something isn't working investigation-required The Issue or PR needs more in-depth analysis

Comments

@cuthulino
Copy link

cuthulino commented May 4, 2023

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):

  1. Install Groupfolders App
  2. Setup Redis as Nextcloud locking system
  3. 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
grafik

Browser
Firefox 112

Versions
Nextcloud server version: 26.1
Cookbook version: 0.10.2
Database system: MariaDB

@cuthulino cuthulino added the bug Something isn't working label May 4, 2023
@christianlupus
Copy link
Collaborator

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?

@christianlupus christianlupus added stalebot-enabled The PR/issue is marked to go stale over time investigation-required The Issue or PR needs more in-depth analysis labels May 16, 2023
@cuthulino
Copy link
Author

  • 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.

@github-actions
Copy link

github-actions bot commented Jul 4, 2023

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.

@github-actions github-actions bot added the stale The PR/issue is marked as stale label Jul 4, 2023
@christianlupus christianlupus removed stalebot-enabled The PR/issue is marked to go stale over time stale The PR/issue is marked as stale labels Jul 4, 2023
@cuthulino
Copy link
Author

Bug still exists

@Dickschieder
Copy link

I've the same issue. Uninstall/install again of the cookbook doesn't help.
image

image

@nicoroud
Copy link

Same here.
I install redis for caching -> cookbook doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working investigation-required The Issue or PR needs more in-depth analysis
Projects
None yet
Development

No branches or pull requests

4 participants