镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Undefined array key 1 at apps/files_sharing/lib/External/Cache.php#41 #44608

Closed

Description

@nickvergessen

How to use GitHub

  • Please use the 👍 reaction to show that you are interested into the same feature.
  • 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.

No steps known, but I assume it's a federated share without a protocol (which should be okay and fall back to https)
Our log has regular entries about it:

{
  "reqId": "EGTbuVYiU8E2RwH9c1E0",
  "level": 2,
  "time": "2024-04-02T07:05:47+00:00",
  "remoteAddr": "2003:…:4baa",
  "user": "userid",
  "app": "no app in context",
  "method": "PROPFIND",
  "url": "/remote.php/dav/files/userid/",
  "message": "error while discovering ocm provider",
  "userAgent": "Mozilla/5.0 (Macintosh) mirall/3.12.3git (build 21830) (Nextcloud, osx-23.2.0 ClientArchitecture: arm64 OsArchitecture: arm64)",
  "version": "29.0.0.14",
  "exception": {
    "Exception": "OCP\\Http\\Client\\LocalServerException",
    "Message": "Could not detect any host",
    "Code": 0,
    "Trace": [
      {
        "file": "…/lib/private/Http/Client/Client.php",
        "line": 229,
        "function": "preventLocalAddress",
        "class": "OC\\Http\\Client\\Client",
        "type": "->",
        "args": [
          "subdomain.example.tld/ocm-provider/",
          [
            10,
            true,
            10
          ]
        ]
      },
      {
        "file": "…/lib/private/OCM/OCMDiscoveryService.php",
        "line": 91,
        "function": "get",
        "class": "OC\\Http\\Client\\Client",
        "type": "->",
        "args": [
          "subdomain.example.tld/ocm-provider/",
          [
            10,
            true,
            10
          ]
        ]
      },
      {
        "file": "…/apps/files_sharing/lib/External/Storage.php",
        "line": 87,
        "function": "discover",
        "class": "OC\\OCM\\OCMDiscoveryService",
        "type": "->",
        "args": [
          "subdomain.example.tld"
        ]
      },
      {
        "file": "…/lib/private/Files/Mount/MountPoint.php",
        "line": 168,
        "function": "__construct",
        "class": "OCA\\Files_Sharing\\External\\Storage",
        "type": "->",
        "args": [
          [
            "https://subdomain.example.tld/",
            "F8…20",
            "",
            "/userid2/files/Work/…Wireframe.xml",
            "userid2",
            "And 5 more entries, set log level to debug to see all entries"
          ]
        ]
      },
      {
        "file": "…/lib/private/Files/Mount/MountPoint.php",
        "line": 193,
        "function": "createStorage",
        "class": "OC\\Files\\Mount\\MountPoint",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "…/lib/private/Files/Mount/MountPoint.php",
        "line": 294,
        "function": "getStorage",
        "class": "OC\\Files\\Mount\\MountPoint",
        "type": "->",
        "args": []
      },
      {
        "file": "…/lib/private/Files/Config/UserMountCache.php",
        "line": 90,
        "function": "getStorageRootId",
        "class": "OC\\Files\\Mount\\MountPoint",
        "type": "->",
        "args": []
      },
      {
        "file": "…/lib/private/Files/SetupManager.php",
        "line": 299,
        "function": "registerMounts",
        "class": "OC\\Files\\Config\\UserMountCache",
        "type": "->",
        "args": [
          [
            "OC\\User\\User"
          ],
          [
            [
              "OC\\Files\\Mount\\HomeMountPoint"
            ],
            [
              "OCA\\Collectives\\Mount\\CollectiveMountPoint"
            ],
            [
              "OCA\\Collectives\\Mount\\CollectiveMountPoint"
            ],
            [
              "OCA\\Collectives\\Mount\\CollectiveMountPoint"
            ],
            [
              "OCA\\Collectives\\Mount\\CollectiveMountPoint"
            ],
            "And 3719 more entries, set log level to debug to see all entries"
          ],
          [
            "OC\\Files\\Mount\\CacheMountProvider",
            "OCA\\Collectives\\Mount\\MountProvider",
            "OCA\\GroupFolders\\Mount\\MountProvider",
            "OCA\\Files_External\\Config\\ConfigAdapter",
            "OCA\\Files_Sharing\\MountProvider",
            "And 1 more entries, set log level to debug to see all entries"
          ]
        ]
      },
      {
        "file": "…/lib/private/Files/SetupManager.php",
        "line": 223,
        "function": "afterUserFullySetup",
        "class": "OC\\Files\\SetupManager",
        "type": "->",
        "args": [
          [
            "OC\\User\\User"
          ],
          []
        ]
      },
      {
        "file": "…/lib/private/Files/SetupManager.php",
        "line": 504,
        "function": "setupForUser",
        "class": "OC\\Files\\SetupManager",
        "type": "->",
        "args": [
          [
            "OC\\User\\User"
          ]
        ]
      },
      {
        "file": "…/lib/private/Files/Mount/Manager.php",
        "line": 231,
        "function": "setupForProvider",
        "class": "OC\\Files\\SetupManager",
        "type": "->",
        "args": [
          "/userid2/files",
          [
            "OC\\Files\\Mount\\LocalHomeMountProvider"
          ]
        ]
      },
      {
        "file": "…/lib/private/Files/Node/Root.php",
        "line": 475,
        "function": "getMountsByMountProvider",
        "class": "OC\\Files\\Mount\\Manager",
        "type": "->",
        "args": [
          "/userid2/files",
          [
            "OC\\Files\\Mount\\LocalHomeMountProvider"
          ]
        ]
      },
      {
        "file": "…/lib/private/Files/Node/Root.php",
        "line": 427,
        "function": "getByIdInPath",
        "class": "OC\\Files\\Node\\Root",
        "type": "->",
        "args": [
          2867909,
          "/userid2/files"
        ]
      },
      {
        "file": "…/lib/private/Files/Node/LazyFolder.php",
        "line": 499,
        "function": "getFirstNodeByIdInPath",
        "class": "OC\\Files\\Node\\Root",
        "type": "->",
        "args": [
          2867909,
          "/userid2/files"
        ]
      },
      {
        "file": "…/apps/files_sharing/lib/SharedStorage.php",
        "line": 174,
        "function": "getFirstNodeById",
        "class": "OC\\Files\\Node\\LazyFolder",
        "type": "->",
        "args": [
          2867909
        ]
      },
      {
        "file": "…/apps/files_sharing/lib/SharedStorage.php",
        "line": 571,
        "function": "init",
        "class": "OCA\\Files_Sharing\\SharedStorage",
        "type": "->",
        "args": []
      },
      {
        "file": "…/lib/private/Files/Storage/Wrapper/Wrapper.php",
        "line": 545,
        "function": "getWrapperStorage",
        "class": "OCA\\Files_Sharing\\SharedStorage",
        "type": "->",
        "args": []
      },
      {
        "file": "…/lib/private/Files/Storage/Wrapper/Wrapper.php",
        "line": 545,
        "function": "getDirectDownload",
        "class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
        "type": "->",
        "args": [
          ""
        ]
      },
      {
        "file": "…/lib/private/Files/Storage/Wrapper/Wrapper.php",
        "line": 545,
        "function": "getDirectDownload",
        "class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
        "type": "->",
        "args": [
          ""
        ]
      },
      {
        "file": "…/apps/dav/lib/Connector/Sabre/File.php",
        "line": 586,
        "function": "getDirectDownload",
        "class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
        "type": "->",
        "args": [
          ""
        ]
      },
      {
        "file": "…/apps/dav/lib/Connector/Sabre/FilesPlugin.php",
        "line": 421,
        "function": "getDirectDownload",
        "class": "OCA\\DAV\\Connector\\Sabre\\File",
        "type": "->",
        "args": []
      },
      {
        "file": "…/3rdparty/sabre/dav/lib/DAV/PropFind.php",
        "line": 95,
        "function": "OCA\\DAV\\Connector\\Sabre\\{closure}",
        "class": "OCA\\DAV\\Connector\\Sabre\\FilesPlugin",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "…/apps/dav/lib/Connector/Sabre/FilesPlugin.php",
        "line": 431,
        "function": "handle",
        "class": "Sabre\\DAV\\PropFind",
        "type": "->",
        "args": [
          "{http://owncloud.org/ns}downloadURL",
          [
            "Closure"
          ]
        ]
      },
      {
        "file": "…/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
        "line": 89,
        "function": "handleGetProperties",
        "class": "OCA\\DAV\\Connector\\Sabre\\FilesPlugin",
        "type": "->",
        "args": [
          [
            "Sabre\\DAV\\PropFind"
          ],
          [
            "OCA\\DAV\\Connector\\Sabre\\File"
          ]
        ]
      },
      {
        "file": "…/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 1052,
        "function": "emit",
        "class": "Sabre\\DAV\\Server",
        "type": "->",
        "args": [
          "propFind",
          [
            [
              "Sabre\\DAV\\PropFind"
            ],
            [
              "OCA\\DAV\\Connector\\Sabre\\File"
            ]
          ]
        ]
      },
      {
        "file": "…/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 984,
        "function": "getPropertiesByNode",
        "class": "Sabre\\DAV\\Server",
        "type": "->",
        "args": [
          [
            "Sabre\\DAV\\PropFind"
          ],
          [
            "OCA\\DAV\\Connector\\Sabre\\File"
          ]
        ]
      },
      {
        "file": "…/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 1662,
        "function": "getPropertiesIteratorForPath",
        "class": "Sabre\\DAV\\Server",
        "type": "->",
        "args": [
          "files/userid",
          [
            "{DAV:}resourcetype",
            "{DAV:}getlastmodified",
            "{DAV:}getcontentlength",
            "{DAV:}getetag",
            "{http://owncloud.org/ns}size",
            "And 16 more entries, set log level to debug to see all entries"
          ],
          1
        ]
      },
      {
        "file": "…/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 1647,
        "function": "writeMultiStatus",
        "class": "Sabre\\DAV\\Server",
        "type": "->",
        "args": [
          [
            "Sabre\\Xml\\Writer",
            [],
            "/remote.php/dav/",
            [
              "d",
              "s",
              "oc",
              "nc"
            ],
            []
          ],
          [
            "Generator"
          ],
          false
        ]
      },
      {
        "file": "…/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",
        "line": 346,
        "function": "generateMultiStatus",
        "class": "Sabre\\DAV\\Server",
        "type": "->",
        "args": [
          [
            "Generator"
          ],
          false
        ]
      },
      {
        "file": "…/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
        "line": 89,
        "function": "httpPropFind",
        "class": "Sabre\\DAV\\CorePlugin",
        "type": "->",
        "args": [
          [
            "Sabre\\HTTP\\Request"
          ],
          [
            "Sabre\\HTTP\\Response"
          ]
        ]
      },
      {
        "file": "…/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 472,
        "function": "emit",
        "class": "Sabre\\DAV\\Server",
        "type": "->",
        "args": [
          "method:PROPFIND",
          [
            [
              "Sabre\\HTTP\\Request"
            ],
            [
              "Sabre\\HTTP\\Response"
            ]
          ]
        ]
      },
      {
        "file": "…/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 253,
        "function": "invokeMethod",
        "class": "Sabre\\DAV\\Server",
        "type": "->",
        "args": [
          [
            "Sabre\\HTTP\\Request"
          ],
          [
            "Sabre\\HTTP\\Response"
          ]
        ]
      },
      {
        "file": "…/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 321,
        "function": "start",
        "class": "Sabre\\DAV\\Server",
        "type": "->",
        "args": []
      },
      {
        "file": "…/apps/dav/lib/Server.php",
        "line": 374,
        "function": "exec",
        "class": "Sabre\\DAV\\Server",
        "type": "->",
        "args": []
      },
      {
        "file": "…/apps/dav/appinfo/v2/remote.php",
        "line": 35,
        "function": "exec",
        "class": "OCA\\DAV\\Server",
        "type": "->",
        "args": []
      },
      {
        "file": "…/remote.php",
        "line": 172,
        "args": [
          "…/apps/dav/appinfo/v2/remote.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "…/lib/private/Http/Client/Client.php",
    "Line": 192,
    "message": "error while discovering ocm provider",
    "exception": {},
    "remote": "subdomain.example.tld",
    "CustomMessage": "error while discovering ocm provider"
  }
}
{
  "reqId": "EGTbuVYiU8E2RwH9c1E0",
  "level": 3,
  "time": "2024-04-02T07:05:48+00:00",
  "remoteAddr": "2003:…:4baa",
  "user": "userid",
  "app": "PHP",
  "method": "PROPFIND",
  "url": "/remote.php/dav/files/userid/",
  "message": "Undefined array key 1 at …/apps/files_sharing/lib/External/Cache.php#41",
  "userAgent": "Mozilla/5.0 (Macintosh) mirall/3.12.3git (build 21830) (Nextcloud, osx-23.2.0 ClientArchitecture: arm64 OsArchitecture: arm64)",
  "version": "29.0.0.14",
  "data": {
    "app": "PHP"
  }
}

Activity

  1. added this to the Nextcloud 29 milestone on Apr 2, 2024
  2. jkozluk commented on Jun 27, 2024

    @jkozluk

    Nextcloud Hub 8 (29.0.3) -> problem still occures.
    My environment contains two nextcloud instances, hosted on the same server. Federation share does not work between these instances: no shared folders shown on the list and log is flooded with events like in this issue title.
    I have checked any available solutions in the net and enabled local remote servers in the config. Without success.

  3. nickvergessen commented on Jun 27, 2024

    @nickvergessen
    MemberAuthor

    More fixing is coming in #46133

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions