Re: [Bug 1535058] Re: applications close instantly when launched from the launcher or dash
On Thu, 2016-07-14 at 16:51 +, Serge Hallyn wrote: > I'm sorry, I'm as context-swapped as you are... can you remind me > why > it is needed, versus simply having libpam-cgfs setup to give you > cgroups > upon login? We put applications in cgroups to ensure that their PIDs don't escape and we can kill them all when the app shuts down. The Upstart cgroup stanza uses cgmanager. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1535058 Title: applications close instantly when launched from the launcher or dash To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1535058/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1535058] Re: applications close instantly when launched from the launcher or dash
I'm sorry, I'm as context-swapped as you are... can you remind me why it is needed, versus simply having libpam-cgfs setup to give you cgroups upon login? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1535058 Title: applications close instantly when launched from the launcher or dash To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1535058/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1535058] Re: applications close instantly when launched from the launcher or dash
Quoting David Planella (david.plane...@ubuntu.com): > In my case it's disabled, but even after enabling it manually, I'm > getting the same errors that I had a few months back: > > "cgmanager:do_create_main: pid 2118 (uid 1000 gid 1000) may not create > under /run/cgmanager/fs/freezer" This suggests that libpam-cgm is not installed or configured. Indeed, cgmanager should not allow you to create a cgroup in that directory, as that is the root freezer cgroup. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1535058 Title: applications close instantly when launched from the launcher or dash To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1535058/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1535058] Re: applications close instantly when launched from the launcher or dash
Why is it being *dis*abled? it's not needed, but it's also not in the way. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1535058 Title: applications close instantly when launched from the launcher or dash To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1535058/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1535058] Re: applications close instantly when launched from the launcher or dash
> My advice would be to leave the cgmanager portion as Incomplete until > someone can come up with repo steps, but unfortunately I don't have > those. Just some ideas. Yup let's do that - thanks. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1535058 Title: applications close instantly when launched from the launcher or dash To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1535058/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1535058] Re: applications close instantly when launched from the launcher or dash
@David, please look at /etc/pam.d/common-session. Do you by chance have libpam-cgm rather than libpam-cgfs there? libpam-cgfs does not require cgmanager running On the other hand if unity8 itself requires it, then that's that. And yeah, i guess I do have cgmanager running on my laptop, so I've not tested it without. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1535058 Title: applications close instantly when launched from the launcher or dash To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cgmanager/+bug/1535058/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1535058] Re: applications close instantly when launched from the launcher or dash
On Wed, 2016-02-03 at 14:55 +, David Planella wrote: > I've no idea how to restart cmanager, so any guidance in there, would > be > great, thanks! You can use the service tool to control the service. Note you'll need to start it before logging in. $ sudo service cgmanager start -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1535058 Title: applications close instantly when launched from the launcher or dash To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cgmanager/+bug/1535058/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1535058] Re: applications close instantly when launched from the launcher or dash
I have no idea, unfortunately i've not been able to get far enough with unity8 to reproduce this. Could you please restart cgmanager with the --debug command line option, reproduce, then send me the debug log? Also show the /proc/self/cgroup output for the task (upstart?) that does the failed firing off of apps. Thanks! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1535058 Title: applications close instantly when launched from the launcher or dash To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cgmanager/+bug/1535058/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1535058] Re: applications close instantly when launched from the launcher or dash
On Tue, 2016-01-26 at 18:09 +, Serge Hallyn wrote: > What file or dbus call is used to start the upstart job? Why > is upstart requiring cgroups? Is it something you want/need, > or is it being done inadvertently? We use the cgroups to track the pids inside a confined application. This way they can't fork bomb their way out of the application lifecycle. We do need cgroups. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1535058 Title: applications close instantly when launched from the launcher or dash To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cgmanager/+bug/1535058/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1535058] Re: applications close instantly when launched from the launcher or dash
And thanks for testing that! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1535058 Title: applications close instantly when launched from the launcher or dash To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cgmanager/+bug/1535058/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1535058] Re: applications close instantly when launched from the launcher or dash
What file or dbus call is used to start the upstart job? Why is upstart requiring cgroups? Is it something you want/need, or is it being done inadvertently? If it's something you need, then unity8 or one of its pieces must depend on libpam-cgm (soon libpam-cgfs). If not, then we should figure out where the dependency is coming from, as it would be better to not require the extra package if unneeded, obviously. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1535058 Title: applications close instantly when launched from the launcher or dash To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cgmanager/+bug/1535058/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1535058] Re: applications close instantly when launched from the launcher or dash
Hm, maybe this is related. But login is hanging with: upstart: upstart-event-bridge main process (2252) terminated with status 1 upstart: upstart-event-bridge main process ended, respawning upstart: update-notifier-crash (/var/crash/_usr_bin_unity8-dash.1000.crash) main process (2300) terminated with status 1 upstart: click-user-hooks main process (2238) terminated with status 1 upstart: ubuntu-push-client main process (2522) terminated with status 1 after which the last two lines repeat endlessly (in .xsession-errors, with increasing pids of course). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1535058 Title: applications close instantly when launched from the launcher or dash To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cgmanager/+bug/1535058/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1535058] Re: applications close instantly when launched from the launcher or dash
On Fri, 2016-01-22 at 17:36 +, Serge Hallyn wrote: > So the next two questions would be: what is pid 2486 (and its > parent)? > What is its cgroup? The PID who is creating the group should be Upstart itself, or a helper. We are telling Upstart to do it using the "cgroup" field in the job file. Specifically the job config file has "cgroup freezer". > and, in the case where it works, what cgroup does the equivalent task > try to create? > It should be creating "upstart/$job-$instance" so for a legacy instance of Inkscape the cgroup would be "upstart/application-legacy-inkscape -23452345", the last number is a timestamp. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1535058 Title: applications close instantly when launched from the launcher or dash To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cgmanager/+bug/1535058/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1535058] Re: applications close instantly when launched from the launcher or dash
Thanks, that shows Jan 22 17:02:36 usertesting-Vostro-3550 cgmanager[588]: cgmanager:do_create_main: pid 2486 (uid 1000 gid 1000) may not create under /run/cgmanager/fs/freezer So the next two questions would be: what is pid 2486 (and its parent)? What is its cgroup? and, in the case where it works, what cgroup does the equivalent task try to create? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1535058 Title: applications close instantly when launched from the launcher or dash To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cgmanager/+bug/1535058/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs