[Bug 275432] Re: console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit
Hi, Don't worry about testing, I think I've got it. If you were to perform that test I think you would find that only installing policykit would fix it. The problem appears to be this: src/polkit/polkit-context.c has this: /* Watch the /etc/PolicyKit/PolicyKit.conf file */ pk_context->inotify_config_wd = inotify_add_watch (pk_context->inotify_fd, PACKAGE_SYSCONF_DIR "/PolicyKit/PolicyKit.conf", IN_MODIFY | IN_CREATE | IN_ATTRIB); if (pk_context->inotify_config_wd < 0) { polkit_debug ("failed to add watch on file '" PACKAGE_SYSCONF_DIR "/PolicyKit/PolicyKit.conf': %s", strerror (errno)); /* TODO: set error */ goto error; } and similar for /var/lib/misc/Policykit.reload. You can't set an inotify watch on a non-existent file, and these files are shipped as part of the policykit package. Therefore currently libpolkit2 requires files from the policykit file to operate, but doesn't depend on the package. The inotify_add_watch calls have IN_CREATE, hinting to me that it intends it to work if they don't exist, but this doesn't have the intended effect. Therefore I will report this issue upstream. As well as fixing this in that fashion we can fix it in the packaging, at least temporarily. However, I can't really think of a way of doing that that doesn't have headaches. I'll notify the server team of this. Thanks, James ** Changed in: consolekit (Ubuntu) Importance: Undecided => High Status: Incomplete => Triaged ** Summary changed: - console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit + libpolkit requires files from policykit for polkit_context_init to work ** Description changed: - Binary package hint: consolekit - I just noticed this error while reading through syslog after upgrading from 8.04.1 to Intrepid. Sep 28 22:10:01 acheron console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit + + see https://bugs.edge.launchpad.net/ubuntu/+source/consolekit/+bug/275432/comments/16 + for an explanation ** Changed in: policykit (Ubuntu) Sourcepackagename: consolekit => policykit -- libpolkit requires files from policykit for polkit_context_init to work https://bugs.launchpad.net/bugs/275432 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 275432] Re: console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit
Hi, We can narrow down which part of policykit makes this work by installing it a bit at a time. Please uninstall policykit such that you have just libpolkit2 installed and you get the error. Then please find which of the following packages (or combination thereof) makes consolekit work: libpolkit-dbus2 libpolkit-grant2 policykit That will hopefully give us a clue as to what is going on here. Thanks, James -- console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit https://bugs.launchpad.net/bugs/275432 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 275432] Re: console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit
OK, I understand now. When you have more suggestions, let me know. -- console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit https://bugs.launchpad.net/bugs/275432 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 275432] Re: console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit
Matt, apt-cache show consolekit | grep Depends Depends: ..., libpolkit2 (>= 0.7), ... I meant that it depends on "policykit" the project, the software, the abstract, the package depends on libpolkit2, as you can see. Thanks both of you for trying to debug this. I don't have any more suggestions at this moment. Thanks, James -- console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit https://bugs.launchpad.net/bugs/275432 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 275432] Re: console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit
I noticed that I had a console-kit-daemon process running so I killed that. This was before I uninstalled policykit for this test. After uninstalling policykit (libpolkit2 still installed), I was unable to start the console-kit-daemon process from a "sudo -s" shell. The same error message was appearing in syslog each time I tried to start the process. Oct 7 09:26:53 ubuntu console-kit-daemon[20399]: CRITICAL: cannot initialize libpolkit After reinstalling policykit, the console-kit-daemon process started fine. -- console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit https://bugs.launchpad.net/bugs/275432 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 275432] Re: console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit
With a fresh new installation of Intrepid today, console-kit is installed and policykit is not, so how is policykit a dependency of console-kit? Also, libpolkit is not installed by default on Intrepid, nor is it installed by default on Hardy. I ran console-kit-daemon with POLKIT_DEBUG=1 but I get nothing extra in my syslog or daemon.log but syslog:Oct 6 16:53:55 ubuntu console-kit- daemon[18563]: CRITICAL: cannot initialize libpolkit Something else you would like me to try? -- console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit https://bugs.launchpad.net/bugs/275432 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 275432] Re: console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit
Hi, Can you kill any running console-kit-daemon processes and then launch one with POLKIT_DEBUG=1 in the environment (bear in mind that sudo will strip this, so doing it from a "sudo -s" shell would be better). This should help pinpoint the problem. In Intrepid consolekit now depends on policykit, but I would assume that libpolkit would be sufficient. I'm interested why it doesn't seem to be. Thanks, James -- console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit https://bugs.launchpad.net/bugs/275432 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 275432] Re: console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit
Hardy has the console-kit-daemon installed by default but does not need the policykit to run without errors in the syslog. With Intrepid, it has the console-kit-daemon installed by default and writes errors to the syslog WITHOUT policykit installed. I do not believe policykit is a dependency of console-kit-daemon, it may just be a library it needs. When I get to work monday, I will look into it more, since I have a hardy and intrepid server up and running now. -- console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit https://bugs.launchpad.net/bugs/275432 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 275432] Re: console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit
I can confirm that installing "policykit" appears to resolve the issue. I haven't noticed the error since installing this package. If the policykit package is required by Intrepid, it should be added as a dependency to one of the metapackages. -- console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit https://bugs.launchpad.net/bugs/275432 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 275432] Re: console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit
apt-get install policy-kit will fix that up for you. Not sure why intrepid needs it and hardy does not. Also running server edition on my end. -- console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit https://bugs.launchpad.net/bugs/275432 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 275432] Re: console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit
$ dpkg -l \*polkit\* \*policykit\* Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name VersionDescription +++-==-==- ii libpolkit2 0.9-1ubuntu2 library for accessing PolicyKit No packages found matching *policykit*. -- console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit https://bugs.launchpad.net/bugs/275432 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 275432] Re: console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit
Hi, Thanks for the clarification, could you please find out which policykit packages you have installed? dpkg -l \*polkit\* \*policykit\* Thanks, James -- console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit https://bugs.launchpad.net/bugs/275432 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 275432] Re: console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit
I should have mentioned earlier in the summary that I'm running Ubuntu Server, so I'm not entirely sure where policykit is used (if at all). As for the first question, I have rebooted many times since the upgrade and see the message every time. -- console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit https://bugs.launchpad.net/bugs/275432 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 275432] Re: console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit
Hi, I assume you've rebooted since the upgrade? Are you able to use policykit from other applications? Does polkit-auth work for you? System->Administration->Users and Groups? Thanks, James -- console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit https://bugs.launchpad.net/bugs/275432 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 275432] Re: console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit
I just read the syslog for today and I noticed that the message is appearing approximately every 10 minutes. ** Attachment added: "syslog" http://launchpadlibrarian.net/18079755/syslog -- console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit https://bugs.launchpad.net/bugs/275432 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 275432] Re: console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit
Hi, I wonder if this was just a temporary thing caused by the upgrade. Does this message show up only once? If you reboot does it appear again? Thanks, James ** Changed in: consolekit (Ubuntu) Status: New => Incomplete -- console-kit-daemon[13695]: CRITICAL: cannot initialize libpolkit https://bugs.launchpad.net/bugs/275432 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs