I wrote a small bash script that sets the parameter based on the local time of your server. Maybe it is of any help:
#!/bin/bash
#
# Set the local time when you want the maintenance window to start:
# (Only use full hours in 24hrs (HH:MM) formating) e.g. "00:00" "01:00" "02:00" etc...)
#
TIME="01:00"
#
# Set the path where your Nextcloud is installed:
#
NCPATH="/var/www/nextcloud"
#
# Set the web server user:
#
WWWUSER="www-data"
#
# DO NOT CHANGE ANYTHING BELOW THIS LINE!
#
LOCALSTARTTIME=$(date -d "$TIME" +%s)
UTCSTARTTIME=$(date -u -d "@$LOCALSTARTTIME" "+%-H")
sudo -u $WWWUSER php $NCPATH/occ config:system:set maintenance_window_start --value="$UTCSTARTTIME" --type=integer
exit 0
This may be of interest to those of you who, like me, don’t want to set a time window at all. So all tasks should be able to be started at any time.
In order for the message to disappear anyway, you have to deactivate the time window with the value 100:
Wouldn’t it have been nice if it actually gave useful information instead of telling us to manually edit the config.php without an example or an explanation of the options!
I would have loved to have been given the occ command, or the explanation about using 100 to disable it and the warning.
To be fair, the OCC command for setting configuration options is already documented here, and the configuration parameter itself is documnted here, the same way as any other configuration parameter.
But I agree, if there is an extra section on maintenance that the warning in the overview is pointing to, it would be useful to explain it in more detail there, or at least include links to the sections describing the “occ config” command and the “maintenance-window-start” option.
There’s an Edit button in the upper right if you ever feel like proposing adjustments. Alternatively can create an issue the Documentation repository[2].
To be fair, your first link doesn’t actually reference the maintenance window start at all, and the second is not discoverable unless you already know what to search for.
The link in the UI is useless. It’s terrible. I’d be lost without this forum and the input of people like you!
I’m on FreeBSD, we have some of the best documentation in the OSS world. You can tell the NC devs are primarily linux users
The truth is that there is a snap version that is installed in my server, but I dont use it at all. I’d like to believe that everything is configured to point my live installation.