Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24)

Bug #1436448 reported by bugproxy
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
policykit-1 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

---Problem Description---
Error messages while installing apport package

---uname output---
3.19.0-9-generic

Machine Type = POWER8

---Steps to Reproduce---
1) Install Ubuntu 15.04 as a PowerKVM guest.
2) Install apport package using following command

apt-get install apport

Error messages are displayed during the installation. The installation eventually succeeds.

root@ub1504:~# apt-get install apport
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-3.18.0-13 linux-headers-3.18.0-13-generic
  linux-image-3.18.0-13-generic linux-image-extra-3.18.0-13-generic
  python-support
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  apport-symptoms libpolkit-agent-1-0 libpolkit-backend-1-0 policykit-1
  python3-apport python3-problem-report
Suggested packages:
  apport-gtk apport-kde python3-launchpadlib
The following NEW packages will be installed:
  apport apport-symptoms libpolkit-agent-1-0 libpolkit-backend-1-0 policykit-1
  python3-apport python3-problem-report
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 312 kB of archives.
After this operation, 2,296 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ports.ubuntu.com/ubuntu-ports/ vivid/main libpolkit-agent-1-0 ppc64el 0.105-8ubuntu2 [14.6 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports/ vivid/main libpolkit-backend-1-0 ppc64el 0.105-8ubuntu2 [33.5 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports/ vivid/main python3-problem-report all 2.16.2-0ubuntu4 [10.1 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports/ vivid/main python3-apport all 2.16.2-0ubuntu4 [75.9 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports/ vivid/main apport all 2.16.2-0ubuntu4 [113 kB]
Get:6 http://ports.ubuntu.com/ubuntu-ports/ vivid/main apport-symptoms all 0.20 [14.2 kB]
Get:7 http://ports.ubuntu.com/ubuntu-ports/ vivid/main policykit-1 ppc64el 0.105-8ubuntu2 [50.7 kB]
Fetched 312 kB in 1s (217 kB/s)
Selecting previously unselected package libpolkit-agent-1-0:ppc64el.
(Reading database ... 114319 files and directories currently installed.)
Preparing to unpack .../libpolkit-agent-1-0_0.105-8ubuntu2_ppc64el.deb ...
Unpacking libpolkit-agent-1-0:ppc64el (0.105-8ubuntu2) ...
Selecting previously unselected package libpolkit-backend-1-0:ppc64el.
Preparing to unpack .../libpolkit-backend-1-0_0.105-8ubuntu2_ppc64el.deb ...
Unpacking libpolkit-backend-1-0:ppc64el (0.105-8ubuntu2) ...
Selecting previously unselected package python3-problem-report.
Preparing to unpack .../python3-problem-report_2.16.2-0ubuntu4_all.deb ...
Unpacking python3-problem-report (2.16.2-0ubuntu4) ...
Selecting previously unselected package python3-apport.
Preparing to unpack .../python3-apport_2.16.2-0ubuntu4_all.deb ...
Unpacking python3-apport (2.16.2-0ubuntu4) ...
Selecting previously unselected package apport.
Preparing to unpack .../apport_2.16.2-0ubuntu4_all.deb ...
Unpacking apport (2.16.2-0ubuntu4) ...
Selecting previously unselected package apport-symptoms.
Preparing to unpack .../apport-symptoms_0.20_all.deb ...
Unpacking apport-symptoms (0.20) ...
Selecting previously unselected package policykit-1.
Preparing to unpack .../policykit-1_0.105-8ubuntu2_ppc64el.deb ...
Unpacking policykit-1 (0.105-8ubuntu2) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for shared-mime-info (1.3-1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for dbus (1.8.12-1ubuntu3) ...
Setting up libpolkit-agent-1-0:ppc64el (0.105-8ubuntu2) ...
Setting up libpolkit-backend-1-0:ppc64el (0.105-8ubuntu2) ...
Setting up python3-problem-report (2.16.2-0ubuntu4) ...
Setting up python3-apport (2.16.2-0ubuntu4) ...
Setting up apport (2.16.2-0ubuntu4) ...
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24)
Failed to execute operation: Connection timed out
invoke-rc.d: apport.service doesn't exist but the upstart job does. Nothing to start or stop until a systemd or init job is present.
Setting up apport-symptoms (0.20) ...
Setting up policykit-1 (0.105-8ubuntu2) ...
Processing triggers for libc-bin (2.21-0ubuntu2) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for dbus (1.8.12-1ubuntu3) ...
root@ub1504:~# dpkg -l | grep apport
ii apport 2.16.2-0ubuntu4 all automatically generate crash reports for debugging
ii apport-symptoms 0.20 all symptom scripts for apport
ii python3-apport 2.16.2-0ubuntu4 all Python 3 library for Apport crash report handling
root@ub1504:~# uname -r
3.19.0-9-generic
root@ub1504:~#

Userspace tool common name: apport

The userspace tool has the following bit modes: 64-bit

Userspace package: apport (2.16.2-0ubuntu4)

bugproxy (bugproxy)
tags: added: architecture-ppc64le bugnameltc-122991 severity-high targetmilestone-inin1504
Luciano Chavez (lnx1138)
affects: ubuntu → apport (Ubuntu)
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2015-04-01 11:04 EDT-------
Hello,

Do you need any more details from us on this ?

thanks !

Revision history for this message
Breno Leitão (breno-leitao) wrote : Re: Error messages while installing apport package

We are facing this issue on a set of different environments.

Changed in apport (Ubuntu):
status: New → Confirmed
Revision history for this message
futurefx (force) wrote :

I try to install from mini.iso and similar errors.

Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2015-04-21 14:02 EDT-------
*** Bug 123463 has been marked as a duplicate of this bug. ***

Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2015-04-21 14:32 EDT-------
I got the same with the vivid-server-ppc64el.iso .
The main point is that polkitd is not running.
So a workaround for now is to install first policykit-1 and then other things.
I'm digging more to found why the polkitd daemon doesn't get triggered.

Revision history for this message
futurefx (force) wrote : Re: Error messages while installing apport package

bugproxy is right, policykit-1 solves problem so it is needed to install it first before anything else.

Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2015-04-23 10:13 EDT-------
I checked and this bug also happens on x86 with vivid-server-amd64.iso if one does an install without apport/policykit-1.

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote : Re: Error messages while installing apport package

I can easily reproduce this on a generic ppc64el virtual machine; policykit-1 may have trouble starting up:
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24)

In my case however it happened with the systemd postinst:
Processing triggers for systemd (219-9ubuntu1) ...
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24)
Failed to execute operation: Connection timed out
dpkg: error processing package systemd (--unpack):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for dbus (1.8.12-1ubuntu5) ...
Errors were encountered while processing:
 systemd
E: Sub-process /usr/bin/dpkg returned an error code (1)

Running the install again appears to eventually let it succeed. Since it's not just reproducible with apport; I'm reassigning this to policykit-1.

affects: apport (Ubuntu) → policykit-1 (Ubuntu)
summary: - Error messages while installing apport package
+ Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout
+ was reached (g-io-error-quark, 24)
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2015-07-02 12:45 EDT-------
*** Bug 122925 has been marked as a duplicate of this bug. ***

Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2015-07-22 08:50 EDT-------
*** Bug 127858 has been marked as a duplicate of this bug. ***

------- Comment From <email address hidden> 2015-07-22 09:00 EDT-------
Hello Canonical,

We are seeing this issue on the latest daily builds (http://cdimage.ubuntu.com/ubuntu-server/daily/current/ ) also.

Can you please let us know if you need more details from us to proceed on this ?

Thanks!

Revision history for this message
Keith Vertrees (kvertrees) wrote :

I tried to install from mini.iso, ran into this, and am now hopelessly hosed. Is there any way to fix the situation short of a complete reinstall?

Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2015-09-15 08:18 EDT-------
Hello Canonical,

Can you please let us know if you need more inputs from us?

thanks!

Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2016-02-15 03:09 EDT-------
*** Bug 137078 has been marked as a duplicate of this bug. ***

Revision history for this message
bugproxy (bugproxy) wrote :
Download full text (3.5 KiB)

------- Comment From <email address hidden> 2016-02-28 23:57 EDT-------
I can recreate this problem with latest 16.04 build.

Created symlink from /run/systemd/system/polkitd.service to /dev/null.
Unpacking policykit-1 (0.105-14.1) ...
Selecting previously unselected package python3-systemd.
Preparing to unpack .../python3-systemd_231-2build1_ppc64el.deb ...
Unpacking python3-systemd (231-2build1) ...
Processing triggers for systemd (229-1ubuntu4) ...
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: GDBus.Error:org.freedesktop.systemd1.UnitMasked: Unit polkitd.service is masked. (g-io-error-quark, 36)
Processing triggers for ureadahead (0.100.0-19) ...
ureadahead will be reprofiled on next reboot
Processing triggers for shared-mime-info (1.5-2) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.21-0ubuntu6) ...
Processing triggers for dbus (1.10.6-1ubuntu2) ...
Setting up python3-problem-report (2.20-0ubuntu3) ...
Setting up python3-apport (2.20-0ubuntu3) ...
Setting up apport (2.20-0ubuntu3) ...
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: GDBus.Error:org.freedesktop.systemd1.UnitMasked: Unit polkitd.service is masked. (g-io-error-quark, 36)
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: GDBus.Error:org.freedesktop.systemd1.UnitMasked: Unit polkitd.service is masked. (g-io-error-quark, 36)
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: GDBus.Error:org.freedesktop.systemd1.UnitMasked: Unit polkitd.service is masked. (g-io-error-quark, 36)
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: GDBus.Error:org.freedesktop.systemd1.UnitMasked: Unit polkitd.service is masked. (g-io-error-quark, 36)
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: GDBus.Error:org.freedesktop.systemd1.UnitMasked: Unit polkitd.service is masked. (g-io-error-quark, 36)
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: GDBus.Error:org.freedesktop.systemd1.UnitMasked: Unit polkitd.service is masked. (g-io-error-quark, 36)
Setting up apport-symptoms (0.20) ...
Setting up libpam-systemd:ppc64el (229-1ubuntu4) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up libpolkit-agent-1-0:ppc64el (0.105-14.1) ...
Setting up libpolkit-backend-1-0:ppc64el (0.105-14.1) ...
Setting up policykit-1 (0.105-14.1) ...
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: GDBus.Error:org.freedesktop.systemd1.UnitMasked: Unit polkitd.service is masked. (g-io-error-quark, 36)
Removed symlink /run/systemd/system/polkitd.service.
PolicyKit daemon disconnected from the bus.
We are no longer a registered authe...

Read more...

tags: added: targetmilestone-inin1604
removed: targetmilestone-inin1504
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.