update-manager update-motd scripts delays login when the network is firewalled
Bug #522452 reported by
Mark Knowles
This bug affects 7 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-manager (Ubuntu) |
Fix Released
|
Medium
|
Michael Vogt | ||
Lucid |
Fix Released
|
Medium
|
Michael Vogt |
Bug Description
1) This bug is for Ubuntu Lucid Alpha 2
2) Version libpam-modules 1.1.1-1ubuntu1
3) When I SSH to a server running Lucid, I expect to be logged in with a few seconds
4)
The system waits for approximately 30 seconds while the following script runs:
/etc/update-
The problem can be fixed by disabling the script in question:
chmod a-x /etc/update-
That restores SSH logins to a few seconds.
Thanks,
Mark Knowles
Related branches
lp://qastaging/~kirkland/update-manager/522452
- Ubuntu Core Development Team: Pending requested
- Diff: 0 lines
affects: | pam (Ubuntu) → update-manager-core (Ubuntu) |
Changed in update-manager-core (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Triaged |
affects: | update-manager-core (Ubuntu) → update-manager (Ubuntu) |
To post a comment you must log in.
On further inspection, it appears that Lucid is "phoning home" to "rookery. canonical. com" every time I log in.
It's failures were being reported in my firewall log.
iptables: IN= OUT=ppp0 SRC=X.X.X.X DST=91.189.90.132 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=53213 DF PROTO=TCP SPT=44608 DPT=80 WINDOW=5808 RES=0x00 SYN URGP=0
If you're happy to let the MOTD scripts phone home, the problem can be fixed by adding an iptables rule (or the equivalent ufw command):
iptables -A OUTPUT -d rookery. canonical. com --dport 80 -j ACCEPT
This can also be mitigated by a more aggressive timeout:
Edit python2. 6/dist- packages/ UpdateManager/ Core/MetaReleas e.py
/usr/lib/
Change the timeout parameter on line 247 to 2 seconds:
Thanks,
Mark