[Bug 2063032] Re: Can't enable or disable livepatch.
YES!!! It works again. Thank you so much for all the help, Mr. Parvin. I would have never figured it out by myself. I have no idea how this could have happened. I never touched this file, and I don't remember ever uninstalling or disabling Livepatch in an unusual way before. Weird tough, that snap's --purge flag didn't get rid of this file. Funny to think that 4 little words in a file can cause such a cryptic error. Anyways, I am so glad it works again. Again, thank you very much. I still have a lot to learn in Ubuntu, and I am glad you where there to help me out. With best Regards Robin H. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2063032 Title: Can't enable or disable livepatch. To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-livepatch-client/+bug/2063032/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2063032] Re: Can't enable or disable livepatch.
// cat /proc/cmdline / BOOT_IMAGE=/vmlinuz-6.5.0-28-generic root=UUID=[redacted] ro consoleblank=0 systemd.show_status=true /// cat /var/local/canonical_livepatch_mode // stop cat /var/lib/snapd/hostfs/var/local/canonical_livepatch_mode /// cat: /var/lib/snapd/hostfs/var/local/canonical_livepatch_mode: No such file or directory Also, thanks dor the service reference, that clears some confusion about it. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2063032 Title: Can't enable or disable livepatch. To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-livepatch-client/+bug/2063032/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2063032] Re: Can't enable or disable livepatch.
Here you go: /// ps aux | grep livepatch /// root 749614 0.0 0.0 17736 6720 ?S12:37 0:00 journalctl -o json --no-pager -n 10 -f --namespace=* -u snap.canonical-livepatch.canonical-livepatchd.service root 755884 0.0 0.0 17736 6720 ?S12:39 0:00 journalctl -o json --no-pager -n 10 -f --namespace=* -u snap.canonical-livepatch.canonical-livepatchd.service root 756858 0.0 0.0 17736 6720 ?S12:41 0:00 journalctl -o json --no-pager -n 10 -f --namespace=* -u snap.canonical-livepatch.canonical-livepatchd.service root 841197 0.0 0.0 6620 2496 pts/19 S+ 15:45 0:00 grep --color=auto livepatch / ps aux | grep livepatch (After stopping the snap) / Same result as above Using the snap_common command it states only "Livepatch client disabled." canonical-livepatch status states the same error as before. Could it be that there are two seperate versions of livepatch, maybe and could they interfer with each other? Because in snap I can start/stop a snap called "canonical-livepatch" as well as one called "canonical-livepatch.canonical-livepatchd". Or is that just an alias? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2063032 Title: Can't enable or disable livepatch. To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-livepatch-client/+bug/2063032/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2063032] Re: Can't enable or disable livepatch.
No, unfortunately the logs say nothing at all. And there is nothing inside /var/snap/canonical-livepatch/current. Also, I noticed something not sure if it is important, but when I try to autocomplete "sudo snap logs canonical-livepatch" it refers to the name "canonical- livepatch.canonical-livepatchd" instead. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2063032 Title: Can't enable or disable livepatch. To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-livepatch-client/+bug/2063032/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2063032] Re: Can't enable or disable livepatch.
Hello there, and thank you for your reply. I have already tried the above commands multiple times, even with the --purge flag to wipe clean the configs. I also tried to regenerate my machine-id and then re-install livepatch which didn't work either. I run all commands with sudo (Technically speaking, as I log in with root using "sudo su -l root" for making system changes) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2063032 Title: Can't enable or disable livepatch. To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-livepatch-client/+bug/2063032/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2063032] Re: Can't enable or disable livepatch.
Hello Kian. Apologies for the long delay, I have temporarily forgotten about this issue ticket. I will provide what you asked for below. Thank you again for your help. // snap info canonical-livepatch // name: canonical-livepatch summary: Canonical Livepatch Client publisher: Canonical✓ store-url: https://snapcraft.io/canonical-livepatch contact: sn...@canonical.com license: unset description: | Canonical Livepatch patches high and critical linux kernel vulnerabilities removing the immediate need to reboot to upgrade the kernel, instead allowing the downtime to be scheduled. It is a part of the Ubuntu Pro offering. The Canonical Livepatch Client is an application that runs on your machine and periodically checks for patches. See our docs at https://ubuntu.com/security/livepatch/docs/livepatch commands: - canonical-livepatch services: canonical-livepatch.canonical-livepatchd: simple, enabled, inactive snap-id: b96UJ4vttpNhpbaCWctVzfduQcPwQ5wn tracking: latest/stable refresh-date: today at 13:28 CEST channels: latest/stable:10.8.2 2024-04-17 (278) 10MB - latest/candidate: 10.8.2 2024-04-17 (278) 10MB - latest/beta: 10.8.2 2024-04-17 (278) 10MB - latest/edge: 10.8.3 2024-06-04 (282) 10MB - core22/stable:10.8.1 2024-02-06 (264) 10MB - core22/candidate: 10.8.1 2024-02-06 (264) 10MB - core22/beta: 10.8.1 2024-02-06 (264) 10MB - core22/edge: 10.8.1 2024-02-06 (264) 10MB - core20/stable:10.7.0 2023-09-28 (247) 10MB - core20/candidate: 10.7.0 2023-09-28 (247) 10MB - core20/beta: 10.7.0 2023-09-28 (247) 10MB - core20/edge: 10.8.1 2024-02-06 (269) 10MB - core18/stable:10.6.0 2023-09-15 (236) 10MB - core18/candidate: 10.6.0 2023-09-15 (236) 10MB - core18/beta: 10.6.0 2023-09-15 (236) 10MB - core18/edge: 10.8.1 2024-02-06 (268) 10MB - core/stable: 10.7.0 2023-09-28 (246) 10MB - core/candidate: 10.7.0 2023-09-28 (246) 10MB - core/beta:10.7.0 2023-09-28 (246) 10MB - core/edge:10.8.1 2024-02-06 (267) 10MB - bare/stable: – bare/candidate: – bare/beta:– bare/edge:10.8.0-beta1 2023-11-22 (254) 11MB - installed: 10.8.2 (278) 10MB - canonical-livepatch status --verbose connection to the daemon failed: Get "http://127.0.0.1/status?format=json=3": dial unix /var/snap/canonical-livepatch/278/livepatchd.sock: connect: no such file or directory // journalctl -t canonical-livepatch.canonical-livepatchd // No journal files were found. -- No entries -- snap connections canonical-livepatch Interface Plug SlotNotes hardware-observe canonical-livepatch:hardware-observe :hardware-observe - kernel-module-control canonical-livepatch:kernel-module-control :kernel-module-control - network-bind canonical-livepatch:network-bind :network-bind - network-controlcanonical-livepatch:network-control :network-control- network-managercanonical-livepatch:network-manager :network-manager- system-files canonical-livepatch:etc-update-motd-d :system-files - system-files canonical-livepatch:hostfs-var-local-canonical-livepatch-mode :system-files - system-files canonical-livepatch:run-cloud-init-instance-data-json :system-files - system-observe canonical-livepatch:system-observe :system-observe - system-packages-doccanonical-livepatch:system-packages-doc :system-packages-doc- ls -la /var/snap/canonical-livepatch/current lrwxrwxrwx 1 root root 3 Jun 5 13:28 /var/snap/canonical- livepatch/current -> 278 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2063032 Title: Can't enable or disable livepatch. To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-livepatch-client/+bug/2063032/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs