Failed to share with federated ID

Hi,

i have two nexctloud servers. Both on Ubuntuserver 20.04. First (NC1) of the instance ist running as a Dockercontainer behind traefik, the second (NC2) on apache2. Now i can share a folder over the federated ID from NC1 to NC2, but not back. If i want to share a folder from NC2 to NC1, i get an error:
“Fehler beim Erstellen der Freigabe: Freigabe von Arbeit fehlgeschlagen, da xxx@example.de nicht gefunden wurde. Möglicherweise ist der Server nicht erreichbar oder nutzt ein selbst zertifiziertes Zertifikat.”

Both certificates are from letsencrypt.

If you want to share a folder from NC2 to NC1 then the server NC1 must be able to reach the server NC2 via HTTPS with correct certificate and no errors. Maybe is it not possible. In the first step you can test it with wget.

On server NC1:
wget https://nc2...

wget:

wget https://nc2.de
–2022-04-28 20:52:43-- https://nc2.de/
Auflösen des Hostnamens nc2.de (nc2.de) … 2a02:xxxx:xxxx:xxxx::1, 194.xxx.1xx.23
Verbindungsaufbau zu nc2.de (nc2.de)|2a02:xxx:xxx:xxx::1|:443 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 302 Found
Platz: https://nc2.de/login [folgend]
–2022-04-28 20:52:44-- https://nc2.de/login
Wiederverwendung der bestehenden Verbindung zu [nc2.de]:443.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
Länge: 16821 (16K) [text/html]
Wird in »index.html.1« gespeichert.

index.html.1 100%[===================>] 16,43K --.-KB/s in 0,01s

2022-04-28 20:52:44 (1,63 MB/s) - »index.html.1« gespeichert [16821/16821]`

This is the docker logs nextcloud. Maybe the problem i found here:

1x.x.x.2 - - [28/Apr/2022:19:12:55 +0000] “GET /ocs-provider/ HTTP/1.1” 200 2338 “-” “Nextcloud Server Crawler”
1x.x.x.2 - - [28/Apr/2022:19:12:55 +0000] “GET /ocs-provider/ HTTP/1.1” 200 2346 “-” “Nextcloud Server Crawler”
1x.x.x.2 - - [28/Apr/2022:19:12:55 +0000] “GET /ocm-provider/ HTTP/1.1” 200 1715 “-” “Nextcloud Server Crawler”
1x.x.x.2 - - [28/Apr/2022:19:12:56 +0000] “POST /ocm/shares HTTP/1.1” 500 5511 “-” "Nextcloud Server Crawler"
1x.x.x.2 - - [28/Apr/2022:19:13:01 +0000] “GET /ocs-provider/ HTTP/1.1” 200 2344 “-” “Nextcloud Server Crawler”
1x.x.x.2 - - [28/Apr/2022:19:13:01 +0000] “GET /ocs-provider/ HTTP/1.1” 200 2348 “-” “Nextcloud Server Crawler”
1x.x.x.2 - user [28/Apr/2022:19:13:01 +0000] “PROPFIND /remote.php/dav/files/user/ HTTP/1.1” 207 991 “-” “Mozilla/5.0 (Linux) mirall/3.3.3git (Nextcloud, org.kde.Platform-5.4.0-109-generic ClientArchitecture: x86_64 OsArchitecture: x86_64)”
1x.x.x.2 - - [28/Apr/2022:19:13:31 +0000] “GET /ocs-provider/ HTTP/1.1” 200 2344 “-” “Nextcloud Server Crawler”
1x.x.x.2 - - [28/Apr/2022:19:13:31 +0000] “GET /ocs-provider/ HTTP/1.1” 200 2342 “-” “Nextcloud Server Crawler”
1x.x.x.2 - user [28/Apr/2022:19:13:31 +0000] “PROPFIND /remote.php/dav/files/user/ HTTP/1.1” 207 991 “-” “Mozilla/5.0 (Linux) mirall/3.3.3git (Nextcloud, org.kde.Platform-5.4.0-109-generic ClientArchitecture: x86_64 OsArchitecture: x86_64)”

on my server i can’t find the folder “ocm”, but on NC1 the folder is missing, too. So that is not the problem, i think.

I solved my problem. I removed all nc-containers, volumes and networks and installed my ansible-script again. Now i can share all folders. It works fine. Thx for your help!