Skip to content

fix(maintenance): refresh page when turned off (sometimes) - #53528

Merged
icewind1991 merged 1 commit into
masterfrom
jtr-maint-refresh-part-1
Aug 11, 2025
Merged

fix(maintenance): refresh page when turned off (sometimes)#53528
icewind1991 merged 1 commit into
masterfrom
jtr-maint-refresh-part-1

Conversation

@joshtrichards

@joshtrichardsjoshtrichards commented Jun 16, 2025

Copy link
Copy Markdown
Member

We claim on the user-facing maintenance page that it'll automatically refresh when service is restored. However the JS-based watcher wasn't loading because depends on common1.

Not sure how long this was broken for, but probably going back at least several majors (maybe more).

Still only a partial solution to the broader problem, but addresses the scenario that occurs when toggling maintenance mode during operations that do not use the built-in Updater2.

Follow-up ideas:

  • Adjust and clean up template design and language (what I was doing when I noticed this)
  • Remove dependencies on other JS assets
  • Remove dependencies on styling pulled from running system / or ?

Footnotes

  1. Since the maintenance page is "special" (and relatively simple) we should/could probably eliminate it's dependence on common. Of course the maintenance page is still stuck with styling dependencies... See next item.

  2. During normal operations, toggling maintenance mode on/off will work (and refresh automatically with this PR), but when using the standard Updater presumably it'll break due to both a loss of styling and Javascript asset access. This is because in the Updater we replace the entry points as an intermediate step. Directly related to Plain maintenance mode page #5789. Also, somewhat related to, Allow communicating expectations to users during maintenance #35787.

Signed-off-by: Josh <josh.t.richards@gmail.com>
@joshtrichards
joshtrichards requested a review from a team as a code ownerJune 16, 2025 20:01
@joshtrichards
joshtrichards requested review from nfebe and skjnldsv and removed request for a teamJune 16, 2025 20:01

@skjnldsvskjnldsv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Make sense

@joshtrichardsjoshtrichards added this to the Nextcloud 32 milestone Jun 16, 2025
@joshtrichards

Copy link
Copy Markdown
MemberAuthor

/backport to stable31

@joshtrichards

Copy link
Copy Markdown
MemberAuthor

/backport to stable30

@skjnldsv
skjnldsv requested review from a team and szaimen and removed request for a teamJuly 1, 2025 10:43
@szaimen
szaimen requested review from icewind1991 and removed request for szaimenJuly 1, 2025 11:12
Sign up for freeto 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.

3 participants

@joshtrichards@icewind1991@skjnldsv