[BUG] PSA: logrotate silently failing daily on UGOS Pro 1.16.0.0089 — UGOS service logs never rotate (root cause + fix)
Follow-up to my previous post about UGOS silently zeroing POSIX permissions. Different bug, same pattern: the firmware breaks something quietly and nothing surfaces in the UI.
TL;DR: UGOS Pro 1.16.0.0089 (config files in /etc/logrotate.d/ are timestamped June 4, matching that update's install date on my unit) update ships two logrotate config files that claim the same three log files. logrotate refuses to process the conflicting config and exits with an error — every single day — so several UGOS service logs never rotate and just keep growing. Mine reached ~280MB in a month. Check yours.
How to check if you're affected (2 commands over SSH):
systemctl status logrotate.service
sudo journalctl -u logrotate.service --no-pager | tail -10
If you see Active: failed and errors like:
error: ugos_serv:1 duplicate log entry for /var/ugreen/log/conf_tool.slog
error: ugos_serv:1 duplicate log entry for /var/ugreen/log/ug-reporter.slog
error: ugos_serv:1 duplicate log entry for /var/ugreen/log/ugcert-generator.slog
error: found error in file ugos_serv, skipping
…you have it too.
Root cause: /etc/logrotate.d/ctl_serv and /etc/logrotate.d/ugos_serv both declare conf_tool.slog, ug-reporter.slog and ugcert-generator.slog. Both files are timestamped one minute apart from the same firmware package — UGREEN added the three logs to ctl_serv without removing them from ugos_serv. logrotate processes configs alphabetically, ctl_serv wins, and when it reaches ugos_serv it errors out and skips that file entirely — so even the legitimate ugos_serv.slog entry stops rotating, and the whole service exits 1.
Check log directory size: sudo du -sh /var/ugreen/log
Fix (removes the duplicated lines, keeps the legitimate one):
sudo cp /etc/logrotate.d/ugos_serv /root/ugos_serv.logrotate.bak
sudo sed -i '\#conf_tool.slog#d; \#ug-reporter.slog#d; \#ugcert-generator.slog#d' /etc/logrotate.d/ugos_serv
sudo systemctl start logrotate.service && systemctl status logrotate.service --no-pager
Expected result: status=0/SUCCESS and a batch of fresh .slog.1 files in /var/ugreen/log as the backlog finally rotates.
Caveat: the next firmware update may well reinstate the duplicate (same as the permissions bug keeps coming back). I've added sudo logrotate -d /etc/logrotate.conf 2>&1 | grep -i error to my post-update checklist, right next to re-checking shared folder permissions.
Question for the community: can anyone confirm this on their unit? Two data points especially useful: (1) same firmware 1.16.0.0089 on other models — is it DXP4800 Pro-specific or fleet-wide? (2) anyone already on a newer firmware — is the duplicate still there, or did UGREEN silently fix it? Run the two check commands above and report firmware + model. If it's widespread I'll open a ticket with UGREEN engineering referencing this thread.