** Description changed: - After upgrading from Ubuntu 24.04 (Noble) to Ubuntu 26.04 (Resolute), - both `/etc/logrotate.d/cloud-init` (dated September 2024) and - `/etc/logrotate.d/cloud-init-base` (dated April 2025) are present. Both - files contain an entry for /var/log/cloud-init*.log, causing logrotate - to fail with the following errors: + After testing upgrading from Ubuntu 24.04 (Noble) to Ubuntu 26.04 + (Resolute) by running "do-release-upgrade -d", both + /etc/logrotate.d/cloud-init (owned by the cloud-init package) and + /etc/logrotate.d/cloud-init-base (owned by the cloud-init-base package) + are present simultaneously. Both contain an identical entry for + /var/log/cloud-init*.log, causing logrotate to fail: ``` error: cloud-init-base:1 duplicate log entry for /var/log/cloud-init*.log error: found error in file cloud-init-base, skipping logrotate.service: Failed with result 'exit-code'. ``` - The upgrade process should probably remove `/etc/logrotate.d/cloud-init` - when `cloud-init-base` is installed. Both files are identical and the - workaround is to manually remove the older `/etc/logrotate.d/cloud-init` - file. + A workaround is to manually remove one of the files. + ProblemType: Bug DistroRelease: Ubuntu 26.04 Package: cloud-init 26.1-0ubuntu2 ProcVersionSignature: Ubuntu 7.0.0-17.17-generic 7.0.2 Uname: Linux 7.0.0-17-generic x86_64 ApportVersion: 2.34.0-0ubuntu2 Architecture: amd64 CasperMD5CheckResult: unknown CurrentDesktop: ubuntu:GNOME Date: Sat May 9 17:46:38 2026 InstallationDate: Installed on 2020-07-03 (2136 days ago) InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423) PackageArchitecture: all ProcEnviron: - LANG=en_US.UTF-8 - PATH=(custom, no user) - SHELL=/bin/bash - TERM=xterm-256color - XDG_RUNTIME_DIR=<set> + LANG=en_US.UTF-8 + PATH=(custom, no user) + SHELL=/bin/bash + TERM=xterm-256color + XDG_RUNTIME_DIR=<set> SourcePackage: cloud-init UpgradeStatus: Upgraded to resolute on 2026-05-03 (7 days ago) modified.conffile..etc.cloud.cloud.cfg: [modified] modified.conffile..etc.logrotate.d.cloud-init: [deleted] mtime.conffile..etc.cloud.cloud.cfg: 2026-04-15T15:54:46
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2152107 Title: Cloud-init logrotate config duplicated after Noble to Resolute upgrade To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2152107/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
