Federated share between 2 nextcloud on same server


I have a little problem with federated share between two nextcloud on same server. If I’ll try to share a file from on nextcloud to another nextcloud on other server all works fine.

But if I try to share a doc between two nextcloud on same server I have on error like this :
Capture d’écran du 2021-11-19 07-37-27

Certificates are ok and other nextcloud is ok also.


Nextcloud version (eg, 20.0.5): 22.2.1
Operating system and version (eg, Ubuntu 20.04): debian 10
Apache or nginx version (eg, Apache 2.4.25): 2.4.38
PHP version (eg, 7.4): 7.4

The issue you are facing:

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

Thanks for you’re help


I think on the server the nextcloud can not connect the other server through SSL.
Please test direct on the server:

wget https://cloud1.server.tld
wget https://cloud2.server.tld

Post errors.

cloud1.server.tld is all after the @ in your post.
cloud2.server.tld is the other server.

1 Like

@devnull hello

i have no errors

root@server:/var/www# wget https://cloud.cloud1.fr
--2021-11-19 08:13:36--  https://cloud.cloud1.fr/
Résolution de cloud.cloud1.fr (cloud.cloud1.fr)…
Connexion à cloud.cloud1.fr (cloud.cloud1.fr)||:443… connecté.
requête HTTP transmise, en attente de la réponse… 302 Found
Emplacement : https://cloud.cloud1.fr/index.php/login [suivant]
--2021-11-19 08:13:36--  https://cloud.cloud1.fr/index.php/login
Réutilisation de la connexion existante à cloud.cloud1.fr:443.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : 13025 (13K) [text/html]
Sauvegarde en : « index.html.1 »

index.html.1                 100%[==============================================>]  12,72K  --.-KB/s    ds 0,001s  

2021-11-19 08:13:36 (20,9 MB/s) — « index.html.1 » sauvegardé [13025/13025]

root@server:/var/www# wget https://cloud.cloud2.fr
--2021-11-19 08:13:53--  https://cloud.cloud2.fr/
Résolution de cloud.cloud2.fr (cloud.cloud2.fr)…
Connexion à cloud.cloud2.fr (cloud.cloud2.fr)||:443… connecté.
requête HTTP transmise, en attente de la réponse… 302 Found
Emplacement : https://cloud.cloud2.fr/index.php/login [suivant]
--2021-11-19 08:13:53--  https://cloud.cloud2.fr/index.php/login
Réutilisation de la connexion existante à cloud.cloud2.fr:443.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : 14288 (14K) [text/html]
Sauvegarde en : « index.html.2 »

index.html.2                 100%[==============================================>]  13,95K  --.-KB/s    ds 0,001s  

2021-11-19 08:13:53 (13,2 MB/s) — « index.html.2 » sauvegardé [14288/14288]

Did you try to share some file back? Not from cloud1 to cloud2, but vice versa from cloud2 to cloud1?
I try your links from wget example, and only second works (could be the case you simply replace them with example links…), but according to your log both are resolved correctly.

@gas85 arg it’s works in other direction … from cloud1 to cloud2 it’s not works from cloud2 to cloud1 it’s works

1 Like

Is there any difference between the two nextcloud? Find them and then you find perhaps the problem. In the nextcloud gui of both nextclouds you can configure federated nextcloud. But i think there is not the problem. But you can check both configurations in both nextcloud guis.

1 Like

I don’t see any difference in all two configuration nor in apache, nor in php-fpm, nor in config.php so strange

But there is difference, somehow for me only https://cloud.cloud2.fr works and cloud 1 could not be reached, this could be the root cause.

Cloud2 is resolved to CloudFlare IPs, and cloud 1 seems has wrong DNS configuration (SOA entry only).