Federation sharing with other cloud behind proxy: url appears with port number

Hello,
I have 2 clouds:

  • mycloud.com: installed natively
    Nextcloud version: 23.0
    Operating system and version: debian 10
    Apache or nginx version: Apache 2.4.38
    PHP version: 7.3
  • othercloud.com : installed with docker and behind reverse proxy
    Nextcloud version : 23.0.4
    Operating system and version: Ubuntu 20.04
    Apache or nginx version : Apache 2.4.41
    PHP version : 8.0.18 (used inside docker)

The issue you are facing:

I’ve added them to both to trusted servers in Federated Cloud Sharing. When I try to share something from mycloud.com to a user on othercloud.com the url appears with the original port on which the docker container is running e.g. user@othercloud.com:8080

In the other direction I got the correct uri but the share does not appear after accepting it on mycloud.com. When deleting the share on othercloud.com I got the following error:

Error deleting the share: Wrong share -ID, or shared folder does not exist

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

Error log:

{“reqId”:“eZ5ZOrNymsvyACCjVgC0”,“level”:3,“time”:“2022-05-06T07:40:50+00:00”,“remoteAddr”:“192.168.X.X,“user”:“wouterVE”,“app”:“no app in context”,“method”:“PROPFIND”,“url”:”/remote.php/dav/files/wouterVE/",“message”:“error while sending notification for federated share: Server error: POST https://othercloud.com/ocm/notifications resulted in a 501 Not Implemented response:\n{"message":"Action \"Server does not support federated cloud sharing\" not supported or implemented."}\n”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.9 Safari/537.36”,“version”:“23.0.0.10”,“id”:“6274d123058c5”}

FYI: Federation app is enabled on both clouds

Relevant information form othercloud.com config.php :

  'overwrite.cli.url' => 'https://othercloud.com',
  'overwritehost' => 'othercloud.com,
  'overwriteprotocol' => 'https',

Sharebymail does generate the correct links.
What other option could solve this?

1 Like

Hi @wouterve,
You are missing the required support template. Please fill this form out and edit into your post.

This will give us the technical info and logs needed to help you! Thanks.

Sounds you you have not setup an SSL certificate for othercloud.com yet. Have you? Logs will help clarify.

@just Thanks for your reply. I’ve adjusted my initial post with the support template.

I do have setup up SSL certificate for othercloud.com and use Apache for reverse proxy. All other things from the site are working fine, except for federated sharing.