anacron upstart job does not inherit pam_env config from cron, causes, update-notifier to not use configured system proxy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
anacron (Ubuntu) |
Triaged
|
High
|
Unassigned | ||
update-notifier (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
The script /etc/cron.
/etc/cron.
Traceback (most recent call last):
File "/usr/lib/
dest_file = urllib.
File "/usr/lib/
return _urlopener.
File "/usr/lib/
fp = self.open(url, data)
File "/usr/lib/
return getattr(self, name)(url)
File "/usr/lib/
h.endheader
File "/usr/lib/
self.
File "/usr/lib/
self.send(msg)
File "/usr/lib/
self.connect()
File "/usr/lib/
self.timeout, self.source_
File "/usr/lib/
raise err
IOError: [Errno socket error] [Errno 101] Network is unreachable
flashplugin-
Update-
. /etc/environment
export http_proxy
Peter
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: update-notifier 0.154.1
ProcVersionSign
Uname: Linux 3.13.0-24-generic x86_64
ApportVersion: 2.14.1-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
Date: Fri May 9 15:37:41 2014
InstallationDate: Installed on 2014-04-29 (9 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: update-notifier
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in anacron (Ubuntu): | |
status: | Confirmed → Triaged |
The cronjob is run from cron; cron is configured via /etc/pam.d/cron to use pam_env.so by default, which reads /etc/environment. Why is this not working on your system?
Individual cron jobs should definitely not be expected to source /etc/environment directly.