[SOLVED] How can i change the user Federation-cloud-id

Hello,
i’ve running a nextcloud on docker behind nginx proxy manager since years. Now, i would like to share files between an other nextcloud. But the remote user got an error.

I’ve read most of the help topic’s and thr official documentation. But i didn’t found a solution.

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 30.0.4.1
  • Operating system and version (e.g., Ubuntu 24.04):
    • official Docker Image running on debian 12
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • nginx proxy manager: v2.12.1
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

User from the other nextcloud couldn’t create a “md” file to my nextcloud. Error raised: “Template not found”

Creating a directory works fine form the other nextcloud.

My actual federation-cloud-id looks like <username>@http://<subdomain>.<my_domain>.<tdl>

For me it’s look like strange.

My config.php
‘trusted_domains’ =>
array (
0 => ‘<subdomain>.<my_domain>.<tdl>’,
1 => ‘<internal ip address>’,
),

Share Config:
Trusted Server:
https://<subdomain>.<second_domain>.<tld>

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

Log entries

No logs

hello @tj200 welcome to the community :handshake:

you choose to ignore the template so it’s hard say if the error is expected.

the expected format would be userid@cloud.mydomain.tld

It was hard for me to imagine federated users can’t create file in another instance (as this instance doesn’t have any knowledge about quota and access rights). so I made a test and in fact the remote user can create a file. The experience is little different and might be related to you issue - local user is offered with templates dialog and can choose to create blank text or one from template… the remote user goes straight to a blank one (but there is slight delay which might be cause by templates checking)

Thanks.
Did you know, how i can change my federation-cloud-id from <username>@http://<subdomain>.<mydomain>.<tld> to <username>@<subdomain>.<mydomain>.<tld>?

Here are the permissions in nextcloud:

The permissions on “Linux Operating System” 775

the username generate automatically. likely you have some issue with your reverseproxy OVERWRITE* settings. please review 101: reverse proxy

1 Like

Dear wwe,
thanks a lot. Your Post 101: reverse proxy is greate.

The first point of my Poblem is solved!

Solution:

  • Trusted Proxies: Define the IP addresses or hostnames of your reverse proxy servers in config.php for security reasons (only trusted endpoints can inject information about accessing device).
  • Overwrite Parameters: If Nextcloud doesn’t automatically detect hostname, protocol, or webroot path,
  • use overwritehost and overwriteprotocol options in config.php

Now i have to try the “Template not found” problem. But i close this issue because your hint was successful.
Thanks

1 Like

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