How to share files with groups on federated servers

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 31.0.5
  • Operating system and version (e.g., Ubuntu 24.04):
    • Debian 12

Summary of the issue you are facing:

[I have setup federation between 2 servers and can share files and folders between users from or to both servers.
My problem is when I want to share files and folders with groups on the other federated server. It always fail

Steps to replicate it (hint: details matter!):

  1. I setup the share as described in the doc, for example Deck@server2.domain.com, with Deck is the name of a group on server2

  2. I get an error message when I try to save the share : Error creating the share: Failed to create share.

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

{"reqId":"7KYfDG0Q3iPRdrqBryDq","level":1,"time":"2025-09-11T14:19:07+00:00","remoteAddr":"xx.xx.xx.xx","user":"test","app":"federatedfilesharing","method":"POST","url":"/ocs/v2.php/apps/files_sharing/api/v1/shares","message":"failed sharing Test Folder with Deck@server2.domain.com","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"31.0.4.1","data":{"app":"federatedfilesharing"},"id":"68c2db5b5fab1"}

{“reqId”:“7KYfDG0Q3iPRdrqBryDq”,“level”:3,“time”:“2025-09-11T14:19:07+00:00”,“remoteAddr”:“xx.xx.xx.xx”,“user”:“test”,“app”:“files_sharing”,“method”:“POST”,“url”:“/ocs/v2.php/apps/files_sharing/api/v1/shares”,“message”:“Sharing Test Folder failed, could not find Deck@server2.domain.com, maybe the server is currently unreachable or uses a self-signed certificate.”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0”,“version”:“31.0.4.1”,“exception”:{“Exception”:“Exception”,“Message”:“Sharing Test Folder failed, could not find Deck@server2.domain.com, maybe the server is currently unreachable or uses a self-signed certificate.”,“Code”:0,“Trace”:[{“file”:“/data/nextcloud/apps/federatedfilesharing/lib/FederatedShareProvider.php”,“line”:162,“function”:“createFederatedShare”,“class”:“OCA\FederatedFileSharing\FederatedShareProvider”,“type”:“->”,“args”:[“*** sensitive parameters replaced “]},{“file”:”/data/nextcloud/lib/private/Share20/Manager.php",“line”:727,“function”:“create”,“class”:“OCA\FederatedFileSharing\FederatedShareProvider”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/data/nextcloud/apps/files_sharing/lib/Controller/ShareAPIController.php",“line”:801,“function”:“createShare”,“class”:“OC\Share20\Manager”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/data/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",“line”:200,“function”:“createShare”,“class”:“OCA\Files_Sharing\Controller\ShareAPIController”,“type”:“->”,“args”:[" sensitive parameters replaced ***”]},{“file”:“/data/nextcloud/lib/private/AppFramework/Http/Dispatcher.php”,“line”:114,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:“->”},{“file”:“/data/nextcloud/lib/private/AppFramework/App.php”,“line”:161,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:“->”},{“file”:“/data/nextcloud/lib/private/Route/Router.php”,“line”:307,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:“::”},{“file”:“/data/nextcloud/ocs/v1.php”,“line”:49,“function”:“match”,“class”:“OC\Route\Router”,“type”:“->”},{“file”:“/data/nextcloud/ocs/v2.php”,“line”:7,“args”:[“/data/nextcloud/ocs/v1.php”],“function”:“require_once”}],“File”:“/data/nextcloud/apps/federatedfilesharing/lib/FederatedShareProvider.php”,“Line”:227,“message”:“Sharing Test Folder failed, could not find Deck@server2.domain.com, maybe the server is currently unreachable or uses a self-signed certificate.”,“exception”:,“CustomMessage”:“Sharing Test Folder failed, could not find Deck@server2.domain.com, maybe the server is currently unreachable or uses a self-signed certificate.”},“id”:“68c2db5b5faad”}

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.