mirror of
https://github.com/RipleyBooya/Nextcloud-AIO_OnlyOffice_Availability_Fix.git
synced 2025-12-12 21:58:39 +01:00
Compare commits
No commits in common. "ef9f32941c10d533c6557f59841dd6639f0aef6d" and "f220a4361f905c8d1018af334179f1b623674060" have entirely different histories.
ef9f32941c
...
f220a4361f
5 changed files with 3 additions and 75 deletions
17
README.md
17
README.md
|
|
@ -50,21 +50,10 @@ This document proposes a complete, reliable, automated workaround.
|
|||
|
||||
## Summary of the Solution
|
||||
|
||||
### 0. (Optional) Set “Availability check interval” to **0 minutes**
|
||||
In the ONLYOFFICE admin panel:
|
||||
|
||||
### 0. (Optional) Set “editors_check_interval” to **0** via OCC
|
||||
|
||||
There is no GUI option anymore for this in the ONLYOFFICE admin panel,
|
||||
so you have to use the CLI (occ) inside the Nextcloud container:
|
||||
|
||||
```bash
|
||||
docker exec -it nextcloud-aio-nextcloud \
|
||||
sudo -E -u www-data php occ config:system:set onlyoffice editors_check_interval --value=0
|
||||
|
||||
docker exec -it nextcloud-aio-nextcloud \
|
||||
sudo -E -u www-data php occ config:system:get onlyoffice editors_check_interval
|
||||
```
|
||||
|
||||
|
||||
**Settings → ONLYOFFICE → Availability check interval → set to `0`**
|
||||
|
||||
This reduces periodic background checks,
|
||||
**BUT on its own it does *not* fix the nightly-backup issue.**
|
||||
|
|
|
|||
|
|
@ -1,10 +0,0 @@
|
|||
/var/log/onlyoffice-auto-fix.log {
|
||||
daily
|
||||
rotate 90
|
||||
size 5M
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
delaycompress
|
||||
copytruncate
|
||||
}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
[Unit]
|
||||
Description=Auto-fix OnlyOffice for Nextcloud AIO
|
||||
After=docker.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/local/sbin/onlyoffice-auto-fix.sh
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
[Unit]
|
||||
Description=Run OnlyOffice auto-fix after Nextcloud AIO backup
|
||||
|
||||
[Timer]
|
||||
# Primary window: every 5 minutes between 04:10–04:40 UTC
|
||||
OnCalendar=*-*-* 04:10:00..04:40:00/5 UTC
|
||||
|
||||
# Safety run: once per hour at minute 10 (UTC)
|
||||
OnCalendar=*-*-* *:10:00 UTC
|
||||
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
LOCK="/tmp/onlyoffice-check.lock"
|
||||
LOG="/var/log/onlyoffice-auto-fix.log"
|
||||
|
||||
if [ -f "$LOCK" ]; then
|
||||
echo "$(date '+%F %T') : lock present, skipping" >> "$LOG"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
touch "$LOCK"
|
||||
|
||||
{
|
||||
echo " "
|
||||
echo "===== $(date '+%F %T') : Running OnlyOffice check ====="
|
||||
|
||||
docker exec nextcloud-aio-nextcloud \
|
||||
sudo -E -u www-data php occ onlyoffice:documentserver --check
|
||||
|
||||
STATUS=$?
|
||||
|
||||
if [ $STATUS -eq 0 ]; then
|
||||
echo "$(date '+%F %T') : OK ✓"
|
||||
else
|
||||
echo "$(date '+%F %T') : ERROR – DocumentServer not ready ❌"
|
||||
fi
|
||||
|
||||
} >> "$LOG" 2>&1
|
||||
|
||||
rm -f "$LOCK"
|
||||
Loading…
Add table
Reference in a new issue