Federated File Sharing in Owncloud 10.0.4

Hi eveybody, I am having a problem with federated file sharing which is when I try to do remote share it is not working and instead it is showing an error like could not reach admin@…com,server currently unreachable. The federation app is enabled and all the settings are done properly. The owncloud log shows the following error

{“reqId”:“X7tea3CuvE95KptuR@IbfAAAAAI”,“level”:3,“time”:“2020-11-23T07:02:04+00:00”,“remoteAddr”:“”,“user”:“admin”,“app”:“no app in context”,“method”:“POST”,“url”:"/owncloud/ocs/v2.php/apps/files_sharing/api/v1/shares?format=json",“message”:“Failed to notify remote server of federated share, removing share (Sharing index.jpg failed, could not find admin@, maybe the server is currently unreachable.)”}

On your first ownCloud instance, open a shell and run curl -I
If the other ownCloud instance is using https, you should obviously test it instead of http by adjusting the curl command.

If you get a certificate error with https because you’re using self signed certs, I would recommend to import them into the OS certificate store (this is different on every distribution, consult the manual for yours).

This should show 200 OK But perhaps just paste the result here.

Finally 10.0.4 is quite old, and there have been a lot of bugfixes since then, so it would definitely make sense to upgrade to 10.5.0.

1 Like

Thank you for quick reply , I upgraded to 10.5.0 and when I executed the curl command it is not showing 200 status , instead it is showing this
HTTP/1.1 301 Moved Permanently
Date: Mon, 23 Nov 2020 11:44:21 GMT
Server: Apache/2.4.6 (CentOS) PHP/7.2.34
Content-Type: text/html; charset=iso-8859-1

Read about the different response codes:

Try your curl again this time with the URL that was given back from the Location response header:
curl -I
There is also a special flag for curl to immediately follow redirects, but I don’t know it by heart at the moment.

1 Like

I just did curl by using location header and now it is showing 200 OK, but still federation is not working

curl -I
HTTP/1.1 200 OK
Date: Mon, 23 Nov 2020 11:55:09 GMT
Server: Apache/2.4.6 (CentOS) PHP/7.2.34
Last-Modified: Mon, 03 Aug 2020 07:20:01 GMT
ETag: “b3-5abf3f77b2a40”
Accept-Ranges: bytes
Content-Length: 179
Content-Type: text/html; charset=UTF-8

If that was your ownCloud on the other end, it should redirect you to the login page. Perhaps the second owncloud is accessible on another URL on the server? Perhaps you need to access it with a specific hostname on the IP?

What do you put into your browser address bar if you try to open the second ownCloud? (the one on

I usually put this only . If I put that, the url will be redirected to

@eneubauer Is there any way to migrate shares using data exporter without setting up federation

I personally haven’t used the data exporter before, so I don’t know… Perhaps @cdamken knows?

@eneubauer Thank you for that, the problem here is that only these two systems( and are not accepting federated shares with each other. I tried doing remote shares to and from another instance and it is working perfectly fine. Do you have any idea about that?

Check the admin sharing settings for federation, you need to specifically enable it after the trust relationship between the two servers has been established (they appear green). Check the docs:

Just having a quick glance on it I noticed the following:

For security reasons federated sharing strictly requires HTTPS (SSL/TLS) .

You currently don’t have HTTPS enabled.

I don’t know if federation is required, but you must be able to share between both servers because the idea was to keep the content accessible.

Yes, the problem was with HTTP and I have to add the following line in config
‘sharing.federation.allowHttpFallback’ ⇒ true to make the app accept http and now it is working fine.

1 Like

Thank You. After settting up federation , the shares are getting migrated properly.

1 Like