pondersource / nextcloud-mfa-awareness

Make Nextcloud aware of whether the current user is logged in with Multi-Factor Authentication
MIT License
0 stars 2 forks source link

Could not boot mfazones: The given tag id is invalid #94

Closed michielbdejong closed 8 months ago

michielbdejong commented 8 months ago

Seeing this error in the sunet-nc2 logs when trying to boot my dev env today. Investigating

michielbdejong commented 8 months ago

This is with https://github.com/pondersource/nextcloud-mfa-awareness/tree/sunet-custom-with-gss and then:


git submodule update
cd servers
./clean.sh
./setup-gss.sh testnet
michielbdejong commented 8 months ago
192.168.16.3 - - [08/Nov/2023:13:22:55 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 825 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0"
{
  "reqId": "y9g5WeIN1dwLjUU3k2bj",
  "level": 4,
  "time": "2023-11-08T13:22:55+00:00",
  "remoteAddr": "192.168.16.3",
  "user": "usr2",
  "app": "no app in context",
  "method": "GET",
  "url": "/ocs/v2.php/apps/notifications/api/v2/notifications",
  "message": "Could not boot mfazones: The given tag id is invalid",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0",
  "version": "26.0.7.1",
  "exception": {
    "Exception": "UnexpectedValueException",
    "Message": "The given tag id is invalid",
    "Code": 4,
    "Trace": [
      {
        "file": "/var/www/html/apps/workflowengine/lib/Manager.php",
        "line": 592,
        "function": "validateCheck",
        "class": "OCA\\WorkflowEngine\\Check\\FileSystemTags",
        "type": "->",
        "args": [
          "is",
          "1"
        ]
      },
      {
        "file": "/var/www/html/apps/workflowengine/lib/Manager.php",
        "line": 350,
        "function": "validateOperation",
        "class": "OCA\\WorkflowEngine\\Manager",
        "type": "->",
        "args": [
          "OCA\\FilesAccessControl\\Operation",
          "",
          [
            [
              "OCA\\WorkflowEngine\\Check\\MfaVerified",
              "!is",
              "",
              false
            ],
            [
              "OCA\\WorkflowEngine\\Check\\FileSystemTags",
              "is",
              "1",
              false
            ]
          ],
          "deny",
          [
            "OCA\\WorkflowEngine\\Helper\\ScopeContext"
          ],
          "OCA\\WorkflowEngine\\Entity\\File",
          []
        ]
      },
      {
        "file": "/var/www/html/apps/mfazones/lib/AppInfo/Application.php",
        "line": 149,
        "function": "addOperation",
        "class": "OCA\\WorkflowEngine\\Manager",
        "type": "->",
        "args": [
          "OCA\\FilesAccessControl\\Operation",
          "",
          [
            [
              "OCA\\WorkflowEngine\\Check\\MfaVerified",
              "!is",
              "",
              false
            ],
            [
              "OCA\\WorkflowEngine\\Check\\FileSystemTags",
              "is",
              "1",
              false
            ]
          ],
          "deny",
          [
            "OCA\\WorkflowEngine\\Helper\\ScopeContext"
          ],
          "OCA\\WorkflowEngine\\Entity\\File",
          []
        ]
      },
      {
        "file": "/var/www/html/apps/mfazones/lib/AppInfo/Application.php",
        "line": 80,
        "function": "addFlows",
        "class": "OCA\\mfazones\\AppInfo\\Application",
        "type": "->",
        "args": []
      },
      {
        "file": "/var/www/html/lib/private/ServerContainer.php",
        "line": 107,
        "function": "__construct",
        "class": "OCA\\mfazones\\AppInfo\\Application",
        "type": "->",
        "args": []
      },
      {
        "file": "/var/www/html/lib/private/ServerContainer.php",
        "line": 186,
        "function": "getAppContainer",
        "class": "OC\\ServerContainer",
        "type": "->",
        "args": [
          "mfazones",
          "mfazones"
        ]
      },
      {
        "file": "/var/www/html/lib/private/ServerContainer.php",
        "line": 153,
        "function": "getAppContainerForService",
        "class": "OC\\ServerContainer",
        "type": "->",
        "args": [
          "OCA\\mfazones\\AppInfo\\Application"
        ]
      },
      {
        "file": "/var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php",
        "line": 196,
        "function": "query",
        "class": "OC\\ServerContainer",
        "type": "->",
        "args": [
          "OCA\\mfazones\\AppInfo\\Application"
        ]
      },
      {
        "file": "/var/www/html/lib/private/legacy/OC_App.php",
        "line": 213,
        "function": "bootApp",
        "class": "OC\\AppFramework\\Bootstrap\\Coordinator",
        "type": "->",
        "args": [
          "mfazones"
        ]
      },
      {
        "file": "/var/www/html/lib/private/legacy/OC_App.php",
        "line": 141,
        "function": "loadApp",
        "class": "OC_App",
        "type": "::",
        "args": [
          "mfazones"
        ]
      },
      {
        "file": "/var/www/html/ocs/v1.php",
        "line": 58,
        "function": "loadApps",
        "class": "OC_App",
        "type": "::",
        "args": []
      },
      {
        "file": "/var/www/html/ocs/v2.php",
        "line": 23,
        "args": [
          "/var/www/html/ocs/v1.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/var/www/html/apps/workflowengine/lib/Check/FileSystemTags.php",
    "Line": 109,
    "message": "Could not boot mfazones: The given tag id is invalid",
    "exception": {},
    "CustomMessage": "Could not boot mfazones: The given tag id is invalid"
  }
}