[Bug 1864045] Re: [SRU] Hibernation events sometimes missed on repeated attempts
** Changed in: acpid (Ubuntu Bionic) Assignee: Balint Reczey (rbalint) => (unassigned) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1864045 Title: [SRU] Hibernation events sometimes missed on repeated attempts To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/acpid/+bug/1864045/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1864045] Re: [SRU] Hibernation events sometimes missed on repeated attempts
The Eoan Ermine has reached end of life, so this bug will not be fixed for that release ** Changed in: linux (Ubuntu Eoan) Status: Incomplete => Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1864045 Title: [SRU] Hibernation events sometimes missed on repeated attempts To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/acpid/+bug/1864045/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1864045] Re: [SRU] Hibernation events sometimes missed on repeated attempts
The Eoan Ermine has reached end of life, so this bug will not be fixed for that release ** Changed in: acpid (Ubuntu Eoan) Status: Confirmed => Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1864045 Title: [SRU] Hibernation events sometimes missed on repeated attempts To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/acpid/+bug/1864045/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1864045] Re: [SRU] Hibernation events sometimes missed on repeated attempts
@rbalint unfortunately bisecting the kernel is not a trivial task... there are many changes between the stock 4.15 and the 5.0 kernels and the process is probably going to take a long time. I'll check if it's possible to identify only a subset of potential commits that might have caused this problem. The steps that I've used to verify that the problem was fixed (or at least it thought it was fixed) were pretty easy: I got acpid from https://salsa.debian.org/debian/acpid.git (version 2.0.32-1), recompiled it, moved it to /usr/sbin/acpid (replacing the stock 2.0.28) and then tested multiple hibernate/resume cycles via the AWS APIs. With this "custom" acpid I wasn't able to trigger any failure. It's also worth mentioning that I was using 5.0.0-1019-aws. I'll repeat my tests again with the latest bionic aws 5.0 kernel and will check if I can reproduce the failures. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1864045 Title: [SRU] Hibernation events sometimes missed on repeated attempts To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/acpid/+bug/1864045/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1864045] Re: [SRU] Hibernation events sometimes missed on repeated attempts
> @rbalint if you can reproduce the problem easily, it would be > interesting to monitor the received ACPI events via acpi_listen. I believe the reproduction is very easy for everyone. I could not reproduce newer acpid fixing the problem OTOH. I'd like to have the reproduction steps for that experiment. > What I see during my tests is that acpi_listen is always showing the > sleep events, meaning that the kernel receives them correctly at least, > and then the failure happens in the delivery of these sleep events to > the proper user-space daemon (acpid). So my guess is that something > wrong is happening in the communication between kernel and user-space to > deliver these events. Since only the kernel changed it may be a regression in the kernel or a change in kernel's behaviour that is still valid but acpid somehow breaks. Please either provide the reproduction steps where a different acpid fixes the issue or point at the change in the kernel to which acpid should adapt. I believe this can be found by bisecting the kernel, but I don't have the setup to do it efficiently myself. > Just to make sure, when you say "the second hibernation attempt still > fails" you mean that the system is still up & running (you can still ssh > on it) and the sleep event is lost / not delivered properly, right? Yes, exactly. I can still log in back to the system after a few seconds. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1864045 Title: [SRU] Hibernation events sometimes missed on repeated attempts To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/acpid/+bug/1864045/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1864045] Re: [SRU] Hibernation events sometimes missed on repeated attempts
@rbalint if you can reproduce the problem easily, it would be interesting to monitor the received ACPI events via acpi_listen. What I see during my tests is that acpi_listen is always showing the sleep events, meaning that the kernel receives them correctly at least, and then the failure happens in the delivery of these sleep events to the proper user-space daemon (acpid). So my guess is that something wrong is happening in the communication between kernel and user-space to deliver these events. Just to make sure, when you say "the second hibernation attempt still fails" you mean that the system is still up & running (you can still ssh on it) and the sleep event is lost / not delivered properly, right? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1864045 Title: [SRU] Hibernation events sometimes missed on repeated attempts To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/acpid/+bug/1864045/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1864045] Re: [SRU] Hibernation events sometimes missed on repeated attempts
I have tried the 'fixed' acpid version and also tried various versions with 5.0 and 5.3 kernels, but the issue does not seem to be fixed. I've backported acpid 1:2.0.32-1ubuntu1 in ppa:rbalint/scratch2 which is practically the same as 2.0.32-1 compiled on Ubuntu, but the second hibernation attempt still fails. Package versions used: linux-aws-wip/5.3.0.1012.13 acpid/1:2.0.32-1ubuntu1~18.04.0~rbalint3 from ppa:rbalint/scratch2 ec2-hibinit-agent/1.0.0-0ubuntu8~18.04.0~rbalint3 from ppa:rbalint/scratch2 Instance type: c4.large Vanilla Bionic, i.e. kernel 4.15.0-1060-aws and Bionic's acpid hibernates twice without any issue. Could you please add detailed reproduction steps that show how the new acpid was used to fix the issue? For now it looks like a kernel regression and bisecting the Linux commit changing the behaviour would be highly useful. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1864045 Title: [SRU] Hibernation events sometimes missed on repeated attempts To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/acpid/+bug/1864045/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1864045] Re: [SRU] Hibernation events sometimes missed on repeated attempts
** Also affects: linux (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1864045 Title: [SRU] Hibernation events sometimes missed on repeated attempts To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/acpid/+bug/1864045/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1864045] Re: [SRU] Hibernation events sometimes missed on repeated attempts
** Changed in: acpid (Ubuntu) Status: Fix Released => Confirmed ** Changed in: acpid (Ubuntu Eoan) Status: Incomplete => Confirmed ** Changed in: acpid (Ubuntu Bionic) Status: In Progress => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1864045 Title: [SRU] Hibernation events sometimes missed on repeated attempts To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/acpid/+bug/1864045/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1864045] Re: [SRU] Hibernation events sometimes missed on repeated attempts
Marked Focal as fixed since it has the acpid version tested to be OK, working on finding the changes needed to be SRUd. ** Summary changed: - Hibernation events sometimes missed on repeated attempts + [SRU] Hibernation events sometimes missed on repeated attempts ** Changed in: acpid (Ubuntu) Status: Incomplete => 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/1864045 Title: [SRU] Hibernation events sometimes missed on repeated attempts To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/acpid/+bug/1864045/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs