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 upgrading to v3.0.0 on NC v25.0.7 - Exception while executing repair step "Creates the group of user allowed to use the application" #833

Closed
solracsf opened this issue May 26, 2023 · 2 comments

Comments

@solracsf
Copy link
Contributor

{
  "reqId": "PBAsEcSg8zKet76V9rIL",
  "level": 3,
  "time": "2023-05-26T11:40:28+02:00",
  "app": "PHP",
  "method": "POST",
  "url": "/settings/apps/enable",
  "message": "Undefined array key 2 at /var/www/nextcloud/apps/workspace/lib/Upgrade/UpgradeV300.php#79",
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36",
  "version": "25.0.7.1",
  "exception": {
    "Exception": "Error",
    "Message": "Undefined array key 2 at /var/www/nextcloud/apps/workspace/lib/Upgrade/UpgradeV300.php#79",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/nextcloud/apps/workspace/lib/Upgrade/UpgradeV300.php",
        "line": 79,
        "function": "onError",
        "class": "OC\\Log\\ErrorHandler",
        "type": "::",
        "args": [
          2,
          "Undefined array key 2",
          "/var/www/nextcloud/apps/workspace/lib/Upgrade/UpgradeV300.php",
          79
        ]
      },
      {
        "file": "/var/www/nextcloud/apps/workspace/lib/Upgrade/UpgradeV300.php",
        "line": 52,
        "function": "changePrefixForWorkspaceManagerGroups",
        "class": "OCA\\Workspace\\Upgrade\\UpgradeV300",
        "type": "->",
        "args": []
      },
      {
        "file": "/var/www/nextcloud/apps/workspace/lib/Migration/RegisterWorkspaceUsersGroup.php",
        "line": 86,
        "function": "upgrade",
        "class": "OCA\\Workspace\\Upgrade\\UpgradeV300",
        "type": "->",
        "args": []
      },
      {
        "file": "/var/www/nextcloud/lib/private/Repair.php",
        "line": 127,
        "function": "run",
        "class": "OCA\\Workspace\\Migration\\RegisterWorkspaceUsersGroup",
        "type": "->",
        "args": [
          [
            "OC\\Repair"
          ]
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/legacy/OC_App.php",
        "line": 1068,
        "function": "run",
        "class": "OC\\Repair",
        "type": "->",
        "args": []
      },
      {
        "file": "/var/www/nextcloud/lib/private/Installer.php",
        "line": 164,
        "function": "executeRepairSteps",
        "class": "OC_App",
        "type": "::",
        "args": [
          "workspace",
          [
            "OCA\\Workspace\\Migration\\RegisterWorkspaceUsersGroup"
          ]
        ]
      },
      {
        "file": "/var/www/nextcloud/apps/settings/lib/Controller/AppSettingsController.php",
        "line": 451,
        "function": "installApp",
        "class": "OC\\Installer",
        "type": "->",
        "args": [
          "workspace"
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 225,
        "function": "enableApps",
        "class": "OCA\\Settings\\Controller\\AppSettingsController",
        "type": "->",
        "args": [
          [
            "workspace"
          ],
          []
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 133,
        "function": "executeController",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->",
        "args": [
          [
            "OCA\\Settings\\Controller\\AppSettingsController"
          ],
          "enableApps"
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/App.php",
        "line": 172,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->",
        "args": [
          [
            "OCA\\Settings\\Controller\\AppSettingsController"
          ],
          "enableApps"
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/Route/Router.php",
        "line": 298,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::",
        "args": [
          "OCA\\Settings\\Controller\\AppSettingsController",
          "enableApps",
          [
            "OC\\AppFramework\\DependencyInjection\\DIContainer"
          ],
          [
            "settings.AppSettings.enableApps"
          ]
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/base.php",
        "line": 1048,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->",
        "args": [
          "/settings/apps/enable"
        ]
      },
      {
        "file": "/var/www/nextcloud/index.php",
        "line": 36,
        "function": "handleRequest",
        "class": "OC",
        "type": "::",
        "args": []
      }
    ],
    "File": "/var/www/nextcloud/lib/private/Log/ErrorHandler.php",
    "Line": 92,
    "CustomMessage": "--"
  },
  "id": "6470802dca977"
}

followed by:

{
  "reqId": "PBAsEcSg8zKet76V9rIL",
  "level": 3,
  "time": "2023-05-26T11:40:28+02:00",
  "app": "no app in context",
  "method": "POST",
  "url": "/settings/apps/enable",
  "message": "Exception while executing repair step Creates the group of user allowed to use the application",
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36",
  "version": "25.0.7.1",
  "exception": {
    "Exception": "OCP\\AppFramework\\Db\\DoesNotExistException",
    "Message": "Did expect one result but found none when executing: query \"SELECT * FROM `*PREFIX*work_spaces` WHERE `space_id` = :dcValue1\"; ",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/nextcloud/lib/public/AppFramework/Db/QBMapper.php",
        "line": 362,
        "function": "findOneQuery",
        "class": "OCP\\AppFramework\\Db\\QBMapper",
        "type": "->",
        "args": [
          [
            "OC\\DB\\QueryBuilder\\QueryBuilder"
          ]
        ]
      },
      {
        "file": "/var/www/nextcloud/apps/workspace/lib/Db/SpaceMapper.php",
        "line": 46,
        "function": "findEntity",
        "class": "OCP\\AppFramework\\Db\\QBMapper",
        "type": "->",
        "args": [
          [
            "OC\\DB\\QueryBuilder\\QueryBuilder"
          ]
        ]
      },
      {
        "file": "/var/www/nextcloud/apps/workspace/lib/Upgrade/UpgradeV300.php",
        "line": 80,
        "function": "find",
        "class": "OCA\\Workspace\\Db\\SpaceMapper",
        "type": "->",
        "args": [
          0
        ]
      },
      {
        "file": "/var/www/nextcloud/apps/workspace/lib/Upgrade/UpgradeV300.php",
        "line": 52,
        "function": "changePrefixForWorkspaceManagerGroups",
        "class": "OCA\\Workspace\\Upgrade\\UpgradeV300",
        "type": "->",
        "args": []
      },
      {
        "file": "/var/www/nextcloud/apps/workspace/lib/Migration/RegisterWorkspaceUsersGroup.php",
        "line": 86,
        "function": "upgrade",
        "class": "OCA\\Workspace\\Upgrade\\UpgradeV300",
        "type": "->",
        "args": []
      },
      {
        "file": "/var/www/nextcloud/lib/private/Repair.php",
        "line": 127,
        "function": "run",
        "class": "OCA\\Workspace\\Migration\\RegisterWorkspaceUsersGroup",
        "type": "->",
        "args": [
          [
            "OC\\Repair"
          ]
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/legacy/OC_App.php",
        "line": 1068,
        "function": "run",
        "class": "OC\\Repair",
        "type": "->",
        "args": []
      },
      {
        "file": "/var/www/nextcloud/lib/private/Installer.php",
        "line": 164,
        "function": "executeRepairSteps",
        "class": "OC_App",
        "type": "::",
        "args": [
          "workspace",
          [
            "OCA\\Workspace\\Migration\\RegisterWorkspaceUsersGroup"
          ]
        ]
      },
      {
        "file": "/var/www/nextcloud/apps/settings/lib/Controller/AppSettingsController.php",
        "line": 451,
        "function": "installApp",
        "class": "OC\\Installer",
        "type": "->",
        "args": [
          "workspace"
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 225,
        "function": "enableApps",
        "class": "OCA\\Settings\\Controller\\AppSettingsController",
        "type": "->",
        "args": [
          [
            "workspace"
          ],
          []
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 133,
        "function": "executeController",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->",
        "args": [
          [
            "OCA\\Settings\\Controller\\AppSettingsController"
          ],
          "enableApps"
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/App.php",
        "line": 172,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->",
        "args": [
          [
            "OCA\\Settings\\Controller\\AppSettingsController"
          ],
          "enableApps"
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/Route/Router.php",
        "line": 298,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::",
        "args": [
          "OCA\\Settings\\Controller\\AppSettingsController",
          "enableApps",
          [
            "OC\\AppFramework\\DependencyInjection\\DIContainer"
          ],
          [
            "settings.AppSettings.enableApps"
          ]
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/base.php",
        "line": 1048,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->",
        "args": [
          "/settings/apps/enable"
        ]
      },
      {
        "file": "/var/www/nextcloud/index.php",
        "line": 36,
        "function": "handleRequest",
        "class": "OC",
        "type": "::",
        "args": []
      }
    ],
    "File": "/var/www/nextcloud/lib/public/AppFramework/Db/QBMapper.php",
    "Line": 285,
    "message": "Exception while executing repair step Creates the group of user allowed to use the application",
    "exception": [],
    "CustomMessage": "Exception while executing repair step Creates the group of user allowed to use the application"
  },
  "id": "6470802dca905"
}
@solracsf solracsf changed the title Error upgrading to v5.0.0 on NC 25.0.7 - Exception while executing repair step "Creates the group of user allowed to use the application" Error upgrading to v3.0.0 on NC v25.0.7 - Exception while executing repair step "Creates the group of user allowed to use the application" May 26, 2023
@zak39
Copy link
Collaborator

zak39 commented Jun 29, 2023

Hi @solracsf ,

You could update your workspace to release 3.0.2.
This release is available for Nextcloud 25 and 26.

Can you confirm if it's okay ?

@solracsf
Copy link
Contributor Author

All good, no errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants