Skip to content

Conversation

@julien-nc
Copy link
Member

If the return code of occ maintenance:mode --off is not 0, we might be interested in the command output.

We can backport this to 31, 30 and 29.

@julien-nc
Copy link
Member Author

It turns out that system just returns what's written in stdout, not stderr (what we are mostly interested in).
How about switching to something like https://www.php.net/manual/fr/function.system.php#94929 ?

@come-nc
Copy link
Collaborator

come-nc commented Apr 15, 2025

Yeah, do we have a helper somewhere for that?

@skjnldsv
Copy link
Member

Any news @julien-nc ? :)

@julien-nc
Copy link
Member Author

@skjnldsv No news. If you and @come-nc are ok with using proc_open() instead of system() to be able to get stderr, I might implement it soon-ish.

@julien-nc julien-nc force-pushed the enh/noid/log-occ-maintenance-off-output branch from d671ab5 to 48f413a Compare August 25, 2025 13:46
@julien-nc julien-nc requested a review from skjnldsv as a code owner August 25, 2025 13:46
@julien-nc
Copy link
Member Author

@skjnldsv @come-nc It now uses proc_open and prints stderr or stdout if they are not empty when the command fails.

@julien-nc julien-nc force-pushed the enh/noid/log-occ-maintenance-off-output branch from 2092392 to 1a365e2 Compare August 25, 2025 15:44
@skjnldsv
Copy link
Member

you also need make index.php

@julien-nc
Copy link
Member Author

@skjnldsv It does not make any change to index.php if I run make index.php.

@come-nc
Copy link
Collaborator

come-nc commented Aug 26, 2025

The failure comes from the changes in vendor I think.
Probably you use a different version of composer.

@julien-nc julien-nc force-pushed the enh/noid/log-occ-maintenance-off-output branch from 1a365e2 to 4b1318e Compare September 25, 2025 12:06
@come-nc come-nc force-pushed the enh/noid/log-occ-maintenance-off-output branch from e61eef3 to bcdb6a9 Compare September 26, 2025 09:42
Signed-off-by: Côme Chilliet <[email protected]>
@come-nc come-nc force-pushed the enh/noid/log-occ-maintenance-off-output branch from bcdb6a9 to f183e46 Compare September 26, 2025 09:47
@skjnldsv skjnldsv modified the milestones: Nextcloud 32, Nextcloud 33 Sep 28, 2025
@Altahrim Altahrim merged commit e5d4471 into master Oct 24, 2025
22 checks passed
@Altahrim Altahrim deleted the enh/noid/log-occ-maintenance-off-output branch October 24, 2025 11:13
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.

6 participants