# dpkg -L cloud-init |grep logrotate
/etc/logrotate.d/cloud-init
# dpkg -L cloud-init-base |grep logrotate
/etc/logrotate.d
/etc/logrotate.d/cloud-init-base
# journalctl -e -u logrotate.service --no-pager
Nov 17 00:35:26 e7440 systemd[1]: Starting logrotate.service - Rotate log
files...
Nov 17 00:35:26 e7440 logrotate[73608]: error: cloud-init-base:1 duplicate log
entry for /var/log/cloud-init*.log
Nov 17 00:35:26 e7440 logrotate[73608]: error: found error in file
cloud-init-base, skipping
Nov 17 00:35:27 e7440 systemd[1]: logrotate.service: Main process exited,
code=exited, status=1/FAILURE
Nov 17 00:35:27 e7440 systemd[1]: logrotate.service: Failed with result
'exit-code'.
Nov 17 00:35:27 e7440 systemd[1]: Failed to start logrotate.service - Rotate
log files.
# diff /etc/logrotate.d/cloud-init /etc/logrotate.d/cloud-init-base
# echo $?
0
# ### Yup, same file in two places
# dpkg -l | grep cloud-init
ii cloud-init 25.2-0ubuntu1~25.04.1
all initialization and customization tool
for cloud instances
ii cloud-init-base 25.2-0ubuntu1~25.04.1
all initialization and customization tool
for cloud instances
#
# apt install cloud-init
cloud-init is already the newest version (25.2-0ubuntu1~25.04.1).
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 56
root@e7440:~# apt install cloud-init-base
cloud-init-base is already the newest version (25.2-0ubuntu1~25.04.1).
cloud-init-base set to manually installed.
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 56
### Hmm, odd the "set to manually installed"? Maybe via a dependency? I
don't remember doing it :-)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2089790
Title:
Duplicate logrotate configurations cause errors
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2089790/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs