[Bug 2055046] Re: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage-license-check.log
This bug was fixed in the package ubuntu-advantage-tools - 31.2.2 --- ubuntu-advantage-tools (31.2.2) noble; urgency=medium * version.py: fix internal version to match ubuntu package version (it was missed in the previous upload, so 31.2.1 is "burned" now) -- Andreas Hasenack Sun, 24 Mar 2024 10:52:02 -0300 ** Changed in: ubuntu-advantage-tools (Ubuntu) Status: Confirmed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2055046 Title: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage- license-check.log To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2055046/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2055046] Re: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage-license-check.log
This bug was fixed in the package ubuntu-advantage-tools - 31.2~16.04 --- ubuntu-advantage-tools (31.2~16.04) xenial; urgency=medium * Backport new upstream release (LP: #2048921) ubuntu-advantage-tools (31.2) noble; urgency=medium * properly rename logrotate conffile to avoid duplicate confiles, keep user changes and avoid unnecessary prompts (LP: #2055046) * use mv_conffile on all ubuntu-advantage-tools conffiles to avoid "obsolete" dpkg conffile statuses * fix regression in api u.pro.attach.auto.should_auto_attach.v1 so that it works with the new package names ubuntu-advantage-tools (31.1) noble; urgency=medium * fix unit test that failed on newer version of python ubuntu-advantage-tools (31) noble; urgency=medium * d/*: - rename ubuntu-advantage-tools to ubuntu-pro-client - rename ubuntu-advantage-pro to ubuntu-pro-image-auto-attach * d/apparmor: - introduce new ubuntu_pro_apt_news apparmor policy * d/control: - update descriptions and homepages - update ubuntu-pro-client-l10n to Depend on same binary version of ubuntu-pro-client * d/rules: - install ubuntu_pro_apt_news apparmor policy * d/ubuntu-pro-client.prerm: - removed dependency on python3 by reimplementing in sh (LP: #2021988) * apport: - collect logs related to ubuntu_pro_apt_news apparmor policy * release-upgrades.d/ubuntu-advantage-upgrades.cfg: - convert APT list files to deb822 files when upgrading to noble * systemd/apt-news.service: - add apparmor profile and capability restrictions * systemd/ubuntu-advantage.service: - avoid deadlock when started during cloud-config.service (LP: #2050022) * New upstream release 31 (LP: #2048921) - api: + u.pro.attach.auto.full_auto_attach.v1: new cloud_override param + u.pro.status.enabled_services.v1: * include services in "warning" state * include "usg" + u.pro.security.fix.*.plan.v1: export common objects from endpoint modules (GH: #2714) - cli: + add autocomplete for api subcommand + autocomplete multiple services for enable/disable subcommands + if lock is held, cli will retry over the course of a few seconds - collect-logs: + include logs related to ubuntu_pro_apt_news apparmor policy + include logs of apt-news.service + include logs of esm-cache.service - enable: + use deb822 apt source file format when on noble or later - fix: + avoid insinuating that CVEs were found on the machine (GH: #1522) + ignore LSNs when considering related USNs + pick CVE description based on what packages are installed - landscape: + don't disable landscape on ubuntu releases where it cannot be enabled (GH: #2743) + no longer assume landscape-client gets removed on disable (GH: #2840) + leave client.conf in place instead of renaming + require service to be running to consider "enabled" + new explanatory message when disabling - motd: properly pluralize messages about updates (GH: #1579) - status: show warning when canonical-livepatch command fails (LP: #2019997) - timer jobs: jobs-status.json is now world readable (GH: #2601) ubuntu-advantage-tools (30.1) noble; urgency=medium * fix UnboundLocalError in update-check error handling (LP: #2043836) -- Grant Orndorff Thu, 29 Feb 2024 09:03:11 -0500 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2055046 Title: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage- license-check.log To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2055046/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2055046] Re: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage-license-check.log
This bug was fixed in the package ubuntu-advantage-tools - 31.2~18.04 --- ubuntu-advantage-tools (31.2~18.04) bionic; urgency=medium * Backport new upstream release (LP: #2048921) ubuntu-advantage-tools (31.2) noble; urgency=medium * properly rename logrotate conffile to avoid duplicate confiles, keep user changes and avoid unnecessary prompts (LP: #2055046) * use mv_conffile on all ubuntu-advantage-tools conffiles to avoid "obsolete" dpkg conffile statuses * fix regression in api u.pro.attach.auto.should_auto_attach.v1 so that it works with the new package names ubuntu-advantage-tools (31.1) noble; urgency=medium * fix unit test that failed on newer version of python ubuntu-advantage-tools (31) noble; urgency=medium * d/*: - rename ubuntu-advantage-tools to ubuntu-pro-client - rename ubuntu-advantage-pro to ubuntu-pro-image-auto-attach * d/apparmor: - introduce new ubuntu_pro_apt_news apparmor policy * d/control: - update descriptions and homepages - update ubuntu-pro-client-l10n to Depend on same binary version of ubuntu-pro-client * d/rules: - install ubuntu_pro_apt_news apparmor policy * d/ubuntu-pro-client.prerm: - removed dependency on python3 by reimplementing in sh (LP: #2021988) * apport: - collect logs related to ubuntu_pro_apt_news apparmor policy * release-upgrades.d/ubuntu-advantage-upgrades.cfg: - convert APT list files to deb822 files when upgrading to noble * systemd/apt-news.service: - add apparmor profile and capability restrictions * systemd/ubuntu-advantage.service: - avoid deadlock when started during cloud-config.service (LP: #2050022) * New upstream release 31 (LP: #2048921) - api: + u.pro.attach.auto.full_auto_attach.v1: new cloud_override param + u.pro.status.enabled_services.v1: * include services in "warning" state * include "usg" + u.pro.security.fix.*.plan.v1: export common objects from endpoint modules (GH: #2714) - cli: + add autocomplete for api subcommand + autocomplete multiple services for enable/disable subcommands + if lock is held, cli will retry over the course of a few seconds - collect-logs: + include logs related to ubuntu_pro_apt_news apparmor policy + include logs of apt-news.service + include logs of esm-cache.service - enable: + use deb822 apt source file format when on noble or later - fix: + avoid insinuating that CVEs were found on the machine (GH: #1522) + ignore LSNs when considering related USNs + pick CVE description based on what packages are installed - landscape: + don't disable landscape on ubuntu releases where it cannot be enabled (GH: #2743) + no longer assume landscape-client gets removed on disable (GH: #2840) + leave client.conf in place instead of renaming + require service to be running to consider "enabled" + new explanatory message when disabling - motd: properly pluralize messages about updates (GH: #1579) - status: show warning when canonical-livepatch command fails (LP: #2019997) - timer jobs: jobs-status.json is now world readable (GH: #2601) ubuntu-advantage-tools (30.1) noble; urgency=medium * fix UnboundLocalError in update-check error handling (LP: #2043836) -- Grant Orndorff Thu, 29 Feb 2024 09:03:11 -0500 ** Changed in: ubuntu-advantage-tools (Ubuntu Xenial) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2055046 Title: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage- license-check.log To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2055046/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2055046] Re: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage-license-check.log
This bug was fixed in the package ubuntu-advantage-tools - 31.2~20.04 --- ubuntu-advantage-tools (31.2~20.04) focal; urgency=medium * Backport new upstream release (LP: #2048921) ubuntu-advantage-tools (31.2) noble; urgency=medium * properly rename logrotate conffile to avoid duplicate confiles, keep user changes and avoid unnecessary prompts (LP: #2055046) * use mv_conffile on all ubuntu-advantage-tools conffiles to avoid "obsolete" dpkg conffile statuses * fix regression in api u.pro.attach.auto.should_auto_attach.v1 so that it works with the new package names ubuntu-advantage-tools (31.1) noble; urgency=medium * fix unit test that failed on newer version of python ubuntu-advantage-tools (31) noble; urgency=medium * d/*: - rename ubuntu-advantage-tools to ubuntu-pro-client - rename ubuntu-advantage-pro to ubuntu-pro-image-auto-attach * d/apparmor: - introduce new ubuntu_pro_apt_news apparmor policy * d/control: - update descriptions and homepages - update ubuntu-pro-client-l10n to Depend on same binary version of ubuntu-pro-client * d/rules: - install ubuntu_pro_apt_news apparmor policy * d/ubuntu-pro-client.prerm: - removed dependency on python3 by reimplementing in sh (LP: #2021988) * apport: - collect logs related to ubuntu_pro_apt_news apparmor policy * release-upgrades.d/ubuntu-advantage-upgrades.cfg: - convert APT list files to deb822 files when upgrading to noble * systemd/apt-news.service: - add apparmor profile and capability restrictions * systemd/ubuntu-advantage.service: - avoid deadlock when started during cloud-config.service (LP: #2050022) * New upstream release 31 (LP: #2048921) - api: + u.pro.attach.auto.full_auto_attach.v1: new cloud_override param + u.pro.status.enabled_services.v1: * include services in "warning" state * include "usg" + u.pro.security.fix.*.plan.v1: export common objects from endpoint modules (GH: #2714) - cli: + add autocomplete for api subcommand + autocomplete multiple services for enable/disable subcommands + if lock is held, cli will retry over the course of a few seconds - collect-logs: + include logs related to ubuntu_pro_apt_news apparmor policy + include logs of apt-news.service + include logs of esm-cache.service - enable: + use deb822 apt source file format when on noble or later - fix: + avoid insinuating that CVEs were found on the machine (GH: #1522) + ignore LSNs when considering related USNs + pick CVE description based on what packages are installed - landscape: + don't disable landscape on ubuntu releases where it cannot be enabled (GH: #2743) + no longer assume landscape-client gets removed on disable (GH: #2840) + leave client.conf in place instead of renaming + require service to be running to consider "enabled" + new explanatory message when disabling - motd: properly pluralize messages about updates (GH: #1579) - status: show warning when canonical-livepatch command fails (LP: #2019997) - timer jobs: jobs-status.json is now world readable (GH: #2601) ubuntu-advantage-tools (30.1) noble; urgency=medium * fix UnboundLocalError in update-check error handling (LP: #2043836) -- Grant Orndorff Thu, 29 Feb 2024 09:03:11 -0500 ** Changed in: ubuntu-advantage-tools (Ubuntu Bionic) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2055046 Title: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage- license-check.log To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2055046/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2055046] Re: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage-license-check.log
This bug was fixed in the package ubuntu-advantage-tools - 31.2~22.04 --- ubuntu-advantage-tools (31.2~22.04) jammy; urgency=medium * Backport new upstream release (LP: #2048921) ubuntu-advantage-tools (31.2) noble; urgency=medium * properly rename logrotate conffile to avoid duplicate confiles, keep user changes and avoid unnecessary prompts (LP: #2055046) * use mv_conffile on all ubuntu-advantage-tools conffiles to avoid "obsolete" dpkg conffile statuses * fix regression in api u.pro.attach.auto.should_auto_attach.v1 so that it works with the new package names ubuntu-advantage-tools (31.1) noble; urgency=medium * fix unit test that failed on newer version of python ubuntu-advantage-tools (31) noble; urgency=medium * d/*: - rename ubuntu-advantage-tools to ubuntu-pro-client - rename ubuntu-advantage-pro to ubuntu-pro-image-auto-attach * d/apparmor: - introduce new ubuntu_pro_apt_news apparmor policy * d/control: - update descriptions and homepages - update ubuntu-pro-client-l10n to Depend on same binary version of ubuntu-pro-client * d/rules: - install ubuntu_pro_apt_news apparmor policy * d/ubuntu-pro-client.prerm: - removed dependency on python3 by reimplementing in sh (LP: #2021988) * apport: - collect logs related to ubuntu_pro_apt_news apparmor policy * release-upgrades.d/ubuntu-advantage-upgrades.cfg: - convert APT list files to deb822 files when upgrading to noble * systemd/apt-news.service: - add apparmor profile and capability restrictions * systemd/ubuntu-advantage.service: - avoid deadlock when started during cloud-config.service (LP: #2050022) * New upstream release 31 (LP: #2048921) - api: + u.pro.attach.auto.full_auto_attach.v1: new cloud_override param + u.pro.status.enabled_services.v1: * include services in "warning" state * include "usg" + u.pro.security.fix.*.plan.v1: export common objects from endpoint modules (GH: #2714) - cli: + add autocomplete for api subcommand + autocomplete multiple services for enable/disable subcommands + if lock is held, cli will retry over the course of a few seconds - collect-logs: + include logs related to ubuntu_pro_apt_news apparmor policy + include logs of apt-news.service + include logs of esm-cache.service - enable: + use deb822 apt source file format when on noble or later - fix: + avoid insinuating that CVEs were found on the machine (GH: #1522) + ignore LSNs when considering related USNs + pick CVE description based on what packages are installed - landscape: + don't disable landscape on ubuntu releases where it cannot be enabled (GH: #2743) + no longer assume landscape-client gets removed on disable (GH: #2840) + leave client.conf in place instead of renaming + require service to be running to consider "enabled" + new explanatory message when disabling - motd: properly pluralize messages about updates (GH: #1579) - status: show warning when canonical-livepatch command fails (LP: #2019997) - timer jobs: jobs-status.json is now world readable (GH: #2601) ubuntu-advantage-tools (30.1) noble; urgency=medium * fix UnboundLocalError in update-check error handling (LP: #2043836) -- Grant Orndorff Thu, 29 Feb 2024 09:03:11 -0500 ** Changed in: ubuntu-advantage-tools (Ubuntu Jammy) Status: Fix Committed => Fix Released ** Changed in: ubuntu-advantage-tools (Ubuntu Focal) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2055046 Title: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage- license-check.log To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2055046/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2055046] Re: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage-license-check.log
This bug was fixed in the package ubuntu-advantage-tools - 31.2~23.10 --- ubuntu-advantage-tools (31.2~23.10) mantic; urgency=medium * Backport new upstream release (LP: #2048921) ubuntu-advantage-tools (31.2) noble; urgency=medium * properly rename logrotate conffile to avoid duplicate confiles, keep user changes and avoid unnecessary prompts (LP: #2055046) * use mv_conffile on all ubuntu-advantage-tools conffiles to avoid "obsolete" dpkg conffile statuses * fix regression in api u.pro.attach.auto.should_auto_attach.v1 so that it works with the new package names ubuntu-advantage-tools (31.1) noble; urgency=medium * fix unit test that failed on newer version of python ubuntu-advantage-tools (31) noble; urgency=medium * d/*: - rename ubuntu-advantage-tools to ubuntu-pro-client - rename ubuntu-advantage-pro to ubuntu-pro-image-auto-attach * d/apparmor: - introduce new ubuntu_pro_apt_news apparmor policy * d/control: - update descriptions and homepages - update ubuntu-pro-client-l10n to Depend on same binary version of ubuntu-pro-client * d/rules: - install ubuntu_pro_apt_news apparmor policy * d/ubuntu-pro-client.prerm: - removed dependency on python3 by reimplementing in sh (LP: #2021988) * apport: - collect logs related to ubuntu_pro_apt_news apparmor policy * release-upgrades.d/ubuntu-advantage-upgrades.cfg: - convert APT list files to deb822 files when upgrading to noble * systemd/apt-news.service: - add apparmor profile and capability restrictions * systemd/ubuntu-advantage.service: - avoid deadlock when started during cloud-config.service (LP: #2050022) * New upstream release 31 (LP: #2048921) - api: + u.pro.attach.auto.full_auto_attach.v1: new cloud_override param + u.pro.status.enabled_services.v1: * include services in "warning" state * include "usg" + u.pro.security.fix.*.plan.v1: export common objects from endpoint modules (GH: #2714) - cli: + add autocomplete for api subcommand + autocomplete multiple services for enable/disable subcommands + if lock is held, cli will retry over the course of a few seconds - collect-logs: + include logs related to ubuntu_pro_apt_news apparmor policy + include logs of apt-news.service + include logs of esm-cache.service - enable: + use deb822 apt source file format when on noble or later - fix: + avoid insinuating that CVEs were found on the machine (GH: #1522) + ignore LSNs when considering related USNs + pick CVE description based on what packages are installed - landscape: + don't disable landscape on ubuntu releases where it cannot be enabled (GH: #2743) + no longer assume landscape-client gets removed on disable (GH: #2840) + leave client.conf in place instead of renaming + require service to be running to consider "enabled" + new explanatory message when disabling - motd: properly pluralize messages about updates (GH: #1579) - status: show warning when canonical-livepatch command fails (LP: #2019997) - timer jobs: jobs-status.json is now world readable (GH: #2601) ubuntu-advantage-tools (30.1) noble; urgency=medium * fix UnboundLocalError in update-check error handling (LP: #2043836) -- Grant Orndorff Thu, 29 Feb 2024 09:03:11 -0500 ** Changed in: ubuntu-advantage-tools (Ubuntu Mantic) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2055046 Title: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage- license-check.log To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2055046/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2055046] Re: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage-license-check.log
For the SRU As noted in the Test Plan, an automated test was added to the ubuntu- advantage-tools package to cover this bug. We ran the full automated test suite for the SRU of 31.2, including this one, and they all passed. Logs are attached in LP: #2048921. So I'm marking verification done for this bug. The autopkgtest failure on mantic ppc64el was a flaky infrastructure problem and passed when I retried it. ** Tags removed: verification-needed verification-needed-bionic verification-needed-focal verification-needed-jammy verification-needed-mantic verification-needed-xenial ** Tags added: verification-done verification-done-bionic verification-done-focal verification-done-jammy verification-done-mantic verification-done-xenial -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2055046 Title: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage- license-check.log To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2055046/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2055046] Re: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage-license-check.log
Hello Owen, Sorry for the delay. The 24.04 repositories are in the middle of a large transition related to time_t64 and many packages/updates, including this one, are blocked on other builds because of that. I hope the backlog will be worked through soon, and I will try to get this update published soon. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2055046 Title: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage- license-check.log To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2055046/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2055046] Re: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage-license-check.log
I am using 24.04 and this has not yet been fixed. Do you have a time frame for when it will reach the repositories? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2055046 Title: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage- license-check.log To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2055046/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2055046] Re: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage-license-check.log
** Description changed: [ Impact ] After an upgrade from ubuntu-advantage-tools 30.1 to ubuntu-pro-client 31.1, an old logrotate conffile named ubuntu-advantage-tools is left behind. The old file configures the same files as the new conffile: ubuntu-pro-client. The result is that when logrotate runs (on a daily timer) it has an error because two configurations for the same log files exist. This results in a "degraded" system status. - The fix is to use the `rm_conffile` maintscript to remove the old + The fix is to use the `mv_conffile` maintscript to remove the old ubuntu-advantage-tools logrotate conffile on upgrade. [ Test Plan ] We added a test to the ubuntu-pro-client integration test suite that covers this scenario. It upgrades to the new ubuntu-pro-client and then runs logrotate and checks that there are no errors. Because this is covered by the integration test suite, this bug will be verified as part of the verification process for LP: #2048921. [ Where problems could occur ] Touching conffiles is always risky. It could result in the removal of a needed config option or in an unnecessary debconf prompt on upgrade. I tested that user modifications were preserved on upgrade, but there is always the possibility that something could go wrong. [ Original Description ] Logrotate does not start due to misconfigured Ubuntu Pro: $ sudo systemctl status logrotate | cat × logrotate.service - Rotate log files Loaded: loaded (/usr/lib/systemd/system/logrotate.service; static) Active: failed (Result: exit-code) since Mon 2024-02-26 15:10:44 CET; 9s ago TriggeredBy: ● logrotate.timer Docs: man:logrotate(8) man:logrotate.conf(5) Process: 85798 ExecStart=/usr/sbin/logrotate /etc/logrotate.conf (code=exited, status=1/FAILURE) Main PID: 85798 (code=exited, status=1/FAILURE) CPU: 69ms Feb 26 15:10:44 workstation5 systemd[1]: Starting logrotate.service - Rotate log files... Feb 26 15:10:44 workstation5 logrotate[85798]: error: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage-license-check.log Feb 26 15:10:44 workstation5 logrotate[85798]: error: found error in file ubuntu-pro-client, skipping Feb 26 15:10:44 workstation5 systemd[1]: logrotate.service: Main process exited, code=exited, status=1/FAILURE Feb 26 15:10:44 workstation5 systemd[1]: logrotate.service: Failed with result 'exit-code'. Feb 26 15:10:44 workstation5 systemd[1]: Failed to start logrotate.service - Rotate log files. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2055046 Title: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage- license-check.log To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2055046/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2055046] Re: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage-license-check.log
Hello Grant, updating ubuntu-advantage-tools to 31.2 fixes the problem on 24.04. Thanks. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2055046 Title: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage- license-check.log To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2055046/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2055046] Re: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage-license-check.log
Hello xypron Did you upgrade ubuntu-advantage-tools as well? That should remove the file - if it does not please let us know. Any system not on -devel will either never have ubuntu-advantage-tools or it will be required to upgrade to 31.2 of ubuntu-advantage-tools at the same time as installing ubuntu-pro-client. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2055046 Title: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage- license-check.log To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2055046/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2055046] Re: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage-license-check.log
After installing ubuntu-pro-client 31.2 I have still file /etc/logrotate.d/ubuntu-advantage-tools on my Ubuntu 24.04 riscv64 system and the logrotate service still fails with logrotate[3532]: error: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage.log # dpkg -s ubuntu-pro-client Package: ubuntu-pro-client Status: install ok installed Priority: important Section: misc Installed-Size: 1075 Maintainer: Ubuntu Developers Architecture: riscv64 Source: ubuntu-advantage-tools Version: 31.2 # ls /etc/logrotate.d -lat total 60 drwxr-xr-x 2 root root 4096 Mar 5 08:38 . drwxr-xr-x 111 root root 4096 Mar 5 08:36 .. -rw-r--r-- 1 root root 144 Feb 16 13:18 cloud-init -rw-r--r-- 1 root root 270 Feb 14 15:37 ubuntu-pro-client -rw-r--r-- 1 root root 130 Oct 10 06:34 btmp -rw-r--r-- 1 root root 248 Oct 10 06:34 rsyslog -rw-r--r-- 1 root root 270 Oct 10 06:34 ubuntu-advantage-tools -rw-r--r-- 1 root root 209 Oct 10 06:34 ufw -rw-r--r-- 1 root root 145 Oct 10 06:34 wtmp -rw-r--r-- 1 root root 126 Oct 9 13:45 apport -rw-r--r-- 1 root root 173 Aug 2 2023 apt -rw-r--r-- 1 root root 120 Jul 7 2023 alternatives -rw-r--r-- 1 root root 112 Jul 7 2023 dpkg -rw-r--r-- 1 root root 91 Mar 23 2023 bootlog -rw-r--r-- 1 root root 235 Jan 8 2023 unattended-upgrades Shouldn't 31.2 remove the duplicate file? Wouldn't we fix 24.04 before any SRU? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2055046 Title: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage- license-check.log To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2055046/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2055046] Re: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage-license-check.log
Hello Heinrich, or anyone else affected, Accepted ubuntu-advantage-tools into mantic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ubuntu-advantage-tools/31.2~23.10 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users. If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed- mantic to verification-done-mantic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification- failed-mantic. In either case, without details of your testing we will not be able to proceed. Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping! N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days. ** Changed in: ubuntu-advantage-tools (Ubuntu Mantic) Status: New => Fix Committed ** Tags added: verification-needed verification-needed-mantic ** Changed in: ubuntu-advantage-tools (Ubuntu Jammy) Status: New => Fix Committed ** Tags added: verification-needed-jammy -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2055046 Title: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage- license-check.log To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2055046/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2055046] Re: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage-license-check.log
** Description changed: + + [ Impact ] + After an upgrade from ubuntu-advantage-tools 30.1 to ubuntu-pro-client 31.1, an old logrotate conffile named ubuntu-advantage-tools is left behind. The old file configures the same files as the new conffile: ubuntu-pro-client. + The result is that when logrotate runs (on a daily timer) it has an error becuase two configurations for the same log files exist. This results in a "degrated" system status. + + The fix is to use the `rm_conffile` maintscript to remove the old + ubuntu-advantage-tools logrotate conffile on upgrade. + + [ Test Plan ] + We added a test to the ubuntu-pro-client integration test suite that covers this scenario. It upgrades to the new ubuntu-pro-client and then runs logrotate and checks that there are no errors. Because this is covered by the integration test suite, this bug will be verified as part of the verification process for LP: #2048921. + + + [ Where problems could occur ] + Touching conffiles is always risky. It could result in the removal of a needed config option or in an unnecessary debconf prompt on upgrade. I tested that user modifications were preserved on upgrade, but there is always the possibility that something could go wrong. + + [ Original Description ] Logrotate does not start due to misconfigured Ubuntu Pro: $ sudo systemctl status logrotate | cat × logrotate.service - Rotate log files - Loaded: loaded (/usr/lib/systemd/system/logrotate.service; static) - Active: failed (Result: exit-code) since Mon 2024-02-26 15:10:44 CET; 9s ago + Loaded: loaded (/usr/lib/systemd/system/logrotate.service; static) + Active: failed (Result: exit-code) since Mon 2024-02-26 15:10:44 CET; 9s ago TriggeredBy: ● logrotate.timer -Docs: man:logrotate(8) - man:logrotate.conf(5) - Process: 85798 ExecStart=/usr/sbin/logrotate /etc/logrotate.conf (code=exited, status=1/FAILURE) -Main PID: 85798 (code=exited, status=1/FAILURE) - CPU: 69ms + Docs: man:logrotate(8) + man:logrotate.conf(5) + Process: 85798 ExecStart=/usr/sbin/logrotate /etc/logrotate.conf (code=exited, status=1/FAILURE) + Main PID: 85798 (code=exited, status=1/FAILURE) + CPU: 69ms Feb 26 15:10:44 workstation5 systemd[1]: Starting logrotate.service - Rotate log files... Feb 26 15:10:44 workstation5 logrotate[85798]: error: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage-license-check.log Feb 26 15:10:44 workstation5 logrotate[85798]: error: found error in file ubuntu-pro-client, skipping Feb 26 15:10:44 workstation5 systemd[1]: logrotate.service: Main process exited, code=exited, status=1/FAILURE Feb 26 15:10:44 workstation5 systemd[1]: logrotate.service: Failed with result 'exit-code'. Feb 26 15:10:44 workstation5 systemd[1]: Failed to start logrotate.service - Rotate log files. ** Description changed: - - [ Impact ] + [ Impact ] After an upgrade from ubuntu-advantage-tools 30.1 to ubuntu-pro-client 31.1, an old logrotate conffile named ubuntu-advantage-tools is left behind. The old file configures the same files as the new conffile: ubuntu-pro-client. - The result is that when logrotate runs (on a daily timer) it has an error becuase two configurations for the same log files exist. This results in a "degrated" system status. + The result is that when logrotate runs (on a daily timer) it has an error because two configurations for the same log files exist. This results in a "degraded" system status. The fix is to use the `rm_conffile` maintscript to remove the old ubuntu-advantage-tools logrotate conffile on upgrade. [ Test Plan ] We added a test to the ubuntu-pro-client integration test suite that covers this scenario. It upgrades to the new ubuntu-pro-client and then runs logrotate and checks that there are no errors. Because this is covered by the integration test suite, this bug will be verified as part of the verification process for LP: #2048921. - [ Where problems could occur ] Touching conffiles is always risky. It could result in the removal of a needed config option or in an unnecessary debconf prompt on upgrade. I tested that user modifications were preserved on upgrade, but there is always the possibility that something could go wrong. [ Original Description ] Logrotate does not start due to misconfigured Ubuntu Pro: $ sudo systemctl status logrotate | cat × logrotate.service - Rotate log files Loaded: loaded (/usr/lib/systemd/system/logrotate.service; static) Active: failed (Result: exit-code) since Mon 2024-02-26 15:10:44 CET; 9s ago TriggeredBy: ● logrotate.timer Docs: man:logrotate(8) man:logrotate.conf(5) Process: 85798 ExecStart=/usr/sbin/logrotate /etc/logrotate.conf (code=exited, status=1/FAILURE) Main PID: 85798 (code=exited, status=1/FAILURE) CPU: 69ms Feb 26 15:10:44
[Bug 2055046] Re: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage-license-check.log
** Tags added: noble -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2055046 Title: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage- license-check.log To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2055046/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2055046] Re: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage-license-check.log
** Tags added: regression-proposed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2055046 Title: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage- license-check.log To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2055046/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2055046] Re: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage-license-check.log
xypron, your diagnosis was correct i.e. we are to rename/delete the /etc/logrotate.d/ubuntu-advantage-tools. We have an update to address this bug in ubuntu-pro-client v31.2 and here is the commit to address it https://github.com/canonical/ubuntu-pro- client/commit/fcea342a3f98550b78f244252beaade2f96a75ed and the PR https://github.com/canonical/ubuntu-pro-client/pull/2964 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2055046 Title: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage- license-check.log To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2055046/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2055046] Re: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage-license-check.log
My system is running Ubuntu 24.04 with ubuntu-pro-client 31.1. ** Changed in: ubuntu-advantage-tools (Ubuntu) Status: Incomplete => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2055046 Title: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage- license-check.log To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2055046/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2055046] Re: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage-license-check.log
** Attachment added: "ua_logs.tar.gz" https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2055046/+attachment/5749681/+files/ua_logs.tar.gz -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2055046 Title: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage- license-check.log To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2055046/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2055046] Re: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage-license-check.log
Hello xypron, thank you for submitting the bug. I would like to for the pro-client logs by running `sudo pro collect-logs`. Furthermore, could you please help us with the details of your system e.g. distro version and pro-client version. ** Changed in: ubuntu-advantage-tools (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2055046 Title: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage- license-check.log To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2055046/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2055046] Re: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage-license-check.log
/etc/logrotate.d$ ls /etc/logrotate.d/*advantage* -la -rw-r--r-- 1 root root 270 Mär 7 2022 /etc/logrotate.d/ubuntu-advantage-tools /etc/logrotate.d$ ls /etc/logrotate.d/*pro* -la -rw-r--r-- 1 root root 270 Feb 14 16:37 /etc/logrotate.d/ubuntu-pro-client Shouldn't ubuntu-pro-client remove /etc/logrotate.d/ubuntu-advantage- tools? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2055046 Title: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage- license-check.log To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2055046/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2055046] Re: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage-license-check.log
/etc/logrotate.d$ grep -GHrn advantage ubuntu-advantage-tools:2:# of /var/log/ubuntu-advantage*.log files. ubuntu-advantage-tools:3:/var/log/ubuntu-advantage*.log { ubuntu-pro-client:2:# of /var/log/ubuntu-advantage*.log files. ubuntu-pro-client:3:/var/log/ubuntu-advantage*.log { -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2055046 Title: ubuntu-pro-client:3 duplicate log entry for /var/log/ubuntu-advantage- license-check.log To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2055046/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs