Indeed there was an old notification, I activated the app, waited for the cronjob to deliver the notification and deleted it.
I manually cleaned a few shares I didn’t need any more. There is now just 1 left. Problem the federated share is on the same host (they use the same webserver, but different subdomains). If I call the ocm-provider with curl
{
"enabled":true,
"apiVersion":"1.0-proposal1",
"endPoint":"https:\/\/host1.example.com\/ocm",
"resourceTypes":[
{
"name":"file",
"shareTypes":[
"user",
"group"
],
"protocols":{
"webdav":"\/public.php\/webdav\/"
}
}
]
}
Cool, ok I applied this patch manually (download the .patch file and applied it). However there are still messages:
{
"reqId":"3ObC0Zxbe4vdbHFuVnz4",
"level":2,
"time":"2024-04-03T08:28:21+00:00",
"remoteAddr":"1.2.3.4",
"user":"user1",
"app":"no app in context",
"method":"PROPFIND",
"url":"/remote.php/dav/files/user1/",
"message":"error while discovering ocm provider",
"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0",
"version":"29.0.0.14",
"exception":{
"Exception":"OCP\\Http\\Client\\LocalServerException",
"Message":"Could not detect any host",
"Code":0,
"Trace":[
{
"file":"/usr/local/www/nextcloud-test/lib/private/Http/Client/Client.php",
"line":229,
"function":"preventLocalAddress",
"class":"OC\\Http\\Client\\Client",
"type":"->",
"args":[
"host1.example.com/ocm-provider/",
[
10,
true,
10
]
]
},
{
"file":"/usr/local/www/nextcloud-test/lib/private/OCM/OCMDiscoveryService.php",
"line":86,
"function":"get",
"class":"OC\\Http\\Client\\Client",
"type":"->",
"args":[
"host1.example.com/ocm-provider/",
[
10,
true,
10
]
]
},
{
"file":"/usr/local/www/nextcloud-test/apps/files_sharing/lib/External/Storage.php",
"line":87,
"function":"discover",
"class":"OC\\OCM\\OCMDiscoveryService",
"type":"->",
"args":[
"host1.example.com"
]
},
{
"file":"/usr/local/www/nextcloud-test/lib/private/Files/Mount/MountPoint.php",
"line":168,
"function":"__construct",
"class":"OCA\\Files_Sharing\\External\\Storage",
"type":"->",
"args":[
[
"https://host1.example.com/",
"ff08RaxNEHDAgrM",
"",
"/user1/files/key-db (2).kdbx",
"user1",
"And 5 more entries, set log level to debug to see all entries"
]
]
},
{
"file":"/usr/local/www/nextcloud-test/lib/private/Files/Mount/MountPoint.php",
"line":193,
"function":"createStorage",
"class":"OC\\Files\\Mount\\MountPoint",
"type":"->",
"args":[
"*** sensitive parameters replaced ***"
]
},
{
"file":"/usr/local/www/nextcloud-test/lib/private/Files/Mount/MountPoint.php",
"line":294,
"function":"getStorage",
"class":"OC\\Files\\Mount\\MountPoint",
"type":"->",
"args":[
]
},
{
"file":"/usr/local/www/nextcloud-test/lib/private/Files/Config/UserMountCache.php",
"line":90,
"function":"getStorageRootId",
"class":"OC\\Files\\Mount\\MountPoint",
"type":"->",
"args":[
]
},
{
"file":"/usr/local/www/nextcloud-test/lib/private/Files/SetupManager.php",
"line":299,
"function":"registerMounts",
"class":"OC\\Files\\Config\\UserMountCache",
"type":"->",
"args":[
[
"OC\\User\\User"
],
[
[
"OCA\\Files_External\\Config\\SystemMountPoint"
],
[
"OCA\\Files_Sharing\\External\\Mount"
]
],
[
"OC\\Files\\Mount\\CacheMountProvider",
"OCA\\Files_External\\Config\\ConfigAdapter",
"OCA\\Files_Sharing\\MountProvider",
"OCA\\Files_Sharing\\External\\MountProvider"
]
]
},
{
"file":"/usr/local/www/nextcloud-test/lib/private/Files/SetupManager.php",
"line":223,
"function":"afterUserFullySetup",
"class":"OC\\Files\\SetupManager",
"type":"->",
"args":[
[
"OC\\User\\User"
],
[
"OC\\Files\\Mount\\LocalHomeMountProvider"
]
]
},
{
"file":"/usr/local/www/nextcloud-test/lib/private/Files/SetupManager.php",
"line":400,
"function":"setupForUser",
"class":"OC\\Files\\SetupManager",
"type":"->",
"args":[
[
"OC\\User\\User"
]
]
},
{
"file":"/usr/local/www/nextcloud-test/lib/private/Files/Mount/Manager.php",
"line":139,
"function":"setupForPath",
"class":"OC\\Files\\SetupManager",
"type":"->",
"args":[
"/user1/files",
true
]
},
{
"file":"/usr/local/www/nextcloud-test/lib/private/Files/View.php",
"line":1417,
"function":"findIn",
"class":"OC\\Files\\Mount\\Manager",
"type":"->",
"args":[
"/user1/files"
]
},
{
"file":"/usr/local/www/nextcloud-test/lib/private/Files/Node/Node.php",
"line":117,
"function":"addSubMounts",
"class":"OC\\Files\\View",
"type":"->",
"args":[
[
"OC\\Files\\FileInfo"
]
]
},
{
"file":"/usr/local/www/nextcloud-test/lib/private/Files/Node/Node.php",
"line":244,
"function":"getFileInfo",
"class":"OC\\Files\\Node\\Node",
"type":"->",
"args":[
]
},
{
"function":"getEtag",
"class":"OC\\Files\\Node\\Node",
"type":"->",
"args":[
]
},
{
"file":"/usr/local/www/nextcloud-test/lib/private/Files/Node/LazyFolder.php",
"line":84,
"function":"call_user_func_array",
"args":[
[
[
"OC\\Files\\Node\\Folder"
],
"getEtag"
],
[
]
]
},
{
"file":"/usr/local/www/nextcloud-test/lib/private/Files/Node/LazyFolder.php",
"line":260,
"function":"__call",
"class":"OC\\Files\\Node\\LazyFolder",
"type":"->",
"args":[
"getEtag",
[
]
]
},
{
"file":"/usr/local/www/nextcloud-test/apps/dav/lib/Connector/Sabre/Node.php",
"line":208,
"function":"getEtag",
"class":"OC\\Files\\Node\\LazyFolder",
"type":"->",
"args":[
]
},
{
"file":"/usr/local/www/nextcloud-test/apps/dav/lib/Connector/Sabre/FilesPlugin.php",
"line":335,
"function":"getETag",
"class":"OCA\\DAV\\Connector\\Sabre\\Node",
"type":"->",
"args":[
]
},
{
"file":"/usr/local/www/nextcloud-test/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":"/usr/local/www/nextcloud-test/apps/dav/lib/Connector/Sabre/FilesPlugin.php",
"line":334,
"function":"handle",
"class":"Sabre\\DAV\\PropFind",
"type":"->",
"args":[
"{DAV:}getetag",
[
"Closure"
]
]
},
{
"file":"/usr/local/www/nextcloud-test/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
"line":89,
"function":"handleGetProperties",
"class":"OCA\\DAV\\Connector\\Sabre\\FilesPlugin",
"type":"->",
"args":[
[
"Sabre\\DAV\\PropFind"
],
[
"OCA\\DAV\\Files\\FilesHome"
]
]
},
{
"file":"/usr/local/www/nextcloud-test/3rdparty/sabre/dav/lib/DAV/Server.php",
"line":1052,
"function":"emit",
"class":"Sabre\\DAV\\Server",
"type":"->",
"args":[
"propFind",
[
[
"Sabre\\DAV\\PropFind"
],
[
"OCA\\DAV\\Files\\FilesHome"
]
]
]
},
{
"file":"/usr/local/www/nextcloud-test/3rdparty/sabre/dav/lib/DAV/Server.php",
"line":984,
"function":"getPropertiesByNode",
"class":"Sabre\\DAV\\Server",
"type":"->",
"args":[
[
"Sabre\\DAV\\PropFind"
],
[
"OCA\\DAV\\Files\\FilesHome"
]
]
},
{
"file":"/usr/local/www/nextcloud-test/3rdparty/sabre/dav/lib/DAV/Server.php",
"line":1662,
"function":"getPropertiesIteratorForPath",
"class":"Sabre\\DAV\\Server",
"type":"->",
"args":[
"files/user1",
[
"{DAV:}getcontentlength",
"{DAV:}getcontenttype",
"{DAV:}getetag",
"{DAV:}getlastmodified",
"{DAV:}quota-available-bytes",
"And 21 more entries, set log level to debug to see all entries"
],
1
]
},
{
"file":"/usr/local/www/nextcloud-test/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":"/usr/local/www/nextcloud-test/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",
"line":346,
"function":"generateMultiStatus",
"class":"Sabre\\DAV\\Server",
"type":"->",
"args":[
[
"Generator"
],
false
]
},
{
"file":"/usr/local/www/nextcloud-test/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
"line":89,
"function":"httpPropFind",
"class":"Sabre\\DAV\\CorePlugin",
"type":"->",
"args":[
[
"Sabre\\HTTP\\Request"
],
[
"Sabre\\HTTP\\Response"
]
]
},
{
"file":"/usr/local/www/nextcloud-test/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":"/usr/local/www/nextcloud-test/3rdparty/sabre/dav/lib/DAV/Server.php",
"line":253,
"function":"invokeMethod",
"class":"Sabre\\DAV\\Server",
"type":"->",
"args":[
[
"Sabre\\HTTP\\Request"
],
[
"Sabre\\HTTP\\Response"
]
]
},
{
"file":"/usr/local/www/nextcloud-test/3rdparty/sabre/dav/lib/DAV/Server.php",
"line":321,
"function":"start",
"class":"Sabre\\DAV\\Server",
"type":"->",
"args":[
]
},
{
"file":"/usr/local/www/nextcloud-test/apps/dav/lib/Server.php",
"line":374,
"function":"exec",
"class":"Sabre\\DAV\\Server",
"type":"->",
"args":[
]
},
{
"file":"/usr/local/www/nextcloud-test/apps/dav/appinfo/v2/remote.php",
"line":35,
"function":"exec",
"class":"OCA\\DAV\\Server",
"type":"->",
"args":[
]
},
{
"file":"/usr/local/www/nextcloud-test/remote.php",
"line":172,
"args":[
"/usr/local/www/nextcloud-test/apps/dav/appinfo/v2/remote.php"
],
"function":"require_once"
}
],
"File":"/usr/local/www/nextcloud-test/lib/private/Http/Client/Client.php",
"Line":192,
"message":"error while discovering ocm provider",
"exception":{
},
"remote":"host1.example.com",
"CustomMessage":"error while discovering ocm provider"
}
}
I’m wondering about the LocalServerException. Does it trigger a this exception because it is on the same machine? The two setups have different subdomains but share the same ip addresses (using different vhosts in nginx). Not sure if that is a special case. I didn’t try to setup on a different host. I remember I tried to look into this in the past, so it is nothing new.