Some autostart .desktops are needlessly? being delayed for 1-2 min after login

Bug #1643711 reported by Doug McMahon
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Unity8 PolicyKit Agent
Invalid
Undecided
Unassigned
gnome-session (Ubuntu)
Invalid
Undecided
Unassigned
unity8 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Test Case 1:
login, try any action requiring polkit, ex. would be unlocking user accounts or starting synaptic from it's .desktop
What happens: nothing

Test case 2:
log in to a machine using wireless (maybe also wired..
What happens: there is no indicator for network

In both cases after 1-2 min. policykit becomes active & the network indicator shows up.

If I copy /etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop' & /etc/xdg/autostart/nm-applet.desktop to my desktop, mark as executable & d. click on both directly after login then policykit becomes active & the network icon shows up.

Could be others?, for example logging out shortly after logging in generally fails to do anything

ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: ubuntu-session 3.22.1-1ubuntu1
ProcVersionSignature: Ubuntu 4.9.0-1.2-generic 4.9.0-rc5
Uname: Linux 4.9.0-1-generic x86_64
ApportVersion: 2.20.3-0ubuntu8
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Nov 21 17:20:06 2016
InstallationDate: Installed on 2016-11-09 (12 days ago)
InstallationMedia: Ubuntu 17.04 "Zesty Zapus" - Alpha amd64 (20161106)
PackageArchitecture: all
SourcePackage: gnome-session
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Doug McMahon (mc3man) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, when did that issue start? Do you get it in a guest session as well or is that specific to your user account? That could be due to bug #1637758...

Revision history for this message
Doug McMahon (mc3man) wrote :

See it in a guest session as well inc. no log out until 1.5 - 2 min elapsed.
Seen since orig. install on Nov. 6 using that day's image

As far as other bug -
When I log in there are 2 unity-settings-daemon running, one for me, one for lightdm. However just time is needed until polkit, nm-applet, log out ect. start working.
This happens 100% of the time, not random.

Terminal output for 2 different attempts to open synaptic, (within 1 min of log in. -

$ gtk-launch synaptic
doug@doug-Lenovo-IdeaPad-Y510P:~$ ==== AUTHENTICATING FOR com.ubuntu.pkexec.synaptic ===
Authentication is required to run the Synaptic Package Manager
Authenticating as: doug,,, (doug)
Password:
** (process:2314): ERROR **: Got unexpected EOF while reading from controlling terminal.
Trace/breakpoint trap (core dumped)
polkit-agent-helper-1: pam_authenticate failed: Authentication failure

doug@doug-Lenovo-IdeaPad-Y510P:~$ synaptic-pkexec
==== AUTHENTICATING FOR com.ubuntu.pkexec.synaptic ===
Authentication is required to run the Synaptic Package Manager
Authenticating as: doug,,, (doug)
Password:
polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ===
Error executing command as another user: Not authorized

Maybe try a new install or wait till mentioned bug fix lands?

Revision history for this message
Doug McMahon (mc3man) wrote :

Thinking this is the same bug as mentioned, if I set to autologin then there is only 1 unity-settings-daemon process & everything that should work does so right away.

Revision history for this message
Doug McMahon (mc3man) wrote :

Removing dupe status as the upgrade of lightdm seemed to work for 1 boot up, now back to same situation as described in this report.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-session (Ubuntu):
status: New → Confirmed
Revision history for this message
Doug McMahon (mc3man) wrote :

With the patched lightdm this no longer occurs here on a fresh boot up. However after a log out/in it still does & happens after every log out/in.

Revision history for this message
Doug McMahon (mc3man) wrote :

Based on fresh install of 12/04 image this behavior is back to all the time, i.e., after a fresh boot & after any log out/in
So to iterate: any action requiring polkit inc. attempting to log out require waiting from 60-120 secs after login

(- this may also affect any apport crashers reported to user directly after login, not 100% sure there..

tags: added: systemd-session
Revision history for this message
Doug McMahon (mc3man) wrote :

If I purge unity8 & related packages then no of this occurs. Additionally my wireless works right from login & doesn't quit. With the default unity8* packages installed I get no wireless for about 2 min. after login & then after 10 min lose the internet even though wireless still shows as connected. What a mess (unity8

Revision history for this message
Doug McMahon (mc3man) wrote :

attached syslog reflects bootup, login, waiting for wireless icon to appear in panel.
Then running apt update (works
Then waiting 10 min. doing nothing, then running apt update again (fails) as does any attempt to reconnect properly, i.e. with internet

Revision history for this message
Sebastien Bacher (seb128) wrote :

interesting, do you have any non-UI packages removed in that list? things that have to do with dbus, backends, systemd, etc?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Michał Sawicz (saviq)
affects: unity8 → unity8 (Ubuntu)
Changed in unity8 (Ubuntu):
status: New → Confirmed
Changed in unity8 (Ubuntu):
status: New → Confirmed
Revision history for this message
dino99 (9d9) wrote :
Changed in unity8 (Ubuntu):
status: Confirmed → Invalid
Changed in gnome-session (Ubuntu):
status: Confirmed → Invalid
Changed in policykit-unity8:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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