Skip to content

fix(SetupChecks): update Serverid info level (fallback in use) message#58578

Open
joshtrichards wants to merge 1 commit intomasterfrom
jtr/fix-setupchcks-serverid-info
Open

fix(SetupChecks): update Serverid info level (fallback in use) message#58578
joshtrichards wants to merge 1 commit intomasterfrom
jtr/fix-setupchcks-serverid-info

Conversation

@joshtrichards
Copy link
Member

@joshtrichards joshtrichards commented Feb 25, 2026

  • Resolves: #

Summary

Context: This will be the default behavior and visible message to any instance upgraded from <v33. It should be as clear as possible.

Builds on #58577

Aside: I wish we could either auto-generate safely in all cases or detect distributed vs standalone setups. The end result is people are going to constantly complain this is visible in their setup checks or they're going to grumble they have to manually set this even though they're on a standalone deployment just to get rid of the setup check info message. I don't have a solution; just noting. ;-)

TODO

  • ...

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Context: This will be the default behavior and visible message to any instance upgraded from <v33.

Builds on #58577

Signed-off-by: Josh <josh.t.richards@gmail.com>
@joshtrichards joshtrichards added this to the Nextcloud 34 milestone Feb 25, 2026
@joshtrichards joshtrichards requested a review from a team as a code owner February 25, 2026 16:43
@joshtrichards joshtrichards requested review from ArtificialOwl and removed request for a team February 25, 2026 16:43
@joshtrichards joshtrichards added the 3. to review Waiting for reviews label Feb 25, 2026
@joshtrichards
Copy link
Member Author

/backport to stable33

@melroy89
Copy link
Contributor

melroy89 commented Feb 26, 2026

Could we also document serverid, like here for example?

Comment on lines +44 to +47
'The ``serverid`` parameter is not configured. '
. 'By default, Nextcloud uses a fallback based on the server hostname. '
. 'The fallback suggests a standalone setup, which is generally safe if your configuration will remain on a single server and never be cloned, migrated, or scaled out. '
. 'However, if you are running Nextcloud on multiple servers, sharing ``config.php``, or you plan to expand your setup in the future, you should explicitly set a unique integer ``serverid`` (0–1023) for each server. '
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from mixed indentation, we can assume fallback is safe for standalone setup (even if hostname change).
I also think the share of config.php is confusing. If it's shared it means several servers are parts of the same instance and you fall in multiple servers, no?

Suggested change
'The ``serverid`` parameter is not configured. '
. 'By default, Nextcloud uses a fallback based on the server hostname. '
. 'The fallback suggests a standalone setup, which is generally safe if your configuration will remain on a single server and never be cloned, migrated, or scaled out. '
. 'However, if you are running Nextcloud on multiple servers, sharing ``config.php``, or you plan to expand your setup in the future, you should explicitly set a unique integer ``serverid`` (0–1023) for each server. '
'The ``serverid`` parameter is not configured. '
. 'By default, Nextcloud uses a fallback based on the server hostname. '
. 'The fallback is safe for a standalone setup.'
. 'However, if you are running Nextcloud on multiple servers, you plan to expand your setup in the future, or simply want to suppress this message, you should explicitly set a unique integer ``serverid`` (0–1023) for each server. '

@Altahrim
Copy link
Collaborator

And yes, it would be better to detect distributed setups, but I don't have a good way to do this :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants