[Bug 525674] Re: apt-check hangs, preventing login via SSH

2016-01-28 Thread Scott Moser
** Description changed: Binary package hint: update-notifier While investigating protracted hangs in the remote login process, I noticed that apt-check is called to update the list of available updates and print the number of updatable packages in the MOTD. As it so happens, apt-check

[Bug 525674] Re: apt-check hangs, preventing login via SSH

2015-11-13 Thread Launchpad Bug Tracker
This bug was fixed in the package update-notifier - 3.164 --- update-notifier (3.164) xenial; urgency=medium * debian/90-updates-available - Now directly prints the cached info if available => avoid login stalls due to motd updates (LP: #525674) - Also fixes a former p

[Bug 525674] Re: apt-check hangs, preventing login via SSH

2015-11-13 Thread Martin Pitt
Thank you! Uploaded. ** Changed in: update-notifier (Ubuntu) Status: Confirmed => Fix Committed -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to the bug report. https://bugs.launchpad.net/bugs/525674 Title: apt-check hangs, pr

[Bug 525674] Re: apt-check hangs, preventing login via SSH

2015-11-13 Thread Launchpad Bug Tracker
** Branch linked: lp:update-notifier -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to the bug report. https://bugs.launchpad.net/bugs/525674 Title: apt-check hangs, preventing login via SSH To manage notifications about this bug go t

[Bug 525674] Re: apt-check hangs, preventing login via SSH

2015-11-10 Thread Scott Moser
looks good to me. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to the bug report. https://bugs.launchpad.net/bugs/525674 Title: apt-check hangs, preventing login via SSH To manage notifications about this bug go to: https://bugs.lau

[Bug 525674] Re: apt-check hangs, preventing login via SSH

2015-10-09 Thread ChristianEhrhardt
** Patch added: "Enhanced fix for Wily and Upstream (version 3)" https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/525674/+attachment/4489492/+files/wily_and_dev_package.debdiff -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscri

[Bug 525674] Re: apt-check hangs, preventing login via SSH

2015-10-09 Thread ChristianEhrhardt
Martin: - I already removed one indirection with my former patch and love to remove one more. Simple code = good code - thanks for the good hint. - I changed it slightly to use the existing variable so people recognize from which code it came and to avoid issues if one ever changes only one o

[Bug 525674] Re: apt-check hangs, preventing login via SSH

2015-10-08 Thread Scott Moser
hey. saw this in my inbox, and very happy! thank you for working on this. one note, in update-notifier-3.164/data/update-motd-updates-available +trap cleanup EXIT +tmpfile=$(mktemp) if tmpfile was set in the environment prior to this program running, and you exited for some reason betwee

[Bug 525674] Re: apt-check hangs, preventing login via SSH

2015-10-07 Thread Michael Vogt
Thanks for working on this! Diff looks good (pitti pointed some minor things out already). One more thing, please keep the part: "DPkg::Post-Invoke {"if [ -d /var/lib/update-notifier ]; then touch /var/lib/update-notifier/dpkg-run-stamp; fi; " the part of update-notifier that displays a icon (u

[Bug 525674] Re: apt-check hangs, preventing login via SSH

2015-10-07 Thread Martin Pitt
Thanks Christian! Some remarks: - The introduction of data/get-motd-updates-available seems like an unnecessary indirection to me. Instead of checking the executability of that and run it, debian/90-updates-available could just directly do cat /var/lib/update-notifier/updates-available 2>/dev/

[Bug 525674] Re: apt-check hangs, preventing login via SSH

2015-10-07 Thread ChristianEhrhardt
** Patch added: "Enhanced fix for Wily and Upstream" https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/525674/+attachment/4487279/+files/wily_and_dev_package.debdiff -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to the b

[Bug 525674] Re: apt-check hangs, preventing login via SSH

2015-10-07 Thread ChristianEhrhardt
Here the bigger, but more architecturally complete solution for wily&upstream (which is actually identical at this time). Summary: - move the actual updating part out of the pam based trigger completely (avoids slowdown) - pam based motd now only prints the cached info (if existing) - hook into a

[Bug 525674] Re: apt-check hangs, preventing login via SSH

2015-10-07 Thread ChristianEhrhardt
FYI - After a discussion I'll likely revamp the patches for wily and upstream the next days. Until then we will also decide if this is worth SRUs for trusty/vivid. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to the bug report. https:/

[Bug 525674] Re: apt-check hangs, preventing login via SSH

2015-10-06 Thread Ubuntu Foundations Team Bug Bot
The attachment "Fix for trusty" seems to be a debdiff. The ubuntu- sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you

[Bug 525674] Re: apt-check hangs, preventing login via SSH

2015-10-06 Thread ChristianEhrhardt
** Patch added: "Fix for wily" https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/525674/+attachment/4486127/+files/wily_package.debdiff -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to the bug report. https://bugs.launch

[Bug 525674] Re: apt-check hangs, preventing login via SSH

2015-10-06 Thread ChristianEhrhardt
** Patch added: "Fix for vivid" https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/525674/+attachment/4486126/+files/vivid_package.debdiff -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to the bug report. https://bugs.laun

[Bug 525674] Re: apt-check hangs, preventing login via SSH

2015-10-06 Thread ChristianEhrhardt
Other MOTD plugins use caching, for example /usr/lib/update-notifier/update-motd-reboot-required does: if [ -f /var/run/reboot-required ]; then cat /var/run/reboot-required fi Actually /usr/lib/update-notifier/update-motd-updates-available already uses "caching" like the others. It store

[Bug 525674] Re: apt-check hangs, preventing login via SSH

2015-10-06 Thread ChristianEhrhardt
** Patch added: "Fix for upstream" https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/525674/+attachment/4486128/+files/upstream_package.debdiff -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to the bug report. https://bug

[Bug 525674] Re: apt-check hangs, preventing login via SSH

2015-10-06 Thread ChristianEhrhardt
** Patch added: "Fix for trusty" https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/525674/+attachment/4486125/+files/trusty_package.debdiff -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to the bug report. https://bugs.la

[Bug 525674] Re: apt-check hangs, preventing login via SSH

2014-05-05 Thread RichardNeill
Interestingly, 14.04 seems to be much better at this than 12.04, takling around 1.5 sec rather than 12. However, it's interesting how much faster it can still be without this. Here is a measurement I made. This is 14.04 server on the LAN, with ssh-key authentication, and I repeated serveral ti

[Bug 525674] Re: apt-check hangs, preventing login via SSH

2014-05-05 Thread RichardNeill
This is really painful - although I don't experience complete hangs, I do experience 12-second+ delays while the script "90-updates-available" grinds slowly though. So login via SSH is unpleasantly slow. Furthermore, bash completion for tab completion on scp commands is also very slow. The wor

[Bug 525674] Re: apt-check hangs, preventing login via SSH

2014-05-05 Thread RichardNeill
(P.S. Even worse is connecting via a stack of SSH tunnels, eg behind a firewall. It takes almost 30 seconds to get a prompt, and ssh -vvv doesn't help identify the issue). -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to the bug report.

[Bug 525674] Re: apt-check hangs, preventing login via SSH

2011-01-13 Thread Dan Muresan
To answer self, there are pam_motd references in /etc/pam.d/{login,ssh} (!). 'Cause hey, you never know when you need that important ssh session or CONSOLE login delayed for a while... And since the very same friendly developers will be in charge of the next release (and the next one after that),

[Bug 525674] Re: apt-check hangs, preventing login via SSH

2011-01-13 Thread Dan Muresan
What connects loging in to running update-notifier? I'd like to disable that (especially for SSH logins) without removing update-notifier completely. -- You received this bug notification because you are a member of Ubuntu Server Team, which is a direct subscriber. https://bugs.launchpad.net/bugs

[Bug 525674] Re: apt-check hangs, preventing login via SSH

2010-02-26 Thread Scott Moser
I was about to file this bug, so I'll confirm it. I have not seen the apt-check hang entirely, but it is very slow to run, and blocks initial. Note, you may have seen what appeared to be a hang due to the very bad performance of security.ubuntu.com in the past few days. That performance was due

[Bug 525674] Re: apt-check hangs, preventing login via SSH

2010-02-22 Thread Martin-Éric Racine
Subscribed Ubuntu Server Team as this is an issue that prevents remote servicing of Lucid hosts. -- apt-check hangs, preventing login via SSH https://bugs.launchpad.net/bugs/525674 You received this bug notification because you are a member of Ubuntu Server Team, which is a direct subscriber. --